Show / Hide Table of Contents

Class ProjectsResource.LocationsResource.ProductSetsResource.PatchRequest

Makes changes to a ProductSet resource. Only display_name can be updated currently. Possible errors:

  • Returns NOT_FOUND if the ProductSet does not exist. * Returns INVALID_ARGUMENT if display_name is present in update_mask but missing from the request or longer than 4096 characters.
Inheritance
System.Object
ClientServiceRequest
ClientServiceRequest<ProductSet>
VisionBaseServiceRequest<ProductSet>
ProjectsResource.LocationsResource.ProductSetsResource.PatchRequest
Implements
IClientServiceRequest<ProductSet>
IClientServiceRequest
Inherited Members
VisionBaseServiceRequest<ProductSet>.Xgafv
VisionBaseServiceRequest<ProductSet>.AccessToken
VisionBaseServiceRequest<ProductSet>.Alt
VisionBaseServiceRequest<ProductSet>.Callback
VisionBaseServiceRequest<ProductSet>.Fields
VisionBaseServiceRequest<ProductSet>.Key
VisionBaseServiceRequest<ProductSet>.OauthToken
VisionBaseServiceRequest<ProductSet>.PrettyPrint
VisionBaseServiceRequest<ProductSet>.QuotaUser
VisionBaseServiceRequest<ProductSet>.UploadType
VisionBaseServiceRequest<ProductSet>.UploadProtocol
ClientServiceRequest<ProductSet>.Execute()
ClientServiceRequest<ProductSet>.ExecuteAsStream()
ClientServiceRequest<ProductSet>.ExecuteAsync()
ClientServiceRequest<ProductSet>.ExecuteAsync(CancellationToken)
ClientServiceRequest<ProductSet>.ExecuteAsStreamAsync()
ClientServiceRequest<ProductSet>.ExecuteAsStreamAsync(CancellationToken)
ClientServiceRequest<ProductSet>.CreateRequest(Nullable<Boolean>)
ClientServiceRequest<ProductSet>.GenerateRequestUri()
ClientServiceRequest<ProductSet>.GetDefaultETagAction(String)
ClientServiceRequest<ProductSet>.ETagAction
ClientServiceRequest<ProductSet>.ModifyRequest
ClientServiceRequest<ProductSet>.ValidateParameters
ClientServiceRequest<ProductSet>.RequestParameters
ClientServiceRequest<ProductSet>.Service
ClientServiceRequest._unsuccessfulResponseHandlers
ClientServiceRequest._exceptionHandlers
ClientServiceRequest._executeInterceptors
ClientServiceRequest.AddUnsuccessfulResponseHandler(IHttpUnsuccessfulResponseHandler)
ClientServiceRequest.AddExceptionHandler(IHttpExceptionHandler)
ClientServiceRequest.AddExecuteInterceptor(IHttpExecuteInterceptor)
ClientServiceRequest.Credential
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Google.Apis.Vision.v1
Assembly: Google.Apis.Vision.v1.dll
Syntax
public class PatchRequest : VisionBaseServiceRequest<ProductSet>, IClientServiceRequest<ProductSet>, IClientServiceRequest

Constructors

PatchRequest(IClientService, ProductSet, String)

Constructs a new Patch request.

Declaration
public PatchRequest(IClientService service, ProductSet body, string name)
Parameters
Type Name Description
IClientService service
ProductSet body
System.String name

Properties

HttpMethod

Gets the HTTP method.

Declaration
public override string HttpMethod { get; }
Property Value
Type Description
System.String
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Vision.v1.Data.ProductSet>.HttpMethod

MethodName

Gets the method name.

Declaration
public override string MethodName { get; }
Property Value
Type Description
System.String
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Vision.v1.Data.ProductSet>.MethodName

Name

The resource name of the ProductSet. Format is: projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID. This field is ignored when creating a ProductSet.

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

RestPath

Gets the REST path.

Declaration
public override string RestPath { get; }
Property Value
Type Description
System.String
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Vision.v1.Data.ProductSet>.RestPath

UpdateMask

The FieldMask that specifies which fields to update. If update_mask isn't specified, all mutable fields are to be updated. Valid mask path is display_name.

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

Methods

GetBody()

Returns the body of the request.

Declaration
protected override object GetBody()
Returns
Type Description
System.Object
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Vision.v1.Data.ProductSet>.GetBody()

InitParameters()

Initializes Patch parameter list.

Declaration
protected override void InitParameters()
Overrides
Google.Apis.Vision.v1.VisionBaseServiceRequest<Google.Apis.Vision.v1.Data.ProductSet>.InitParameters()

Implements

IClientServiceRequest<TResponse>
IClientServiceRequest
In This Article
Back to top