diff --git a/clients/android_management/lib/google_api/android_management/v1/api/enterprises.ex b/clients/android_management/lib/google_api/android_management/v1/api/enterprises.ex index 2b15cd5afa..62246e4ffc 100644 --- a/clients/android_management/lib/google_api/android_management/v1/api/enterprises.ex +++ b/clients/android_management/lib/google_api/android_management/v1/api/enterprises.ex @@ -26,7 +26,7 @@ defmodule GoogleApi.AndroidManagement.V1.Api.Enterprises do @library_version Mix.Project.config() |> Keyword.get(:version, "") @doc """ - Creates an enterprise. This is the last step in the enterprise signup flow. + Creates an enterprise. This is the last step in the enterprise signup flow. See also: SigninDetail ## Parameters @@ -93,7 +93,7 @@ defmodule GoogleApi.AndroidManagement.V1.Api.Enterprises do end @doc """ - Deletes an enterprise. Only available for EMM-managed enterprises. + Permanently deletes an enterprise and all accounts and data associated with it. Warning: this will result in a cascaded deletion of all AM API devices associated with the deleted enterprise. Only available for EMM-managed enterprises. ## Parameters @@ -280,7 +280,7 @@ defmodule GoogleApi.AndroidManagement.V1.Api.Enterprises do end @doc """ - Updates an enterprise. + Updates an enterprise. See also: SigninDetail ## Parameters @@ -852,12 +852,12 @@ defmodule GoogleApi.AndroidManagement.V1.Api.Enterprises do end @doc """ - Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED. + Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. ## Parameters * `connection` (*type:* `GoogleApi.AndroidManagement.V1.Connection.t`) - Connection to server - * `name` (*type:* `String.t`) - The name of the operation resource to be deleted. + * `name` (*type:* `String.t`) - The name of the operation resource. * `optional_params` (*type:* `keyword()`) - Optional parameters * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. * `:access_token` (*type:* `String.t`) - OAuth access token. @@ -874,20 +874,20 @@ defmodule GoogleApi.AndroidManagement.V1.Api.Enterprises do ## Returns - * `{:ok, %GoogleApi.AndroidManagement.V1.Model.Empty{}}` on success + * `{:ok, %GoogleApi.AndroidManagement.V1.Model.Operation{}}` on success * `{:error, info}` on failure """ - @spec androidmanagement_enterprises_devices_operations_delete( + @spec androidmanagement_enterprises_devices_operations_get( Tesla.Env.client(), String.t(), keyword(), keyword() ) :: - {:ok, GoogleApi.AndroidManagement.V1.Model.Empty.t()} + {:ok, GoogleApi.AndroidManagement.V1.Model.Operation.t()} | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()} - def androidmanagement_enterprises_devices_operations_delete( + def androidmanagement_enterprises_devices_operations_get( connection, name, optional_params \\ [], @@ -909,7 +909,7 @@ defmodule GoogleApi.AndroidManagement.V1.Api.Enterprises do request = Request.new() - |> Request.method(:delete) + |> Request.method(:get) |> Request.url("/v1/{+name}", %{ "name" => URI.encode(name, &URI.char_unreserved?/1) }) @@ -918,16 +918,16 @@ defmodule GoogleApi.AndroidManagement.V1.Api.Enterprises do connection |> Connection.execute(request) - |> Response.decode(opts ++ [struct: %GoogleApi.AndroidManagement.V1.Model.Empty{}]) + |> Response.decode(opts ++ [struct: %GoogleApi.AndroidManagement.V1.Model.Operation{}]) end @doc """ - Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. + Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns UNIMPLEMENTED. ## Parameters * `connection` (*type:* `GoogleApi.AndroidManagement.V1.Connection.t`) - Connection to server - * `name` (*type:* `String.t`) - The name of the operation resource. + * `name` (*type:* `String.t`) - The name of the operation's parent resource. * `optional_params` (*type:* `keyword()`) - Optional parameters * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. * `:access_token` (*type:* `String.t`) - OAuth access token. @@ -940,24 +940,27 @@ defmodule GoogleApi.AndroidManagement.V1.Api.Enterprises do * `:quotaUser` (*type:* `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. * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:filter` (*type:* `String.t`) - The standard list filter. + * `:pageSize` (*type:* `integer()`) - The standard list page size. + * `:pageToken` (*type:* `String.t`) - The standard list page token. * `opts` (*type:* `keyword()`) - Call options ## Returns - * `{:ok, %GoogleApi.AndroidManagement.V1.Model.Operation{}}` on success + * `{:ok, %GoogleApi.AndroidManagement.V1.Model.ListOperationsResponse{}}` on success * `{:error, info}` on failure """ - @spec androidmanagement_enterprises_devices_operations_get( + @spec androidmanagement_enterprises_devices_operations_list( Tesla.Env.client(), String.t(), keyword(), keyword() ) :: - {:ok, GoogleApi.AndroidManagement.V1.Model.Operation.t()} + {:ok, GoogleApi.AndroidManagement.V1.Model.ListOperationsResponse.t()} | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()} - def androidmanagement_enterprises_devices_operations_get( + def androidmanagement_enterprises_devices_operations_list( connection, name, optional_params \\ [], @@ -974,7 +977,10 @@ defmodule GoogleApi.AndroidManagement.V1.Api.Enterprises do :prettyPrint => :query, :quotaUser => :query, :uploadType => :query, - :upload_protocol => :query + :upload_protocol => :query, + :filter => :query, + :pageSize => :query, + :pageToken => :query } request = @@ -988,16 +994,18 @@ defmodule GoogleApi.AndroidManagement.V1.Api.Enterprises do connection |> Connection.execute(request) - |> Response.decode(opts ++ [struct: %GoogleApi.AndroidManagement.V1.Model.Operation{}]) + |> Response.decode( + opts ++ [struct: %GoogleApi.AndroidManagement.V1.Model.ListOperationsResponse{}] + ) end @doc """ - Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns UNIMPLEMENTED.NOTE: the name binding allows API services to override the binding to use different resource name schemes, such as users/*/operations. To override the binding, API services can add a binding such as "/v1/{name=users/*}/operations" to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id. + Creates an enrollment token for a given enterprise. It's up to the caller's responsibility to manage the lifecycle of newly created tokens and deleting them when they're not intended to be used anymore. Once an enrollment token has been created, it's not possible to retrieve the token's content anymore using AM API. It is recommended for EMMs to securely store the token if it's intended to be reused. ## Parameters * `connection` (*type:* `GoogleApi.AndroidManagement.V1.Connection.t`) - Connection to server - * `name` (*type:* `String.t`) - The name of the operation's parent resource. + * `parent` (*type:* `String.t`) - The name of the enterprise in the form enterprises/{enterpriseId}. * `optional_params` (*type:* `keyword()`) - Optional parameters * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. * `:access_token` (*type:* `String.t`) - OAuth access token. @@ -1010,29 +1018,27 @@ defmodule GoogleApi.AndroidManagement.V1.Api.Enterprises do * `:quotaUser` (*type:* `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. * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). - * `:filter` (*type:* `String.t`) - The standard list filter. - * `:pageSize` (*type:* `integer()`) - The standard list page size. - * `:pageToken` (*type:* `String.t`) - The standard list page token. + * `:body` (*type:* `GoogleApi.AndroidManagement.V1.Model.EnrollmentToken.t`) - * `opts` (*type:* `keyword()`) - Call options ## Returns - * `{:ok, %GoogleApi.AndroidManagement.V1.Model.ListOperationsResponse{}}` on success + * `{:ok, %GoogleApi.AndroidManagement.V1.Model.EnrollmentToken{}}` on success * `{:error, info}` on failure """ - @spec androidmanagement_enterprises_devices_operations_list( + @spec androidmanagement_enterprises_enrollment_tokens_create( Tesla.Env.client(), String.t(), keyword(), keyword() ) :: - {:ok, GoogleApi.AndroidManagement.V1.Model.ListOperationsResponse.t()} + {:ok, GoogleApi.AndroidManagement.V1.Model.EnrollmentToken.t()} | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()} - def androidmanagement_enterprises_devices_operations_list( + def androidmanagement_enterprises_enrollment_tokens_create( connection, - name, + parent, optional_params \\ [], opts \\ [] ) do @@ -1048,14 +1054,82 @@ defmodule GoogleApi.AndroidManagement.V1.Api.Enterprises do :quotaUser => :query, :uploadType => :query, :upload_protocol => :query, - :filter => :query, - :pageSize => :query, - :pageToken => :query + :body => :body } request = Request.new() - |> Request.method(:get) + |> Request.method(:post) + |> Request.url("/v1/{+parent}/enrollmentTokens", %{ + "parent" => URI.encode(parent, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode(opts ++ [struct: %GoogleApi.AndroidManagement.V1.Model.EnrollmentToken{}]) + end + + @doc """ + Deletes an enrollment token. This operation invalidates the token, preventing its future use. + + ## Parameters + + * `connection` (*type:* `GoogleApi.AndroidManagement.V1.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - The name of the enrollment token in the form enterprises/{enterpriseId}/enrollmentTokens/{enrollmentTokenId}. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `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. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.AndroidManagement.V1.Model.Empty{}}` on success + * `{:error, info}` on failure + """ + @spec androidmanagement_enterprises_enrollment_tokens_delete( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.AndroidManagement.V1.Model.Empty.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def androidmanagement_enterprises_enrollment_tokens_delete( + connection, + name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query + } + + request = + Request.new() + |> Request.method(:delete) |> Request.url("/v1/{+name}", %{ "name" => URI.encode(name, &URI.char_unreserved?/1) }) @@ -1064,18 +1138,16 @@ defmodule GoogleApi.AndroidManagement.V1.Api.Enterprises do connection |> Connection.execute(request) - |> Response.decode( - opts ++ [struct: %GoogleApi.AndroidManagement.V1.Model.ListOperationsResponse{}] - ) + |> Response.decode(opts ++ [struct: %GoogleApi.AndroidManagement.V1.Model.Empty{}]) end @doc """ - Creates an enrollment token for a given enterprise. It's up to the caller's responsibility to manage the lifecycle of newly created tokens and deleting them when they're not intended to be used anymore. Once an enrollment token has been created, it's not possible to retrieve the token's content anymore using AM API. It is recommended for EMMs to securely store the token if it's intended to be reused. + Gets an active, unexpired enrollment token. Only a partial view of EnrollmentToken is returned: all the fields but name and expiration_timestamp are empty. This method is meant to help manage active enrollment tokens lifecycle. For security reasons, it's recommended to delete active enrollment tokens as soon as they're not intended to be used anymore. ## Parameters * `connection` (*type:* `GoogleApi.AndroidManagement.V1.Connection.t`) - Connection to server - * `parent` (*type:* `String.t`) - The name of the enterprise in the form enterprises/{enterpriseId}. + * `name` (*type:* `String.t`) - Required. The name of the enrollment token in the form enterprises/{enterpriseId}/enrollmentTokens/{enrollmentTokenId}. * `optional_params` (*type:* `keyword()`) - Optional parameters * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. * `:access_token` (*type:* `String.t`) - OAuth access token. @@ -1088,7 +1160,6 @@ defmodule GoogleApi.AndroidManagement.V1.Api.Enterprises do * `:quotaUser` (*type:* `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. * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). - * `:body` (*type:* `GoogleApi.AndroidManagement.V1.Model.EnrollmentToken.t`) - * `opts` (*type:* `keyword()`) - Call options ## Returns @@ -1096,7 +1167,7 @@ defmodule GoogleApi.AndroidManagement.V1.Api.Enterprises do * `{:ok, %GoogleApi.AndroidManagement.V1.Model.EnrollmentToken{}}` on success * `{:error, info}` on failure """ - @spec androidmanagement_enterprises_enrollment_tokens_create( + @spec androidmanagement_enterprises_enrollment_tokens_get( Tesla.Env.client(), String.t(), keyword(), @@ -1106,7 +1177,79 @@ defmodule GoogleApi.AndroidManagement.V1.Api.Enterprises do | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()} - def androidmanagement_enterprises_enrollment_tokens_create( + def androidmanagement_enterprises_enrollment_tokens_get( + connection, + name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v1/{+name}", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode(opts ++ [struct: %GoogleApi.AndroidManagement.V1.Model.EnrollmentToken{}]) + end + + @doc """ + Lists active, unexpired enrollment tokens for a given enterprise. The list items contain only a partial view of EnrollmentToken: all the fields but name and expiration_timestamp are empty. This method is meant to help manage active enrollment tokens lifecycle. For security reasons, it's recommended to delete active enrollment tokens as soon as they're not intended to be used anymore. + + ## Parameters + + * `connection` (*type:* `GoogleApi.AndroidManagement.V1.Connection.t`) - Connection to server + * `parent` (*type:* `String.t`) - Required. The name of the enterprise in the form enterprises/{enterpriseId}. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `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. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:pageSize` (*type:* `integer()`) - The requested page size. The service may return fewer than this value. If unspecified, at most 10 items will be returned. The maximum value is 100; values above 100 will be coerced to 100. + * `:pageToken` (*type:* `String.t`) - A token identifying a page of results returned by the server. + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.AndroidManagement.V1.Model.ListEnrollmentTokensResponse{}}` on success + * `{:error, info}` on failure + """ + @spec androidmanagement_enterprises_enrollment_tokens_list( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.AndroidManagement.V1.Model.ListEnrollmentTokensResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def androidmanagement_enterprises_enrollment_tokens_list( connection, parent, optional_params \\ [], @@ -1124,12 +1267,13 @@ defmodule GoogleApi.AndroidManagement.V1.Api.Enterprises do :quotaUser => :query, :uploadType => :query, :upload_protocol => :query, - :body => :body + :pageSize => :query, + :pageToken => :query } request = Request.new() - |> Request.method(:post) + |> Request.method(:get) |> Request.url("/v1/{+parent}/enrollmentTokens", %{ "parent" => URI.encode(parent, &URI.char_unreserved?/1) }) @@ -1138,16 +1282,18 @@ defmodule GoogleApi.AndroidManagement.V1.Api.Enterprises do connection |> Connection.execute(request) - |> Response.decode(opts ++ [struct: %GoogleApi.AndroidManagement.V1.Model.EnrollmentToken{}]) + |> Response.decode( + opts ++ [struct: %GoogleApi.AndroidManagement.V1.Model.ListEnrollmentTokensResponse{}] + ) end @doc """ - Deletes an enrollment token. This operation invalidates the token, preventing its future use. + Creates a migration token, to migrate an existing device from being managed by the EMM's Device Policy Controller (DPC) to being managed by the Android Management API. ## Parameters * `connection` (*type:* `GoogleApi.AndroidManagement.V1.Connection.t`) - Connection to server - * `name` (*type:* `String.t`) - The name of the enrollment token in the form enterprises/{enterpriseId}/enrollmentTokens/{enrollmentTokenId}. + * `parent` (*type:* `String.t`) - Required. The enterprise in which this migration token will be created. Format: enterprises/{enterprise} * `optional_params` (*type:* `keyword()`) - Optional parameters * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. * `:access_token` (*type:* `String.t`) - OAuth access token. @@ -1160,26 +1306,27 @@ defmodule GoogleApi.AndroidManagement.V1.Api.Enterprises do * `:quotaUser` (*type:* `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. * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.AndroidManagement.V1.Model.MigrationToken.t`) - * `opts` (*type:* `keyword()`) - Call options ## Returns - * `{:ok, %GoogleApi.AndroidManagement.V1.Model.Empty{}}` on success + * `{:ok, %GoogleApi.AndroidManagement.V1.Model.MigrationToken{}}` on success * `{:error, info}` on failure """ - @spec androidmanagement_enterprises_enrollment_tokens_delete( + @spec androidmanagement_enterprises_migration_tokens_create( Tesla.Env.client(), String.t(), keyword(), keyword() ) :: - {:ok, GoogleApi.AndroidManagement.V1.Model.Empty.t()} + {:ok, GoogleApi.AndroidManagement.V1.Model.MigrationToken.t()} | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()} - def androidmanagement_enterprises_enrollment_tokens_delete( + def androidmanagement_enterprises_migration_tokens_create( connection, - name, + parent, optional_params \\ [], opts \\ [] ) do @@ -1194,30 +1341,31 @@ defmodule GoogleApi.AndroidManagement.V1.Api.Enterprises do :prettyPrint => :query, :quotaUser => :query, :uploadType => :query, - :upload_protocol => :query + :upload_protocol => :query, + :body => :body } request = Request.new() - |> Request.method(:delete) - |> Request.url("/v1/{+name}", %{ - "name" => URI.encode(name, &URI.char_unreserved?/1) + |> Request.method(:post) + |> Request.url("/v1/{+parent}/migrationTokens", %{ + "parent" => URI.encode(parent, &URI.char_unreserved?/1) }) |> Request.add_optional_params(optional_params_config, optional_params) |> Request.library_version(@library_version) connection |> Connection.execute(request) - |> Response.decode(opts ++ [struct: %GoogleApi.AndroidManagement.V1.Model.Empty{}]) + |> Response.decode(opts ++ [struct: %GoogleApi.AndroidManagement.V1.Model.MigrationToken{}]) end @doc """ - Gets an active, unexpired enrollment token. Only a partial view of EnrollmentToken is returned: all the fields but name and expiration_timestamp are empty. This method is meant to help manage active enrollment tokens lifecycle. For security reasons, it's recommended to delete active enrollment tokens as soon as they're not intended to be used anymore. + Gets a migration token. ## Parameters * `connection` (*type:* `GoogleApi.AndroidManagement.V1.Connection.t`) - Connection to server - * `name` (*type:* `String.t`) - Required. The name of the enrollment token in the form enterprises/{enterpriseId}/enrollmentTokens/{enrollmentTokenId}. + * `name` (*type:* `String.t`) - Required. The name of the migration token to retrieve. Format: enterprises/{enterprise}/migrationTokens/{migration_token} * `optional_params` (*type:* `keyword()`) - Optional parameters * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. * `:access_token` (*type:* `String.t`) - OAuth access token. @@ -1234,20 +1382,20 @@ defmodule GoogleApi.AndroidManagement.V1.Api.Enterprises do ## Returns - * `{:ok, %GoogleApi.AndroidManagement.V1.Model.EnrollmentToken{}}` on success + * `{:ok, %GoogleApi.AndroidManagement.V1.Model.MigrationToken{}}` on success * `{:error, info}` on failure """ - @spec androidmanagement_enterprises_enrollment_tokens_get( + @spec androidmanagement_enterprises_migration_tokens_get( Tesla.Env.client(), String.t(), keyword(), keyword() ) :: - {:ok, GoogleApi.AndroidManagement.V1.Model.EnrollmentToken.t()} + {:ok, GoogleApi.AndroidManagement.V1.Model.MigrationToken.t()} | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()} - def androidmanagement_enterprises_enrollment_tokens_get( + def androidmanagement_enterprises_migration_tokens_get( connection, name, optional_params \\ [], @@ -1278,16 +1426,16 @@ defmodule GoogleApi.AndroidManagement.V1.Api.Enterprises do connection |> Connection.execute(request) - |> Response.decode(opts ++ [struct: %GoogleApi.AndroidManagement.V1.Model.EnrollmentToken{}]) + |> Response.decode(opts ++ [struct: %GoogleApi.AndroidManagement.V1.Model.MigrationToken{}]) end @doc """ - Lists active, unexpired enrollment tokens for a given enterprise. The list items contain only a partial view of EnrollmentToken: all the fields but name and expiration_timestamp are empty. This method is meant to help manage active enrollment tokens lifecycle. For security reasons, it's recommended to delete active enrollment tokens as soon as they're not intended to be used anymore. + Lists migration tokens. ## Parameters * `connection` (*type:* `GoogleApi.AndroidManagement.V1.Connection.t`) - Connection to server - * `parent` (*type:* `String.t`) - Required. The name of the enterprise in the form enterprises/{enterpriseId}. + * `parent` (*type:* `String.t`) - Required. The enterprise which the migration tokens belong to. Format: enterprises/{enterprise} * `optional_params` (*type:* `keyword()`) - Optional parameters * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. * `:access_token` (*type:* `String.t`) - OAuth access token. @@ -1300,26 +1448,26 @@ defmodule GoogleApi.AndroidManagement.V1.Api.Enterprises do * `:quotaUser` (*type:* `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. * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). - * `:pageSize` (*type:* `integer()`) - The requested page size. The service may return fewer than this value. If unspecified, at most 10 items will be returned. The maximum value is 100; values above 100 will be coerced to 100. - * `:pageToken` (*type:* `String.t`) - A token identifying a page of results returned by the server. + * `:pageSize` (*type:* `integer()`) - The maximum number of migration tokens to return. Fewer migration tokens may be returned. If unspecified, at most 100 migration tokens will be returned. The maximum value is 100; values above 100 will be coerced to 100. + * `:pageToken` (*type:* `String.t`) - A page token, received from a previous ListMigrationTokens call. Provide this to retrieve the subsequent page.When paginating, all other parameters provided to ListMigrationTokens must match the call that provided the page token. * `opts` (*type:* `keyword()`) - Call options ## Returns - * `{:ok, %GoogleApi.AndroidManagement.V1.Model.ListEnrollmentTokensResponse{}}` on success + * `{:ok, %GoogleApi.AndroidManagement.V1.Model.ListMigrationTokensResponse{}}` on success * `{:error, info}` on failure """ - @spec androidmanagement_enterprises_enrollment_tokens_list( + @spec androidmanagement_enterprises_migration_tokens_list( Tesla.Env.client(), String.t(), keyword(), keyword() ) :: - {:ok, GoogleApi.AndroidManagement.V1.Model.ListEnrollmentTokensResponse.t()} + {:ok, GoogleApi.AndroidManagement.V1.Model.ListMigrationTokensResponse.t()} | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()} - def androidmanagement_enterprises_enrollment_tokens_list( + def androidmanagement_enterprises_migration_tokens_list( connection, parent, optional_params \\ [], @@ -1344,7 +1492,7 @@ defmodule GoogleApi.AndroidManagement.V1.Api.Enterprises do request = Request.new() |> Request.method(:get) - |> Request.url("/v1/{+parent}/enrollmentTokens", %{ + |> Request.url("/v1/{+parent}/migrationTokens", %{ "parent" => URI.encode(parent, &URI.char_unreserved?/1) }) |> Request.add_optional_params(optional_params_config, optional_params) @@ -1353,7 +1501,7 @@ defmodule GoogleApi.AndroidManagement.V1.Api.Enterprises do connection |> Connection.execute(request) |> Response.decode( - opts ++ [struct: %GoogleApi.AndroidManagement.V1.Model.ListEnrollmentTokensResponse{}] + opts ++ [struct: %GoogleApi.AndroidManagement.V1.Model.ListMigrationTokensResponse{}] ) end diff --git a/clients/android_management/lib/google_api/android_management/v1/api/provisioning_info.ex b/clients/android_management/lib/google_api/android_management/v1/api/provisioning_info.ex new file mode 100644 index 0000000000..fb89ffb888 --- /dev/null +++ b/clients/android_management/lib/google_api/android_management/v1/api/provisioning_info.ex @@ -0,0 +1,92 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidManagement.V1.Api.ProvisioningInfo do + @moduledoc """ + API calls for all endpoints tagged `ProvisioningInfo`. + """ + + alias GoogleApi.AndroidManagement.V1.Connection + alias GoogleApi.Gax.{Request, Response} + + @library_version Mix.Project.config() |> Keyword.get(:version, "") + + @doc """ + Get the device provisioning information by the identifier provided in the sign-in url. + + ## Parameters + + * `connection` (*type:* `GoogleApi.AndroidManagement.V1.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. The identifier that Android Device Policy passes to the 3P sign-in page in the form of provisioningInfo/{provisioning_info}. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `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. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.AndroidManagement.V1.Model.ProvisioningInfo{}}` on success + * `{:error, info}` on failure + """ + @spec androidmanagement_provisioning_info_get( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.AndroidManagement.V1.Model.ProvisioningInfo.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def androidmanagement_provisioning_info_get(connection, name, optional_params \\ [], opts \\ []) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v1/{+name}", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode(opts ++ [struct: %GoogleApi.AndroidManagement.V1.Model.ProvisioningInfo{}]) + end +end diff --git a/clients/android_management/lib/google_api/android_management/v1/metadata.ex b/clients/android_management/lib/google_api/android_management/v1/metadata.ex index f42dbb0732..3d5c69ca7c 100644 --- a/clients/android_management/lib/google_api/android_management/v1/metadata.ex +++ b/clients/android_management/lib/google_api/android_management/v1/metadata.ex @@ -20,7 +20,7 @@ defmodule GoogleApi.AndroidManagement.V1 do API client metadata for GoogleApi.AndroidManagement.V1. """ - @discovery_revision "20221108" + @discovery_revision "20240221" def discovery_revision(), do: @discovery_revision end diff --git a/clients/android_management/lib/google_api/android_management/v1/model/advanced_security_overrides.ex b/clients/android_management/lib/google_api/android_management/v1/model/advanced_security_overrides.ex index d9960bc42e..6bb9de2657 100644 --- a/clients/android_management/lib/google_api/android_management/v1/model/advanced_security_overrides.ex +++ b/clients/android_management/lib/google_api/android_management/v1/model/advanced_security_overrides.ex @@ -17,13 +17,14 @@ defmodule GoogleApi.AndroidManagement.V1.Model.AdvancedSecurityOverrides do @moduledoc """ - Security policies set to secure values by default. To maintain the security posture of a device, we don't recommend overriding any of the default values. + Advanced security settings. In most cases, setting these is not needed. ## Attributes * `commonCriteriaMode` (*type:* `String.t`, *default:* `nil`) - Controls Common Criteria Mode—security standards defined in the Common Criteria for Information Technology Security Evaluation (https://www.commoncriteriaportal.org/) (CC). Enabling Common Criteria Mode increases certain security components on a device, including AES-GCM encryption of Bluetooth Long Term Keys, and Wi-Fi configuration stores.Warning: Common Criteria Mode enforces a strict security model typically only required for IT products used in national security systems and other highly sensitive organizations. Standard device use may be affected. Only enabled if required. * `developerSettings` (*type:* `String.t`, *default:* `nil`) - Controls access to developer settings: developer options and safe boot. Replaces safeBootDisabled (deprecated) and debuggingFeaturesAllowed (deprecated). * `googlePlayProtectVerifyApps` (*type:* `String.t`, *default:* `nil`) - Whether Google Play Protect verification (https://support.google.com/accounts/answer/2812853) is enforced. Replaces ensureVerifyAppsEnabled (deprecated). + * `mtePolicy` (*type:* `String.t`, *default:* `nil`) - Optional. Controls Memory Tagging Extension (MTE) (https://source.android.com/docs/security/test/memory-safety/arm-mte) on the device. The device needs to be rebooted to apply changes to the MTE policy. * `personalAppsThatCanReadWorkNotifications` (*type:* `list(String.t)`, *default:* `nil`) - Personal apps that can read work profile notifications using a NotificationListenerService (https://developer.android.com/reference/android/service/notification/NotificationListenerService). By default, no personal apps (aside from system apps) can read work notifications. Each value in the list must be a package name. * `untrustedAppsPolicy` (*type:* `String.t`, *default:* `nil`) - The policy for untrusted apps (apps from unknown sources) enforced on the device. Replaces install_unknown_sources_allowed (deprecated). """ @@ -34,6 +35,7 @@ defmodule GoogleApi.AndroidManagement.V1.Model.AdvancedSecurityOverrides do :commonCriteriaMode => String.t() | nil, :developerSettings => String.t() | nil, :googlePlayProtectVerifyApps => String.t() | nil, + :mtePolicy => String.t() | nil, :personalAppsThatCanReadWorkNotifications => list(String.t()) | nil, :untrustedAppsPolicy => String.t() | nil } @@ -41,6 +43,7 @@ defmodule GoogleApi.AndroidManagement.V1.Model.AdvancedSecurityOverrides do field(:commonCriteriaMode) field(:developerSettings) field(:googlePlayProtectVerifyApps) + field(:mtePolicy) field(:personalAppsThatCanReadWorkNotifications, type: :list) field(:untrustedAppsPolicy) end diff --git a/clients/android_management/lib/google_api/android_management/v1/model/application_policy.ex b/clients/android_management/lib/google_api/android_management/v1/model/application_policy.ex index 08b352259a..21db71be2c 100644 --- a/clients/android_management/lib/google_api/android_management/v1/model/application_policy.ex +++ b/clients/android_management/lib/google_api/android_management/v1/model/application_policy.ex @@ -17,7 +17,7 @@ defmodule GoogleApi.AndroidManagement.V1.Model.ApplicationPolicy do @moduledoc """ - Policy for an individual app. + Policy for an individual app. Note: Application availability on a given device cannot be changed using this policy if installAppsDisabled is enabled. The maximum number of applications that you can specify per policy is 3,000. ## Attributes @@ -25,17 +25,21 @@ defmodule GoogleApi.AndroidManagement.V1.Model.ApplicationPolicy do * `alwaysOnVpnLockdownExemption` (*type:* `String.t`, *default:* `nil`) - Specifies whether the app is allowed networking when the VPN is not connected and alwaysOnVpnPackage.lockdownEnabled is enabled. If set to VPN_LOCKDOWN_ENFORCED, the app is not allowed networking, and if set to VPN_LOCKDOWN_EXEMPTION, the app is allowed networking. Only supported on devices running Android 10 and above. If this is not supported by the device, the device will contain a NonComplianceDetail with non_compliance_reason set to API_LEVEL and a fieldPath. If this is not applicable to the app, the device will contain a NonComplianceDetail with non_compliance_reason set to UNSUPPORTED and a fieldPath. The fieldPath is set to applications[i].alwaysOnVpnLockdownExemption, where i is the index of the package in the applications policy. * `autoUpdateMode` (*type:* `String.t`, *default:* `nil`) - Controls the auto-update mode for the app. * `connectedWorkAndPersonalApp` (*type:* `String.t`, *default:* `nil`) - Controls whether the app can communicate with itself across a device’s work and personal profiles, subject to user consent. + * `credentialProviderPolicy` (*type:* `String.t`, *default:* `nil`) - Optional. Whether the app is allowed to act as a credential provider on Android 14 and above. * `defaultPermissionPolicy` (*type:* `String.t`, *default:* `nil`) - The default policy for all permissions requested by the app. If specified, this overrides the policy-level default_permission_policy which applies to all apps. It does not override the permission_grants which applies to all apps. - * `delegatedScopes` (*type:* `list(String.t)`, *default:* `nil`) - The scopes delegated to the app from Android Device Policy. + * `delegatedScopes` (*type:* `list(String.t)`, *default:* `nil`) - The scopes delegated to the app from Android Device Policy. These provide additional privileges for the applications they are applied to. * `disabled` (*type:* `boolean()`, *default:* `nil`) - Whether the app is disabled. When disabled, the app data is still preserved. * `extensionConfig` (*type:* `GoogleApi.AndroidManagement.V1.Model.ExtensionConfig.t`, *default:* `nil`) - Configuration to enable this app as an extension app, with the capability of interacting with Android Device Policy offline.This field can be set for at most one app. + * `installConstraint` (*type:* `list(GoogleApi.AndroidManagement.V1.Model.InstallConstraint.t)`, *default:* `nil`) - Optional. The constraints for installing the app. You can specify a maximum of one InstallConstraint. Multiple constraints are rejected. + * `installPriority` (*type:* `integer()`, *default:* `nil`) - Optional. Amongst apps with installType set to: FORCE_INSTALLED PREINSTALLEDthis controls the relative priority of installation. A value of 0 (default) means this app has no priority over other apps. For values between 1 and 10,000, a lower value means a higher priority. Values outside of the range 0 to 10,000 inclusive are rejected. * `installType` (*type:* `String.t`, *default:* `nil`) - The type of installation to perform. - * `lockTaskAllowed` (*type:* `boolean()`, *default:* `nil`) - Whether the app is allowed to lock itself in full-screen mode. DEPRECATED. Use InstallType KIOSK or kioskCustomLauncherEnabled to to configure a dedicated device. + * `lockTaskAllowed` (*type:* `boolean()`, *default:* `nil`) - Whether the app is allowed to lock itself in full-screen mode. DEPRECATED. Use InstallType KIOSK or kioskCustomLauncherEnabled to configure a dedicated device. * `managedConfiguration` (*type:* `map()`, *default:* `nil`) - Managed configuration applied to the app. The format for the configuration is dictated by the ManagedProperty values supported by the app. Each field name in the managed configuration must match the key field of the ManagedProperty. The field value must be compatible with the type of the ManagedProperty: *type* *JSON value* BOOL true or false STRING string INTEGER number CHOICE string MULTISELECT array of strings HIDDEN string BUNDLE_ARRAY array of objects * `managedConfigurationTemplate` (*type:* `GoogleApi.AndroidManagement.V1.Model.ManagedConfigurationTemplate.t`, *default:* `nil`) - The managed configurations template for the app, saved from the managed configurations iframe. This field is ignored if managed_configuration is set. * `minimumVersionCode` (*type:* `integer()`, *default:* `nil`) - The minimum version of the app that runs on the device. If set, the device attempts to update the app to at least this version code. If the app is not up-to-date, the device will contain a NonComplianceDetail with non_compliance_reason set to APP_NOT_UPDATED. The app must already be published to Google Play with a version code greater than or equal to this value. At most 20 apps may specify a minimum version code per policy. * `packageName` (*type:* `String.t`, *default:* `nil`) - The package name of the app. For example, com.google.android.youtube for the YouTube app. * `permissionGrants` (*type:* `list(GoogleApi.AndroidManagement.V1.Model.PermissionGrant.t)`, *default:* `nil`) - Explicit permission grants or denials for the app. These values override the default_permission_policy and permission_grants which apply to all apps. + * `workProfileWidgets` (*type:* `String.t`, *default:* `nil`) - Specifies whether the app installed in the work profile is allowed to add widgets to the home screen. """ use GoogleApi.Gax.ModelBase @@ -45,10 +49,14 @@ defmodule GoogleApi.AndroidManagement.V1.Model.ApplicationPolicy do :alwaysOnVpnLockdownExemption => String.t() | nil, :autoUpdateMode => String.t() | nil, :connectedWorkAndPersonalApp => String.t() | nil, + :credentialProviderPolicy => String.t() | nil, :defaultPermissionPolicy => String.t() | nil, :delegatedScopes => list(String.t()) | nil, :disabled => boolean() | nil, :extensionConfig => GoogleApi.AndroidManagement.V1.Model.ExtensionConfig.t() | nil, + :installConstraint => + list(GoogleApi.AndroidManagement.V1.Model.InstallConstraint.t()) | nil, + :installPriority => integer() | nil, :installType => String.t() | nil, :lockTaskAllowed => boolean() | nil, :managedConfiguration => map() | nil, @@ -57,17 +65,26 @@ defmodule GoogleApi.AndroidManagement.V1.Model.ApplicationPolicy do :minimumVersionCode => integer() | nil, :packageName => String.t() | nil, :permissionGrants => - list(GoogleApi.AndroidManagement.V1.Model.PermissionGrant.t()) | nil + list(GoogleApi.AndroidManagement.V1.Model.PermissionGrant.t()) | nil, + :workProfileWidgets => String.t() | nil } field(:accessibleTrackIds, type: :list) field(:alwaysOnVpnLockdownExemption) field(:autoUpdateMode) field(:connectedWorkAndPersonalApp) + field(:credentialProviderPolicy) field(:defaultPermissionPolicy) field(:delegatedScopes, type: :list) field(:disabled) field(:extensionConfig, as: GoogleApi.AndroidManagement.V1.Model.ExtensionConfig) + + field(:installConstraint, + as: GoogleApi.AndroidManagement.V1.Model.InstallConstraint, + type: :list + ) + + field(:installPriority) field(:installType) field(:lockTaskAllowed) field(:managedConfiguration, type: :map) @@ -79,6 +96,7 @@ defmodule GoogleApi.AndroidManagement.V1.Model.ApplicationPolicy do field(:minimumVersionCode) field(:packageName) field(:permissionGrants, as: GoogleApi.AndroidManagement.V1.Model.PermissionGrant, type: :list) + field(:workProfileWidgets) end defimpl Poison.Decoder, for: GoogleApi.AndroidManagement.V1.Model.ApplicationPolicy do diff --git a/clients/android_management/lib/google_api/android_management/v1/model/application_report.ex b/clients/android_management/lib/google_api/android_management/v1/model/application_report.ex index ae27069af4..e4fd21bc23 100644 --- a/clients/android_management/lib/google_api/android_management/v1/model/application_report.ex +++ b/clients/android_management/lib/google_api/android_management/v1/model/application_report.ex @@ -30,6 +30,7 @@ defmodule GoogleApi.AndroidManagement.V1.Model.ApplicationReport do * `packageSha256Hash` (*type:* `String.t`, *default:* `nil`) - The SHA-256 hash of the app's APK file, which can be used to verify the app hasn't been modified. Each byte of the hash value is represented as a two-digit hexadecimal number. * `signingKeyCertFingerprints` (*type:* `list(String.t)`, *default:* `nil`) - The SHA-1 hash of each android.content.pm.Signature (https://developer.android.com/reference/android/content/pm/Signature.html) associated with the app package. Each byte of each hash value is represented as a two-digit hexadecimal number. * `state` (*type:* `String.t`, *default:* `nil`) - Application state. + * `userFacingType` (*type:* `String.t`, *default:* `nil`) - Whether the app is user facing. * `versionCode` (*type:* `integer()`, *default:* `nil`) - The app version code, which can be used to determine whether one version is more recent than another. * `versionName` (*type:* `String.t`, *default:* `nil`) - The app version as displayed to the user. """ @@ -46,6 +47,7 @@ defmodule GoogleApi.AndroidManagement.V1.Model.ApplicationReport do :packageSha256Hash => String.t() | nil, :signingKeyCertFingerprints => list(String.t()) | nil, :state => String.t() | nil, + :userFacingType => String.t() | nil, :versionCode => integer() | nil, :versionName => String.t() | nil } @@ -59,6 +61,7 @@ defmodule GoogleApi.AndroidManagement.V1.Model.ApplicationReport do field(:packageSha256Hash) field(:signingKeyCertFingerprints, type: :list) field(:state) + field(:userFacingType) field(:versionCode) field(:versionName) end diff --git a/clients/android_management/lib/google_api/android_management/v1/model/command.ex b/clients/android_management/lib/google_api/android_management/v1/model/command.ex index e4d769b27e..72238553a5 100644 --- a/clients/android_management/lib/google_api/android_management/v1/model/command.ex +++ b/clients/android_management/lib/google_api/android_management/v1/model/command.ex @@ -26,8 +26,12 @@ defmodule GoogleApi.AndroidManagement.V1.Model.Command do * `createTime` (*type:* `DateTime.t`, *default:* `nil`) - The timestamp at which the command was created. The timestamp is automatically generated by the server. * `duration` (*type:* `String.t`, *default:* `nil`) - The duration for which the command is valid. The command will expire if not executed by the device during this time. The default duration if unspecified is ten minutes. There is no maximum duration. * `errorCode` (*type:* `String.t`, *default:* `nil`) - If the command failed, an error code explaining the failure. This is not set when the command is cancelled by the caller. - * `newPassword` (*type:* `String.t`, *default:* `nil`) - For commands of type RESET_PASSWORD, optionally specifies the new password. + * `newPassword` (*type:* `String.t`, *default:* `nil`) - For commands of type RESET_PASSWORD, optionally specifies the new password. Note: The new password must be at least 6 characters long if it is numeric in case of Android 14 devices. Else the command will fail with INVALID_VALUE. * `resetPasswordFlags` (*type:* `list(String.t)`, *default:* `nil`) - For commands of type RESET_PASSWORD, optionally specifies flags. + * `startLostModeParams` (*type:* `GoogleApi.AndroidManagement.V1.Model.StartLostModeParams.t`, *default:* `nil`) - Parameters for the START_LOST_MODE command to put the device into lost mode. See StartLostModeParams. If this is set, then it is suggested that type should not be set. In this case, the server automatically sets it to START_LOST_MODE. It is also acceptable to explicitly set type to START_LOST_MODE. + * `startLostModeStatus` (*type:* `GoogleApi.AndroidManagement.V1.Model.StartLostModeStatus.t`, *default:* `nil`) - Output only. Status of the START_LOST_MODE command to put the device into lost mode. See StartLostModeStatus. + * `stopLostModeParams` (*type:* `GoogleApi.AndroidManagement.V1.Model.StopLostModeParams.t`, *default:* `nil`) - Parameters for the STOP_LOST_MODE command to take the device out of lost mode. See StopLostModeParams. If this is set, then it is suggested that type should not be set. In this case, the server automatically sets it to STOP_LOST_MODE. It is also acceptable to explicitly set type to STOP_LOST_MODE. + * `stopLostModeStatus` (*type:* `GoogleApi.AndroidManagement.V1.Model.StopLostModeStatus.t`, *default:* `nil`) - Output only. Status of the STOP_LOST_MODE command to take the device out of lost mode. See StopLostModeStatus. * `type` (*type:* `String.t`, *default:* `nil`) - The type of the command. * `userName` (*type:* `String.t`, *default:* `nil`) - The resource name of the user that owns the device in the form enterprises/{enterpriseId}/users/{userId}. This is automatically generated by the server based on the device the command is sent to. """ @@ -44,6 +48,14 @@ defmodule GoogleApi.AndroidManagement.V1.Model.Command do :errorCode => String.t() | nil, :newPassword => String.t() | nil, :resetPasswordFlags => list(String.t()) | nil, + :startLostModeParams => + GoogleApi.AndroidManagement.V1.Model.StartLostModeParams.t() | nil, + :startLostModeStatus => + GoogleApi.AndroidManagement.V1.Model.StartLostModeStatus.t() | nil, + :stopLostModeParams => + GoogleApi.AndroidManagement.V1.Model.StopLostModeParams.t() | nil, + :stopLostModeStatus => + GoogleApi.AndroidManagement.V1.Model.StopLostModeStatus.t() | nil, :type => String.t() | nil, :userName => String.t() | nil } @@ -55,6 +67,10 @@ defmodule GoogleApi.AndroidManagement.V1.Model.Command do field(:errorCode) field(:newPassword) field(:resetPasswordFlags, type: :list) + field(:startLostModeParams, as: GoogleApi.AndroidManagement.V1.Model.StartLostModeParams) + field(:startLostModeStatus, as: GoogleApi.AndroidManagement.V1.Model.StartLostModeStatus) + field(:stopLostModeParams, as: GoogleApi.AndroidManagement.V1.Model.StopLostModeParams) + field(:stopLostModeStatus, as: GoogleApi.AndroidManagement.V1.Model.StopLostModeStatus) field(:type) field(:userName) end diff --git a/clients/android_management/lib/google_api/android_management/v1/model/cross_profile_policies.ex b/clients/android_management/lib/google_api/android_management/v1/model/cross_profile_policies.ex index 6d3df50884..6a8019ad00 100644 --- a/clients/android_management/lib/google_api/android_management/v1/model/cross_profile_policies.ex +++ b/clients/android_management/lib/google_api/android_management/v1/model/cross_profile_policies.ex @@ -17,13 +17,15 @@ defmodule GoogleApi.AndroidManagement.V1.Model.CrossProfilePolicies do @moduledoc """ - Cross-profile policies applied on the device. + Controls the data from the work profile that can be accessed from the personal profile and vice versa. A nonComplianceDetail with MANAGEMENT_MODE is reported if the device does not have a work profile. ## Attributes * `crossProfileCopyPaste` (*type:* `String.t`, *default:* `nil`) - Whether text copied from one profile (personal or work) can be pasted in the other profile. * `crossProfileDataSharing` (*type:* `String.t`, *default:* `nil`) - Whether data from one profile (personal or work) can be shared with apps in the other profile. Specifically controls simple data sharing via intents. Management of other cross-profile communication channels, such as contact search, copy/paste, or connected work & personal apps, are configured separately. - * `showWorkContactsInPersonalProfile` (*type:* `String.t`, *default:* `nil`) - Whether contacts stored in the work profile can be shown in personal profile contact searches and incoming calls. + * `exemptionsToShowWorkContactsInPersonalProfile` (*type:* `GoogleApi.AndroidManagement.V1.Model.PackageNameList.t`, *default:* `nil`) - List of apps which are excluded from the ShowWorkContactsInPersonalProfile setting. For this to be set, ShowWorkContactsInPersonalProfile must be set to one of the following values: SHOW_WORK_CONTACTS_IN_PERSONAL_PROFILE_ALLOWED. In this case, these exemptions act as a blocklist. SHOW_WORK_CONTACTS_IN_PERSONAL_PROFILE_DISALLOWED. In this case, these exemptions act as an allowlist. SHOW_WORK_CONTACTS_IN_PERSONAL_PROFILE_DISALLOWED_EXCEPT_SYSTEM. In this case, these exemptions act as an allowlist, in addition to the already allowlisted system apps.Supported on Android 14 and above. A nonComplianceDetail with API_LEVEL is reported if the Android version is less than 14. + * `showWorkContactsInPersonalProfile` (*type:* `String.t`, *default:* `nil`) - Whether personal apps can access contacts stored in the work profile.See also exemptions_to_show_work_contacts_in_personal_profile. + * `workProfileWidgetsDefault` (*type:* `String.t`, *default:* `nil`) - Specifies the default behaviour for work profile widgets. If the policy does not specify work_profile_widgets for a specific application, it will behave according to the value specified here. """ use GoogleApi.Gax.ModelBase @@ -31,12 +33,21 @@ defmodule GoogleApi.AndroidManagement.V1.Model.CrossProfilePolicies do @type t :: %__MODULE__{ :crossProfileCopyPaste => String.t() | nil, :crossProfileDataSharing => String.t() | nil, - :showWorkContactsInPersonalProfile => String.t() | nil + :exemptionsToShowWorkContactsInPersonalProfile => + GoogleApi.AndroidManagement.V1.Model.PackageNameList.t() | nil, + :showWorkContactsInPersonalProfile => String.t() | nil, + :workProfileWidgetsDefault => String.t() | nil } field(:crossProfileCopyPaste) field(:crossProfileDataSharing) + + field(:exemptionsToShowWorkContactsInPersonalProfile, + as: GoogleApi.AndroidManagement.V1.Model.PackageNameList + ) + field(:showWorkContactsInPersonalProfile) + field(:workProfileWidgetsDefault) end defimpl Poison.Decoder, for: GoogleApi.AndroidManagement.V1.Model.CrossProfilePolicies do diff --git a/clients/android_management/lib/google_api/android_management/v1/model/device.ex b/clients/android_management/lib/google_api/android_management/v1/model/device.ex index 0eb98ec51f..52ea98a4e3 100644 --- a/clients/android_management/lib/google_api/android_management/v1/model/device.ex +++ b/clients/android_management/lib/google_api/android_management/v1/model/device.ex @@ -26,7 +26,7 @@ defmodule GoogleApi.AndroidManagement.V1.Model.Device do * `previousDeviceNames` (*type:* `list(String.t)`, *default:* `nil`) - If the same physical device has been enrolled multiple times, this field contains its previous device names. The serial number is used as the unique identifier to determine if the same physical device has enrolled previously. The names are in chronological order. * `hardwareInfo` (*type:* `GoogleApi.AndroidManagement.V1.Model.HardwareInfo.t`, *default:* `nil`) - Detailed information about the device hardware. * `enrollmentTokenData` (*type:* `String.t`, *default:* `nil`) - If the device was enrolled with an enrollment token with additional data provided, this field contains that data. - * `memoryEvents` (*type:* `list(GoogleApi.AndroidManagement.V1.Model.MemoryEvent.t)`, *default:* `nil`) - Events related to memory and storage measurements in chronological order. This information is only available if memoryInfoEnabled is true in the device's policy. + * `memoryEvents` (*type:* `list(GoogleApi.AndroidManagement.V1.Model.MemoryEvent.t)`, *default:* `nil`) - Events related to memory and storage measurements in chronological order. This information is only available if memoryInfoEnabled is true in the device's policy.Events are retained for a certain period of time and old events are deleted. * `securityPosture` (*type:* `GoogleApi.AndroidManagement.V1.Model.SecurityPosture.t`, *default:* `nil`) - Device's security posture value that reflects how secure the device is. * `memoryInfo` (*type:* `GoogleApi.AndroidManagement.V1.Model.MemoryInfo.t`, *default:* `nil`) - Memory information: contains information about device memory and storage. * `policyCompliant` (*type:* `boolean()`, *default:* `nil`) - Whether the device is compliant with its policy. @@ -41,6 +41,7 @@ defmodule GoogleApi.AndroidManagement.V1.Model.Device do * `hardwareStatusSamples` (*type:* `list(GoogleApi.AndroidManagement.V1.Model.HardwareStatus.t)`, *default:* `nil`) - Hardware status samples in chronological order. This information is only available if hardwareStatusEnabled is true in the device's policy. * `powerManagementEvents` (*type:* `list(GoogleApi.AndroidManagement.V1.Model.PowerManagementEvent.t)`, *default:* `nil`) - Power management events on the device in chronological order. This information is only available if powerManagementEventsEnabled is true in the device's policy. * `appliedPolicyName` (*type:* `String.t`, *default:* `nil`) - The name of the policy currently applied to the device. + * `dpcMigrationInfo` (*type:* `GoogleApi.AndroidManagement.V1.Model.DpcMigrationInfo.t`, *default:* `nil`) - Output only. Information related to whether this device was migrated from being managed by another Device Policy Controller (DPC). * `applicationReports` (*type:* `list(GoogleApi.AndroidManagement.V1.Model.ApplicationReport.t)`, *default:* `nil`) - Reports for apps installed on the device. This information is only available when application_reports_enabled is true in the device's policy. * `userName` (*type:* `String.t`, *default:* `nil`) - The resource name of the user that owns this device in the form enterprises/{enterpriseId}/users/{userId}. * `nonComplianceDetails` (*type:* `list(GoogleApi.AndroidManagement.V1.Model.NonComplianceDetail.t)`, *default:* `nil`) - Details about policy settings that the device is not compliant with. @@ -83,6 +84,7 @@ defmodule GoogleApi.AndroidManagement.V1.Model.Device do :powerManagementEvents => list(GoogleApi.AndroidManagement.V1.Model.PowerManagementEvent.t()) | nil, :appliedPolicyName => String.t() | nil, + :dpcMigrationInfo => GoogleApi.AndroidManagement.V1.Model.DpcMigrationInfo.t() | nil, :applicationReports => list(GoogleApi.AndroidManagement.V1.Model.ApplicationReport.t()) | nil, :userName => String.t() | nil, @@ -133,6 +135,7 @@ defmodule GoogleApi.AndroidManagement.V1.Model.Device do ) field(:appliedPolicyName) + field(:dpcMigrationInfo, as: GoogleApi.AndroidManagement.V1.Model.DpcMigrationInfo) field(:applicationReports, as: GoogleApi.AndroidManagement.V1.Model.ApplicationReport, diff --git a/clients/android_management/lib/google_api/android_management/v1/model/device_connectivity_management.ex b/clients/android_management/lib/google_api/android_management/v1/model/device_connectivity_management.ex new file mode 100644 index 0000000000..d4cd6051a6 --- /dev/null +++ b/clients/android_management/lib/google_api/android_management/v1/model/device_connectivity_management.ex @@ -0,0 +1,55 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidManagement.V1.Model.DeviceConnectivityManagement do + @moduledoc """ + Covers controls for device connectivity such as Wi-Fi, USB data access, keyboard/mouse connections, and more. + + ## Attributes + + * `configureWifi` (*type:* `String.t`, *default:* `nil`) - Controls Wi-Fi configuring privileges. Based on the option set, user will have either full or limited or no control in configuring Wi-Fi networks. + * `tetheringSettings` (*type:* `String.t`, *default:* `nil`) - Controls tethering settings. Based on the value set, the user is partially or fully disallowed from using different forms of tethering. + * `usbDataAccess` (*type:* `String.t`, *default:* `nil`) - Controls what files and/or data can be transferred via USB. Supported only on company-owned devices. + * `wifiDirectSettings` (*type:* `String.t`, *default:* `nil`) - Controls configuring and using Wi-Fi direct settings. Supported on company-owned devices running Android 13 and above. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :configureWifi => String.t() | nil, + :tetheringSettings => String.t() | nil, + :usbDataAccess => String.t() | nil, + :wifiDirectSettings => String.t() | nil + } + + field(:configureWifi) + field(:tetheringSettings) + field(:usbDataAccess) + field(:wifiDirectSettings) +end + +defimpl Poison.Decoder, for: GoogleApi.AndroidManagement.V1.Model.DeviceConnectivityManagement do + def decode(value, options) do + GoogleApi.AndroidManagement.V1.Model.DeviceConnectivityManagement.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.AndroidManagement.V1.Model.DeviceConnectivityManagement do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_management/lib/google_api/android_management/v1/model/device_radio_state.ex b/clients/android_management/lib/google_api/android_management/v1/model/device_radio_state.ex new file mode 100644 index 0000000000..a6e1625a5e --- /dev/null +++ b/clients/android_management/lib/google_api/android_management/v1/model/device_radio_state.ex @@ -0,0 +1,58 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidManagement.V1.Model.DeviceRadioState do + @moduledoc """ + Controls for device radio settings. + + ## Attributes + + * `airplaneModeState` (*type:* `String.t`, *default:* `nil`) - Controls whether airplane mode can be toggled by the user or not. + * `cellularTwoGState` (*type:* `String.t`, *default:* `nil`) - Controls whether cellular 2G setting can be toggled by the user or not. + * `minimumWifiSecurityLevel` (*type:* `String.t`, *default:* `nil`) - The minimum required security level of Wi-Fi networks that the device can connect to. + * `ultraWidebandState` (*type:* `String.t`, *default:* `nil`) - Controls the state of the ultra wideband setting and whether the user can toggle it on or off. + * `wifiState` (*type:* `String.t`, *default:* `nil`) - Controls current state of Wi-Fi and if user can change its state. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :airplaneModeState => String.t() | nil, + :cellularTwoGState => String.t() | nil, + :minimumWifiSecurityLevel => String.t() | nil, + :ultraWidebandState => String.t() | nil, + :wifiState => String.t() | nil + } + + field(:airplaneModeState) + field(:cellularTwoGState) + field(:minimumWifiSecurityLevel) + field(:ultraWidebandState) + field(:wifiState) +end + +defimpl Poison.Decoder, for: GoogleApi.AndroidManagement.V1.Model.DeviceRadioState do + def decode(value, options) do + GoogleApi.AndroidManagement.V1.Model.DeviceRadioState.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.AndroidManagement.V1.Model.DeviceRadioState do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_management/lib/google_api/android_management/v1/model/dpc_migration_info.ex b/clients/android_management/lib/google_api/android_management/v1/model/dpc_migration_info.ex new file mode 100644 index 0000000000..494a57da0c --- /dev/null +++ b/clients/android_management/lib/google_api/android_management/v1/model/dpc_migration_info.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidManagement.V1.Model.DpcMigrationInfo do + @moduledoc """ + Information related to whether this device was migrated from being managed by another Device Policy Controller (DPC). + + ## Attributes + + * `additionalData` (*type:* `String.t`, *default:* `nil`) - Output only. If this device was migrated from another DPC, the additionalData field of the migration token is populated here. + * `previousDpc` (*type:* `String.t`, *default:* `nil`) - Output only. If this device was migrated from another DPC, this is its package name. Not populated otherwise. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :additionalData => String.t() | nil, + :previousDpc => String.t() | nil + } + + field(:additionalData) + field(:previousDpc) +end + +defimpl Poison.Decoder, for: GoogleApi.AndroidManagement.V1.Model.DpcMigrationInfo do + def decode(value, options) do + GoogleApi.AndroidManagement.V1.Model.DpcMigrationInfo.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.AndroidManagement.V1.Model.DpcMigrationInfo do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_management/lib/google_api/android_management/v1/model/enrollment_complete_event.ex b/clients/android_management/lib/google_api/android_management/v1/model/enrollment_complete_event.ex new file mode 100644 index 0000000000..4640203bda --- /dev/null +++ b/clients/android_management/lib/google_api/android_management/v1/model/enrollment_complete_event.ex @@ -0,0 +1,41 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidManagement.V1.Model.EnrollmentCompleteEvent do + @moduledoc """ + Represents that the device has completed enrollment. User should be in the launcher at this point, device at this point will be compliant and all setup steps have been completed. Intentionally empty. + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, for: GoogleApi.AndroidManagement.V1.Model.EnrollmentCompleteEvent do + def decode(value, options) do + GoogleApi.AndroidManagement.V1.Model.EnrollmentCompleteEvent.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.AndroidManagement.V1.Model.EnrollmentCompleteEvent do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_management/lib/google_api/android_management/v1/model/enterprise.ex b/clients/android_management/lib/google_api/android_management/v1/model/enterprise.ex index 08037dc6c8..c6bdaeba98 100644 --- a/clients/android_management/lib/google_api/android_management/v1/model/enterprise.ex +++ b/clients/android_management/lib/google_api/android_management/v1/model/enterprise.ex @@ -24,7 +24,7 @@ defmodule GoogleApi.AndroidManagement.V1.Model.Enterprise do * `appAutoApprovalEnabled` (*type:* `boolean()`, *default:* `nil`) - Deprecated and unused. * `contactInfo` (*type:* `GoogleApi.AndroidManagement.V1.Model.ContactInfo.t`, *default:* `nil`) - The enterprise contact info of an EMM-managed enterprise. * `enabledNotificationTypes` (*type:* `list(String.t)`, *default:* `nil`) - The types of Google Pub/Sub notifications enabled for the enterprise. - * `enterpriseDisplayName` (*type:* `String.t`, *default:* `nil`) - The name of the enterprise displayed to users. + * `enterpriseDisplayName` (*type:* `String.t`, *default:* `nil`) - The name of the enterprise displayed to users. This field has a maximum length of 100 characters. * `logo` (*type:* `GoogleApi.AndroidManagement.V1.Model.ExternalData.t`, *default:* `nil`) - An image displayed as a logo during device provisioning. Supported types are: image/bmp, image/gif, image/x-ico, image/jpeg, image/png, image/webp, image/vnd.wap.wbmp, image/x-adobe-dng. * `name` (*type:* `String.t`, *default:* `nil`) - The name of the enterprise which is generated by the server during creation, in the form enterprises/{enterpriseId}. * `primaryColor` (*type:* `integer()`, *default:* `nil`) - A color in RGB format that indicates the predominant color to display in the device management app UI. The color components are stored as follows: (red << 16) | (green << 8) | blue, where the value of each component is between 0 and 255, inclusive. diff --git a/clients/android_management/lib/google_api/android_management/v1/model/extension_config.ex b/clients/android_management/lib/google_api/android_management/v1/model/extension_config.ex index 3ec0d42099..5f9c5e5b40 100644 --- a/clients/android_management/lib/google_api/android_management/v1/model/extension_config.ex +++ b/clients/android_management/lib/google_api/android_management/v1/model/extension_config.ex @@ -17,7 +17,7 @@ defmodule GoogleApi.AndroidManagement.V1.Model.ExtensionConfig do @moduledoc """ - Configuration to enable an app as an extension app, with the capability of interacting with Android Device Policy offline. + Configuration to enable an app as an extension app, with the capability of interacting with Android Device Policy offline. For Android versions 13 and above, extension apps are exempt from battery restrictions so will not be placed into the restricted App Standby Bucket (https://developer.android.com/topic/performance/appstandby#restricted-bucket). Extensions apps are also protected against users clearing their data or force-closing the application, although admins can continue to use the clear app data command (https://developer.android.com/management/reference/rest/v1/enterprises.devices/issueCommand#CommandType) on extension apps if needed for Android 13 and above. ## Attributes diff --git a/clients/android_management/lib/google_api/android_management/v1/model/freeze_period.ex b/clients/android_management/lib/google_api/android_management/v1/model/freeze_period.ex index 9a0b97d981..1146f1f71f 100644 --- a/clients/android_management/lib/google_api/android_management/v1/model/freeze_period.ex +++ b/clients/android_management/lib/google_api/android_management/v1/model/freeze_period.ex @@ -17,7 +17,7 @@ defmodule GoogleApi.AndroidManagement.V1.Model.FreezePeriod do @moduledoc """ - A system freeze period. When a device’s clock is within the freeze period, all incoming system updates (including security patches) are blocked and won’t be installed. When a device is outside the freeze period, normal update behavior applies. Leap years are ignored in freeze period calculations, in particular: * If Feb. 29th is set as the start or end date of a freeze period, the freeze period will start or end on Feb. 28th instead. * When a device’s system clock reads Feb. 29th, it’s treated as Feb. 28th. * When calculating the number of days in a freeze period or the time between two freeze periods, Feb. 29th is ignored and not counted as a day.Note: For Freeze Periods to take effect, SystemUpdateType cannot be specified as SYSTEM_UPDATE_TYPE_UNSPECIFIED, because freeze periods require a defined policy to be specified. + A system freeze period. When a device’s clock is within the freeze period, all incoming system updates (including security patches) are blocked and won’t be installed.When the device is outside any set freeze periods, the normal policy behavior (automatic, windowed, or postponed) applies.Leap years are ignored in freeze period calculations, in particular: If Feb. 29th is set as the start or end date of a freeze period, the freeze period will start or end on Feb. 28th instead. When a device’s system clock reads Feb. 29th, it’s treated as Feb. 28th. When calculating the number of days in a freeze period or the time between two freeze periods, Feb. 29th is ignored and not counted as a day.Note: For Freeze Periods to take effect, SystemUpdateType cannot be specified as SYSTEM_UPDATE_TYPE_UNSPECIFIED, because freeze periods require a defined policy to be specified. ## Attributes diff --git a/clients/android_management/lib/google_api/android_management/v1/model/install_constraint.ex b/clients/android_management/lib/google_api/android_management/v1/model/install_constraint.ex new file mode 100644 index 0000000000..4dc7dd0c17 --- /dev/null +++ b/clients/android_management/lib/google_api/android_management/v1/model/install_constraint.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidManagement.V1.Model.InstallConstraint do + @moduledoc """ + Amongst apps with InstallType set to: FORCE_INSTALLED PREINSTALLEDthis defines a set of restrictions for the app installation. At least one of the fields must be set. When multiple fields are set, then all the constraints need to be satisfied for the app to be installed. + + ## Attributes + + * `chargingConstraint` (*type:* `String.t`, *default:* `nil`) - Optional. Charging constraint. + * `deviceIdleConstraint` (*type:* `String.t`, *default:* `nil`) - Optional. Device idle constraint. + * `networkTypeConstraint` (*type:* `String.t`, *default:* `nil`) - Optional. Network type constraint. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :chargingConstraint => String.t() | nil, + :deviceIdleConstraint => String.t() | nil, + :networkTypeConstraint => String.t() | nil + } + + field(:chargingConstraint) + field(:deviceIdleConstraint) + field(:networkTypeConstraint) +end + +defimpl Poison.Decoder, for: GoogleApi.AndroidManagement.V1.Model.InstallConstraint do + def decode(value, options) do + GoogleApi.AndroidManagement.V1.Model.InstallConstraint.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.AndroidManagement.V1.Model.InstallConstraint do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_management/lib/google_api/android_management/v1/model/list_migration_tokens_response.ex b/clients/android_management/lib/google_api/android_management/v1/model/list_migration_tokens_response.ex new file mode 100644 index 0000000000..b6a4a742d0 --- /dev/null +++ b/clients/android_management/lib/google_api/android_management/v1/model/list_migration_tokens_response.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidManagement.V1.Model.ListMigrationTokensResponse do + @moduledoc """ + Response to a request to list migration tokens for a given enterprise. + + ## Attributes + + * `migrationTokens` (*type:* `list(GoogleApi.AndroidManagement.V1.Model.MigrationToken.t)`, *default:* `nil`) - The migration tokens from the specified enterprise. + * `nextPageToken` (*type:* `String.t`, *default:* `nil`) - A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :migrationTokens => list(GoogleApi.AndroidManagement.V1.Model.MigrationToken.t()) | nil, + :nextPageToken => String.t() | nil + } + + field(:migrationTokens, as: GoogleApi.AndroidManagement.V1.Model.MigrationToken, type: :list) + field(:nextPageToken) +end + +defimpl Poison.Decoder, for: GoogleApi.AndroidManagement.V1.Model.ListMigrationTokensResponse do + def decode(value, options) do + GoogleApi.AndroidManagement.V1.Model.ListMigrationTokensResponse.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.AndroidManagement.V1.Model.ListMigrationTokensResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_management/lib/google_api/android_management/v1/model/location.ex b/clients/android_management/lib/google_api/android_management/v1/model/location.ex new file mode 100644 index 0000000000..13754a1d39 --- /dev/null +++ b/clients/android_management/lib/google_api/android_management/v1/model/location.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidManagement.V1.Model.Location do + @moduledoc """ + The device location containing the latitude and longitude. + + ## Attributes + + * `latitude` (*type:* `float()`, *default:* `nil`) - The latitude position of the location + * `longitude` (*type:* `float()`, *default:* `nil`) - The longitude position of the location + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :latitude => float() | nil, + :longitude => float() | nil + } + + field(:latitude) + field(:longitude) +end + +defimpl Poison.Decoder, for: GoogleApi.AndroidManagement.V1.Model.Location do + def decode(value, options) do + GoogleApi.AndroidManagement.V1.Model.Location.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.AndroidManagement.V1.Model.Location do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_management/lib/google_api/android_management/v1/model/lost_mode_location_event.ex b/clients/android_management/lib/google_api/android_management/v1/model/lost_mode_location_event.ex new file mode 100644 index 0000000000..c258be44a9 --- /dev/null +++ b/clients/android_management/lib/google_api/android_management/v1/model/lost_mode_location_event.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidManagement.V1.Model.LostModeLocationEvent do + @moduledoc """ + A lost mode event containing the device location and battery level as a percentage. + + ## Attributes + + * `batteryLevel` (*type:* `integer()`, *default:* `nil`) - The battery level as a number between 0 and 100 inclusive + * `location` (*type:* `GoogleApi.AndroidManagement.V1.Model.Location.t`, *default:* `nil`) - The device location + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :batteryLevel => integer() | nil, + :location => GoogleApi.AndroidManagement.V1.Model.Location.t() | nil + } + + field(:batteryLevel) + field(:location, as: GoogleApi.AndroidManagement.V1.Model.Location) +end + +defimpl Poison.Decoder, for: GoogleApi.AndroidManagement.V1.Model.LostModeLocationEvent do + def decode(value, options) do + GoogleApi.AndroidManagement.V1.Model.LostModeLocationEvent.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.AndroidManagement.V1.Model.LostModeLocationEvent do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_management/lib/google_api/android_management/v1/model/lost_mode_outgoing_phone_call_event.ex b/clients/android_management/lib/google_api/android_management/v1/model/lost_mode_outgoing_phone_call_event.ex new file mode 100644 index 0000000000..ee109fe831 --- /dev/null +++ b/clients/android_management/lib/google_api/android_management/v1/model/lost_mode_outgoing_phone_call_event.ex @@ -0,0 +1,41 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidManagement.V1.Model.LostModeOutgoingPhoneCallEvent do + @moduledoc """ + An event indicating an outgoing phone call has been made when a device is in lost mode. Intentionally empty. + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, for: GoogleApi.AndroidManagement.V1.Model.LostModeOutgoingPhoneCallEvent do + def decode(value, options) do + GoogleApi.AndroidManagement.V1.Model.LostModeOutgoingPhoneCallEvent.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.AndroidManagement.V1.Model.LostModeOutgoingPhoneCallEvent do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_management/lib/google_api/android_management/v1/model/memory_event.ex b/clients/android_management/lib/google_api/android_management/v1/model/memory_event.ex index 69cd9b95da..554dde7e35 100644 --- a/clients/android_management/lib/google_api/android_management/v1/model/memory_event.ex +++ b/clients/android_management/lib/google_api/android_management/v1/model/memory_event.ex @@ -17,7 +17,7 @@ defmodule GoogleApi.AndroidManagement.V1.Model.MemoryEvent do @moduledoc """ - An event related to memory and storage measurements. + An event related to memory and storage measurements.To distinguish between new and old events, we recommend using the createTime field. ## Attributes diff --git a/clients/android_management/lib/google_api/android_management/v1/model/migration_token.ex b/clients/android_management/lib/google_api/android_management/v1/model/migration_token.ex new file mode 100644 index 0000000000..b0bd38a188 --- /dev/null +++ b/clients/android_management/lib/google_api/android_management/v1/model/migration_token.ex @@ -0,0 +1,76 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidManagement.V1.Model.MigrationToken do + @moduledoc """ + A token to initiate the migration of a device from being managed by a third-party DPC to being managed by Android Management API. A migration token is valid only for a single device. + + ## Attributes + + * `additionalData` (*type:* `String.t`, *default:* `nil`) - Immutable. Optional EMM-specified additional data. Once the device is migrated this will be populated in the migrationAdditionalData field of the Device resource. This must be at most 1024 characters. + * `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Time when this migration token was created. + * `device` (*type:* `String.t`, *default:* `nil`) - Output only. Once this migration token is used to migrate a device, the name of the resulting Device resource will be populated here, in the form enterprises/{enterprise}/devices/{device}. + * `deviceId` (*type:* `String.t`, *default:* `nil`) - Required. Immutable. The id of the device, as in the Play EMM API. This corresponds to the deviceId parameter in Play EMM API's Devices.get (https://developers.google.com/android/work/play/emm-api/v1/devices/get#parameters) call. + * `expireTime` (*type:* `DateTime.t`, *default:* `nil`) - Immutable. The time when this migration token expires. This can be at most seven days from the time of creation. The migration token is deleted seven days after it expires. + * `managementMode` (*type:* `String.t`, *default:* `nil`) - Required. Immutable. The management mode of the device or profile being migrated. + * `name` (*type:* `String.t`, *default:* `nil`) - Output only. The name of the migration token, which is generated by the server during creation, in the form enterprises/{enterprise}/migrationTokens/{migration_token}. + * `policy` (*type:* `String.t`, *default:* `nil`) - Required. Immutable. The name of the policy initially applied to the enrolled device, in the form enterprises/{enterprise}/policies/{policy}. + * `ttl` (*type:* `String.t`, *default:* `nil`) - Input only. The time that this migration token is valid for. This is input-only, and for returning a migration token the server will populate the expireTime field. This can be at most seven days. The default is seven days. + * `userId` (*type:* `String.t`, *default:* `nil`) - Required. Immutable. The user id of the Managed Google Play account on the device, as in the Play EMM API. This corresponds to the userId parameter in Play EMM API's Devices.get (https://developers.google.com/android/work/play/emm-api/v1/devices/get#parameters) call. + * `value` (*type:* `String.t`, *default:* `nil`) - Output only. The value of the migration token. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :additionalData => String.t() | nil, + :createTime => DateTime.t() | nil, + :device => String.t() | nil, + :deviceId => String.t() | nil, + :expireTime => DateTime.t() | nil, + :managementMode => String.t() | nil, + :name => String.t() | nil, + :policy => String.t() | nil, + :ttl => String.t() | nil, + :userId => String.t() | nil, + :value => String.t() | nil + } + + field(:additionalData) + field(:createTime, as: DateTime) + field(:device) + field(:deviceId) + field(:expireTime, as: DateTime) + field(:managementMode) + field(:name) + field(:policy) + field(:ttl) + field(:userId) + field(:value) +end + +defimpl Poison.Decoder, for: GoogleApi.AndroidManagement.V1.Model.MigrationToken do + def decode(value, options) do + GoogleApi.AndroidManagement.V1.Model.MigrationToken.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.AndroidManagement.V1.Model.MigrationToken do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_management/lib/google_api/android_management/v1/model/operation.ex b/clients/android_management/lib/google_api/android_management/v1/model/operation.ex index a3451db48e..612af09d3c 100644 --- a/clients/android_management/lib/google_api/android_management/v1/model/operation.ex +++ b/clients/android_management/lib/google_api/android_management/v1/model/operation.ex @@ -25,7 +25,7 @@ defmodule GoogleApi.AndroidManagement.V1.Model.Operation do * `error` (*type:* `GoogleApi.AndroidManagement.V1.Model.Status.t`, *default:* `nil`) - The error result of the operation in case of failure or cancellation. * `metadata` (*type:* `map()`, *default:* `nil`) - Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any. * `name` (*type:* `String.t`, *default:* `nil`) - The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the name should be a resource name ending with operations/{unique_id}. - * `response` (*type:* `map()`, *default:* `nil`) - The normal response of the operation in case of success. If the original method returns no data on success, such as Delete, the response is google.protobuf.Empty. If the original method is standard Get/Create/Update, the response should be the resource. For other methods, the response should have the type XxxResponse, where Xxx is the original method name. For example, if the original method name is TakeSnapshot(), the inferred response type is TakeSnapshotResponse. + * `response` (*type:* `map()`, *default:* `nil`) - The normal, successful response of the operation. If the original method returns no data on success, such as Delete, the response is google.protobuf.Empty. If the original method is standard Get/Create/Update, the response should be the resource. For other methods, the response should have the type XxxResponse, where Xxx is the original method name. For example, if the original method name is TakeSnapshot(), the inferred response type is TakeSnapshotResponse. """ use GoogleApi.Gax.ModelBase diff --git a/clients/android_management/lib/google_api/android_management/v1/model/personal_usage_policies.ex b/clients/android_management/lib/google_api/android_management/v1/model/personal_usage_policies.ex index 8e01067b37..0e4a663cf0 100644 --- a/clients/android_management/lib/google_api/android_management/v1/model/personal_usage_policies.ex +++ b/clients/android_management/lib/google_api/android_management/v1/model/personal_usage_policies.ex @@ -23,7 +23,7 @@ defmodule GoogleApi.AndroidManagement.V1.Model.PersonalUsagePolicies do * `accountTypesWithManagementDisabled` (*type:* `list(String.t)`, *default:* `nil`) - Account types that can't be managed by the user. * `cameraDisabled` (*type:* `boolean()`, *default:* `nil`) - If true, the camera is disabled on the personal profile. - * `maxDaysWithWorkOff` (*type:* `integer()`, *default:* `nil`) - Controls how long the work profile can stay off. The duration must be at least 3 days. + * `maxDaysWithWorkOff` (*type:* `integer()`, *default:* `nil`) - Controls how long the work profile can stay off. The minimum duration must be at least 3 days. Other details are as follows: - If the duration is set to 0, the feature is turned off. - If the duration is set to a value smaller than the minimum duration, the feature returns an error. *Note:* If you want to avoid personal profiles being suspended during long periods of off-time, you can temporarily set a large value for this parameter. * `personalApplications` (*type:* `list(GoogleApi.AndroidManagement.V1.Model.PersonalApplicationPolicy.t)`, *default:* `nil`) - Policy applied to applications in the personal profile. * `personalPlayStoreMode` (*type:* `String.t`, *default:* `nil`) - Used together with personalApplications to control how apps in the personal profile are allowed or blocked. * `screenCaptureDisabled` (*type:* `boolean()`, *default:* `nil`) - If true, screen capture is disabled for all users. diff --git a/clients/android_management/lib/google_api/android_management/v1/model/policy.ex b/clients/android_management/lib/google_api/android_management/v1/model/policy.ex index a65a72e3c8..26dbd5583f 100644 --- a/clients/android_management/lib/google_api/android_management/v1/model/policy.ex +++ b/clients/android_management/lib/google_api/android_management/v1/model/policy.ex @@ -23,7 +23,7 @@ defmodule GoogleApi.AndroidManagement.V1.Model.Policy do * `keyguardDisabledFeatures` (*type:* `list(String.t)`, *default:* `nil`) - Disabled keyguard customizations, such as widgets. * `cameraDisabled` (*type:* `boolean()`, *default:* `nil`) - If camera_access is set to any value other than CAMERA_ACCESS_UNSPECIFIED, this has no effect. Otherwise this field controls whether cameras are disabled: If true, all cameras are disabled, otherwise they are available. For fully managed devices this field applies for all apps on the device. For work profiles, this field applies only to apps in the work profile, and the camera access of apps outside the work profile is unaffected. - * `wifiConfigDisabled` (*type:* `boolean()`, *default:* `nil`) - Whether configuring Wi-Fi access points is disabled. Note: If a network connection can't be made at boot time and configuring Wi-Fi is disabled then network escape hatch will be shown in order to refresh the device policy (see networkEscapeHatchEnabled). + * `wifiConfigDisabled` (*type:* `boolean()`, *default:* `nil`) - Whether configuring Wi-Fi networks is disabled. Supported on fully managed devices and work profiles on company-owned devices. For fully managed devices, setting this to true removes all configured networks and retains only the networks configured using openNetworkConfiguration. For work profiles on company-owned devices, existing configured networks are not affected and the user is not allowed to add, remove, or modify Wi-Fi networks. If configureWifi is set to anything other than CONFIGURE_WIFI_UNSPECIFIED, this setting is ignored. Note: If a network connection can't be made at boot time and configuring Wi-Fi is disabled then network escape hatch will be shown in order to refresh the device policy (see networkEscapeHatchEnabled). * `personalUsagePolicies` (*type:* `GoogleApi.AndroidManagement.V1.Model.PersonalUsagePolicies.t`, *default:* `nil`) - Policies managing personal usage on a company-owned device. * `skipFirstUseHintsEnabled` (*type:* `boolean()`, *default:* `nil`) - Flag to skip hints on the first use. Enterprise admin can enable the system recommendation for apps to skip their user tutorial and other introductory hints on first start-up. * `stayOnPluggedModes` (*type:* `list(String.t)`, *default:* `nil`) - The battery plugged in modes for which the device stays on. When using this setting, it is recommended to clear maximum_time_to_lock so that the device doesn't lock itself while it stays on. @@ -37,7 +37,7 @@ defmodule GoogleApi.AndroidManagement.V1.Model.Policy do * `addUserDisabled` (*type:* `boolean()`, *default:* `nil`) - Whether adding new users and profiles is disabled. * `setupActions` (*type:* `list(GoogleApi.AndroidManagement.V1.Model.SetupAction.t)`, *default:* `nil`) - Action to take during the setup process. At most one action may be specified. * `statusReportingSettings` (*type:* `GoogleApi.AndroidManagement.V1.Model.StatusReportingSettings.t`, *default:* `nil`) - Status reporting settings - * `tetheringConfigDisabled` (*type:* `boolean()`, *default:* `nil`) - Whether configuring tethering and portable hotspots is disabled. + * `tetheringConfigDisabled` (*type:* `boolean()`, *default:* `nil`) - Whether configuring tethering and portable hotspots is disabled. If tetheringSettings is set to anything other than TETHERING_SETTINGS_UNSPECIFIED, this setting is ignored. * `outgoingBeamDisabled` (*type:* `boolean()`, *default:* `nil`) - Whether using NFC to beam data from apps is disabled. * `usageLog` (*type:* `GoogleApi.AndroidManagement.V1.Model.UsageLog.t`, *default:* `nil`) - Configuration of device activity logging. * `permittedInputMethods` (*type:* `GoogleApi.AndroidManagement.V1.Model.PackageNameList.t`, *default:* `nil`) - If present, only the input methods provided by packages in this list are permitted. If this field is present, but the list is empty, then only system input methods are permitted. @@ -45,14 +45,15 @@ defmodule GoogleApi.AndroidManagement.V1.Model.Policy do * `persistentPreferredActivities` (*type:* `list(GoogleApi.AndroidManagement.V1.Model.PersistentPreferredActivity.t)`, *default:* `nil`) - Default intent handler activities. * `mountPhysicalMediaDisabled` (*type:* `boolean()`, *default:* `nil`) - Whether the user mounting physical external media is disabled. * `locationMode` (*type:* `String.t`, *default:* `nil`) - The degree of location detection enabled. - * `choosePrivateKeyRules` (*type:* `list(GoogleApi.AndroidManagement.V1.Model.ChoosePrivateKeyRule.t)`, *default:* `nil`) - Rules for determining apps' access to private keys. See ChoosePrivateKeyRule for details. + * `choosePrivateKeyRules` (*type:* `list(GoogleApi.AndroidManagement.V1.Model.ChoosePrivateKeyRule.t)`, *default:* `nil`) - Rules for determining apps' access to private keys. See ChoosePrivateKeyRule for details. This must be empty if any application has CERT_SELECTION delegation scope. * `complianceRules` (*type:* `list(GoogleApi.AndroidManagement.V1.Model.ComplianceRule.t)`, *default:* `nil`) - Rules declaring which mitigating actions to take when a device is not compliant with its policy. When the conditions for multiple rules are satisfied, all of the mitigating actions for the rules are taken. There is a maximum limit of 100 rules. Use policy enforcement rules instead. * `screenCaptureDisabled` (*type:* `boolean()`, *default:* `nil`) - Whether screen capture is disabled. * `alwaysOnVpnPackage` (*type:* `GoogleApi.AndroidManagement.V1.Model.AlwaysOnVpnPackage.t`, *default:* `nil`) - Configuration for an always-on VPN connection. Use with vpn_config_disabled to prevent modification of this setting. * `longSupportMessage` (*type:* `GoogleApi.AndroidManagement.V1.Model.UserFacingMessage.t`, *default:* `nil`) - A message displayed to the user in the device administators settings screen. - * `androidDevicePolicyTracks` (*type:* `list(String.t)`, *default:* `nil`) - The app tracks for Android Device Policy the device can access. The device receives the latest version among all accessible tracks. If no tracks are specified, then the device only uses the production track. + * `androidDevicePolicyTracks` (*type:* `list(String.t)`, *default:* `nil`) - This setting is not supported. Any value is ignored. * `crossProfilePolicies` (*type:* `GoogleApi.AndroidManagement.V1.Model.CrossProfilePolicies.t`, *default:* `nil`) - Cross-profile policies applied on the device. * `wifiConfigsLockdownEnabled` (*type:* `boolean()`, *default:* `nil`) - DEPRECATED - Use wifi_config_disabled. + * `deviceConnectivityManagement` (*type:* `GoogleApi.AndroidManagement.V1.Model.DeviceConnectivityManagement.t`, *default:* `nil`) - Covers controls for device connectivity such as Wi-Fi, USB data access, keyboard/mouse connections, and more. * `minimumApiLevel` (*type:* `integer()`, *default:* `nil`) - The minimum allowed Android API level. * `installUnknownSourcesAllowed` (*type:* `boolean()`, *default:* `nil`) - This field has no effect. * `smsDisabled` (*type:* `boolean()`, *default:* `nil`) - Whether sending and receiving SMS messages is disabled. @@ -77,7 +78,7 @@ defmodule GoogleApi.AndroidManagement.V1.Model.Policy do * `setUserIconDisabled` (*type:* `boolean()`, *default:* `nil`) - Whether changing the user icon is disabled. * `usbMassStorageEnabled` (*type:* `boolean()`, *default:* `nil`) - Whether USB storage is enabled. Deprecated. * `ensureVerifyAppsEnabled` (*type:* `boolean()`, *default:* `nil`) - Whether app verification is force-enabled. - * `advancedSecurityOverrides` (*type:* `GoogleApi.AndroidManagement.V1.Model.AdvancedSecurityOverrides.t`, *default:* `nil`) - Security policies set to secure values by default. To maintain the security posture of a device, we don't recommend overriding any of the default values. + * `advancedSecurityOverrides` (*type:* `GoogleApi.AndroidManagement.V1.Model.AdvancedSecurityOverrides.t`, *default:* `nil`) - Advanced security settings. In most cases, setting these is not needed. * `bluetoothDisabled` (*type:* `boolean()`, *default:* `nil`) - Whether bluetooth is disabled. Prefer this setting over bluetooth_config_disabled because bluetooth_config_disabled can be bypassed by the user. * `policyEnforcementRules` (*type:* `list(GoogleApi.AndroidManagement.V1.Model.PolicyEnforcementRule.t)`, *default:* `nil`) - Rules that define the behavior when a particular policy can not be applied on device * `vpnConfigDisabled` (*type:* `boolean()`, *default:* `nil`) - Whether configuring VPN is disabled. @@ -86,22 +87,25 @@ defmodule GoogleApi.AndroidManagement.V1.Model.Policy do * `uninstallAppsDisabled` (*type:* `boolean()`, *default:* `nil`) - Whether user uninstallation of applications is disabled. This prevents apps from being uninstalled, even those removed using applications * `openNetworkConfiguration` (*type:* `map()`, *default:* `nil`) - Network configuration for the device. See configure networks for more information. * `systemUpdate` (*type:* `GoogleApi.AndroidManagement.V1.Model.SystemUpdate.t`, *default:* `nil`) - The system update policy, which controls how OS updates are applied. If the update type is WINDOWED, the update window will automatically apply to Play app updates as well. - * `appAutoUpdatePolicy` (*type:* `String.t`, *default:* `nil`) - Deprecated. Use autoUpdateMode instead.When autoUpdateMode is set to AUTO_UPDATE_POSTPONED or AUTO_UPDATE_HIGH_PRIORITY, this field has no effect.The app auto update policy, which controls when automatic app updates can be applied. + * `appAutoUpdatePolicy` (*type:* `String.t`, *default:* `nil`) - Recommended alternative: autoUpdateMode which is set per app, provides greater flexibility around update frequency.When autoUpdateMode is set to AUTO_UPDATE_POSTPONED or AUTO_UPDATE_HIGH_PRIORITY, this field has no effect.The app auto update policy, which controls when automatic app updates can be applied. * `cameraAccess` (*type:* `String.t`, *default:* `nil`) - Controls the use of the camera and whether the user has access to the camera access toggle. * `permissionGrants` (*type:* `list(GoogleApi.AndroidManagement.V1.Model.PermissionGrant.t)`, *default:* `nil`) - Explicit permission or group grants or denials for all apps. These values override the default_permission_policy. - * `applications` (*type:* `list(GoogleApi.AndroidManagement.V1.Model.ApplicationPolicy.t)`, *default:* `nil`) - Policy applied to apps. + * `deviceRadioState` (*type:* `GoogleApi.AndroidManagement.V1.Model.DeviceRadioState.t`, *default:* `nil`) - Covers controls for radio state such as Wi-Fi, bluetooth, and more. + * `applications` (*type:* `list(GoogleApi.AndroidManagement.V1.Model.ApplicationPolicy.t)`, *default:* `nil`) - Policy applied to apps. This can have at most 3,000 elements. * `statusBarDisabled` (*type:* `boolean()`, *default:* `nil`) - Whether the status bar is disabled. This disables notifications, quick settings, and other screen overlays that allow escape from full-screen mode. DEPRECATED. To disable the status bar on a kiosk device, use InstallType KIOSK or kioskCustomLauncherEnabled. + * `credentialProviderPolicyDefault` (*type:* `String.t`, *default:* `nil`) - Controls which apps are allowed to act as credential providers on Android 14 and above. These apps store credentials, see this (https://developer.android.com/training/sign-in/passkeys) and this (https://developer.android.com/reference/androidx/credentials/CredentialManager) for details. See also credentialProviderPolicy. * `kioskCustomLauncherEnabled` (*type:* `boolean()`, *default:* `nil`) - Whether the kiosk custom launcher is enabled. This replaces the home screen with a launcher that locks down the device to the apps installed via the applications setting. Apps appear on a single page in alphabetical order. Use kioskCustomization to further configure the kiosk device behavior. * `preferentialNetworkService` (*type:* `String.t`, *default:* `nil`) - Controls whether preferential network service is enabled on the work profile. For example, an organization may have an agreement with a carrier that all of the work data from its employees' devices will be sent via a network service dedicated for enterprise use. An example of a supported preferential network service is the enterprise slice on 5G networks. This has no effect on fully managed devices. * `passwordPolicies` (*type:* `list(GoogleApi.AndroidManagement.V1.Model.PasswordRequirements.t)`, *default:* `nil`) - Password requirement policies. Different policies can be set for work profile or fully managed devices by setting the password_scope field in the policy. * `cellBroadcastsConfigDisabled` (*type:* `boolean()`, *default:* `nil`) - Whether configuring cell broadcast is disabled. * `unmuteMicrophoneDisabled` (*type:* `boolean()`, *default:* `nil`) - If microphone_access is set to any value other than MICROPHONE_ACCESS_UNSPECIFIED, this has no effect. Otherwise this field controls whether microphones are disabled: If true, all microphones are disabled, otherwise they are available. This is available only on fully managed devices. + * `printingPolicy` (*type:* `String.t`, *default:* `nil`) - Optional. Controls whether printing is allowed. This is supported on devices running Android 9 and above. . * `frpAdminEmails` (*type:* `list(String.t)`, *default:* `nil`) - Email addresses of device administrators for factory reset protection. When the device is factory reset, it will require one of these admins to log in with the Google account email and password to unlock the device. If no admins are specified, the device won't provide factory reset protection. - * `networkEscapeHatchEnabled` (*type:* `boolean()`, *default:* `nil`) - Whether the network escape hatch is enabled. If a network connection can't be made at boot time, the escape hatch prompts the user to temporarily connect to a network in order to refresh the device policy. After applying policy, the temporary network will be forgotten and the device will continue booting. This prevents being unable to connect to a network if there is no suitable network in the last policy and the device boots into an app in lock task mode, or the user is otherwise unable to reach device settings.Note: Setting wifiConfigDisabled to true will override this setting under specific circumstances. Please see wifiConfigDisabled for further details. + * `networkEscapeHatchEnabled` (*type:* `boolean()`, *default:* `nil`) - Whether the network escape hatch is enabled. If a network connection can't be made at boot time, the escape hatch prompts the user to temporarily connect to a network in order to refresh the device policy. After applying policy, the temporary network will be forgotten and the device will continue booting. This prevents being unable to connect to a network if there is no suitable network in the last policy and the device boots into an app in lock task mode, or the user is otherwise unable to reach device settings.Note: Setting wifiConfigDisabled to true will override this setting under specific circumstances. Please see wifiConfigDisabled for further details. Setting configureWifi to DISALLOW_CONFIGURING_WIFI will override this setting under specific circumstances. Please see DISALLOW_CONFIGURING_WIFI for further details. * `recommendedGlobalProxy` (*type:* `GoogleApi.AndroidManagement.V1.Model.ProxyInfo.t`, *default:* `nil`) - The network-independent global HTTP proxy. Typically proxies should be configured per-network in open_network_configuration. However for unusual configurations like general internal filtering a global HTTP proxy may be useful. If the proxy is not accessible, network access may break. The global proxy is only a recommendation and some apps may ignore it. * `safeBootDisabled` (*type:* `boolean()`, *default:* `nil`) - Whether rebooting the device into safe boot is disabled. * `blockApplicationsEnabled` (*type:* `boolean()`, *default:* `nil`) - Whether applications other than the ones configured in applications are blocked from being installed. When set, applications that were installed under a previous policy but no longer appear in the policy are automatically uninstalled. - * `privateKeySelectionEnabled` (*type:* `boolean()`, *default:* `nil`) - Allows showing UI on a device for a user to choose a private key alias if there are no matching rules in ChoosePrivateKeyRules. For devices below Android P, setting this may leave enterprise keys vulnerable. + * `privateKeySelectionEnabled` (*type:* `boolean()`, *default:* `nil`) - Allows showing UI on a device for a user to choose a private key alias if there are no matching rules in ChoosePrivateKeyRules. For devices below Android P, setting this may leave enterprise keys vulnerable. This value will have no effect if any application has CERT_SELECTION delegation scope. * `mobileNetworksConfigDisabled` (*type:* `boolean()`, *default:* `nil`) - Whether configuring mobile networks is disabled. * `permittedAccessibilityServices` (*type:* `GoogleApi.AndroidManagement.V1.Model.PackageNameList.t`, *default:* `nil`) - Specifies permitted accessibility services. If the field is not set, any accessibility service can be used. If the field is set, only the accessibility services in this list and the system's built-in accessibility service can be used. In particular, if the field is set to empty, only the system's built-in accessibility servicess can be used. This can be set on fully managed devices and on work profiles. When applied to a work profile, this affects both the personal profile and the work profile. * `modifyAccountsDisabled` (*type:* `boolean()`, *default:* `nil`) - Whether adding or removing accounts is disabled. @@ -155,6 +159,8 @@ defmodule GoogleApi.AndroidManagement.V1.Model.Policy do :crossProfilePolicies => GoogleApi.AndroidManagement.V1.Model.CrossProfilePolicies.t() | nil, :wifiConfigsLockdownEnabled => boolean() | nil, + :deviceConnectivityManagement => + GoogleApi.AndroidManagement.V1.Model.DeviceConnectivityManagement.t() | nil, :minimumApiLevel => integer() | nil, :installUnknownSourcesAllowed => boolean() | nil, :smsDisabled => boolean() | nil, @@ -196,14 +202,17 @@ defmodule GoogleApi.AndroidManagement.V1.Model.Policy do :cameraAccess => String.t() | nil, :permissionGrants => list(GoogleApi.AndroidManagement.V1.Model.PermissionGrant.t()) | nil, + :deviceRadioState => GoogleApi.AndroidManagement.V1.Model.DeviceRadioState.t() | nil, :applications => list(GoogleApi.AndroidManagement.V1.Model.ApplicationPolicy.t()) | nil, :statusBarDisabled => boolean() | nil, + :credentialProviderPolicyDefault => String.t() | nil, :kioskCustomLauncherEnabled => boolean() | nil, :preferentialNetworkService => String.t() | nil, :passwordPolicies => list(GoogleApi.AndroidManagement.V1.Model.PasswordRequirements.t()) | nil, :cellBroadcastsConfigDisabled => boolean() | nil, :unmuteMicrophoneDisabled => boolean() | nil, + :printingPolicy => String.t() | nil, :frpAdminEmails => list(String.t()) | nil, :networkEscapeHatchEnabled => boolean() | nil, :recommendedGlobalProxy => GoogleApi.AndroidManagement.V1.Model.ProxyInfo.t() | nil, @@ -270,6 +279,11 @@ defmodule GoogleApi.AndroidManagement.V1.Model.Policy do field(:androidDevicePolicyTracks, type: :list) field(:crossProfilePolicies, as: GoogleApi.AndroidManagement.V1.Model.CrossProfilePolicies) field(:wifiConfigsLockdownEnabled) + + field(:deviceConnectivityManagement, + as: GoogleApi.AndroidManagement.V1.Model.DeviceConnectivityManagement + ) + field(:minimumApiLevel) field(:installUnknownSourcesAllowed) field(:smsDisabled) @@ -315,8 +329,10 @@ defmodule GoogleApi.AndroidManagement.V1.Model.Policy do field(:appAutoUpdatePolicy) field(:cameraAccess) field(:permissionGrants, as: GoogleApi.AndroidManagement.V1.Model.PermissionGrant, type: :list) + field(:deviceRadioState, as: GoogleApi.AndroidManagement.V1.Model.DeviceRadioState) field(:applications, as: GoogleApi.AndroidManagement.V1.Model.ApplicationPolicy, type: :list) field(:statusBarDisabled) + field(:credentialProviderPolicyDefault) field(:kioskCustomLauncherEnabled) field(:preferentialNetworkService) @@ -327,6 +343,7 @@ defmodule GoogleApi.AndroidManagement.V1.Model.Policy do field(:cellBroadcastsConfigDisabled) field(:unmuteMicrophoneDisabled) + field(:printingPolicy) field(:frpAdminEmails, type: :list) field(:networkEscapeHatchEnabled) field(:recommendedGlobalProxy, as: GoogleApi.AndroidManagement.V1.Model.ProxyInfo) diff --git a/clients/android_management/lib/google_api/android_management/v1/model/policy_enforcement_rule.ex b/clients/android_management/lib/google_api/android_management/v1/model/policy_enforcement_rule.ex index ffa172567d..b25e9f83b1 100644 --- a/clients/android_management/lib/google_api/android_management/v1/model/policy_enforcement_rule.ex +++ b/clients/android_management/lib/google_api/android_management/v1/model/policy_enforcement_rule.ex @@ -17,7 +17,7 @@ defmodule GoogleApi.AndroidManagement.V1.Model.PolicyEnforcementRule do @moduledoc """ - A rule that defines the actions to take if a device or work profile is not compliant with the policy specified in settingName. + A rule that defines the actions to take if a device or work profile is not compliant with the policy specified in settingName. In the case of multiple matching or multiple triggered enforcement rules, a merge will occur with the most severe action being taken. However, all triggered rules are still kept track of: this includes initial trigger time and all associated non-compliance details. In the situation where the most severe enforcement rule is satisfied, the next most appropriate action is applied. ## Attributes diff --git a/clients/android_management/lib/google_api/android_management/v1/model/provisioning_info.ex b/clients/android_management/lib/google_api/android_management/v1/model/provisioning_info.ex new file mode 100644 index 0000000000..8cd3be2b28 --- /dev/null +++ b/clients/android_management/lib/google_api/android_management/v1/model/provisioning_info.ex @@ -0,0 +1,64 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidManagement.V1.Model.ProvisioningInfo do + @moduledoc """ + Information about a device that is available during setup. + + ## Attributes + + * `apiLevel` (*type:* `integer()`, *default:* `nil`) - The API level of the Android platform version running on the device. + * `brand` (*type:* `String.t`, *default:* `nil`) - The brand of the device. For example, Google. + * `enterprise` (*type:* `String.t`, *default:* `nil`) - The name of the enterprise in the form enterprises/{enterprise}. + * `managementMode` (*type:* `String.t`, *default:* `nil`) - The management mode of the device or profile. + * `model` (*type:* `String.t`, *default:* `nil`) - The model of the device. For example, Asus Nexus 7. + * `name` (*type:* `String.t`, *default:* `nil`) - The name of this resource in the form provisioningInfo/{provisioning_info}. + * `ownership` (*type:* `String.t`, *default:* `nil`) - Ownership of the managed device. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :apiLevel => integer() | nil, + :brand => String.t() | nil, + :enterprise => String.t() | nil, + :managementMode => String.t() | nil, + :model => String.t() | nil, + :name => String.t() | nil, + :ownership => String.t() | nil + } + + field(:apiLevel) + field(:brand) + field(:enterprise) + field(:managementMode) + field(:model) + field(:name) + field(:ownership) +end + +defimpl Poison.Decoder, for: GoogleApi.AndroidManagement.V1.Model.ProvisioningInfo do + def decode(value, options) do + GoogleApi.AndroidManagement.V1.Model.ProvisioningInfo.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.AndroidManagement.V1.Model.ProvisioningInfo do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_management/lib/google_api/android_management/v1/model/setup_action.ex b/clients/android_management/lib/google_api/android_management/v1/model/setup_action.ex index 469f0b91ae..7f8bcc3d6e 100644 --- a/clients/android_management/lib/google_api/android_management/v1/model/setup_action.ex +++ b/clients/android_management/lib/google_api/android_management/v1/model/setup_action.ex @@ -22,7 +22,7 @@ defmodule GoogleApi.AndroidManagement.V1.Model.SetupAction do ## Attributes * `description` (*type:* `GoogleApi.AndroidManagement.V1.Model.UserFacingMessage.t`, *default:* `nil`) - Description of this action. - * `launchApp` (*type:* `GoogleApi.AndroidManagement.V1.Model.LaunchAppAction.t`, *default:* `nil`) - An action to launch an app. The app will be launched with an intent containing an extra with key com.google.android.apps.work.clouddpc.EXTRA_LAUNCHED_AS_SETUP_ACTION set to the boolean value true to indicate that this is a setup action flow. + * `launchApp` (*type:* `GoogleApi.AndroidManagement.V1.Model.LaunchAppAction.t`, *default:* `nil`) - An action to launch an app. The app will be launched with an intent containing an extra with key com.google.android.apps.work.clouddpc.EXTRA_LAUNCHED_AS_SETUP_ACTION set to the boolean value true to indicate that this is a setup action flow. If SetupAction references an app, the corresponding installType in the application policy must be set as REQUIRED_FOR_SETUP or said setup will fail. * `title` (*type:* `GoogleApi.AndroidManagement.V1.Model.UserFacingMessage.t`, *default:* `nil`) - Title of this action. """ diff --git a/clients/android_management/lib/google_api/android_management/v1/model/signin_detail.ex b/clients/android_management/lib/google_api/android_management/v1/model/signin_detail.ex index 249881f918..746c93f180 100644 --- a/clients/android_management/lib/google_api/android_management/v1/model/signin_detail.ex +++ b/clients/android_management/lib/google_api/android_management/v1/model/signin_detail.ex @@ -17,7 +17,7 @@ defmodule GoogleApi.AndroidManagement.V1.Model.SigninDetail do @moduledoc """ - A resource containing sign in details for an enterprise. + A resource containing sign in details for an enterprise. Use enterprises to manage SigninDetails for a given enterprise.For an enterprise, we can have any number of SigninDetails that is uniquely identified by combination of the following three fields (signin_url, allow_personal_usage, token_tag). One cannot create two SigninDetails with the same (signin_url, allow_personal_usage, token_tag). (token_tag is an optional field).Patch: The operation updates the current list of SigninDetails with the new list of SigninDetails. If the stored SigninDetail configuration is passed, it returns the same signin_enrollment_token and qr_code. If we pass multiple identical SigninDetail configurations that are not stored, it will store the first one amongst those SigninDetail configurations. if the configuration already exists we cannot request it more than once in a particular patch API call, otherwise it will give a duplicate key error and the whole operation will fail. If we remove certain SigninDetail configuration from the request then it will get removed from the storage. We can then request another signin_enrollment_token and qr_code for the same SigninDetail configuration. ## Attributes @@ -25,6 +25,7 @@ defmodule GoogleApi.AndroidManagement.V1.Model.SigninDetail do * `qrCode` (*type:* `String.t`, *default:* `nil`) - A JSON string whose UTF-8 representation can be used to generate a QR code to enroll a device with this enrollment token. To enroll a device using NFC, the NFC record must contain a serialized java.util.Properties representation of the properties in the JSON. This is a read-only field generated by the server. * `signinEnrollmentToken` (*type:* `String.t`, *default:* `nil`) - An enterprise wide enrollment token used to trigger custom sign-in flow. This is a read-only field generated by the server. * `signinUrl` (*type:* `String.t`, *default:* `nil`) - Sign-in URL for authentication when device is provisioned with a sign-in enrollment token. The sign-in endpoint should finish authentication flow with a URL in the form of https://enterprise.google.com/android/enroll?et= for a successful login, or https://enterprise.google.com/android/enroll/invalid for a failed login. + * `tokenTag` (*type:* `String.t`, *default:* `nil`) - An EMM-specified metadata to distinguish between instances of SigninDetail. """ use GoogleApi.Gax.ModelBase @@ -33,13 +34,15 @@ defmodule GoogleApi.AndroidManagement.V1.Model.SigninDetail do :allowPersonalUsage => String.t() | nil, :qrCode => String.t() | nil, :signinEnrollmentToken => String.t() | nil, - :signinUrl => String.t() | nil + :signinUrl => String.t() | nil, + :tokenTag => String.t() | nil } field(:allowPersonalUsage) field(:qrCode) field(:signinEnrollmentToken) field(:signinUrl) + field(:tokenTag) end defimpl Poison.Decoder, for: GoogleApi.AndroidManagement.V1.Model.SigninDetail do diff --git a/clients/android_management/lib/google_api/android_management/v1/model/start_lost_mode_params.ex b/clients/android_management/lib/google_api/android_management/v1/model/start_lost_mode_params.ex new file mode 100644 index 0000000000..a4910894cf --- /dev/null +++ b/clients/android_management/lib/google_api/android_management/v1/model/start_lost_mode_params.ex @@ -0,0 +1,58 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidManagement.V1.Model.StartLostModeParams do + @moduledoc """ + Parameters associated with the START_LOST_MODE command to put the device into lost mode. At least one of the parameters, not including the organization name, must be provided in order for the device to be put into lost mode. + + ## Attributes + + * `lostEmailAddress` (*type:* `String.t`, *default:* `nil`) - The email address displayed to the user when the device is in lost mode. + * `lostMessage` (*type:* `GoogleApi.AndroidManagement.V1.Model.UserFacingMessage.t`, *default:* `nil`) - The message displayed to the user when the device is in lost mode. + * `lostOrganization` (*type:* `GoogleApi.AndroidManagement.V1.Model.UserFacingMessage.t`, *default:* `nil`) - The organization name displayed to the user when the device is in lost mode. + * `lostPhoneNumber` (*type:* `GoogleApi.AndroidManagement.V1.Model.UserFacingMessage.t`, *default:* `nil`) - The phone number displayed to the user when the device is in lost mode. + * `lostStreetAddress` (*type:* `GoogleApi.AndroidManagement.V1.Model.UserFacingMessage.t`, *default:* `nil`) - The street address displayed to the user when the device is in lost mode. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :lostEmailAddress => String.t() | nil, + :lostMessage => GoogleApi.AndroidManagement.V1.Model.UserFacingMessage.t() | nil, + :lostOrganization => GoogleApi.AndroidManagement.V1.Model.UserFacingMessage.t() | nil, + :lostPhoneNumber => GoogleApi.AndroidManagement.V1.Model.UserFacingMessage.t() | nil, + :lostStreetAddress => GoogleApi.AndroidManagement.V1.Model.UserFacingMessage.t() | nil + } + + field(:lostEmailAddress) + field(:lostMessage, as: GoogleApi.AndroidManagement.V1.Model.UserFacingMessage) + field(:lostOrganization, as: GoogleApi.AndroidManagement.V1.Model.UserFacingMessage) + field(:lostPhoneNumber, as: GoogleApi.AndroidManagement.V1.Model.UserFacingMessage) + field(:lostStreetAddress, as: GoogleApi.AndroidManagement.V1.Model.UserFacingMessage) +end + +defimpl Poison.Decoder, for: GoogleApi.AndroidManagement.V1.Model.StartLostModeParams do + def decode(value, options) do + GoogleApi.AndroidManagement.V1.Model.StartLostModeParams.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.AndroidManagement.V1.Model.StartLostModeParams do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_management/lib/google_api/android_management/v1/model/start_lost_mode_status.ex b/clients/android_management/lib/google_api/android_management/v1/model/start_lost_mode_status.ex new file mode 100644 index 0000000000..c246c51b33 --- /dev/null +++ b/clients/android_management/lib/google_api/android_management/v1/model/start_lost_mode_status.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidManagement.V1.Model.StartLostModeStatus do + @moduledoc """ + Status of the START_LOST_MODE command to put the device into lost mode. + + ## Attributes + + * `status` (*type:* `String.t`, *default:* `nil`) - The status. See StartLostModeStatus. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :status => String.t() | nil + } + + field(:status) +end + +defimpl Poison.Decoder, for: GoogleApi.AndroidManagement.V1.Model.StartLostModeStatus do + def decode(value, options) do + GoogleApi.AndroidManagement.V1.Model.StartLostModeStatus.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.AndroidManagement.V1.Model.StartLostModeStatus do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_management/lib/google_api/android_management/v1/model/stop_lost_mode_params.ex b/clients/android_management/lib/google_api/android_management/v1/model/stop_lost_mode_params.ex new file mode 100644 index 0000000000..f44e9d2652 --- /dev/null +++ b/clients/android_management/lib/google_api/android_management/v1/model/stop_lost_mode_params.ex @@ -0,0 +1,41 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidManagement.V1.Model.StopLostModeParams do + @moduledoc """ + Parameters associated with the STOP_LOST_MODE command to take the device out of lost mode. + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, for: GoogleApi.AndroidManagement.V1.Model.StopLostModeParams do + def decode(value, options) do + GoogleApi.AndroidManagement.V1.Model.StopLostModeParams.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.AndroidManagement.V1.Model.StopLostModeParams do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_management/lib/google_api/android_management/v1/model/stop_lost_mode_status.ex b/clients/android_management/lib/google_api/android_management/v1/model/stop_lost_mode_status.ex new file mode 100644 index 0000000000..82ba2dc2e3 --- /dev/null +++ b/clients/android_management/lib/google_api/android_management/v1/model/stop_lost_mode_status.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidManagement.V1.Model.StopLostModeStatus do + @moduledoc """ + Status of the STOP_LOST_MODE command to take the device out of lost mode. + + ## Attributes + + * `status` (*type:* `String.t`, *default:* `nil`) - The status. See StopLostModeStatus. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :status => String.t() | nil + } + + field(:status) +end + +defimpl Poison.Decoder, for: GoogleApi.AndroidManagement.V1.Model.StopLostModeStatus do + def decode(value, options) do + GoogleApi.AndroidManagement.V1.Model.StopLostModeStatus.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.AndroidManagement.V1.Model.StopLostModeStatus do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_management/lib/google_api/android_management/v1/model/stop_lost_mode_user_attempt_event.ex b/clients/android_management/lib/google_api/android_management/v1/model/stop_lost_mode_user_attempt_event.ex new file mode 100644 index 0000000000..7968a787cd --- /dev/null +++ b/clients/android_management/lib/google_api/android_management/v1/model/stop_lost_mode_user_attempt_event.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidManagement.V1.Model.StopLostModeUserAttemptEvent do + @moduledoc """ + A lost mode event indicating the user has attempted to stop lost mode. + + ## Attributes + + * `status` (*type:* `String.t`, *default:* `nil`) - The status of the attempt to stop lost mode. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :status => String.t() | nil + } + + field(:status) +end + +defimpl Poison.Decoder, for: GoogleApi.AndroidManagement.V1.Model.StopLostModeUserAttemptEvent do + def decode(value, options) do + GoogleApi.AndroidManagement.V1.Model.StopLostModeUserAttemptEvent.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.AndroidManagement.V1.Model.StopLostModeUserAttemptEvent do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_management/lib/google_api/android_management/v1/model/usage_log_event.ex b/clients/android_management/lib/google_api/android_management/v1/model/usage_log_event.ex index c84da28a42..515877f119 100644 --- a/clients/android_management/lib/google_api/android_management/v1/model/usage_log_event.ex +++ b/clients/android_management/lib/google_api/android_management/v1/model/usage_log_event.ex @@ -21,147 +21,172 @@ defmodule GoogleApi.AndroidManagement.V1.Model.UsageLogEvent do ## Attributes - * `adbShellCommandEvent` (*type:* `GoogleApi.AndroidManagement.V1.Model.AdbShellCommandEvent.t`, *default:* `nil`) - A shell command was issued over ADB via “adb shell command”. Part of SECURITY_LOGS. - * `adbShellInteractiveEvent` (*type:* `GoogleApi.AndroidManagement.V1.Model.AdbShellInteractiveEvent.t`, *default:* `nil`) - An ADB interactive shell was opened via “adb shell”. Part of SECURITY_LOGS. - * `appProcessStartEvent` (*type:* `GoogleApi.AndroidManagement.V1.Model.AppProcessStartEvent.t`, *default:* `nil`) - An app process was started. Part of SECURITY_LOGS. - * `certAuthorityInstalledEvent` (*type:* `GoogleApi.AndroidManagement.V1.Model.CertAuthorityInstalledEvent.t`, *default:* `nil`) - A new root certificate was installed into the system's trusted credential storage. Part of SECURITY_LOGS. - * `certAuthorityRemovedEvent` (*type:* `GoogleApi.AndroidManagement.V1.Model.CertAuthorityRemovedEvent.t`, *default:* `nil`) - A root certificate was removed from the system's trusted credential storage. Part of SECURITY_LOGS. + * `eventTime` (*type:* `DateTime.t`, *default:* `nil`) - Device timestamp when the event was logged. + * `keyguardSecuredEvent` (*type:* `GoogleApi.AndroidManagement.V1.Model.KeyguardSecuredEvent.t`, *default:* `nil`) - The device was locked either by user or timeout. Part of SECURITY_LOGS. + * `mediaUnmountEvent` (*type:* `GoogleApi.AndroidManagement.V1.Model.MediaUnmountEvent.t`, *default:* `nil`) - Removable media was unmounted. Part of SECURITY_LOGS. * `certValidationFailureEvent` (*type:* `GoogleApi.AndroidManagement.V1.Model.CertValidationFailureEvent.t`, *default:* `nil`) - An X.509v3 certificate failed to validate, currently this validation is performed on the Wi-FI access point and failure may be due to a mismatch upon server certificate validation. However it may in the future include other validation events of an X.509v3 certificate. Part of SECURITY_LOGS. + * `mediaMountEvent` (*type:* `GoogleApi.AndroidManagement.V1.Model.MediaMountEvent.t`, *default:* `nil`) - Removable media was mounted. Part of SECURITY_LOGS. * `connectEvent` (*type:* `GoogleApi.AndroidManagement.V1.Model.ConnectEvent.t`, *default:* `nil`) - A TCP connect event was initiated through the standard network stack. Part of NETWORK_ACTIVITY_LOGS. + * `wipeFailureEvent` (*type:* `GoogleApi.AndroidManagement.V1.Model.WipeFailureEvent.t`, *default:* `nil`) - The work profile or company-owned device failed to wipe when requested. This could be user initiated or admin initiated e.g. delete was received. Part of SECURITY_LOGS. + * `stopLostModeUserAttemptEvent` (*type:* `GoogleApi.AndroidManagement.V1.Model.StopLostModeUserAttemptEvent.t`, *default:* `nil`) - An attempt to take a device out of lost mode. + * `certAuthorityInstalledEvent` (*type:* `GoogleApi.AndroidManagement.V1.Model.CertAuthorityInstalledEvent.t`, *default:* `nil`) - A new root certificate was installed into the system's trusted credential storage. Part of SECURITY_LOGS. * `cryptoSelfTestCompletedEvent` (*type:* `GoogleApi.AndroidManagement.V1.Model.CryptoSelfTestCompletedEvent.t`, *default:* `nil`) - Validates whether Android’s built-in cryptographic library (BoringSSL) is valid. Should always succeed on device boot, if it fails, the device should be considered untrusted. Part of SECURITY_LOGS. - * `dnsEvent` (*type:* `GoogleApi.AndroidManagement.V1.Model.DnsEvent.t`, *default:* `nil`) - A DNS lookup event was initiated through the standard network stack. Part of NETWORK_ACTIVITY_LOGS. - * `eventId` (*type:* `String.t`, *default:* `nil`) - Unique id of the event. - * `eventTime` (*type:* `DateTime.t`, *default:* `nil`) - Device timestamp when the event was logged. - * `eventType` (*type:* `String.t`, *default:* `nil`) - The particular usage log event type that was reported on the device. Use this to determine which event field to access. - * `filePulledEvent` (*type:* `GoogleApi.AndroidManagement.V1.Model.FilePulledEvent.t`, *default:* `nil`) - A file was downloaded from the device. Part of SECURITY_LOGS. - * `filePushedEvent` (*type:* `GoogleApi.AndroidManagement.V1.Model.FilePushedEvent.t`, *default:* `nil`) - A file was uploaded onto the device. Part of SECURITY_LOGS. - * `keyDestructionEvent` (*type:* `GoogleApi.AndroidManagement.V1.Model.KeyDestructionEvent.t`, *default:* `nil`) - A cryptographic key including user installed, admin installed and system maintained private key is removed from the device either by the user or management. Part of SECURITY_LOGS. - * `keyGeneratedEvent` (*type:* `GoogleApi.AndroidManagement.V1.Model.KeyGeneratedEvent.t`, *default:* `nil`) - A cryptographic key including user installed, admin installed and system maintained private key is installed on the device either by the user or management. Part of SECURITY_LOGS. - * `keyImportEvent` (*type:* `GoogleApi.AndroidManagement.V1.Model.KeyImportEvent.t`, *default:* `nil`) - A cryptographic key including user installed, admin installed and system maintained private key is imported on the device either by the user or management. Part of SECURITY_LOGS. + * `loggingStartedEvent` (*type:* `GoogleApi.AndroidManagement.V1.Model.LoggingStartedEvent.t`, *default:* `nil`) - usageLog policy has been enabled. Part of SECURITY_LOGS. * `keyIntegrityViolationEvent` (*type:* `GoogleApi.AndroidManagement.V1.Model.KeyIntegrityViolationEvent.t`, *default:* `nil`) - A cryptographic key including user installed, admin installed and system maintained private key is determined to be corrupted due to storage corruption, hardware failure or some OS issue. Part of SECURITY_LOGS. + * `appProcessStartEvent` (*type:* `GoogleApi.AndroidManagement.V1.Model.AppProcessStartEvent.t`, *default:* `nil`) - An app process was started. Part of SECURITY_LOGS. + * `loggingStoppedEvent` (*type:* `GoogleApi.AndroidManagement.V1.Model.LoggingStoppedEvent.t`, *default:* `nil`) - usageLog policy has been disabled. Part of SECURITY_LOGS. * `keyguardDismissAuthAttemptEvent` (*type:* `GoogleApi.AndroidManagement.V1.Model.KeyguardDismissAuthAttemptEvent.t`, *default:* `nil`) - An attempt was made to unlock the device. Part of SECURITY_LOGS. * `keyguardDismissedEvent` (*type:* `GoogleApi.AndroidManagement.V1.Model.KeyguardDismissedEvent.t`, *default:* `nil`) - The keyguard was dismissed. Part of SECURITY_LOGS. - * `keyguardSecuredEvent` (*type:* `GoogleApi.AndroidManagement.V1.Model.KeyguardSecuredEvent.t`, *default:* `nil`) - The device was locked either by user or timeout. Part of SECURITY_LOGS. - * `logBufferSizeCriticalEvent` (*type:* `GoogleApi.AndroidManagement.V1.Model.LogBufferSizeCriticalEvent.t`, *default:* `nil`) - The audit log buffer has reached 90% of its capacity, therefore older events may be dropped. Part of SECURITY_LOGS. - * `loggingStartedEvent` (*type:* `GoogleApi.AndroidManagement.V1.Model.LoggingStartedEvent.t`, *default:* `nil`) - usageLog policy has been enabled. Part of SECURITY_LOGS. - * `loggingStoppedEvent` (*type:* `GoogleApi.AndroidManagement.V1.Model.LoggingStoppedEvent.t`, *default:* `nil`) - usageLog policy has been disabled. Part of SECURITY_LOGS. - * `mediaMountEvent` (*type:* `GoogleApi.AndroidManagement.V1.Model.MediaMountEvent.t`, *default:* `nil`) - Removable media was mounted. Part of SECURITY_LOGS. - * `mediaUnmountEvent` (*type:* `GoogleApi.AndroidManagement.V1.Model.MediaUnmountEvent.t`, *default:* `nil`) - Removable media was unmounted. Part of SECURITY_LOGS. + * `enrollmentCompleteEvent` (*type:* `GoogleApi.AndroidManagement.V1.Model.EnrollmentCompleteEvent.t`, *default:* `nil`) - Device has completed enrollment. Part of AMAPI_LOGS. + * `remoteLockEvent` (*type:* `GoogleApi.AndroidManagement.V1.Model.RemoteLockEvent.t`, *default:* `nil`) - The device or profile has been remotely locked via the LOCK command. Part of SECURITY_LOGS. * `osShutdownEvent` (*type:* `GoogleApi.AndroidManagement.V1.Model.OsShutdownEvent.t`, *default:* `nil`) - Device was shutdown. Part of SECURITY_LOGS. + * `dnsEvent` (*type:* `GoogleApi.AndroidManagement.V1.Model.DnsEvent.t`, *default:* `nil`) - A DNS lookup event was initiated through the standard network stack. Part of NETWORK_ACTIVITY_LOGS. + * `keyDestructionEvent` (*type:* `GoogleApi.AndroidManagement.V1.Model.KeyDestructionEvent.t`, *default:* `nil`) - A cryptographic key including user installed, admin installed and system maintained private key is removed from the device either by the user or management. Part of SECURITY_LOGS. * `osStartupEvent` (*type:* `GoogleApi.AndroidManagement.V1.Model.OsStartupEvent.t`, *default:* `nil`) - Device was started. Part of SECURITY_LOGS. - * `remoteLockEvent` (*type:* `GoogleApi.AndroidManagement.V1.Model.RemoteLockEvent.t`, *default:* `nil`) - The device or profile has been remotely locked via the LOCK command. Part of SECURITY_LOGS. - * `wipeFailureEvent` (*type:* `GoogleApi.AndroidManagement.V1.Model.WipeFailureEvent.t`, *default:* `nil`) - The work profile or company-owned device failed to wipe when requested. This could be user initiated or admin initiated e.g. delete was received. Part of SECURITY_LOGS. + * `adbShellCommandEvent` (*type:* `GoogleApi.AndroidManagement.V1.Model.AdbShellCommandEvent.t`, *default:* `nil`) - A shell command was issued over ADB via “adb shell command”. Part of SECURITY_LOGS. + * `eventId` (*type:* `String.t`, *default:* `nil`) - Unique id of the event. + * `keyImportEvent` (*type:* `GoogleApi.AndroidManagement.V1.Model.KeyImportEvent.t`, *default:* `nil`) - A cryptographic key including user installed, admin installed and system maintained private key is imported on the device either by the user or management. Part of SECURITY_LOGS. + * `keyGeneratedEvent` (*type:* `GoogleApi.AndroidManagement.V1.Model.KeyGeneratedEvent.t`, *default:* `nil`) - A cryptographic key including user installed, admin installed and system maintained private key is installed on the device either by the user or management. Part of SECURITY_LOGS. + * `lostModeLocationEvent` (*type:* `GoogleApi.AndroidManagement.V1.Model.LostModeLocationEvent.t`, *default:* `nil`) - A lost mode location update when a device in lost mode. + * `filePulledEvent` (*type:* `GoogleApi.AndroidManagement.V1.Model.FilePulledEvent.t`, *default:* `nil`) - A file was downloaded from the device. Part of SECURITY_LOGS. + * `logBufferSizeCriticalEvent` (*type:* `GoogleApi.AndroidManagement.V1.Model.LogBufferSizeCriticalEvent.t`, *default:* `nil`) - The audit log buffer has reached 90% of its capacity, therefore older events may be dropped. Part of SECURITY_LOGS. + * `certAuthorityRemovedEvent` (*type:* `GoogleApi.AndroidManagement.V1.Model.CertAuthorityRemovedEvent.t`, *default:* `nil`) - A root certificate was removed from the system's trusted credential storage. Part of SECURITY_LOGS. + * `filePushedEvent` (*type:* `GoogleApi.AndroidManagement.V1.Model.FilePushedEvent.t`, *default:* `nil`) - A file was uploaded onto the device. Part of SECURITY_LOGS. + * `adbShellInteractiveEvent` (*type:* `GoogleApi.AndroidManagement.V1.Model.AdbShellInteractiveEvent.t`, *default:* `nil`) - An ADB interactive shell was opened via “adb shell”. Part of SECURITY_LOGS. + * `lostModeOutgoingPhoneCallEvent` (*type:* `GoogleApi.AndroidManagement.V1.Model.LostModeOutgoingPhoneCallEvent.t`, *default:* `nil`) - An outgoing phone call has been made when a device in lost mode. + * `eventType` (*type:* `String.t`, *default:* `nil`) - The particular usage log event type that was reported on the device. Use this to determine which event field to access. """ use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ - :adbShellCommandEvent => - GoogleApi.AndroidManagement.V1.Model.AdbShellCommandEvent.t() | nil, - :adbShellInteractiveEvent => - GoogleApi.AndroidManagement.V1.Model.AdbShellInteractiveEvent.t() | nil, - :appProcessStartEvent => - GoogleApi.AndroidManagement.V1.Model.AppProcessStartEvent.t() | nil, - :certAuthorityInstalledEvent => - GoogleApi.AndroidManagement.V1.Model.CertAuthorityInstalledEvent.t() | nil, - :certAuthorityRemovedEvent => - GoogleApi.AndroidManagement.V1.Model.CertAuthorityRemovedEvent.t() | nil, + :eventTime => DateTime.t() | nil, + :keyguardSecuredEvent => + GoogleApi.AndroidManagement.V1.Model.KeyguardSecuredEvent.t() | nil, + :mediaUnmountEvent => GoogleApi.AndroidManagement.V1.Model.MediaUnmountEvent.t() | nil, :certValidationFailureEvent => GoogleApi.AndroidManagement.V1.Model.CertValidationFailureEvent.t() | nil, + :mediaMountEvent => GoogleApi.AndroidManagement.V1.Model.MediaMountEvent.t() | nil, :connectEvent => GoogleApi.AndroidManagement.V1.Model.ConnectEvent.t() | nil, + :wipeFailureEvent => GoogleApi.AndroidManagement.V1.Model.WipeFailureEvent.t() | nil, + :stopLostModeUserAttemptEvent => + GoogleApi.AndroidManagement.V1.Model.StopLostModeUserAttemptEvent.t() | nil, + :certAuthorityInstalledEvent => + GoogleApi.AndroidManagement.V1.Model.CertAuthorityInstalledEvent.t() | nil, :cryptoSelfTestCompletedEvent => GoogleApi.AndroidManagement.V1.Model.CryptoSelfTestCompletedEvent.t() | nil, - :dnsEvent => GoogleApi.AndroidManagement.V1.Model.DnsEvent.t() | nil, - :eventId => String.t() | nil, - :eventTime => DateTime.t() | nil, - :eventType => String.t() | nil, - :filePulledEvent => GoogleApi.AndroidManagement.V1.Model.FilePulledEvent.t() | nil, - :filePushedEvent => GoogleApi.AndroidManagement.V1.Model.FilePushedEvent.t() | nil, - :keyDestructionEvent => - GoogleApi.AndroidManagement.V1.Model.KeyDestructionEvent.t() | nil, - :keyGeneratedEvent => GoogleApi.AndroidManagement.V1.Model.KeyGeneratedEvent.t() | nil, - :keyImportEvent => GoogleApi.AndroidManagement.V1.Model.KeyImportEvent.t() | nil, + :loggingStartedEvent => + GoogleApi.AndroidManagement.V1.Model.LoggingStartedEvent.t() | nil, :keyIntegrityViolationEvent => GoogleApi.AndroidManagement.V1.Model.KeyIntegrityViolationEvent.t() | nil, + :appProcessStartEvent => + GoogleApi.AndroidManagement.V1.Model.AppProcessStartEvent.t() | nil, + :loggingStoppedEvent => + GoogleApi.AndroidManagement.V1.Model.LoggingStoppedEvent.t() | nil, :keyguardDismissAuthAttemptEvent => GoogleApi.AndroidManagement.V1.Model.KeyguardDismissAuthAttemptEvent.t() | nil, :keyguardDismissedEvent => GoogleApi.AndroidManagement.V1.Model.KeyguardDismissedEvent.t() | nil, - :keyguardSecuredEvent => - GoogleApi.AndroidManagement.V1.Model.KeyguardSecuredEvent.t() | nil, - :logBufferSizeCriticalEvent => - GoogleApi.AndroidManagement.V1.Model.LogBufferSizeCriticalEvent.t() | nil, - :loggingStartedEvent => - GoogleApi.AndroidManagement.V1.Model.LoggingStartedEvent.t() | nil, - :loggingStoppedEvent => - GoogleApi.AndroidManagement.V1.Model.LoggingStoppedEvent.t() | nil, - :mediaMountEvent => GoogleApi.AndroidManagement.V1.Model.MediaMountEvent.t() | nil, - :mediaUnmountEvent => GoogleApi.AndroidManagement.V1.Model.MediaUnmountEvent.t() | nil, + :enrollmentCompleteEvent => + GoogleApi.AndroidManagement.V1.Model.EnrollmentCompleteEvent.t() | nil, + :remoteLockEvent => GoogleApi.AndroidManagement.V1.Model.RemoteLockEvent.t() | nil, :osShutdownEvent => GoogleApi.AndroidManagement.V1.Model.OsShutdownEvent.t() | nil, + :dnsEvent => GoogleApi.AndroidManagement.V1.Model.DnsEvent.t() | nil, + :keyDestructionEvent => + GoogleApi.AndroidManagement.V1.Model.KeyDestructionEvent.t() | nil, :osStartupEvent => GoogleApi.AndroidManagement.V1.Model.OsStartupEvent.t() | nil, - :remoteLockEvent => GoogleApi.AndroidManagement.V1.Model.RemoteLockEvent.t() | nil, - :wipeFailureEvent => GoogleApi.AndroidManagement.V1.Model.WipeFailureEvent.t() | nil + :adbShellCommandEvent => + GoogleApi.AndroidManagement.V1.Model.AdbShellCommandEvent.t() | nil, + :eventId => String.t() | nil, + :keyImportEvent => GoogleApi.AndroidManagement.V1.Model.KeyImportEvent.t() | nil, + :keyGeneratedEvent => GoogleApi.AndroidManagement.V1.Model.KeyGeneratedEvent.t() | nil, + :lostModeLocationEvent => + GoogleApi.AndroidManagement.V1.Model.LostModeLocationEvent.t() | nil, + :filePulledEvent => GoogleApi.AndroidManagement.V1.Model.FilePulledEvent.t() | nil, + :logBufferSizeCriticalEvent => + GoogleApi.AndroidManagement.V1.Model.LogBufferSizeCriticalEvent.t() | nil, + :certAuthorityRemovedEvent => + GoogleApi.AndroidManagement.V1.Model.CertAuthorityRemovedEvent.t() | nil, + :filePushedEvent => GoogleApi.AndroidManagement.V1.Model.FilePushedEvent.t() | nil, + :adbShellInteractiveEvent => + GoogleApi.AndroidManagement.V1.Model.AdbShellInteractiveEvent.t() | nil, + :lostModeOutgoingPhoneCallEvent => + GoogleApi.AndroidManagement.V1.Model.LostModeOutgoingPhoneCallEvent.t() | nil, + :eventType => String.t() | nil } - field(:adbShellCommandEvent, as: GoogleApi.AndroidManagement.V1.Model.AdbShellCommandEvent) + field(:eventTime, as: DateTime) + field(:keyguardSecuredEvent, as: GoogleApi.AndroidManagement.V1.Model.KeyguardSecuredEvent) + field(:mediaUnmountEvent, as: GoogleApi.AndroidManagement.V1.Model.MediaUnmountEvent) - field(:adbShellInteractiveEvent, - as: GoogleApi.AndroidManagement.V1.Model.AdbShellInteractiveEvent + field(:certValidationFailureEvent, + as: GoogleApi.AndroidManagement.V1.Model.CertValidationFailureEvent ) - field(:appProcessStartEvent, as: GoogleApi.AndroidManagement.V1.Model.AppProcessStartEvent) - - field(:certAuthorityInstalledEvent, - as: GoogleApi.AndroidManagement.V1.Model.CertAuthorityInstalledEvent - ) + field(:mediaMountEvent, as: GoogleApi.AndroidManagement.V1.Model.MediaMountEvent) + field(:connectEvent, as: GoogleApi.AndroidManagement.V1.Model.ConnectEvent) + field(:wipeFailureEvent, as: GoogleApi.AndroidManagement.V1.Model.WipeFailureEvent) - field(:certAuthorityRemovedEvent, - as: GoogleApi.AndroidManagement.V1.Model.CertAuthorityRemovedEvent + field(:stopLostModeUserAttemptEvent, + as: GoogleApi.AndroidManagement.V1.Model.StopLostModeUserAttemptEvent ) - field(:certValidationFailureEvent, - as: GoogleApi.AndroidManagement.V1.Model.CertValidationFailureEvent + field(:certAuthorityInstalledEvent, + as: GoogleApi.AndroidManagement.V1.Model.CertAuthorityInstalledEvent ) - field(:connectEvent, as: GoogleApi.AndroidManagement.V1.Model.ConnectEvent) - field(:cryptoSelfTestCompletedEvent, as: GoogleApi.AndroidManagement.V1.Model.CryptoSelfTestCompletedEvent ) - field(:dnsEvent, as: GoogleApi.AndroidManagement.V1.Model.DnsEvent) - field(:eventId) - field(:eventTime, as: DateTime) - field(:eventType) - field(:filePulledEvent, as: GoogleApi.AndroidManagement.V1.Model.FilePulledEvent) - field(:filePushedEvent, as: GoogleApi.AndroidManagement.V1.Model.FilePushedEvent) - field(:keyDestructionEvent, as: GoogleApi.AndroidManagement.V1.Model.KeyDestructionEvent) - field(:keyGeneratedEvent, as: GoogleApi.AndroidManagement.V1.Model.KeyGeneratedEvent) - field(:keyImportEvent, as: GoogleApi.AndroidManagement.V1.Model.KeyImportEvent) + field(:loggingStartedEvent, as: GoogleApi.AndroidManagement.V1.Model.LoggingStartedEvent) field(:keyIntegrityViolationEvent, as: GoogleApi.AndroidManagement.V1.Model.KeyIntegrityViolationEvent ) + field(:appProcessStartEvent, as: GoogleApi.AndroidManagement.V1.Model.AppProcessStartEvent) + field(:loggingStoppedEvent, as: GoogleApi.AndroidManagement.V1.Model.LoggingStoppedEvent) + field(:keyguardDismissAuthAttemptEvent, as: GoogleApi.AndroidManagement.V1.Model.KeyguardDismissAuthAttemptEvent ) field(:keyguardDismissedEvent, as: GoogleApi.AndroidManagement.V1.Model.KeyguardDismissedEvent) - field(:keyguardSecuredEvent, as: GoogleApi.AndroidManagement.V1.Model.KeyguardSecuredEvent) + + field(:enrollmentCompleteEvent, as: GoogleApi.AndroidManagement.V1.Model.EnrollmentCompleteEvent) + + field(:remoteLockEvent, as: GoogleApi.AndroidManagement.V1.Model.RemoteLockEvent) + field(:osShutdownEvent, as: GoogleApi.AndroidManagement.V1.Model.OsShutdownEvent) + field(:dnsEvent, as: GoogleApi.AndroidManagement.V1.Model.DnsEvent) + field(:keyDestructionEvent, as: GoogleApi.AndroidManagement.V1.Model.KeyDestructionEvent) + field(:osStartupEvent, as: GoogleApi.AndroidManagement.V1.Model.OsStartupEvent) + field(:adbShellCommandEvent, as: GoogleApi.AndroidManagement.V1.Model.AdbShellCommandEvent) + field(:eventId) + field(:keyImportEvent, as: GoogleApi.AndroidManagement.V1.Model.KeyImportEvent) + field(:keyGeneratedEvent, as: GoogleApi.AndroidManagement.V1.Model.KeyGeneratedEvent) + field(:lostModeLocationEvent, as: GoogleApi.AndroidManagement.V1.Model.LostModeLocationEvent) + field(:filePulledEvent, as: GoogleApi.AndroidManagement.V1.Model.FilePulledEvent) field(:logBufferSizeCriticalEvent, as: GoogleApi.AndroidManagement.V1.Model.LogBufferSizeCriticalEvent ) - field(:loggingStartedEvent, as: GoogleApi.AndroidManagement.V1.Model.LoggingStartedEvent) - field(:loggingStoppedEvent, as: GoogleApi.AndroidManagement.V1.Model.LoggingStoppedEvent) - field(:mediaMountEvent, as: GoogleApi.AndroidManagement.V1.Model.MediaMountEvent) - field(:mediaUnmountEvent, as: GoogleApi.AndroidManagement.V1.Model.MediaUnmountEvent) - field(:osShutdownEvent, as: GoogleApi.AndroidManagement.V1.Model.OsShutdownEvent) - field(:osStartupEvent, as: GoogleApi.AndroidManagement.V1.Model.OsStartupEvent) - field(:remoteLockEvent, as: GoogleApi.AndroidManagement.V1.Model.RemoteLockEvent) - field(:wipeFailureEvent, as: GoogleApi.AndroidManagement.V1.Model.WipeFailureEvent) + field(:certAuthorityRemovedEvent, + as: GoogleApi.AndroidManagement.V1.Model.CertAuthorityRemovedEvent + ) + + field(:filePushedEvent, as: GoogleApi.AndroidManagement.V1.Model.FilePushedEvent) + + field(:adbShellInteractiveEvent, + as: GoogleApi.AndroidManagement.V1.Model.AdbShellInteractiveEvent + ) + + field(:lostModeOutgoingPhoneCallEvent, + as: GoogleApi.AndroidManagement.V1.Model.LostModeOutgoingPhoneCallEvent + ) + + field(:eventType) end defimpl Poison.Decoder, for: GoogleApi.AndroidManagement.V1.Model.UsageLogEvent do