ProjectsModels
class ProjectsModels extends Resource (View source)
The "models" collection of methods.
Typical usage is:
$mlService = new Google\Service\CloudMachineLearningEngine(...);
$models = $mlService->projects_models;
Methods
Creates a model which will later contain one or more versions. You must add at least one version before you can request predictions from the model. Add versions by calling projects.models.versions.create. (models.create)
Deletes a model. You can only delete a model if there are no versions in it.
Gets information about a model, including its name, the description (if set), and the default version (if at least one version of the model has been deployed). (models.get)
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. (models.getIamPolicy)
Lists the models in a project. Each project can contain multiple models, and each model can have multiple versions. If there are no models that match the request parameters, the list request returns an empty response body: {}.
Updates a specific model resource. Currently the only supported fields to
update are description
and default_version.name
. (models.patch)
Sets the access control policy on the specified resource. Replaces any
existing policy. Can return NOT_FOUND
, INVALID_ARGUMENT
, and
PERMISSION_DENIED
errors. (models.setIamPolicy)
Returns permissions that a caller has on the specified resource. If the
resource does not exist, this will return an empty set of permissions, not a
NOT_FOUND
error. Note: This operation is designed to be used for building
permission-aware UIs and command-line tools, not for authorization checking.
Details
GoogleCloudMlV1Model
create(string $parent, GoogleCloudMlV1Model $postBody, array $optParams = [])
Creates a model which will later contain one or more versions. You must add at least one version before you can request predictions from the model. Add versions by calling projects.models.versions.create. (models.create)
GoogleLongrunningOperation
delete(string $name, array $optParams = [])
Deletes a model. You can only delete a model if there are no versions in it.
You can delete versions by calling projects.models.versions.delete. (models.delete)
GoogleCloudMlV1Model
get(string $name, array $optParams = [])
Gets information about a model, including its name, the description (if set), and the default version (if at least one version of the model has been deployed). (models.get)
GoogleIamV1Policy
getIamPolicy(string $resource, array $optParams = [])
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. (models.getIamPolicy)
GoogleCloudMlV1ListModelsResponse
listProjectsModels(string $parent, array $optParams = [])
Lists the models in a project. Each project can contain multiple models, and each model can have multiple versions. If there are no models that match the request parameters, the list request returns an empty response body: {}.
(models.listProjectsModels)
GoogleLongrunningOperation
patch(string $name, GoogleCloudMlV1Model $postBody, array $optParams = [])
Updates a specific model resource. Currently the only supported fields to
update are description
and default_version.name
. (models.patch)
GoogleIamV1Policy
setIamPolicy(string $resource, GoogleIamV1SetIamPolicyRequest $postBody, array $optParams = [])
Sets the access control policy on the specified resource. Replaces any
existing policy. Can return NOT_FOUND
, INVALID_ARGUMENT
, and
PERMISSION_DENIED
errors. (models.setIamPolicy)
GoogleIamV1TestIamPermissionsResponse
testIamPermissions(string $resource, GoogleIamV1TestIamPermissionsRequest $postBody, array $optParams = [])
Returns permissions that a caller has on the specified resource. If the
resource does not exist, this will return an empty set of permissions, not a
NOT_FOUND
error. Note: This operation is designed to be used for building
permission-aware UIs and command-line tools, not for authorization checking.
This operation may "fail open" without warning. (models.testIamPermissions)