Close httplib2 connections.
create(parent, body=None, x__xgafv=None)
Invites the specified user to become an administrator for the specified account. The invitee must accept the invitation in order to be granted access to the account. See AcceptInvitation to programmatically accept an invitation.
Removes the specified admin from the specified account.
Lists the admins for the specified account.
patch(name, body=None, updateMask=None, x__xgafv=None)
Updates the Admin for the specified Account Admin.
close()
Close httplib2 connections.
create(parent, body=None, x__xgafv=None)
Invites the specified user to become an administrator for the specified account. The invitee must accept the invitation in order to be granted access to the account. See AcceptInvitation to programmatically accept an invitation. Args: parent: string, Required. The resource name of the account this admin is created for. `accounts/{account_id}`. (required) body: object, The request body. The object takes the form of: { # An administrator of an Account or a location. "admin": "A String", # Optional. The name of the admin. When making the initial invitation, this is the invitee's email address. On `GET` calls, the user's email address is returned if the invitation is still pending. Otherwise, it contains the user's first and last names. This field is only needed to be set during admin creation. "name": "A String", # 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. "pendingInvitation": True or False, # Output only. Indicates whether this admin has a pending invitation for the specified resource. "role": "A String", # Required. Specifies the role that this admin uses with the specified Account or Location. } x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # An administrator of an Account or a location. "admin": "A String", # Optional. The name of the admin. When making the initial invitation, this is the invitee's email address. On `GET` calls, the user's email address is returned if the invitation is still pending. Otherwise, it contains the user's first and last names. This field is only needed to be set during admin creation. "name": "A String", # 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. "pendingInvitation": True or False, # Output only. Indicates whether this admin has a pending invitation for the specified resource. "role": "A String", # Required. Specifies the role that this admin uses with the specified Account or Location. }
delete(name, x__xgafv=None)
Removes the specified admin from the specified account. Args: name: string, Required. The resource name of the admin to remove from the account. `accounts/{account_id}/admins/{admin_id}`. (required) x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`. }
list(parent, x__xgafv=None)
Lists the admins for the specified account. Args: parent: string, Required. The name of the account from which to retrieve a list of admins. `accounts/{account_id}/admins`. (required) x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # Response message for AccessControl.ListAccountAdmins. "accountAdmins": [ # A collection of Admin instances. { # An administrator of an Account or a location. "admin": "A String", # Optional. The name of the admin. When making the initial invitation, this is the invitee's email address. On `GET` calls, the user's email address is returned if the invitation is still pending. Otherwise, it contains the user's first and last names. This field is only needed to be set during admin creation. "name": "A String", # 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. "pendingInvitation": True or False, # Output only. Indicates whether this admin has a pending invitation for the specified resource. "role": "A String", # Required. Specifies the role that this admin uses with the specified Account or Location. }, ], }
patch(name, body=None, updateMask=None, x__xgafv=None)
Updates the Admin for the specified Account Admin. Args: name: string, 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. (required) body: object, The request body. The object takes the form of: { # An administrator of an Account or a location. "admin": "A String", # Optional. The name of the admin. When making the initial invitation, this is the invitee's email address. On `GET` calls, the user's email address is returned if the invitation is still pending. Otherwise, it contains the user's first and last names. This field is only needed to be set during admin creation. "name": "A String", # 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. "pendingInvitation": True or False, # Output only. Indicates whether this admin has a pending invitation for the specified resource. "role": "A String", # Required. Specifies the role that this admin uses with the specified Account or Location. } updateMask: string, Required. The specific fields that should be updated. The only editable field is role. x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # An administrator of an Account or a location. "admin": "A String", # Optional. The name of the admin. When making the initial invitation, this is the invitee's email address. On `GET` calls, the user's email address is returned if the invitation is still pending. Otherwise, it contains the user's first and last names. This field is only needed to be set during admin creation. "name": "A String", # 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. "pendingInvitation": True or False, # Output only. Indicates whether this admin has a pending invitation for the specified resource. "role": "A String", # Required. Specifies the role that this admin uses with the specified Account or Location. }