Show / Hide Table of Contents

Class ProjectsResource.LocationsResource.AttributesResource

The "attributes" collection of methods.

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

Constructors

AttributesResource(IClientService)

Constructs a new resource.

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

Methods

Create(GoogleCloudApihubV1Attribute, string)

Create a user defined attribute. Certain pre defined attributes are already created by the API hub. These attributes will have type as SYSTEM_DEFINED and can be listed via ListAttributes method. Allowed values for the same can be updated via UpdateAttribute method.

Declaration
public virtual ProjectsResource.LocationsResource.AttributesResource.CreateRequest Create(GoogleCloudApihubV1Attribute body, string parent)
Parameters
Type Name Description
GoogleCloudApihubV1Attribute body

The body of the request.

string parent

Required. The parent resource for Attribute. Format: projects/{project}/locations/{location}

Returns
Type Description
ProjectsResource.LocationsResource.AttributesResource.CreateRequest

Delete(string)

Delete an attribute. Note: System defined attributes cannot be deleted. All associations of the attribute being deleted with any API hub resource will also get deleted.

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

Required. The name of the attribute to delete. Format: projects/{project}/locations/{location}/attributes/{attribute}

Returns
Type Description
ProjectsResource.LocationsResource.AttributesResource.DeleteRequest

Get(string)

Get details about the attribute.

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

Required. The name of the attribute to retrieve. Format: projects/{project}/locations/{location}/attributes/{attribute}

Returns
Type Description
ProjectsResource.LocationsResource.AttributesResource.GetRequest

List(string)

List all attributes.

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

Required. The parent resource for Attribute. Format: projects/{project}/locations/{location}

Returns
Type Description
ProjectsResource.LocationsResource.AttributesResource.ListRequest

Patch(GoogleCloudApihubV1Attribute, string)

Update the attribute. The following fields in the Attribute resource can be updated: * display_name The display name can be updated for user defined attributes only. * description The description can be updated for user defined attributes only. * allowed_values To update the list of allowed values, clients need to use the fetched list of allowed values and add or remove values to or from the same list. The mutable allowed values can be updated for both user defined and System defined attributes. The immutable allowed values cannot be updated or deleted. The updated list of allowed values cannot be empty. If an allowed value that is already used by some resource's attribute is deleted, then the association between the resource and the attribute value will also be deleted. * cardinality The cardinality can be updated for user defined attributes only. Cardinality can only be increased during an update. The update_mask should be used to specify the fields being updated.

Declaration
public virtual ProjectsResource.LocationsResource.AttributesResource.PatchRequest Patch(GoogleCloudApihubV1Attribute body, string name)
Parameters
Type Name Description
GoogleCloudApihubV1Attribute body

The body of the request.

string name

Identifier. The name of the attribute in the API Hub. Format: projects/{project}/locations/{location}/attributes/{attribute}

Returns
Type Description
ProjectsResource.LocationsResource.AttributesResource.PatchRequest
In this article
Back to top Generated by DocFX