google_api_machine_learning v0.0.1 GoogleApi.MachineLearning.V1.Api.Projects View Source
API calls for all endpoints tagged Projects
.
Link to this section Summary
Functions
Get the service account information associated with your project. You need this information in order to grant the service account persmissions for the Google Cloud Storage location where you put your model training code for training the model with Google Cloud Machine Learning
Cancels a running job
Creates a training or a batch prediction job
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set
Lists the jobs in the project
Sets the access control policy on the specified resource. Replaces any existing policy
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
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
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
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)
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set
Lists the models in a project. Each project can contain multiple models, and each model can have multiple versions
Sets the access control policy on the specified resource. Replaces any existing policy
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
Creates a new version of a model from a trained TensorFlow model. If the version created in the cloud by this call is the first deployed version of the specified model, it will be made the default version of the model. When you add a version to a model that already has one or more versions, the default version does not automatically change. If you want a new version to be the default, you must call projects.models.versions.setDefault
Deletes a model version. Each model can have multiple versions deployed and in use at any given time. Use this method to remove a single version. Note: You cannot delete the version that is set as the default version of the model unless it is the only remaining version
Gets information about a model version. Models can have multiple versions. You can call projects.models.versions.list to get the same information that this method returns for all of the versions of a model
Gets basic information about all the versions of a model. If you expect that a model has a lot of versions, or if you need to handle only a limited number of results at a time, you can request that the list be retrieved in batches (called pages)
Designates a version to be the default for the model. The default version is used for prediction requests made against the model that don't specify a version. The first version to be created for a model is automatically set as the default. You must make any subsequent changes to the default version setting manually using this method
Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`
Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`
Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service
Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users//operations`. To override the binding, API services can add a binding such as `"/v1/{name=users/}/operations"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id
Performs prediction on the data in the request. ** REMOVE FROM GENERATED DOCUMENTATION
Link to this section Functions
ml_projects_get_config(Tesla.Env.client, String.t, keyword) :: {:ok, GoogleApi.MachineLearning.V1.Model.GoogleCloudMlV1__GetConfigResponse.t} | {:error, Tesla.Env.t}
Get the service account information associated with your project. You need this information in order to grant the service account persmissions for the Google Cloud Storage location where you put your model training code for training the model with Google Cloud Machine Learning.
Parameters
- connection (GoogleApi.MachineLearning.V1.Connection): Connection to server
- projects_id (String): Part of `name`. Required. The project name.
opts (KeywordList): [optional] Optional parameters
- :pp (Boolean): Pretty-print response.
- :bearer_token (String): OAuth bearer token.
- :oauth_token (String): OAuth 2.0 token for the current user.
- :upload_protocol (String): Upload protocol for media (e.g. "raw", "multipart").
- :pretty_print (Boolean): Returns response with indentations and line breaks.
- :fields (String): Selector specifying which fields to include in a partial response.
- :upload_type (String): Legacy upload protocol for media (e.g. "media", "multipart").
- :__/xgafv (String): V1 error format.
- :callback (String): JSONP
- :alt (String): Data format for response.
- :key (String): API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
- :access_token (String): OAuth access token.
- :quota_user (String): Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
Returns
{:ok, %GoogleApi.MachineLearning.V1.Model.GoogleCloudMlV1__GetConfigResponse{}} on success {:error, info} on failure
ml_projects_jobs_cancel(Tesla.Env.client, String.t, String.t, keyword) :: {:ok, GoogleApi.MachineLearning.V1.Model.GoogleProtobuf__Empty.t} | {:error, Tesla.Env.t}
Cancels a running job.
Parameters
- connection (GoogleApi.MachineLearning.V1.Connection): Connection to server
- projects_id (String): Part of `name`. Required. The name of the job to cancel.
- jobs_id (String): Part of `name`. See documentation of `projectsId`.
opts (KeywordList): [optional] Optional parameters
- :pp (Boolean): Pretty-print response.
- :bearer_token (String): OAuth bearer token.
- :oauth_token (String): OAuth 2.0 token for the current user.
- :upload_protocol (String): Upload protocol for media (e.g. "raw", "multipart").
- :pretty_print (Boolean): Returns response with indentations and line breaks.
- :fields (String): Selector specifying which fields to include in a partial response.
- :upload_type (String): Legacy upload protocol for media (e.g. "media", "multipart").
- :__/xgafv (String): V1 error format.
- :callback (String): JSONP
- :alt (String): Data format for response.
- :key (String): API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
- :access_token (String): OAuth access token.
- :quota_user (String): Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
- :body (GoogleCloudMlV1__CancelJobRequest):
Returns
{:ok, %GoogleApi.MachineLearning.V1.Model.GoogleProtobuf__Empty{}} on success {:error, info} on failure
ml_projects_jobs_create(Tesla.Env.client, String.t, keyword) :: {:ok, GoogleApi.MachineLearning.V1.Model.GoogleCloudMlV1__Job.t} | {:error, Tesla.Env.t}
Creates a training or a batch prediction job.
Parameters
- connection (GoogleApi.MachineLearning.V1.Connection): Connection to server
- projects_id (String): Part of `parent`. Required. The project name.
opts (KeywordList): [optional] Optional parameters
- :pp (Boolean): Pretty-print response.
- :bearer_token (String): OAuth bearer token.
- :oauth_token (String): OAuth 2.0 token for the current user.
- :upload_protocol (String): Upload protocol for media (e.g. "raw", "multipart").
- :pretty_print (Boolean): Returns response with indentations and line breaks.
- :fields (String): Selector specifying which fields to include in a partial response.
- :upload_type (String): Legacy upload protocol for media (e.g. "media", "multipart").
- :__/xgafv (String): V1 error format.
- :callback (String): JSONP
- :alt (String): Data format for response.
- :key (String): API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
- :access_token (String): OAuth access token.
- :quota_user (String): Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
- :body (GoogleCloudMlV1__Job):
Returns
{:ok, %GoogleApi.MachineLearning.V1.Model.GoogleCloudMlV1__Job{}} on success {:error, info} on failure
ml_projects_jobs_get(Tesla.Env.client, String.t, String.t, keyword) :: {:ok, GoogleApi.MachineLearning.V1.Model.GoogleCloudMlV1__Job.t} | {:error, Tesla.Env.t}
Describes a job.
Parameters
- connection (GoogleApi.MachineLearning.V1.Connection): Connection to server
- projects_id (String): Part of `name`. Required. The name of the job to get the description of.
- jobs_id (String): Part of `name`. See documentation of `projectsId`.
opts (KeywordList): [optional] Optional parameters
- :pp (Boolean): Pretty-print response.
- :bearer_token (String): OAuth bearer token.
- :oauth_token (String): OAuth 2.0 token for the current user.
- :upload_protocol (String): Upload protocol for media (e.g. "raw", "multipart").
- :pretty_print (Boolean): Returns response with indentations and line breaks.
- :fields (String): Selector specifying which fields to include in a partial response.
- :upload_type (String): Legacy upload protocol for media (e.g. "media", "multipart").
- :__/xgafv (String): V1 error format.
- :callback (String): JSONP
- :alt (String): Data format for response.
- :key (String): API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
- :access_token (String): OAuth access token.
- :quota_user (String): Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
Returns
{:ok, %GoogleApi.MachineLearning.V1.Model.GoogleCloudMlV1__Job{}} on success {:error, info} on failure
ml_projects_jobs_get_iam_policy(Tesla.Env.client, String.t, String.t, keyword) :: {:ok, GoogleApi.MachineLearning.V1.Model.GoogleIamV1__Policy.t} | {:error, Tesla.Env.t}
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
Parameters
- connection (GoogleApi.MachineLearning.V1.Connection): Connection to server
- projects_id (String): Part of `resource`. REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.
- jobs_id (String): Part of `resource`. See documentation of `projectsId`.
opts (KeywordList): [optional] Optional parameters
- :pp (Boolean): Pretty-print response.
- :bearer_token (String): OAuth bearer token.
- :oauth_token (String): OAuth 2.0 token for the current user.
- :upload_protocol (String): Upload protocol for media (e.g. "raw", "multipart").
- :pretty_print (Boolean): Returns response with indentations and line breaks.
- :fields (String): Selector specifying which fields to include in a partial response.
- :upload_type (String): Legacy upload protocol for media (e.g. "media", "multipart").
- :__/xgafv (String): V1 error format.
- :callback (String): JSONP
- :alt (String): Data format for response.
- :key (String): API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
- :access_token (String): OAuth access token.
- :quota_user (String): Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
Returns
{:ok, %GoogleApi.MachineLearning.V1.Model.GoogleIamV1__Policy{}} on success {:error, info} on failure
ml_projects_jobs_list(Tesla.Env.client, String.t, keyword) :: {:ok, GoogleApi.MachineLearning.V1.Model.GoogleCloudMlV1__ListJobsResponse.t} | {:error, Tesla.Env.t}
Lists the jobs in the project.
Parameters
- connection (GoogleApi.MachineLearning.V1.Connection): Connection to server
- projects_id (String): Part of `parent`. Required. The name of the project for which to list jobs.
opts (KeywordList): [optional] Optional parameters
- :pp (Boolean): Pretty-print response.
- :bearer_token (String): OAuth bearer token.
- :oauth_token (String): OAuth 2.0 token for the current user.
- :upload_protocol (String): Upload protocol for media (e.g. "raw", "multipart").
- :pretty_print (Boolean): Returns response with indentations and line breaks.
- :fields (String): Selector specifying which fields to include in a partial response.
- :upload_type (String): Legacy upload protocol for media (e.g. "media", "multipart").
- :__/xgafv (String): V1 error format.
- :callback (String): JSONP
- :alt (String): Data format for response.
- :key (String): API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
- :access_token (String): OAuth access token.
- :quota_user (String): Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
- :page_size (Integer): Optional. The number of jobs to retrieve per "page" of results. If there are more remaining results than this number, the response message will contain a valid value in the `next_page_token` field. The default value is 20, and the maximum page size is 100.
- :filter (String): Optional. Specifies the subset of jobs to retrieve.
- :page_token (String): Optional. A page token to request the next page of results. You get the token from the `next_page_token` field of the response from the previous call.
Returns
{:ok, %GoogleApi.MachineLearning.V1.Model.GoogleCloudMlV1__ListJobsResponse{}} on success {:error, info} on failure
ml_projects_jobs_set_iam_policy(Tesla.Env.client, String.t, String.t, keyword) :: {:ok, GoogleApi.MachineLearning.V1.Model.GoogleIamV1__Policy.t} | {:error, Tesla.Env.t}
Sets the access control policy on the specified resource. Replaces any existing policy.
Parameters
- connection (GoogleApi.MachineLearning.V1.Connection): Connection to server
- projects_id (String): Part of `resource`. REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.
- jobs_id (String): Part of `resource`. See documentation of `projectsId`.
opts (KeywordList): [optional] Optional parameters
- :pp (Boolean): Pretty-print response.
- :bearer_token (String): OAuth bearer token.
- :oauth_token (String): OAuth 2.0 token for the current user.
- :upload_protocol (String): Upload protocol for media (e.g. "raw", "multipart").
- :pretty_print (Boolean): Returns response with indentations and line breaks.
- :fields (String): Selector specifying which fields to include in a partial response.
- :upload_type (String): Legacy upload protocol for media (e.g. "media", "multipart").
- :__/xgafv (String): V1 error format.
- :callback (String): JSONP
- :alt (String): Data format for response.
- :key (String): API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
- :access_token (String): OAuth access token.
- :quota_user (String): Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
- :body (GoogleIamV1__SetIamPolicyRequest):
Returns
{:ok, %GoogleApi.MachineLearning.V1.Model.GoogleIamV1__Policy{}} on success {:error, info} on failure
ml_projects_jobs_test_iam_permissions(Tesla.Env.client, String.t, String.t, keyword) :: {:ok, GoogleApi.MachineLearning.V1.Model.GoogleIamV1__TestIamPermissionsResponse.t} | {:error, Tesla.Env.t}
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.
Parameters
- connection (GoogleApi.MachineLearning.V1.Connection): Connection to server
- projects_id (String): Part of `resource`. REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.
- jobs_id (String): Part of `resource`. See documentation of `projectsId`.
opts (KeywordList): [optional] Optional parameters
- :pp (Boolean): Pretty-print response.
- :bearer_token (String): OAuth bearer token.
- :oauth_token (String): OAuth 2.0 token for the current user.
- :upload_protocol (String): Upload protocol for media (e.g. "raw", "multipart").
- :pretty_print (Boolean): Returns response with indentations and line breaks.
- :fields (String): Selector specifying which fields to include in a partial response.
- :upload_type (String): Legacy upload protocol for media (e.g. "media", "multipart").
- :__/xgafv (String): V1 error format.
- :callback (String): JSONP
- :alt (String): Data format for response.
- :key (String): API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
- :access_token (String): OAuth access token.
- :quota_user (String): Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
- :body (GoogleIamV1__TestIamPermissionsRequest):
Returns
{:ok, %GoogleApi.MachineLearning.V1.Model.GoogleIamV1__TestIamPermissionsResponse{}} on success {:error, info} on failure
ml_projects_models_create(Tesla.Env.client, String.t, keyword) :: {:ok, GoogleApi.MachineLearning.V1.Model.GoogleCloudMlV1__Model.t} | {:error, Tesla.Env.t}
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.
Parameters
- connection (GoogleApi.MachineLearning.V1.Connection): Connection to server
- projects_id (String): Part of `parent`. Required. The project name.
opts (KeywordList): [optional] Optional parameters
- :pp (Boolean): Pretty-print response.
- :bearer_token (String): OAuth bearer token.
- :oauth_token (String): OAuth 2.0 token for the current user.
- :upload_protocol (String): Upload protocol for media (e.g. "raw", "multipart").
- :pretty_print (Boolean): Returns response with indentations and line breaks.
- :fields (String): Selector specifying which fields to include in a partial response.
- :upload_type (String): Legacy upload protocol for media (e.g. "media", "multipart").
- :__/xgafv (String): V1 error format.
- :callback (String): JSONP
- :alt (String): Data format for response.
- :key (String): API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
- :access_token (String): OAuth access token.
- :quota_user (String): Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
- :body (GoogleCloudMlV1__Model):
Returns
{:ok, %GoogleApi.MachineLearning.V1.Model.GoogleCloudMlV1__Model{}} on success {:error, info} on failure
ml_projects_models_delete(Tesla.Env.client, String.t, String.t, keyword) :: {:ok, GoogleApi.MachineLearning.V1.Model.GoogleLongrunning__Operation.t} | {:error, Tesla.Env.t}
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.
Parameters
- connection (GoogleApi.MachineLearning.V1.Connection): Connection to server
- projects_id (String): Part of `name`. Required. The name of the model.
- models_id (String): Part of `name`. See documentation of `projectsId`.
opts (KeywordList): [optional] Optional parameters
- :pp (Boolean): Pretty-print response.
- :bearer_token (String): OAuth bearer token.
- :oauth_token (String): OAuth 2.0 token for the current user.
- :upload_protocol (String): Upload protocol for media (e.g. "raw", "multipart").
- :pretty_print (Boolean): Returns response with indentations and line breaks.
- :fields (String): Selector specifying which fields to include in a partial response.
- :upload_type (String): Legacy upload protocol for media (e.g. "media", "multipart").
- :__/xgafv (String): V1 error format.
- :callback (String): JSONP
- :alt (String): Data format for response.
- :key (String): API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
- :access_token (String): OAuth access token.
- :quota_user (String): Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
Returns
{:ok, %GoogleApi.MachineLearning.V1.Model.GoogleLongrunning__Operation{}} on success {:error, info} on failure
ml_projects_models_get(Tesla.Env.client, String.t, String.t, keyword) :: {:ok, GoogleApi.MachineLearning.V1.Model.GoogleCloudMlV1__Model.t} | {:error, Tesla.Env.t}
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).
Parameters
- connection (GoogleApi.MachineLearning.V1.Connection): Connection to server
- projects_id (String): Part of `name`. Required. The name of the model.
- models_id (String): Part of `name`. See documentation of `projectsId`.
opts (KeywordList): [optional] Optional parameters
- :pp (Boolean): Pretty-print response.
- :bearer_token (String): OAuth bearer token.
- :oauth_token (String): OAuth 2.0 token for the current user.
- :upload_protocol (String): Upload protocol for media (e.g. "raw", "multipart").
- :pretty_print (Boolean): Returns response with indentations and line breaks.
- :fields (String): Selector specifying which fields to include in a partial response.
- :upload_type (String): Legacy upload protocol for media (e.g. "media", "multipart").
- :__/xgafv (String): V1 error format.
- :callback (String): JSONP
- :alt (String): Data format for response.
- :key (String): API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
- :access_token (String): OAuth access token.
- :quota_user (String): Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
Returns
{:ok, %GoogleApi.MachineLearning.V1.Model.GoogleCloudMlV1__Model{}} on success {:error, info} on failure
ml_projects_models_get_iam_policy(Tesla.Env.client, String.t, String.t, keyword) :: {:ok, GoogleApi.MachineLearning.V1.Model.GoogleIamV1__Policy.t} | {:error, Tesla.Env.t}
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
Parameters
- connection (GoogleApi.MachineLearning.V1.Connection): Connection to server
- projects_id (String): Part of `resource`. REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.
- models_id (String): Part of `resource`. See documentation of `projectsId`.
opts (KeywordList): [optional] Optional parameters
- :pp (Boolean): Pretty-print response.
- :bearer_token (String): OAuth bearer token.
- :oauth_token (String): OAuth 2.0 token for the current user.
- :upload_protocol (String): Upload protocol for media (e.g. "raw", "multipart").
- :pretty_print (Boolean): Returns response with indentations and line breaks.
- :fields (String): Selector specifying which fields to include in a partial response.
- :upload_type (String): Legacy upload protocol for media (e.g. "media", "multipart").
- :__/xgafv (String): V1 error format.
- :callback (String): JSONP
- :alt (String): Data format for response.
- :key (String): API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
- :access_token (String): OAuth access token.
- :quota_user (String): Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
Returns
{:ok, %GoogleApi.MachineLearning.V1.Model.GoogleIamV1__Policy{}} on success {:error, info} on failure
ml_projects_models_list(Tesla.Env.client, String.t, keyword) :: {:ok, GoogleApi.MachineLearning.V1.Model.GoogleCloudMlV1__ListModelsResponse.t} | {:error, Tesla.Env.t}
Lists the models in a project. Each project can contain multiple models, and each model can have multiple versions.
Parameters
- connection (GoogleApi.MachineLearning.V1.Connection): Connection to server
- projects_id (String): Part of `parent`. Required. The name of the project whose models are to be listed.
opts (KeywordList): [optional] Optional parameters
- :pp (Boolean): Pretty-print response.
- :bearer_token (String): OAuth bearer token.
- :oauth_token (String): OAuth 2.0 token for the current user.
- :upload_protocol (String): Upload protocol for media (e.g. "raw", "multipart").
- :pretty_print (Boolean): Returns response with indentations and line breaks.
- :fields (String): Selector specifying which fields to include in a partial response.
- :upload_type (String): Legacy upload protocol for media (e.g. "media", "multipart").
- :__/xgafv (String): V1 error format.
- :callback (String): JSONP
- :alt (String): Data format for response.
- :key (String): API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
- :access_token (String): OAuth access token.
- :quota_user (String): Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
- :page_token (String): Optional. A page token to request the next page of results. You get the token from the `next_page_token` field of the response from the previous call.
- :page_size (Integer): Optional. The number of models to retrieve per "page" of results. If there are more remaining results than this number, the response message will contain a valid value in the `next_page_token` field. The default value is 20, and the maximum page size is 100.
Returns
{:ok, %GoogleApi.MachineLearning.V1.Model.GoogleCloudMlV1__ListModelsResponse{}} on success {:error, info} on failure
ml_projects_models_set_iam_policy(Tesla.Env.client, String.t, String.t, keyword) :: {:ok, GoogleApi.MachineLearning.V1.Model.GoogleIamV1__Policy.t} | {:error, Tesla.Env.t}
Sets the access control policy on the specified resource. Replaces any existing policy.
Parameters
- connection (GoogleApi.MachineLearning.V1.Connection): Connection to server
- projects_id (String): Part of `resource`. REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.
- models_id (String): Part of `resource`. See documentation of `projectsId`.
opts (KeywordList): [optional] Optional parameters
- :pp (Boolean): Pretty-print response.
- :bearer_token (String): OAuth bearer token.
- :oauth_token (String): OAuth 2.0 token for the current user.
- :upload_protocol (String): Upload protocol for media (e.g. "raw", "multipart").
- :pretty_print (Boolean): Returns response with indentations and line breaks.
- :fields (String): Selector specifying which fields to include in a partial response.
- :upload_type (String): Legacy upload protocol for media (e.g. "media", "multipart").
- :__/xgafv (String): V1 error format.
- :callback (String): JSONP
- :alt (String): Data format for response.
- :key (String): API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
- :access_token (String): OAuth access token.
- :quota_user (String): Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
- :body (GoogleIamV1__SetIamPolicyRequest):
Returns
{:ok, %GoogleApi.MachineLearning.V1.Model.GoogleIamV1__Policy{}} on success {:error, info} on failure
ml_projects_models_test_iam_permissions(Tesla.Env.client, String.t, String.t, keyword) :: {:ok, GoogleApi.MachineLearning.V1.Model.GoogleIamV1__TestIamPermissionsResponse.t} | {:error, Tesla.Env.t}
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.
Parameters
- connection (GoogleApi.MachineLearning.V1.Connection): Connection to server
- projects_id (String): Part of `resource`. REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.
- models_id (String): Part of `resource`. See documentation of `projectsId`.
opts (KeywordList): [optional] Optional parameters
- :pp (Boolean): Pretty-print response.
- :bearer_token (String): OAuth bearer token.
- :oauth_token (String): OAuth 2.0 token for the current user.
- :upload_protocol (String): Upload protocol for media (e.g. "raw", "multipart").
- :pretty_print (Boolean): Returns response with indentations and line breaks.
- :fields (String): Selector specifying which fields to include in a partial response.
- :upload_type (String): Legacy upload protocol for media (e.g. "media", "multipart").
- :__/xgafv (String): V1 error format.
- :callback (String): JSONP
- :alt (String): Data format for response.
- :key (String): API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
- :access_token (String): OAuth access token.
- :quota_user (String): Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
- :body (GoogleIamV1__TestIamPermissionsRequest):
Returns
{:ok, %GoogleApi.MachineLearning.V1.Model.GoogleIamV1__TestIamPermissionsResponse{}} on success {:error, info} on failure
ml_projects_models_versions_create(Tesla.Env.client, String.t, String.t, keyword) :: {:ok, GoogleApi.MachineLearning.V1.Model.GoogleLongrunning__Operation.t} | {:error, Tesla.Env.t}
Creates a new version of a model from a trained TensorFlow model. If the version created in the cloud by this call is the first deployed version of the specified model, it will be made the default version of the model. When you add a version to a model that already has one or more versions, the default version does not automatically change. If you want a new version to be the default, you must call projects.models.versions.setDefault.
Parameters
- connection (GoogleApi.MachineLearning.V1.Connection): Connection to server
- projects_id (String): Part of `parent`. Required. The name of the model.
- models_id (String): Part of `parent`. See documentation of `projectsId`.
opts (KeywordList): [optional] Optional parameters
- :pp (Boolean): Pretty-print response.
- :bearer_token (String): OAuth bearer token.
- :oauth_token (String): OAuth 2.0 token for the current user.
- :upload_protocol (String): Upload protocol for media (e.g. "raw", "multipart").
- :pretty_print (Boolean): Returns response with indentations and line breaks.
- :fields (String): Selector specifying which fields to include in a partial response.
- :upload_type (String): Legacy upload protocol for media (e.g. "media", "multipart").
- :__/xgafv (String): V1 error format.
- :callback (String): JSONP
- :alt (String): Data format for response.
- :key (String): API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
- :access_token (String): OAuth access token.
- :quota_user (String): Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
- :body (GoogleCloudMlV1__Version):
Returns
{:ok, %GoogleApi.MachineLearning.V1.Model.GoogleLongrunning__Operation{}} on success {:error, info} on failure
ml_projects_models_versions_delete(Tesla.Env.client, String.t, String.t, String.t, keyword) :: {:ok, GoogleApi.MachineLearning.V1.Model.GoogleLongrunning__Operation.t} | {:error, Tesla.Env.t}
Deletes a model version. Each model can have multiple versions deployed and in use at any given time. Use this method to remove a single version. Note: You cannot delete the version that is set as the default version of the model unless it is the only remaining version.
Parameters
- connection (GoogleApi.MachineLearning.V1.Connection): Connection to server
- projects_id (String): Part of `name`. Required. The name of the version. You can get the names of all the versions of a model by calling projects.models.versions.list.
- models_id (String): Part of `name`. See documentation of `projectsId`.
- versions_id (String): Part of `name`. See documentation of `projectsId`.
opts (KeywordList): [optional] Optional parameters
- :pp (Boolean): Pretty-print response.
- :bearer_token (String): OAuth bearer token.
- :oauth_token (String): OAuth 2.0 token for the current user.
- :upload_protocol (String): Upload protocol for media (e.g. "raw", "multipart").
- :pretty_print (Boolean): Returns response with indentations and line breaks.
- :fields (String): Selector specifying which fields to include in a partial response.
- :upload_type (String): Legacy upload protocol for media (e.g. "media", "multipart").
- :__/xgafv (String): V1 error format.
- :callback (String): JSONP
- :alt (String): Data format for response.
- :key (String): API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
- :access_token (String): OAuth access token.
- :quota_user (String): Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
Returns
{:ok, %GoogleApi.MachineLearning.V1.Model.GoogleLongrunning__Operation{}} on success {:error, info} on failure
ml_projects_models_versions_get(Tesla.Env.client, String.t, String.t, String.t, keyword) :: {:ok, GoogleApi.MachineLearning.V1.Model.GoogleCloudMlV1__Version.t} | {:error, Tesla.Env.t}
Gets information about a model version. Models can have multiple versions. You can call projects.models.versions.list to get the same information that this method returns for all of the versions of a model.
Parameters
- connection (GoogleApi.MachineLearning.V1.Connection): Connection to server
- projects_id (String): Part of `name`. Required. The name of the version.
- models_id (String): Part of `name`. See documentation of `projectsId`.
- versions_id (String): Part of `name`. See documentation of `projectsId`.
opts (KeywordList): [optional] Optional parameters
- :pp (Boolean): Pretty-print response.
- :bearer_token (String): OAuth bearer token.
- :oauth_token (String): OAuth 2.0 token for the current user.
- :upload_protocol (String): Upload protocol for media (e.g. "raw", "multipart").
- :pretty_print (Boolean): Returns response with indentations and line breaks.
- :fields (String): Selector specifying which fields to include in a partial response.
- :upload_type (String): Legacy upload protocol for media (e.g. "media", "multipart").
- :__/xgafv (String): V1 error format.
- :callback (String): JSONP
- :alt (String): Data format for response.
- :key (String): API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
- :access_token (String): OAuth access token.
- :quota_user (String): Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
Returns
{:ok, %GoogleApi.MachineLearning.V1.Model.GoogleCloudMlV1__Version{}} on success {:error, info} on failure
ml_projects_models_versions_list(Tesla.Env.client, String.t, String.t, keyword) :: {:ok, GoogleApi.MachineLearning.V1.Model.GoogleCloudMlV1__ListVersionsResponse.t} | {:error, Tesla.Env.t}
Gets basic information about all the versions of a model. If you expect that a model has a lot of versions, or if you need to handle only a limited number of results at a time, you can request that the list be retrieved in batches (called pages):
Parameters
- connection (GoogleApi.MachineLearning.V1.Connection): Connection to server
- projects_id (String): Part of `parent`. Required. The name of the model for which to list the version.
- models_id (String): Part of `parent`. See documentation of `projectsId`.
opts (KeywordList): [optional] Optional parameters
- :pp (Boolean): Pretty-print response.
- :bearer_token (String): OAuth bearer token.
- :oauth_token (String): OAuth 2.0 token for the current user.
- :upload_protocol (String): Upload protocol for media (e.g. "raw", "multipart").
- :pretty_print (Boolean): Returns response with indentations and line breaks.
- :fields (String): Selector specifying which fields to include in a partial response.
- :upload_type (String): Legacy upload protocol for media (e.g. "media", "multipart").
- :__/xgafv (String): V1 error format.
- :callback (String): JSONP
- :alt (String): Data format for response.
- :key (String): API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
- :access_token (String): OAuth access token.
- :quota_user (String): Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
- :page_token (String): Optional. A page token to request the next page of results. You get the token from the `next_page_token` field of the response from the previous call.
- :page_size (Integer): Optional. The number of versions to retrieve per "page" of results. If there are more remaining results than this number, the response message will contain a valid value in the `next_page_token` field. The default value is 20, and the maximum page size is 100.
Returns
{:ok, %GoogleApi.MachineLearning.V1.Model.GoogleCloudMlV1__ListVersionsResponse{}} on success {:error, info} on failure
ml_projects_models_versions_set_default(Tesla.Env.client, String.t, String.t, String.t, keyword) :: {:ok, GoogleApi.MachineLearning.V1.Model.GoogleCloudMlV1__Version.t} | {:error, Tesla.Env.t}
Designates a version to be the default for the model. The default version is used for prediction requests made against the model that don't specify a version. The first version to be created for a model is automatically set as the default. You must make any subsequent changes to the default version setting manually using this method.
Parameters
- connection (GoogleApi.MachineLearning.V1.Connection): Connection to server
- projects_id (String): Part of `name`. Required. The name of the version to make the default for the model. You can get the names of all the versions of a model by calling projects.models.versions.list.
- models_id (String): Part of `name`. See documentation of `projectsId`.
- versions_id (String): Part of `name`. See documentation of `projectsId`.
opts (KeywordList): [optional] Optional parameters
- :pp (Boolean): Pretty-print response.
- :bearer_token (String): OAuth bearer token.
- :oauth_token (String): OAuth 2.0 token for the current user.
- :upload_protocol (String): Upload protocol for media (e.g. "raw", "multipart").
- :pretty_print (Boolean): Returns response with indentations and line breaks.
- :fields (String): Selector specifying which fields to include in a partial response.
- :upload_type (String): Legacy upload protocol for media (e.g. "media", "multipart").
- :__/xgafv (String): V1 error format.
- :callback (String): JSONP
- :alt (String): Data format for response.
- :key (String): API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
- :access_token (String): OAuth access token.
- :quota_user (String): Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
- :body (GoogleCloudMlV1__SetDefaultVersionRequest):
Returns
{:ok, %GoogleApi.MachineLearning.V1.Model.GoogleCloudMlV1__Version{}} on success {:error, info} on failure
ml_projects_operations_cancel(Tesla.Env.client, String.t, String.t, keyword) :: {:ok, GoogleApi.MachineLearning.V1.Model.GoogleProtobuf__Empty.t} | {:error, Tesla.Env.t}
Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.
Parameters
- connection (GoogleApi.MachineLearning.V1.Connection): Connection to server
- projects_id (String): Part of `name`. The name of the operation resource to be cancelled.
- operations_id (String): Part of `name`. See documentation of `projectsId`.
opts (KeywordList): [optional] Optional parameters
- :pp (Boolean): Pretty-print response.
- :bearer_token (String): OAuth bearer token.
- :oauth_token (String): OAuth 2.0 token for the current user.
- :upload_protocol (String): Upload protocol for media (e.g. "raw", "multipart").
- :pretty_print (Boolean): Returns response with indentations and line breaks.
- :fields (String): Selector specifying which fields to include in a partial response.
- :upload_type (String): Legacy upload protocol for media (e.g. "media", "multipart").
- :__/xgafv (String): V1 error format.
- :callback (String): JSONP
- :alt (String): Data format for response.
- :key (String): API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
- :access_token (String): OAuth access token.
- :quota_user (String): Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
Returns
{:ok, %GoogleApi.MachineLearning.V1.Model.GoogleProtobuf__Empty{}} on success {:error, info} on failure
ml_projects_operations_delete(Tesla.Env.client, String.t, String.t, keyword) :: {:ok, GoogleApi.MachineLearning.V1.Model.GoogleProtobuf__Empty.t} | {:error, Tesla.Env.t}
Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
Parameters
- connection (GoogleApi.MachineLearning.V1.Connection): Connection to server
- projects_id (String): Part of `name`. The name of the operation resource to be deleted.
- operations_id (String): Part of `name`. See documentation of `projectsId`.
opts (KeywordList): [optional] Optional parameters
- :pp (Boolean): Pretty-print response.
- :bearer_token (String): OAuth bearer token.
- :oauth_token (String): OAuth 2.0 token for the current user.
- :upload_protocol (String): Upload protocol for media (e.g. "raw", "multipart").
- :pretty_print (Boolean): Returns response with indentations and line breaks.
- :fields (String): Selector specifying which fields to include in a partial response.
- :upload_type (String): Legacy upload protocol for media (e.g. "media", "multipart").
- :__/xgafv (String): V1 error format.
- :callback (String): JSONP
- :alt (String): Data format for response.
- :key (String): API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
- :access_token (String): OAuth access token.
- :quota_user (String): Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
Returns
{:ok, %GoogleApi.MachineLearning.V1.Model.GoogleProtobuf__Empty{}} on success {:error, info} on failure
ml_projects_operations_get(Tesla.Env.client, String.t, String.t, keyword) :: {:ok, GoogleApi.MachineLearning.V1.Model.GoogleLongrunning__Operation.t} | {:error, Tesla.Env.t}
Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
Parameters
- connection (GoogleApi.MachineLearning.V1.Connection): Connection to server
- projects_id (String): Part of `name`. The name of the operation resource.
- operations_id (String): Part of `name`. See documentation of `projectsId`.
opts (KeywordList): [optional] Optional parameters
- :pp (Boolean): Pretty-print response.
- :bearer_token (String): OAuth bearer token.
- :oauth_token (String): OAuth 2.0 token for the current user.
- :upload_protocol (String): Upload protocol for media (e.g. "raw", "multipart").
- :pretty_print (Boolean): Returns response with indentations and line breaks.
- :fields (String): Selector specifying which fields to include in a partial response.
- :upload_type (String): Legacy upload protocol for media (e.g. "media", "multipart").
- :__/xgafv (String): V1 error format.
- :callback (String): JSONP
- :alt (String): Data format for response.
- :key (String): API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
- :access_token (String): OAuth access token.
- :quota_user (String): Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
Returns
{:ok, %GoogleApi.MachineLearning.V1.Model.GoogleLongrunning__Operation{}} on success {:error, info} on failure
ml_projects_operations_list(Tesla.Env.client, String.t, keyword) :: {:ok, GoogleApi.MachineLearning.V1.Model.GoogleLongrunning__ListOperationsResponse.t} | {:error, Tesla.Env.t}
Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users//operations`. To override the binding, API services can add a binding such as `"/v1/{name=users/}/operations"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.
Parameters
- connection (GoogleApi.MachineLearning.V1.Connection): Connection to server
- projects_id (String): Part of `name`. The name of the operation's parent resource.
opts (KeywordList): [optional] Optional parameters
- :pp (Boolean): Pretty-print response.
- :bearer_token (String): OAuth bearer token.
- :oauth_token (String): OAuth 2.0 token for the current user.
- :upload_protocol (String): Upload protocol for media (e.g. "raw", "multipart").
- :pretty_print (Boolean): Returns response with indentations and line breaks.
- :fields (String): Selector specifying which fields to include in a partial response.
- :upload_type (String): Legacy upload protocol for media (e.g. "media", "multipart").
- :__/xgafv (String): V1 error format.
- :callback (String): JSONP
- :alt (String): Data format for response.
- :key (String): API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
- :access_token (String): OAuth access token.
- :quota_user (String): Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
- :page_token (String): The standard list page token.
- :page_size (Integer): The standard list page size.
- :filter (String): The standard list filter.
Returns
{:ok, %GoogleApi.MachineLearning.V1.Model.GoogleLongrunning__ListOperationsResponse{}} on success {:error, info} on failure
ml_projects_predict(Tesla.Env.client, String.t, keyword) :: {:ok, GoogleApi.MachineLearning.V1.Model.GoogleApi__HttpBody.t} | {:error, Tesla.Env.t}
Performs prediction on the data in the request. ** REMOVE FROM GENERATED DOCUMENTATION
Parameters
- connection (GoogleApi.MachineLearning.V1.Connection): Connection to server
- projects_id (String): Part of `name`. Required. The resource name of a model or a version. Authorization: requires the `predict` permission on the specified resource.
opts (KeywordList): [optional] Optional parameters
- :pp (Boolean): Pretty-print response.
- :bearer_token (String): OAuth bearer token.
- :oauth_token (String): OAuth 2.0 token for the current user.
- :upload_protocol (String): Upload protocol for media (e.g. "raw", "multipart").
- :pretty_print (Boolean): Returns response with indentations and line breaks.
- :fields (String): Selector specifying which fields to include in a partial response.
- :upload_type (String): Legacy upload protocol for media (e.g. "media", "multipart").
- :__/xgafv (String): V1 error format.
- :callback (String): JSONP
- :alt (String): Data format for response.
- :key (String): API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
- :access_token (String): OAuth access token.
- :quota_user (String): Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
- :body (GoogleCloudMlV1__PredictRequest):
Returns
{:ok, %GoogleApi.MachineLearning.V1.Model.GoogleApi__HttpBody{}} on success {:error, info} on failure