Class SettingsResource.DatasourcesResource.PatchRequest
Updates a datasource. Note: This API requires an admin account to execute.
Inheritance
Inherited Members
Namespace: Google.Apis.CloudSearch.v1
Assembly: Google.Apis.CloudSearch.v1.dll
Syntax
public class SettingsResource.DatasourcesResource.PatchRequest : CloudSearchBaseServiceRequest<Operation>, IClientServiceRequest<Operation>, 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
DebugOptionsEnableDebugging
If you are asked by Google to help with debugging, set this field. Otherwise, ignore this field.
Declaration
[RequestParameter("debugOptions.enableDebugging", RequestParameterType.Query)]
public virtual bool? DebugOptionsEnableDebugging { get; set; }
Property Value
Type | Description |
---|---|
bool? |
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
The name of the datasource resource. Format: datasources/{source_id}. The name is ignored when creating a 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
Only applies to
settings.datasources.patch
.
Update mask to control which fields to update. Example field paths: name
, displayName
. * If
update_mask
is non-empty, then only the fields specified in the update_mask
are updated. * If
you specify a field in the update_mask
, but don't specify its value in the source, that field is
cleared. * If the update_mask
is not present or empty or has the value *
, then all fields are
updated.
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()