Class LocationsResource.AdminsResource.PatchRequest
Updates the Admin for the specified location. Only the AdminRole of the Admin can be updated.
Inheritance
System.Object
LocationsResource.AdminsResource.PatchRequest
Inherited Members
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.MyBusinessAccountManagement.v1
Assembly: Google.Apis.MyBusinessAccountManagement.v1.dll
Syntax
public class 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 | |
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.MyBusinessAccountManagement.v1.Data.Admin>.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.MyBusinessAccountManagement.v1.Data.Admin>.MethodName
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 |
---|---|
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.MyBusinessAccountManagement.v1.Data.Admin>.RestPath
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 |
---|---|
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.MyBusinessAccountManagement.v1.Data.Admin>.GetBody()
InitParameters()
Initializes Patch parameter list.
Declaration
protected override void InitParameters()
Overrides
Google.Apis.MyBusinessAccountManagement.v1.MyBusinessAccountManagementBaseServiceRequest<Google.Apis.MyBusinessAccountManagement.v1.Data.Admin>.InitParameters()