Show / Hide Table of Contents

Class ProjectsResource.LocationsResource.AttributesResource.PatchRequest

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.

Inheritance
object
ClientServiceRequest
ClientServiceRequest<GoogleCloudApihubV1Attribute>
APIhubBaseServiceRequest<GoogleCloudApihubV1Attribute>
ProjectsResource.LocationsResource.AttributesResource.PatchRequest
Implements
IClientServiceRequest<GoogleCloudApihubV1Attribute>
IClientServiceRequest
Inherited Members
APIhubBaseServiceRequest<GoogleCloudApihubV1Attribute>.Xgafv
APIhubBaseServiceRequest<GoogleCloudApihubV1Attribute>.AccessToken
APIhubBaseServiceRequest<GoogleCloudApihubV1Attribute>.Alt
APIhubBaseServiceRequest<GoogleCloudApihubV1Attribute>.Callback
APIhubBaseServiceRequest<GoogleCloudApihubV1Attribute>.Fields
APIhubBaseServiceRequest<GoogleCloudApihubV1Attribute>.Key
APIhubBaseServiceRequest<GoogleCloudApihubV1Attribute>.OauthToken
APIhubBaseServiceRequest<GoogleCloudApihubV1Attribute>.PrettyPrint
APIhubBaseServiceRequest<GoogleCloudApihubV1Attribute>.QuotaUser
APIhubBaseServiceRequest<GoogleCloudApihubV1Attribute>.UploadType
APIhubBaseServiceRequest<GoogleCloudApihubV1Attribute>.UploadProtocol
ClientServiceRequest<GoogleCloudApihubV1Attribute>.Execute()
ClientServiceRequest<GoogleCloudApihubV1Attribute>.ExecuteAsStream()
ClientServiceRequest<GoogleCloudApihubV1Attribute>.ExecuteAsync()
ClientServiceRequest<GoogleCloudApihubV1Attribute>.ExecuteAsync(CancellationToken)
ClientServiceRequest<GoogleCloudApihubV1Attribute>.ExecuteAsStreamAsync()
ClientServiceRequest<GoogleCloudApihubV1Attribute>.ExecuteAsStreamAsync(CancellationToken)
ClientServiceRequest<GoogleCloudApihubV1Attribute>.CreateRequest(bool?)
ClientServiceRequest<GoogleCloudApihubV1Attribute>.GenerateRequestUri()
ClientServiceRequest<GoogleCloudApihubV1Attribute>.GetDefaultETagAction(string)
ClientServiceRequest<GoogleCloudApihubV1Attribute>.ETagAction
ClientServiceRequest<GoogleCloudApihubV1Attribute>.ModifyRequest
ClientServiceRequest<GoogleCloudApihubV1Attribute>.ValidateParameters
ClientServiceRequest<GoogleCloudApihubV1Attribute>.ApiVersion
ClientServiceRequest<GoogleCloudApihubV1Attribute>.RequestParameters
ClientServiceRequest<GoogleCloudApihubV1Attribute>.Service
ClientServiceRequest._unsuccessfulResponseHandlers
ClientServiceRequest._exceptionHandlers
ClientServiceRequest._executeInterceptors
ClientServiceRequest.AddUnsuccessfulResponseHandler(IHttpUnsuccessfulResponseHandler)
ClientServiceRequest.AddExceptionHandler(IHttpExceptionHandler)
ClientServiceRequest.AddExecuteInterceptor(IHttpExecuteInterceptor)
ClientServiceRequest.Credential
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.PatchRequest : APIhubBaseServiceRequest<GoogleCloudApihubV1Attribute>, IClientServiceRequest<GoogleCloudApihubV1Attribute>, IClientServiceRequest

Constructors

PatchRequest(IClientService, GoogleCloudApihubV1Attribute, string)

Constructs a new Patch request.

Declaration
public PatchRequest(IClientService service, GoogleCloudApihubV1Attribute body, string name)
Parameters
Type Name Description
IClientService service
GoogleCloudApihubV1Attribute body
string name

Properties

HttpMethod

Gets the HTTP method.

Declaration
public override string HttpMethod { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<GoogleCloudApihubV1Attribute>.HttpMethod

MethodName

Gets the method name.

Declaration
public override string MethodName { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<GoogleCloudApihubV1Attribute>.MethodName

Name

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

Declaration
[RequestParameter("name", RequestParameterType.Path)]
public virtual string Name { get; }
Property Value
Type Description
string

RestPath

Gets the REST path.

Declaration
public override string RestPath { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<GoogleCloudApihubV1Attribute>.RestPath

UpdateMask

Required. The list of fields to update.

Declaration
[RequestParameter("updateMask", RequestParameterType.Query)]
public virtual object UpdateMask { get; set; }
Property Value
Type Description
object

Methods

GetBody()

Returns the body of the request.

Declaration
protected override object GetBody()
Returns
Type Description
object
Overrides
ClientServiceRequest<GoogleCloudApihubV1Attribute>.GetBody()

InitParameters()

Initializes Patch parameter list.

Declaration
protected override void InitParameters()
Overrides
APIhubBaseServiceRequest<GoogleCloudApihubV1Attribute>.InitParameters()

Implements

IClientServiceRequest<TResponse>
IClientServiceRequest
In this article
Back to top Generated by DocFX