Show / Hide Table of Contents

Class ProjectsResource.ModelsResource

The "models" collection of methods.

Inheritance
object
ProjectsResource.ModelsResource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.CloudMachineLearningEngine.v1
Assembly: Google.Apis.CloudMachineLearningEngine.v1.dll
Syntax
public class ProjectsResource.ModelsResource

Constructors

ModelsResource(IClientService)

Constructs a new resource.

Declaration
public ModelsResource(IClientService service)
Parameters
Type Name Description
IClientService service

Properties

Versions

Gets the Versions resource.

Declaration
public virtual ProjectsResource.ModelsResource.VersionsResource Versions { get; }
Property Value
Type Description
ProjectsResource.ModelsResource.VersionsResource

Methods

Create(GoogleCloudMlV1Model, string)

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.

Declaration
public virtual ProjectsResource.ModelsResource.CreateRequest Create(GoogleCloudMlV1Model body, string parent)
Parameters
Type Name Description
GoogleCloudMlV1Model body

The body of the request.

string parent

Required. The project name.

Returns
Type Description
ProjectsResource.ModelsResource.CreateRequest

Delete(string)

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.

Declaration
public virtual ProjectsResource.ModelsResource.DeleteRequest Delete(string name)
Parameters
Type Name Description
string name

Required. The name of the model.

Returns
Type Description
ProjectsResource.ModelsResource.DeleteRequest

Get(string)

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).

Declaration
public virtual ProjectsResource.ModelsResource.GetRequest Get(string name)
Parameters
Type Name Description
string name

Required. The name of the model.

Returns
Type Description
ProjectsResource.ModelsResource.GetRequest

GetIamPolicy(string)

Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.

Declaration
public virtual ProjectsResource.ModelsResource.GetIamPolicyRequest GetIamPolicy(string resource)
Parameters
Type Name Description
string resource

REQUIRED: The resource for which the policy is being requested. See Resource names for the appropriate value for this field.

Returns
Type Description
ProjectsResource.ModelsResource.GetIamPolicyRequest

List(string)

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: {}.

Declaration
public virtual ProjectsResource.ModelsResource.ListRequest List(string parent)
Parameters
Type Name Description
string parent

Required. The name of the project whose models are to be listed.

Returns
Type Description
ProjectsResource.ModelsResource.ListRequest

Patch(GoogleCloudMlV1Model, string)

Updates a specific model resource. Currently the only supported fields to update are description and default_version.name.

Declaration
public virtual ProjectsResource.ModelsResource.PatchRequest Patch(GoogleCloudMlV1Model body, string name)
Parameters
Type Name Description
GoogleCloudMlV1Model body

The body of the request.

string name

Required. The project name.

Returns
Type Description
ProjectsResource.ModelsResource.PatchRequest

SetIamPolicy(GoogleIamV1SetIamPolicyRequest, string)

Sets the access control policy on the specified resource. Replaces any existing policy. Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.

Declaration
public virtual ProjectsResource.ModelsResource.SetIamPolicyRequest SetIamPolicy(GoogleIamV1SetIamPolicyRequest body, string resource)
Parameters
Type Name Description
GoogleIamV1SetIamPolicyRequest body

The body of the request.

string resource

REQUIRED: The resource for which the policy is being specified. See Resource names for the appropriate value for this field.

Returns
Type Description
ProjectsResource.ModelsResource.SetIamPolicyRequest

TestIamPermissions(GoogleIamV1TestIamPermissionsRequest, string)

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.

Declaration
public virtual ProjectsResource.ModelsResource.TestIamPermissionsRequest TestIamPermissions(GoogleIamV1TestIamPermissionsRequest body, string resource)
Parameters
Type Name Description
GoogleIamV1TestIamPermissionsRequest body

The body of the request.

string resource

REQUIRED: The resource for which the policy detail is being requested. See Resource names for the appropriate value for this field.

Returns
Type Description
ProjectsResource.ModelsResource.TestIamPermissionsRequest
In This Article
Back to top Generated by DocFX