Class AccountsResource.DataSourcesResource.PatchRequest
Updates the existing data source configuration. The fields that are set in the update mask but not provided in the resource will be deleted.
Inheritance
Inherited Members
Namespace: Google.Apis.Merchant.datasources_v1
Assembly: Google.Apis.Merchant.datasources_v1.dll
Syntax
public class AccountsResource.DataSourcesResource.PatchRequest : MerchantBaseServiceRequest<DataSource>, IClientServiceRequest<DataSource>, IClientServiceRequest
Constructors
PatchRequest(IClientService, DataSource, string)
Constructs a new Patch request.
Declaration
public PatchRequest(IClientService service, DataSource body, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service | |
| DataSource | body | |
| string | name |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
Name
Required. Identifier. The name of the data source. Format:
accounts/{account}/dataSources/{datasource}
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
UpdateMask
Required. The list of data source fields to be updated. Fields specified in the update mask without
a value specified in the body will be deleted from the data source. Providing special "*" value for
full data source replacement is not supported. For example, If you insert updateMask=displayName
in the request, it will only update the displayName leaving all other fields untouched.
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
InitParameters()
Initializes Patch parameter list.
Declaration
protected override void InitParameters()