Class LocationsResource.AdminsResource.PatchRequest
Updates the Admin for the specified location. Only the AdminRole of the Admin can be updated.
Inheritance
LocationsResource.AdminsResource.PatchRequest
Inherited Members
Namespace: Google.Apis.MyBusinessAccountManagement.v1
Assembly: Google.Apis.MyBusinessAccountManagement.v1.dll
Syntax
public class LocationsResource.AdminsResource.PatchRequest : MyBusinessAccountManagementBaseServiceRequest<Admin>, IClientServiceRequest<Admin>, IClientServiceRequest
Constructors
PatchRequest(IClientService, Admin, string)
Constructs a new Patch request.
Declaration
public PatchRequest(IClientService service, Admin body, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service | |
| Admin | 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
Immutable. The resource name. For account admins, this is in the form:
accounts/{account_id}/admins/{admin_id} For location admins, this is in the form:
locations/{location_id}/admins/{admin_id} This field will be ignored if set during admin creation.
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 specific fields that should be updated. The only editable field is role.
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()