google_api_android_management v0.1.0 GoogleApi.AndroidManagement.V1.Api.Enterprises View Source
API calls for all endpoints tagged Enterprises
.
Link to this section Summary
Functions
Gets info about an application
Creates an enterprise. This is the last step in the enterprise signup flow
Issues a command to a device. The Operation resource returned contains a Command in its metadata field. Use the get operation method to get the status of the command
Lists devices for a given enterprise
Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to Code.CANCELLED
Creates an enrollment token for a given enterprise
Deletes an enrollment token. This operation invalidates the token, preventing its future use
Lists policies for a given enterprise
Updates or creates a policy
Creates a web token to access an embeddable managed Google Play web UI for a given enterprise
Link to this section Functions
androidmanagement_enterprises_applications_get( Tesla.Env.client(), String.t(), keyword() ) :: {:ok, GoogleApi.AndroidManagement.V1.Model.Application.t()} | {:error, Tesla.Env.t()}
Gets info about an application.
Parameters
- connection (GoogleApi.AndroidManagement.V1.Connection): Connection to server
- name (String.t): The name of the application in the form enterprises/{enterpriseId}/applications/{package_name}.
opts (KeywordList): [optional] Optional parameters
- :uploadType (String.t): Legacy upload protocol for media (e.g. "media", "multipart").
- :fields (String.t): Selector specifying which fields to include in a partial response.
- :callback (String.t): JSONP
- :oauth_token (String.t): OAuth 2.0 token for the current user.
- :$.xgafv (String.t): V1 error format.
- :alt (String.t): Data format for response.
- :key (String.t): API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
- :access_token (String.t): OAuth access token.
- :upload_protocol (String.t): Upload protocol for media (e.g. "raw", "multipart").
- :quotaUser (String.t): Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
- :prettyPrint (boolean()): Returns response with indentations and line breaks.
- :languageCode (String.t): The preferred language for localized application info, as a BCP47 tag (e.g. "en-US", "de"). If not specified the default language of the application will be used.
- :pageToken (String.t): The standard list page token.
- :pageSize (integer()): The standard list page size.
Returns
{:ok, %GoogleApi.AndroidManagement.V1.Model.Application{}} on success {:error, info} on failure
androidmanagement_enterprises_create(Tesla.Env.client(), keyword()) :: {:ok, GoogleApi.AndroidManagement.V1.Model.Enterprise.t()} | {:error, Tesla.Env.t()}
Creates an enterprise. This is the last step in the enterprise signup flow.
Parameters
- connection (GoogleApi.AndroidManagement.V1.Connection): Connection to server
opts (KeywordList): [optional] Optional parameters
- :uploadType (String.t): Legacy upload protocol for media (e.g. "media", "multipart").
- :fields (String.t): Selector specifying which fields to include in a partial response.
- :callback (String.t): JSONP
- :oauth_token (String.t): OAuth 2.0 token for the current user.
- :$.xgafv (String.t): V1 error format.
- :alt (String.t): Data format for response.
- :key (String.t): API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
- :access_token (String.t): OAuth access token.
- :upload_protocol (String.t): Upload protocol for media (e.g. "raw", "multipart").
- :quotaUser (String.t): Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
- :prettyPrint (boolean()): Returns response with indentations and line breaks.
- :signupUrlName (String.t): The name of the SignupUrl used to sign up for the enterprise.
- :projectId (String.t): The ID of the Google Cloud Platform project which will own the enterprise.
- :enterpriseToken (String.t): The enterprise token appended to the callback URL.
- :body (Enterprise):
Returns
{:ok, %GoogleApi.AndroidManagement.V1.Model.Enterprise{}} on success {:error, info} on failure
androidmanagement_enterprises_devices_issue_command( Tesla.Env.client(), String.t(), keyword() ) :: {:ok, GoogleApi.AndroidManagement.V1.Model.Operation.t()} | {:error, Tesla.Env.t()}
Issues a command to a device. The Operation resource returned contains a Command in its metadata field. Use the get operation method to get the status of the command.
Parameters
- connection (GoogleApi.AndroidManagement.V1.Connection): Connection to server
- name (String.t): The name of the device in the form enterprises/{enterpriseId}/devices/{deviceId}.
opts (KeywordList): [optional] Optional parameters
- :uploadType (String.t): Legacy upload protocol for media (e.g. "media", "multipart").
- :fields (String.t): Selector specifying which fields to include in a partial response.
- :callback (String.t): JSONP
- :oauth_token (String.t): OAuth 2.0 token for the current user.
- :$.xgafv (String.t): V1 error format.
- :alt (String.t): Data format for response.
- :key (String.t): API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
- :access_token (String.t): OAuth access token.
- :upload_protocol (String.t): Upload protocol for media (e.g. "raw", "multipart").
- :quotaUser (String.t): Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
- :prettyPrint (boolean()): Returns response with indentations and line breaks.
- :body (Command):
Returns
{:ok, %GoogleApi.AndroidManagement.V1.Model.Operation{}} on success {:error, info} on failure
androidmanagement_enterprises_devices_list( Tesla.Env.client(), String.t(), keyword() ) :: {:ok, GoogleApi.AndroidManagement.V1.Model.ListDevicesResponse.t()} | {:error, Tesla.Env.t()}
Lists devices for a given enterprise.
Parameters
- connection (GoogleApi.AndroidManagement.V1.Connection): Connection to server
- parent (String.t): The name of the enterprise in the form enterprises/{enterpriseId}.
opts (KeywordList): [optional] Optional parameters
- :uploadType (String.t): Legacy upload protocol for media (e.g. "media", "multipart").
- :fields (String.t): Selector specifying which fields to include in a partial response.
- :callback (String.t): JSONP
- :oauth_token (String.t): OAuth 2.0 token for the current user.
- :$.xgafv (String.t): V1 error format.
- :alt (String.t): Data format for response.
- :key (String.t): API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
- :access_token (String.t): OAuth access token.
- :upload_protocol (String.t): Upload protocol for media (e.g. "raw", "multipart").
- :quotaUser (String.t): Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
- :prettyPrint (boolean()): Returns response with indentations and line breaks.
- :pageToken (String.t): A token identifying a page of results returned by the server.
- :pageSize (integer()): The requested page size. The actual page size may be fixed to a min or max value.
Returns
{:ok, %GoogleApi.AndroidManagement.V1.Model.ListDevicesResponse{}} on success {:error, info} on failure
androidmanagement_enterprises_devices_operations_cancel( Tesla.Env.client(), String.t(), keyword() ) :: {:ok, GoogleApi.AndroidManagement.V1.Model.Empty.t()} | {:error, Tesla.Env.t()}
Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to Code.CANCELLED.
Parameters
- connection (GoogleApi.AndroidManagement.V1.Connection): Connection to server
- name (String.t): The name of the operation resource to be cancelled.
opts (KeywordList): [optional] Optional parameters
- :uploadType (String.t): Legacy upload protocol for media (e.g. "media", "multipart").
- :fields (String.t): Selector specifying which fields to include in a partial response.
- :callback (String.t): JSONP
- :oauth_token (String.t): OAuth 2.0 token for the current user.
- :$.xgafv (String.t): V1 error format.
- :alt (String.t): Data format for response.
- :key (String.t): API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
- :access_token (String.t): OAuth access token.
- :upload_protocol (String.t): Upload protocol for media (e.g. "raw", "multipart").
- :quotaUser (String.t): Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
- :prettyPrint (boolean()): Returns response with indentations and line breaks.
Returns
{:ok, %GoogleApi.AndroidManagement.V1.Model.Empty{}} on success {:error, info} on failure
androidmanagement_enterprises_enrollment_tokens_create( Tesla.Env.client(), String.t(), keyword() ) :: {:ok, GoogleApi.AndroidManagement.V1.Model.EnrollmentToken.t()} | {:error, Tesla.Env.t()}
Creates an enrollment token for a given enterprise.
Parameters
- connection (GoogleApi.AndroidManagement.V1.Connection): Connection to server
- parent (String.t): The name of the enterprise in the form enterprises/{enterpriseId}.
opts (KeywordList): [optional] Optional parameters
- :uploadType (String.t): Legacy upload protocol for media (e.g. "media", "multipart").
- :fields (String.t): Selector specifying which fields to include in a partial response.
- :callback (String.t): JSONP
- :oauth_token (String.t): OAuth 2.0 token for the current user.
- :$.xgafv (String.t): V1 error format.
- :alt (String.t): Data format for response.
- :key (String.t): API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
- :access_token (String.t): OAuth access token.
- :upload_protocol (String.t): Upload protocol for media (e.g. "raw", "multipart").
- :quotaUser (String.t): Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
- :prettyPrint (boolean()): Returns response with indentations and line breaks.
- :body (EnrollmentToken):
Returns
{:ok, %GoogleApi.AndroidManagement.V1.Model.EnrollmentToken{}} on success {:error, info} on failure
androidmanagement_enterprises_enrollment_tokens_delete( Tesla.Env.client(), String.t(), keyword() ) :: {:ok, GoogleApi.AndroidManagement.V1.Model.Empty.t()} | {:error, Tesla.Env.t()}
Deletes an enrollment token. This operation invalidates the token, preventing its future use.
Parameters
- connection (GoogleApi.AndroidManagement.V1.Connection): Connection to server
- name (String.t): The name of the enrollment token in the form enterprises/{enterpriseId}/enrollmentTokens/{enrollmentTokenId}.
opts (KeywordList): [optional] Optional parameters
- :uploadType (String.t): Legacy upload protocol for media (e.g. "media", "multipart").
- :fields (String.t): Selector specifying which fields to include in a partial response.
- :callback (String.t): JSONP
- :oauth_token (String.t): OAuth 2.0 token for the current user.
- :$.xgafv (String.t): V1 error format.
- :alt (String.t): Data format for response.
- :key (String.t): API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
- :access_token (String.t): OAuth access token.
- :upload_protocol (String.t): Upload protocol for media (e.g. "raw", "multipart").
- :quotaUser (String.t): Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
- :prettyPrint (boolean()): Returns response with indentations and line breaks.
Returns
{:ok, %GoogleApi.AndroidManagement.V1.Model.Empty{}} on success {:error, info} on failure
androidmanagement_enterprises_policies_list( Tesla.Env.client(), String.t(), keyword() ) :: {:ok, GoogleApi.AndroidManagement.V1.Model.ListPoliciesResponse.t()} | {:error, Tesla.Env.t()}
Lists policies for a given enterprise.
Parameters
- connection (GoogleApi.AndroidManagement.V1.Connection): Connection to server
- parent (String.t): The name of the enterprise in the form enterprises/{enterpriseId}.
opts (KeywordList): [optional] Optional parameters
- :uploadType (String.t): Legacy upload protocol for media (e.g. "media", "multipart").
- :fields (String.t): Selector specifying which fields to include in a partial response.
- :callback (String.t): JSONP
- :oauth_token (String.t): OAuth 2.0 token for the current user.
- :$.xgafv (String.t): V1 error format.
- :alt (String.t): Data format for response.
- :key (String.t): API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
- :access_token (String.t): OAuth access token.
- :upload_protocol (String.t): Upload protocol for media (e.g. "raw", "multipart").
- :quotaUser (String.t): Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
- :prettyPrint (boolean()): Returns response with indentations and line breaks.
- :pageToken (String.t): A token identifying a page of results returned by the server.
- :pageSize (integer()): The requested page size. The actual page size may be fixed to a min or max value.
Returns
{:ok, %GoogleApi.AndroidManagement.V1.Model.ListPoliciesResponse{}} on success {:error, info} on failure
androidmanagement_enterprises_policies_patch( Tesla.Env.client(), String.t(), keyword() ) :: {:ok, GoogleApi.AndroidManagement.V1.Model.Policy.t()} | {:error, Tesla.Env.t()}
Updates or creates a policy.
Parameters
- connection (GoogleApi.AndroidManagement.V1.Connection): Connection to server
- name (String.t): The name of the policy in the form enterprises/{enterpriseId}/policies/{policyId}.
opts (KeywordList): [optional] Optional parameters
- :uploadType (String.t): Legacy upload protocol for media (e.g. "media", "multipart").
- :fields (String.t): Selector specifying which fields to include in a partial response.
- :callback (String.t): JSONP
- :oauth_token (String.t): OAuth 2.0 token for the current user.
- :$.xgafv (String.t): V1 error format.
- :alt (String.t): Data format for response.
- :key (String.t): API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
- :access_token (String.t): OAuth access token.
- :upload_protocol (String.t): Upload protocol for media (e.g. "raw", "multipart").
- :quotaUser (String.t): Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
- :prettyPrint (boolean()): Returns response with indentations and line breaks.
- :updateMask (String.t): The field mask indicating the fields to update. If not set, all modifiable fields will be modified.
- :body (Policy):
Returns
{:ok, %GoogleApi.AndroidManagement.V1.Model.Policy{}} on success {:error, info} on failure
androidmanagement_enterprises_web_tokens_create( Tesla.Env.client(), String.t(), keyword() ) :: {:ok, GoogleApi.AndroidManagement.V1.Model.WebToken.t()} | {:error, Tesla.Env.t()}
Creates a web token to access an embeddable managed Google Play web UI for a given enterprise.
Parameters
- connection (GoogleApi.AndroidManagement.V1.Connection): Connection to server
- parent (String.t): The name of the enterprise in the form enterprises/{enterpriseId}.
opts (KeywordList): [optional] Optional parameters
- :uploadType (String.t): Legacy upload protocol for media (e.g. "media", "multipart").
- :fields (String.t): Selector specifying which fields to include in a partial response.
- :callback (String.t): JSONP
- :oauth_token (String.t): OAuth 2.0 token for the current user.
- :$.xgafv (String.t): V1 error format.
- :alt (String.t): Data format for response.
- :key (String.t): API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
- :access_token (String.t): OAuth access token.
- :upload_protocol (String.t): Upload protocol for media (e.g. "raw", "multipart").
- :quotaUser (String.t): Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
- :prettyPrint (boolean()): Returns response with indentations and line breaks.
- :body (WebToken):
Returns
{:ok, %GoogleApi.AndroidManagement.V1.Model.WebToken{}} on success {:error, info} on failure