diff --git a/clients/admin/lib/google_api/admin/datatransfer_v1/metadata.ex b/clients/admin/lib/google_api/admin/datatransfer_v1/metadata.ex index 67b6718702..2ba2690884 100644 --- a/clients/admin/lib/google_api/admin/datatransfer_v1/metadata.ex +++ b/clients/admin/lib/google_api/admin/datatransfer_v1/metadata.ex @@ -20,7 +20,7 @@ defmodule GoogleApi.Admin.Datatransfer_v1 do API client metadata for GoogleApi.Admin.Datatransfer_v1. """ - @discovery_revision "20221108" + @discovery_revision "20240304" def discovery_revision(), do: @discovery_revision end diff --git a/clients/admin/lib/google_api/admin/directory_v1/api/chromeosdevices.ex b/clients/admin/lib/google_api/admin/directory_v1/api/chromeosdevices.ex index 647dfd9e51..f313ee0135 100644 --- a/clients/admin/lib/google_api/admin/directory_v1/api/chromeosdevices.ex +++ b/clients/admin/lib/google_api/admin/directory_v1/api/chromeosdevices.ex @@ -26,7 +26,7 @@ defmodule GoogleApi.Admin.Directory_v1.Api.Chromeosdevices do @library_version Mix.Project.config() |> Keyword.get(:version, "") @doc """ - Takes an action that affects a Chrome OS Device. This includes deprovisioning, disabling, and re-enabling devices. *Warning:* * Deprovisioning a device will stop device policy syncing and remove device-level printers. After a device is deprovisioned, it must be wiped before it can be re-enrolled. * Lost or stolen devices should use the disable action. * Re-enabling a disabled device will consume a device license. If you do not have sufficient licenses available when completing the re-enable action, you will receive an error. For more information about deprovisioning and disabling devices, visit the [help center](https://support.google.com/chrome/a/answer/3523633). + Use [BatchChangeChromeOsDeviceStatus](/admin-sdk/directory/reference/rest/v1/customer.devices.chromeos/batchChangeStatus) instead. Takes an action that affects a Chrome OS Device. This includes deprovisioning, disabling, and re-enabling devices. *Warning:* * Deprovisioning a device will stop device policy syncing and remove device-level printers. After a device is deprovisioned, it must be wiped before it can be re-enrolled. * Lost or stolen devices should use the disable action. * Re-enabling a disabled device will consume a device license. If you do not have sufficient licenses available when completing the re-enable action, you will receive an error. For more information about deprovisioning and disabling devices, visit the [help center](https://support.google.com/chrome/a/answer/3523633). ## Parameters diff --git a/clients/admin/lib/google_api/admin/directory_v1/api/customer.ex b/clients/admin/lib/google_api/admin/directory_v1/api/customer.ex index c213e9b3f8..d5aee9c5bb 100644 --- a/clients/admin/lib/google_api/admin/directory_v1/api/customer.ex +++ b/clients/admin/lib/google_api/admin/directory_v1/api/customer.ex @@ -25,6 +25,84 @@ defmodule GoogleApi.Admin.Directory_v1.Api.Customer do @library_version Mix.Project.config() |> Keyword.get(:version, "") + @doc """ + Changes the status of a batch of ChromeOS devices. For more information about changing a ChromeOS device state [Repair, repurpose, or retire ChromeOS devices](https://support.google.com/chrome/a/answer/3523633). + + ## Parameters + + * `connection` (*type:* `GoogleApi.Admin.Directory_v1.Connection.t`) - Connection to server + * `customer_id` (*type:* `String.t`) - Required. Immutable ID of the Google Workspace account. + * `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"). + * `:body` (*type:* `GoogleApi.Admin.Directory_v1.Model.BatchChangeChromeOsDeviceStatusRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Admin.Directory_v1.Model.BatchChangeChromeOsDeviceStatusResponse{}}` on success + * `{:error, info}` on failure + """ + @spec admin_customer_devices_chromeos_batch_change_status( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.Admin.Directory_v1.Model.BatchChangeChromeOsDeviceStatusResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def admin_customer_devices_chromeos_batch_change_status( + connection, + customer_id, + 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, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url( + "/admin/directory/v1/customer/{customerId}/devices/chromeos:batchChangeStatus", + %{ + "customerId" => URI.encode(customer_id, &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.Admin.Directory_v1.Model.BatchChangeChromeOsDeviceStatusResponse{}] + ) + end + @doc """ Issues a command for the device to execute. diff --git a/clients/admin/lib/google_api/admin/directory_v1/api/domain_aliases.ex b/clients/admin/lib/google_api/admin/directory_v1/api/domain_aliases.ex index b12cfa053f..f080b0204a 100644 --- a/clients/admin/lib/google_api/admin/directory_v1/api/domain_aliases.ex +++ b/clients/admin/lib/google_api/admin/directory_v1/api/domain_aliases.ex @@ -102,7 +102,7 @@ defmodule GoogleApi.Admin.Directory_v1.Api.DomainAliases do ## Parameters * `connection` (*type:* `GoogleApi.Admin.Directory_v1.Connection.t`) - Connection to server - * `customer` (*type:* `String.t`) - Immutable ID of the Google Workspace account. + * `customer` (*type:* `String.t`) - The unique ID for the customer's Google Workspace account. In case of a multi-domain account, to fetch all groups for a customer, use this field instead of `domain`. You can also use the `my_customer` alias to represent your account's `customerId`. The `customerId` is also returned as part of the [Users](/admin-sdk/directory/v1/reference/users) resource. You must provide either the `customer` or the `domain` parameter. * `domain_alias_name` (*type:* `String.t`) - Name of domain alias to be retrieved. * `optional_params` (*type:* `keyword()`) - Optional parameters * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. @@ -239,7 +239,7 @@ defmodule GoogleApi.Admin.Directory_v1.Api.DomainAliases do ## Parameters * `connection` (*type:* `GoogleApi.Admin.Directory_v1.Connection.t`) - Connection to server - * `customer` (*type:* `String.t`) - Immutable ID of the Google Workspace account. + * `customer` (*type:* `String.t`) - The unique ID for the customer's Google Workspace account. In case of a multi-domain account, to fetch all groups for a customer, use this field instead of `domain`. You can also use the `my_customer` alias to represent your account's `customerId`. The `customerId` is also returned as part of the [Users](/admin-sdk/directory/v1/reference/users) resource. You must provide either the `customer` or the `domain` parameter. * `optional_params` (*type:* `keyword()`) - Optional parameters * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. * `:access_token` (*type:* `String.t`) - OAuth access token. diff --git a/clients/admin/lib/google_api/admin/directory_v1/api/domains.ex b/clients/admin/lib/google_api/admin/directory_v1/api/domains.ex index f295adc7d4..5329891f74 100644 --- a/clients/admin/lib/google_api/admin/directory_v1/api/domains.ex +++ b/clients/admin/lib/google_api/admin/directory_v1/api/domains.ex @@ -96,7 +96,7 @@ defmodule GoogleApi.Admin.Directory_v1.Api.Domains do ## Parameters * `connection` (*type:* `GoogleApi.Admin.Directory_v1.Connection.t`) - Connection to server - * `customer` (*type:* `String.t`) - Immutable ID of the Google Workspace account. + * `customer` (*type:* `String.t`) - The unique ID for the customer's Google Workspace account. In case of a multi-domain account, to fetch all groups for a customer, use this field instead of `domain`. You can also use the `my_customer` alias to represent your account's `customerId`. The `customerId` is also returned as part of the [Users](/admin-sdk/directory/v1/reference/users) resource. You must provide either the `customer` or the `domain` parameter. * `domain_name` (*type:* `String.t`) - Name of domain to be retrieved * `optional_params` (*type:* `keyword()`) - Optional parameters * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. @@ -220,7 +220,7 @@ defmodule GoogleApi.Admin.Directory_v1.Api.Domains do ## Parameters * `connection` (*type:* `GoogleApi.Admin.Directory_v1.Connection.t`) - Connection to server - * `customer` (*type:* `String.t`) - Immutable ID of the Google Workspace account. + * `customer` (*type:* `String.t`) - The unique ID for the customer's Google Workspace account. In case of a multi-domain account, to fetch all groups for a customer, use this field instead of `domain`. You can also use the `my_customer` alias to represent your account's `customerId`. The `customerId` is also returned as part of the [Users](/admin-sdk/directory/v1/reference/users) resource. You must provide either the `customer` or the `domain` parameter. * `optional_params` (*type:* `keyword()`) - Optional parameters * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. * `:access_token` (*type:* `String.t`) - OAuth access token. diff --git a/clients/admin/lib/google_api/admin/directory_v1/api/groups.ex b/clients/admin/lib/google_api/admin/directory_v1/api/groups.ex index 02ee363e14..0490a80bd8 100644 --- a/clients/admin/lib/google_api/admin/directory_v1/api/groups.ex +++ b/clients/admin/lib/google_api/admin/directory_v1/api/groups.ex @@ -219,7 +219,7 @@ defmodule GoogleApi.Admin.Directory_v1.Api.Groups 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"). - * `:customer` (*type:* `String.t`) - The unique ID for the customer's Google Workspace account. In case of a multi-domain account, to fetch all groups for a customer, fill in this field instead of `domain`. You can also use the `my_customer` alias to represent your account's `customerId`. The `customerId` is also returned as part of the [Users](/admin-sdk/directory/v1/reference/users) resource. Either the `customer` or the `domain` parameter must be provided. + * `:customer` (*type:* `String.t`) - The unique ID for the customer's Google Workspace account. In case of a multi-domain account, to fetch all groups for a customer, use this field instead of `domain`. You can also use the `my_customer` alias to represent your account's `customerId`. The `customerId` is also returned as part of the [Users](/admin-sdk/directory/v1/reference/users) resource. You must provide either the `customer` or the `domain` parameter. * `:domain` (*type:* `String.t`) - The domain name. Use this field to get groups from only one domain. To return all domains for a customer account, use the `customer` query parameter instead. * `:maxResults` (*type:* `integer()`) - Maximum number of results to return. Max allowed value is 200. * `:orderBy` (*type:* `String.t`) - Column to use for sorting results diff --git a/clients/admin/lib/google_api/admin/directory_v1/api/members.ex b/clients/admin/lib/google_api/admin/directory_v1/api/members.ex index 88a8db593b..9eaa50ead9 100644 --- a/clients/admin/lib/google_api/admin/directory_v1/api/members.ex +++ b/clients/admin/lib/google_api/admin/directory_v1/api/members.ex @@ -289,7 +289,7 @@ defmodule GoogleApi.Admin.Directory_v1.Api.Members do end @doc """ - Retrieves a paginated list of all members in a group. + Retrieves a paginated list of all members in a group. This method times out after 60 minutes. For more information, see [Troubleshoot error codes](https://developers.google.com/admin-sdk/directory/v1/guides/troubleshoot-error-codes). ## Parameters diff --git a/clients/admin/lib/google_api/admin/directory_v1/api/mobiledevices.ex b/clients/admin/lib/google_api/admin/directory_v1/api/mobiledevices.ex index 55c1b244bb..fa825b1d9b 100644 --- a/clients/admin/lib/google_api/admin/directory_v1/api/mobiledevices.ex +++ b/clients/admin/lib/google_api/admin/directory_v1/api/mobiledevices.ex @@ -247,7 +247,7 @@ defmodule GoogleApi.Admin.Directory_v1.Api.Mobiledevices do end @doc """ - Retrieves a paginated list of all user-owned mobile devices for an account. To retrieve a list that includes company-owned devices, use the Cloud Identity [Devices API](https://cloud.google.com/identity/docs/concepts/overview-devices) instead. + Retrieves a paginated list of all user-owned mobile devices for an account. To retrieve a list that includes company-owned devices, use the Cloud Identity [Devices API](https://cloud.google.com/identity/docs/concepts/overview-devices) instead. This method times out after 60 minutes. For more information, see [Troubleshoot error codes](https://developers.google.com/admin-sdk/directory/v1/guides/troubleshoot-error-codes). ## Parameters diff --git a/clients/admin/lib/google_api/admin/directory_v1/api/privileges.ex b/clients/admin/lib/google_api/admin/directory_v1/api/privileges.ex index 97454e1b02..f23230cdd7 100644 --- a/clients/admin/lib/google_api/admin/directory_v1/api/privileges.ex +++ b/clients/admin/lib/google_api/admin/directory_v1/api/privileges.ex @@ -31,7 +31,7 @@ defmodule GoogleApi.Admin.Directory_v1.Api.Privileges do ## Parameters * `connection` (*type:* `GoogleApi.Admin.Directory_v1.Connection.t`) - Connection to server - * `customer` (*type:* `String.t`) - Immutable ID of the Google Workspace account. + * `customer` (*type:* `String.t`) - The unique ID for the customer's Google Workspace account. In case of a multi-domain account, to fetch all groups for a customer, use this field instead of `domain`. You can also use the `my_customer` alias to represent your account's `customerId`. The `customerId` is also returned as part of the [Users](/admin-sdk/directory/v1/reference/users) resource. You must provide either the `customer` or the `domain` parameter. * `optional_params` (*type:* `keyword()`) - Optional parameters * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. * `:access_token` (*type:* `String.t`) - OAuth access token. diff --git a/clients/admin/lib/google_api/admin/directory_v1/api/role_assignments.ex b/clients/admin/lib/google_api/admin/directory_v1/api/role_assignments.ex index f78a492e42..18893845df 100644 --- a/clients/admin/lib/google_api/admin/directory_v1/api/role_assignments.ex +++ b/clients/admin/lib/google_api/admin/directory_v1/api/role_assignments.ex @@ -105,7 +105,7 @@ defmodule GoogleApi.Admin.Directory_v1.Api.RoleAssignments do ## Parameters * `connection` (*type:* `GoogleApi.Admin.Directory_v1.Connection.t`) - Connection to server - * `customer` (*type:* `String.t`) - Immutable ID of the Google Workspace account. + * `customer` (*type:* `String.t`) - The unique ID for the customer's Google Workspace account. In case of a multi-domain account, to fetch all groups for a customer, use this field instead of `domain`. You can also use the `my_customer` alias to represent your account's `customerId`. The `customerId` is also returned as part of the [Users](/admin-sdk/directory/v1/reference/users) resource. You must provide either the `customer` or the `domain` parameter. * `role_assignment_id` (*type:* `String.t`) - Immutable ID of the role assignment. * `optional_params` (*type:* `keyword()`) - Optional parameters * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. @@ -245,7 +245,7 @@ defmodule GoogleApi.Admin.Directory_v1.Api.RoleAssignments do ## Parameters * `connection` (*type:* `GoogleApi.Admin.Directory_v1.Connection.t`) - Connection to server - * `customer` (*type:* `String.t`) - Immutable ID of the Google Workspace account. + * `customer` (*type:* `String.t`) - The unique ID for the customer's Google Workspace account. In case of a multi-domain account, to fetch all groups for a customer, use this field instead of `domain`. You can also use the `my_customer` alias to represent your account's `customerId`. The `customerId` is also returned as part of the [Users](/admin-sdk/directory/v1/reference/users) resource. You must provide either the `customer` or the `domain` parameter. * `optional_params` (*type:* `keyword()`) - Optional parameters * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. * `:access_token` (*type:* `String.t`) - OAuth access token. @@ -258,10 +258,11 @@ defmodule GoogleApi.Admin.Directory_v1.Api.RoleAssignments 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"). + * `:includeIndirectRoleAssignments` (*type:* `boolean()`) - When set to `true`, fetches indirect role assignments (i.e. role assignment via a group) as well as direct ones. Defaults to `false`. You must specify `user_key` or the indirect role assignments will not be included. * `:maxResults` (*type:* `integer()`) - Maximum number of results to return. * `:pageToken` (*type:* `String.t`) - Token to specify the next page in the list. * `:roleId` (*type:* `String.t`) - Immutable ID of a role. If included in the request, returns only role assignments containing this role ID. - * `:userKey` (*type:* `String.t`) - The user's primary email address, alias email address, or unique user ID. If included in the request, returns role assignments only for this user. + * `:userKey` (*type:* `String.t`) - The primary email address, alias email address, or unique user or group ID. If included in the request, returns role assignments only for this user or group. * `opts` (*type:* `keyword()`) - Call options ## Returns @@ -287,6 +288,7 @@ defmodule GoogleApi.Admin.Directory_v1.Api.RoleAssignments do :quotaUser => :query, :uploadType => :query, :upload_protocol => :query, + :includeIndirectRoleAssignments => :query, :maxResults => :query, :pageToken => :query, :roleId => :query, diff --git a/clients/admin/lib/google_api/admin/directory_v1/api/roles.ex b/clients/admin/lib/google_api/admin/directory_v1/api/roles.ex index 7a0ce305d2..4f240ed815 100644 --- a/clients/admin/lib/google_api/admin/directory_v1/api/roles.ex +++ b/clients/admin/lib/google_api/admin/directory_v1/api/roles.ex @@ -90,7 +90,7 @@ defmodule GoogleApi.Admin.Directory_v1.Api.Roles do ## Parameters * `connection` (*type:* `GoogleApi.Admin.Directory_v1.Connection.t`) - Connection to server - * `customer` (*type:* `String.t`) - Immutable ID of the Google Workspace account. + * `customer` (*type:* `String.t`) - The unique ID for the customer's Google Workspace account. In case of a multi-domain account, to fetch all groups for a customer, use this field instead of `domain`. You can also use the `my_customer` alias to represent your account's `customerId`. The `customerId` is also returned as part of the [Users](/admin-sdk/directory/v1/reference/users) resource. You must provide either the `customer` or the `domain` parameter. * `role_id` (*type:* `String.t`) - Immutable ID of the role. * `optional_params` (*type:* `keyword()`) - Optional parameters * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. @@ -214,7 +214,7 @@ defmodule GoogleApi.Admin.Directory_v1.Api.Roles do ## Parameters * `connection` (*type:* `GoogleApi.Admin.Directory_v1.Connection.t`) - Connection to server - * `customer` (*type:* `String.t`) - Immutable ID of the Google Workspace account. + * `customer` (*type:* `String.t`) - The unique ID for the customer's Google Workspace account. In case of a multi-domain account, to fetch all groups for a customer, use this field instead of `domain`. You can also use the `my_customer` alias to represent your account's `customerId`. The `customerId` is also returned as part of the [Users](/admin-sdk/directory/v1/reference/users) resource. You must provide either the `customer` or the `domain` parameter. * `optional_params` (*type:* `keyword()`) - Optional parameters * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. * `:access_token` (*type:* `String.t`) - OAuth access token. diff --git a/clients/admin/lib/google_api/admin/directory_v1/api/schemas.ex b/clients/admin/lib/google_api/admin/directory_v1/api/schemas.ex index 5635fa0a4a..19e9a6ca7a 100644 --- a/clients/admin/lib/google_api/admin/directory_v1/api/schemas.ex +++ b/clients/admin/lib/google_api/admin/directory_v1/api/schemas.ex @@ -96,7 +96,7 @@ defmodule GoogleApi.Admin.Directory_v1.Api.Schemas do ## Parameters * `connection` (*type:* `GoogleApi.Admin.Directory_v1.Connection.t`) - Connection to server - * `customer_id` (*type:* `String.t`) - Immutable ID of the Google Workspace account. + * `customer_id` (*type:* `String.t`) - The unique ID for the customer's Google Workspace account. In case of a multi-domain account, to fetch all groups for a customer, use this field instead of `domain`. You can also use the `my_customer` alias to represent your account's `customerId`. The `customerId` is also returned as part of the [Users](/admin-sdk/directory/v1/reference/users) resource. You must provide either the `customer` or the `domain` parameter. * `schema_key` (*type:* `String.t`) - Name or immutable ID of the schema. * `optional_params` (*type:* `keyword()`) - Optional parameters * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. @@ -226,7 +226,7 @@ defmodule GoogleApi.Admin.Directory_v1.Api.Schemas do ## Parameters * `connection` (*type:* `GoogleApi.Admin.Directory_v1.Connection.t`) - Connection to server - * `customer_id` (*type:* `String.t`) - Immutable ID of the Google Workspace account. + * `customer_id` (*type:* `String.t`) - The unique ID for the customer's Google Workspace account. In case of a multi-domain account, to fetch all groups for a customer, use this field instead of `domain`. You can also use the `my_customer` alias to represent your account's `customerId`. The `customerId` is also returned as part of the [Users](/admin-sdk/directory/v1/reference/users) resource. You must provide either the `customer` or the `domain` parameter. * `optional_params` (*type:* `keyword()`) - Optional parameters * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. * `:access_token` (*type:* `String.t`) - OAuth access token. diff --git a/clients/admin/lib/google_api/admin/directory_v1/api/users.ex b/clients/admin/lib/google_api/admin/directory_v1/api/users.ex index 2279573b93..d223f0e6fe 100644 --- a/clients/admin/lib/google_api/admin/directory_v1/api/users.ex +++ b/clients/admin/lib/google_api/admin/directory_v1/api/users.ex @@ -149,7 +149,7 @@ defmodule GoogleApi.Admin.Directory_v1.Api.Users do end @doc """ - Creates a user. + Creates a user. Mutate calls immediately following user creation might sometimes fail as the user isn't fully created due to propagation delay in our backends. Check the error details for the "User creation is not complete" message to see if this is the case. Retrying the calls after some time can help in this case. ## Parameters @@ -166,6 +166,7 @@ defmodule GoogleApi.Admin.Directory_v1.Api.Users 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"). + * `:resolveConflictAccount` (*type:* `boolean()`) - Optional. If set to `true`, the option selected for [handling unmanaged user accounts](https://support.google.com/a/answer/11112794) will apply. Default: `false` * `:body` (*type:* `GoogleApi.Admin.Directory_v1.Model.User.t`) - * `opts` (*type:* `keyword()`) - Call options @@ -192,6 +193,7 @@ defmodule GoogleApi.Admin.Directory_v1.Api.Users do :quotaUser => :query, :uploadType => :query, :upload_protocol => :query, + :resolveConflictAccount => :query, :body => :body } @@ -226,7 +228,7 @@ defmodule GoogleApi.Admin.Directory_v1.Api.Users do * `: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"). * `:customFieldMask` (*type:* `String.t`) - A comma-separated list of schema names. All fields from these schemas are fetched. This should only be set when `projection=custom`. - * `:customer` (*type:* `String.t`) - The unique ID for the customer's Google Workspace account. In case of a multi-domain account, to fetch all groups for a customer, fill this field instead of domain. You can also use the `my_customer` alias to represent your account's `customerId`. The `customerId` is also returned as part of the [Users resource](/admin-sdk/directory/v1/reference/users). Either the `customer` or the `domain` parameter must be provided. + * `:customer` (*type:* `String.t`) - The unique ID for the customer's Google Workspace account. In case of a multi-domain account, to fetch all groups for a customer, use this field instead of `domain`. You can also use the `my_customer` alias to represent your account's `customerId`. The `customerId` is also returned as part of the [Users](/admin-sdk/directory/v1/reference/users) resource. You must provide either the `customer` or the `domain` parameter. * `:domain` (*type:* `String.t`) - The domain name. Use this field to get groups from only one domain. To return all domains for a customer account, use the `customer` query parameter instead. Either the `customer` or the `domain` parameter must be provided. * `:event` (*type:* `String.t`) - Event on which subscription is intended (if subscribing) * `:maxResults` (*type:* `integer()`) - Maximum number of results to return. @@ -348,7 +350,7 @@ defmodule GoogleApi.Admin.Directory_v1.Api.Users do end @doc """ - Updates a user using patch semantics. The update method should be used instead, since it also supports patch semantics and has better performance. This method is unable to clear fields that contain repeated objects (`addresses`, `phones`, etc). Use the update method instead. + Updates a user using patch semantics. The update method should be used instead, because it also supports patch semantics and has better performance. If you're mapping an external identity to a Google identity, use the [`update`](https://developers.google.com/admin-sdk/directory/v1/reference/users/update) method instead of the `patch` method. This method is unable to clear fields that contain repeated objects (`addresses`, `phones`, etc). Use the update method instead. ## Parameters @@ -526,7 +528,7 @@ defmodule GoogleApi.Admin.Directory_v1.Api.Users do end @doc """ - Updates a user. This method supports patch semantics, meaning you only need to include the fields you wish to update. Fields that are not present in the request will be preserved, and fields set to `null` will be cleared. + Updates a user. This method supports patch semantics, meaning that you only need to include the fields you wish to update. Fields that are not present in the request will be preserved, and fields set to `null` will be cleared. For repeating fields that contain arrays, individual items in the array can't be patched piecemeal; they must be supplied in the request body with the desired values for all items. See the [user accounts guide](https://developers.google.com/admin-sdk/directory/v1/guides/manage-users#update_user) for more information. ## Parameters diff --git a/clients/admin/lib/google_api/admin/directory_v1/metadata.ex b/clients/admin/lib/google_api/admin/directory_v1/metadata.ex index 84fa3e7925..b7b37c2df8 100644 --- a/clients/admin/lib/google_api/admin/directory_v1/metadata.ex +++ b/clients/admin/lib/google_api/admin/directory_v1/metadata.ex @@ -20,7 +20,7 @@ defmodule GoogleApi.Admin.Directory_v1 do API client metadata for GoogleApi.Admin.Directory_v1. """ - @discovery_revision "20221108" + @discovery_revision "20240304" def discovery_revision(), do: @discovery_revision end diff --git a/clients/admin/lib/google_api/admin/directory_v1/model/backlight_info.ex b/clients/admin/lib/google_api/admin/directory_v1/model/backlight_info.ex new file mode 100644 index 0000000000..31d77f80df --- /dev/null +++ b/clients/admin/lib/google_api/admin/directory_v1/model/backlight_info.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.Admin.Directory_v1.Model.BacklightInfo do + @moduledoc """ + Information about the device's backlights. + + ## Attributes + + * `brightness` (*type:* `integer()`, *default:* `nil`) - Output only. Current brightness of the backlight, between 0 and max_brightness. + * `maxBrightness` (*type:* `integer()`, *default:* `nil`) - Output only. Maximum brightness for the backlight. + * `path` (*type:* `String.t`, *default:* `nil`) - Output only. Path to this backlight on the system. Useful if the caller needs to correlate with other information. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :brightness => integer() | nil, + :maxBrightness => integer() | nil, + :path => String.t() | nil + } + + field(:brightness) + field(:maxBrightness) + field(:path) +end + +defimpl Poison.Decoder, for: GoogleApi.Admin.Directory_v1.Model.BacklightInfo do + def decode(value, options) do + GoogleApi.Admin.Directory_v1.Model.BacklightInfo.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Admin.Directory_v1.Model.BacklightInfo do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/admin/lib/google_api/admin/directory_v1/model/batch_change_chrome_os_device_status_request.ex b/clients/admin/lib/google_api/admin/directory_v1/model/batch_change_chrome_os_device_status_request.ex new file mode 100644 index 0000000000..5ee5111794 --- /dev/null +++ b/clients/admin/lib/google_api/admin/directory_v1/model/batch_change_chrome_os_device_status_request.ex @@ -0,0 +1,57 @@ +# 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.Admin.Directory_v1.Model.BatchChangeChromeOsDeviceStatusRequest do + @moduledoc """ + A request for changing the status of a batch of ChromeOS devices. + + ## Attributes + + * `changeChromeOsDeviceStatusAction` (*type:* `String.t`, *default:* `nil`) - Required. The action to take on the ChromeOS device in order to change its status. + * `deprovisionReason` (*type:* `String.t`, *default:* `nil`) - Optional. The reason behind a device deprovision. Must be provided if 'changeChromeOsDeviceStatusAction' is set to 'CHANGE_CHROME_OS_DEVICE_STATUS_ACTION_DEPROVISION'. Otherwise, omit this field. + * `deviceIds` (*type:* `list(String.t)`, *default:* `nil`) - Required. List of the IDs of the ChromeOS devices to change. Maximum 50. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :changeChromeOsDeviceStatusAction => String.t() | nil, + :deprovisionReason => String.t() | nil, + :deviceIds => list(String.t()) | nil + } + + field(:changeChromeOsDeviceStatusAction) + field(:deprovisionReason) + field(:deviceIds, type: :list) +end + +defimpl Poison.Decoder, + for: GoogleApi.Admin.Directory_v1.Model.BatchChangeChromeOsDeviceStatusRequest do + def decode(value, options) do + GoogleApi.Admin.Directory_v1.Model.BatchChangeChromeOsDeviceStatusRequest.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Admin.Directory_v1.Model.BatchChangeChromeOsDeviceStatusRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/admin/lib/google_api/admin/directory_v1/model/batch_change_chrome_os_device_status_response.ex b/clients/admin/lib/google_api/admin/directory_v1/model/batch_change_chrome_os_device_status_response.ex new file mode 100644 index 0000000000..815e2ad172 --- /dev/null +++ b/clients/admin/lib/google_api/admin/directory_v1/model/batch_change_chrome_os_device_status_response.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.Admin.Directory_v1.Model.BatchChangeChromeOsDeviceStatusResponse do + @moduledoc """ + The response of changing the status of a batch of ChromeOS devices. + + ## Attributes + + * `changeChromeOsDeviceStatusResults` (*type:* `list(GoogleApi.Admin.Directory_v1.Model.ChangeChromeOsDeviceStatusResult.t)`, *default:* `nil`) - The results for each of the ChromeOS devices provided in the request. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :changeChromeOsDeviceStatusResults => + list(GoogleApi.Admin.Directory_v1.Model.ChangeChromeOsDeviceStatusResult.t()) | nil + } + + field(:changeChromeOsDeviceStatusResults, + as: GoogleApi.Admin.Directory_v1.Model.ChangeChromeOsDeviceStatusResult, + type: :list + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.Admin.Directory_v1.Model.BatchChangeChromeOsDeviceStatusResponse do + def decode(value, options) do + GoogleApi.Admin.Directory_v1.Model.BatchChangeChromeOsDeviceStatusResponse.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Admin.Directory_v1.Model.BatchChangeChromeOsDeviceStatusResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/admin/lib/google_api/admin/directory_v1/model/change_chrome_os_device_status_result.ex b/clients/admin/lib/google_api/admin/directory_v1/model/change_chrome_os_device_status_result.ex new file mode 100644 index 0000000000..8e8a7747fe --- /dev/null +++ b/clients/admin/lib/google_api/admin/directory_v1/model/change_chrome_os_device_status_result.ex @@ -0,0 +1,53 @@ +# 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.Admin.Directory_v1.Model.ChangeChromeOsDeviceStatusResult do + @moduledoc """ + The result of a single ChromeOS device for a Change state operation. + + ## Attributes + + * `deviceId` (*type:* `String.t`, *default:* `nil`) - The unique ID of the ChromeOS device. + * `error` (*type:* `GoogleApi.Admin.Directory_v1.Model.Status.t`, *default:* `nil`) - The error result of the operation in case of failure. + * `response` (*type:* `GoogleApi.Admin.Directory_v1.Model.ChangeChromeOsDeviceStatusSucceeded.t`, *default:* `nil`) - The device could change its status successfully. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :deviceId => String.t() | nil, + :error => GoogleApi.Admin.Directory_v1.Model.Status.t() | nil, + :response => + GoogleApi.Admin.Directory_v1.Model.ChangeChromeOsDeviceStatusSucceeded.t() | nil + } + + field(:deviceId) + field(:error, as: GoogleApi.Admin.Directory_v1.Model.Status) + field(:response, as: GoogleApi.Admin.Directory_v1.Model.ChangeChromeOsDeviceStatusSucceeded) +end + +defimpl Poison.Decoder, for: GoogleApi.Admin.Directory_v1.Model.ChangeChromeOsDeviceStatusResult do + def decode(value, options) do + GoogleApi.Admin.Directory_v1.Model.ChangeChromeOsDeviceStatusResult.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Admin.Directory_v1.Model.ChangeChromeOsDeviceStatusResult do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/admin/lib/google_api/admin/directory_v1/model/change_chrome_os_device_status_succeeded.ex b/clients/admin/lib/google_api/admin/directory_v1/model/change_chrome_os_device_status_succeeded.ex new file mode 100644 index 0000000000..a49a3b1968 --- /dev/null +++ b/clients/admin/lib/google_api/admin/directory_v1/model/change_chrome_os_device_status_succeeded.ex @@ -0,0 +1,43 @@ +# 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.Admin.Directory_v1.Model.ChangeChromeOsDeviceStatusSucceeded do + @moduledoc """ + Response for a successful ChromeOS device status change. + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, + for: GoogleApi.Admin.Directory_v1.Model.ChangeChromeOsDeviceStatusSucceeded do + def decode(value, options) do + GoogleApi.Admin.Directory_v1.Model.ChangeChromeOsDeviceStatusSucceeded.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Admin.Directory_v1.Model.ChangeChromeOsDeviceStatusSucceeded do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/admin/lib/google_api/admin/directory_v1/model/chrome_os_device.ex b/clients/admin/lib/google_api/admin/directory_v1/model/chrome_os_device.ex index 3f12ede333..d67079921c 100644 --- a/clients/admin/lib/google_api/admin/directory_v1/model/chrome_os_device.ex +++ b/clients/admin/lib/google_api/admin/directory_v1/model/chrome_os_device.ex @@ -33,8 +33,11 @@ defmodule GoogleApi.Admin.Directory_v1.Model.ChromeOsDevice do * `osUpdateStatus` (*type:* `GoogleApi.Admin.Directory_v1.Model.OsUpdateStatus.t`, *default:* `nil`) - The status of the OS updates for the device. * `screenshotFiles` (*type:* `list(GoogleApi.Admin.Directory_v1.Model.ChromeOsDeviceScreenshotFiles.t)`, *default:* `nil`) - A list of screenshot files to download. Type is always "SCREENSHOT_FILE". (Read-only) * `annotatedUser` (*type:* `String.t`, *default:* `nil`) - The user of the device as noted by the administrator. Maximum length is 100 characters. Empty values are allowed. + * `deviceLicenseType` (*type:* `String.t`, *default:* `nil`) - Output only. Device license type. * `kind` (*type:* `String.t`, *default:* `admin#directory#chromeosdevice`) - The type of resource. For the Chromeosdevices resource, the value is `admin#directory#chromeosdevice`. + * `deprovisionReason` (*type:* `String.t`, *default:* `nil`) - (Read-only) Deprovision reason. * `recentUsers` (*type:* `list(GoogleApi.Admin.Directory_v1.Model.ChromeOsDeviceRecentUsers.t)`, *default:* `nil`) - A list of recent device users, in descending order, by last login time. + * `backlightInfo` (*type:* `list(GoogleApi.Admin.Directory_v1.Model.BacklightInfo.t)`, *default:* `nil`) - Output only. Contains backlight information for the device. * `supportEndDate` (*type:* `DateTime.t`, *default:* `nil`) - Final date the device will be supported (Read-only) * `lastSync` (*type:* `DateTime.t`, *default:* `nil`) - Date and time the device was last synchronized with the policy settings in the G Suite administrator control panel (Read-only) * `deviceId` (*type:* `String.t`, *default:* `nil`) - The unique ID of the Chrome device. @@ -61,6 +64,7 @@ defmodule GoogleApi.Admin.Directory_v1.Model.ChromeOsDevice do * `autoUpdateExpiration` (*type:* `String.t`, *default:* `nil`) - (Read-only) The timestamp after which the device will stop receiving Chrome updates or support * `notes` (*type:* `String.t`, *default:* `nil`) - Notes about this device added by the administrator. This property can be [searched](https://support.google.com/chrome/a/answer/1698333) with the [list](/admin-sdk/directory/v1/reference/chromeosdevices/list) method's `query` parameter. Maximum length is 500 characters. Empty values are allowed. * `willAutoRenew` (*type:* `boolean()`, *default:* `nil`) - Determines if the device will auto renew its support after the support end date. This is a read-only property. + * `lastDeprovisionTimestamp` (*type:* `String.t`, *default:* `nil`) - (Read-only) Date and time for the last deprovision of the device. * `lastKnownNetwork` (*type:* `list(GoogleApi.Admin.Directory_v1.Model.ChromeOsDeviceLastKnownNetwork.t)`, *default:* `nil`) - Contains last known network (Read-only) """ @@ -81,9 +85,12 @@ defmodule GoogleApi.Admin.Directory_v1.Model.ChromeOsDevice do :screenshotFiles => list(GoogleApi.Admin.Directory_v1.Model.ChromeOsDeviceScreenshotFiles.t()) | nil, :annotatedUser => String.t() | nil, + :deviceLicenseType => String.t() | nil, :kind => String.t() | nil, + :deprovisionReason => String.t() | nil, :recentUsers => list(GoogleApi.Admin.Directory_v1.Model.ChromeOsDeviceRecentUsers.t()) | nil, + :backlightInfo => list(GoogleApi.Admin.Directory_v1.Model.BacklightInfo.t()) | nil, :supportEndDate => DateTime.t() | nil, :lastSync => DateTime.t() | nil, :deviceId => String.t() | nil, @@ -115,6 +122,7 @@ defmodule GoogleApi.Admin.Directory_v1.Model.ChromeOsDevice do :autoUpdateExpiration => String.t() | nil, :notes => String.t() | nil, :willAutoRenew => boolean() | nil, + :lastDeprovisionTimestamp => String.t() | nil, :lastKnownNetwork => list(GoogleApi.Admin.Directory_v1.Model.ChromeOsDeviceLastKnownNetwork.t()) | nil } @@ -141,13 +149,16 @@ defmodule GoogleApi.Admin.Directory_v1.Model.ChromeOsDevice do ) field(:annotatedUser) + field(:deviceLicenseType) field(:kind) + field(:deprovisionReason) field(:recentUsers, as: GoogleApi.Admin.Directory_v1.Model.ChromeOsDeviceRecentUsers, type: :list ) + field(:backlightInfo, as: GoogleApi.Admin.Directory_v1.Model.BacklightInfo, type: :list) field(:supportEndDate, as: DateTime) field(:lastSync, as: DateTime) field(:deviceId) @@ -193,6 +204,7 @@ defmodule GoogleApi.Admin.Directory_v1.Model.ChromeOsDevice do field(:autoUpdateExpiration) field(:notes) field(:willAutoRenew) + field(:lastDeprovisionTimestamp) field(:lastKnownNetwork, as: GoogleApi.Admin.Directory_v1.Model.ChromeOsDeviceLastKnownNetwork, diff --git a/clients/admin/lib/google_api/admin/directory_v1/model/directory_chromeosdevices_command_result.ex b/clients/admin/lib/google_api/admin/directory_v1/model/directory_chromeosdevices_command_result.ex index d187b8802e..eb0954f199 100644 --- a/clients/admin/lib/google_api/admin/directory_v1/model/directory_chromeosdevices_command_result.ex +++ b/clients/admin/lib/google_api/admin/directory_v1/model/directory_chromeosdevices_command_result.ex @@ -21,6 +21,7 @@ defmodule GoogleApi.Admin.Directory_v1.Model.DirectoryChromeosdevicesCommandResu ## Attributes + * `commandResultPayload` (*type:* `String.t`, *default:* `nil`) - The payload for the command result. The following commands respond with a payload: * `DEVICE_START_CRD_SESSION`: Payload is a stringified JSON object in the form: { "url": url }. The URL provides a link to the Chrome Remote Desktop session. * `errorMessage` (*type:* `String.t`, *default:* `nil`) - The error message with a short explanation as to why the command failed. Only present if the command failed. * `executeTime` (*type:* `DateTime.t`, *default:* `nil`) - The time at which the command was executed or failed to execute. * `result` (*type:* `String.t`, *default:* `nil`) - The result of the command. @@ -29,11 +30,13 @@ defmodule GoogleApi.Admin.Directory_v1.Model.DirectoryChromeosdevicesCommandResu use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ + :commandResultPayload => String.t() | nil, :errorMessage => String.t() | nil, :executeTime => DateTime.t() | nil, :result => String.t() | nil } + field(:commandResultPayload) field(:errorMessage) field(:executeTime, as: DateTime) field(:result) diff --git a/clients/admin/lib/google_api/admin/directory_v1/model/directory_chromeosdevices_issue_command_request.ex b/clients/admin/lib/google_api/admin/directory_v1/model/directory_chromeosdevices_issue_command_request.ex index 78c9aa7cdc..86d9343d29 100644 --- a/clients/admin/lib/google_api/admin/directory_v1/model/directory_chromeosdevices_issue_command_request.ex +++ b/clients/admin/lib/google_api/admin/directory_v1/model/directory_chromeosdevices_issue_command_request.ex @@ -22,7 +22,7 @@ defmodule GoogleApi.Admin.Directory_v1.Model.DirectoryChromeosdevicesIssueComman ## Attributes * `commandType` (*type:* `String.t`, *default:* `nil`) - The type of command. - * `payload` (*type:* `String.t`, *default:* `nil`) - The payload for the command, provide it only if command supports it. The following commands support adding payload: - SET_VOLUME: Payload is a stringified JSON object in the form: { "volume": 50 }. The volume has to be an integer in the range [0,100]. + * `payload` (*type:* `String.t`, *default:* `nil`) - The payload for the command, provide it only if command supports it. The following commands support adding payload: * `SET_VOLUME`: Payload is a stringified JSON object in the form: { "volume": 50 }. The volume has to be an integer in the range [0,100]. * `DEVICE_START_CRD_SESSION`: Payload is optionally a stringified JSON object in the form: { "ackedUserPresence": true }. `ackedUserPresence` is a boolean. By default, `ackedUserPresence` is set to `false`. To start a Chrome Remote Desktop session for an active device, set `ackedUserPresence` to `true`. * `REBOOT`: Payload is a stringified JSON object in the form: { "user_session_delay_seconds": 300 }. The delay has to be in the range [0, 300]. * `FETCH_SUPPORT_PACKET`: Payload is optionally a stringified JSON object in the form: {"supportPacketDetails":{ "issueCaseId": optional_support_case_id_string, "issueDescription": optional_issue_description_string, "requestedDataCollectors": []}} The list of available `data_collector_enums` are as following: Chrome System Information (1), Crash IDs (2), Memory Details (3), UI Hierarchy (4), Additional ChromeOS Platform Logs (5), Device Event (6), Intel WiFi NICs Debug Dump (7), Touch Events (8), Lacros (9), Lacros System Information (10), ChromeOS Flex Logs (11), DBus Details (12), ChromeOS Network Routes (13), ChromeOS Shill (Connection Manager) Logs (14), Policies (15), ChromeOS System State and Logs (16), ChromeOS System Logs (17), ChromeOS Chrome User Logs (18), ChromeOS Bluetooth (19), ChromeOS Connected Input Devices (20), ChromeOS Traffic Counters (21), ChromeOS Virtual Keyboard (22), ChromeOS Network Health (23). See more details in [help article](https://support.google.com/chrome/a?p=remote-log). """ use GoogleApi.Gax.ModelBase diff --git a/clients/admin/lib/google_api/admin/directory_v1/model/group.ex b/clients/admin/lib/google_api/admin/directory_v1/model/group.ex index 7a9deb92e7..576011fc3e 100644 --- a/clients/admin/lib/google_api/admin/directory_v1/model/group.ex +++ b/clients/admin/lib/google_api/admin/directory_v1/model/group.ex @@ -17,7 +17,7 @@ defmodule GoogleApi.Admin.Directory_v1.Model.Group do @moduledoc """ - Google Groups provide your users the ability to send messages to groups of people using the group's email address. For more information about common tasks, see the [Developer's Guide](/admin-sdk/directory/v1/guides/manage-groups). + Google Groups provide your users the ability to send messages to groups of people using the group's email address. For more information about common tasks, see the [Developer's Guide](https://developers.google.com/admin-sdk/directory/v1/guides/manage-groups). For information about other types of groups, see the [Cloud Identity Groups API documentation](https://cloud.google.com/identity/docs/groups). Note: The user calling the API (or being impersonated by a service account) must have an assigned [role](https://developers.google.com/admin-sdk/directory/v1/guides/manage-roles) that includes Admin API Groups permissions, such as Super Admin or Groups Admin. ## Attributes diff --git a/clients/admin/lib/google_api/admin/directory_v1/model/member.ex b/clients/admin/lib/google_api/admin/directory_v1/model/member.ex index 75698b0870..239f9443ef 100644 --- a/clients/admin/lib/google_api/admin/directory_v1/model/member.ex +++ b/clients/admin/lib/google_api/admin/directory_v1/model/member.ex @@ -21,7 +21,7 @@ defmodule GoogleApi.Admin.Directory_v1.Model.Member do ## Attributes - * `delivery_settings` (*type:* `String.t`, *default:* `nil`) - Defines mail delivery preferences of member. This is only supported by create/update/get. + * `delivery_settings` (*type:* `String.t`, *default:* `nil`) - Defines mail delivery preferences of member. This field is only supported by `insert`, `update`, and `get` methods. * `email` (*type:* `String.t`, *default:* `nil`) - The member's email address. A member can be a user or another group. This property is required when adding a member to a group. The `email` must be unique and cannot be an alias of another group. If the email address is changed, the API automatically reflects the email address changes. * `etag` (*type:* `String.t`, *default:* `nil`) - ETag of the resource. * `id` (*type:* `String.t`, *default:* `nil`) - The unique ID of the group member. A member `id` can be used as a member request URI's `memberKey`. diff --git a/clients/admin/lib/google_api/admin/directory_v1/model/org_unit.ex b/clients/admin/lib/google_api/admin/directory_v1/model/org_unit.ex index 46a7518acb..ea083d8f77 100644 --- a/clients/admin/lib/google_api/admin/directory_v1/model/org_unit.ex +++ b/clients/admin/lib/google_api/admin/directory_v1/model/org_unit.ex @@ -21,7 +21,7 @@ defmodule GoogleApi.Admin.Directory_v1.Model.OrgUnit do ## Attributes - * `blockInheritance` (*type:* `boolean()`, *default:* `nil`) - Determines if a sub-organizational unit can inherit the settings of the parent organization. The default value is `false`, meaning a sub-organizational unit inherits the settings of the nearest parent organizational unit. For more information on inheritance and users in an organization structure, see the [administration help center](https://support.google.com/a/answer/4352075). + * `blockInheritance` (*type:* `boolean()`, *default:* `nil`) - Determines if a sub-organizational unit can inherit the settings of the parent organization. The default value is `false`, meaning a sub-organizational unit inherits the settings of the nearest parent organizational unit. This field is deprecated. Setting it to `true` is no longer supported and can have _unintended consequences_. For more information about inheritance and users in an organization structure, see the [administration help center](https://support.google.com/a/answer/4352075). * `description` (*type:* `String.t`, *default:* `nil`) - Description of the organizational unit. * `etag` (*type:* `String.t`, *default:* `nil`) - ETag of the resource. * `kind` (*type:* `String.t`, *default:* `admin#directory#orgUnit`) - The type of the API resource. For Orgunits resources, the value is `admin#directory#orgUnit`. diff --git a/clients/admin/lib/google_api/admin/directory_v1/model/role_assignment.ex b/clients/admin/lib/google_api/admin/directory_v1/model/role_assignment.ex index ab69daf5a9..b699169a47 100644 --- a/clients/admin/lib/google_api/admin/directory_v1/model/role_assignment.ex +++ b/clients/admin/lib/google_api/admin/directory_v1/model/role_assignment.ex @@ -21,7 +21,8 @@ defmodule GoogleApi.Admin.Directory_v1.Model.RoleAssignment do ## Attributes - * `assignedTo` (*type:* `String.t`, *default:* `nil`) - The unique ID of the entity this role is assigned to—either the `user_id` of a user or the `uniqueId` of a service account, as defined in [Identity and Access Management (IAM)](https://cloud.google.com/iam/docs/reference/rest/v1/projects.serviceAccounts). + * `assignedTo` (*type:* `String.t`, *default:* `nil`) - The unique ID of the entity this role is assigned to—either the `user_id` of a user, the `group_id` of a group, or the `uniqueId` of a service account as defined in [Identity and Access Management (IAM)](https://cloud.google.com/iam/docs/reference/rest/v1/projects.serviceAccounts). + * `assigneeType` (*type:* `String.t`, *default:* `nil`) - Output only. The type of the assignee (`USER` or `GROUP`). * `etag` (*type:* `String.t`, *default:* `nil`) - ETag of the resource. * `kind` (*type:* `String.t`, *default:* `admin#directory#roleAssignment`) - The type of the API resource. This is always `admin#directory#roleAssignment`. * `orgUnitId` (*type:* `String.t`, *default:* `nil`) - If the role is restricted to an organization unit, this contains the ID for the organization unit the exercise of this role is restricted to. @@ -34,6 +35,7 @@ defmodule GoogleApi.Admin.Directory_v1.Model.RoleAssignment do @type t :: %__MODULE__{ :assignedTo => String.t() | nil, + :assigneeType => String.t() | nil, :etag => String.t() | nil, :kind => String.t() | nil, :orgUnitId => String.t() | nil, @@ -43,6 +45,7 @@ defmodule GoogleApi.Admin.Directory_v1.Model.RoleAssignment do } field(:assignedTo) + field(:assigneeType) field(:etag) field(:kind) field(:orgUnitId) diff --git a/clients/admin/lib/google_api/admin/directory_v1/model/status.ex b/clients/admin/lib/google_api/admin/directory_v1/model/status.ex new file mode 100644 index 0000000000..5df5373b13 --- /dev/null +++ b/clients/admin/lib/google_api/admin/directory_v1/model/status.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.Admin.Directory_v1.Model.Status do + @moduledoc """ + The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). + + ## Attributes + + * `code` (*type:* `integer()`, *default:* `nil`) - The status code, which should be an enum value of google.rpc.Code. + * `details` (*type:* `list(map())`, *default:* `nil`) - A list of messages that carry the error details. There is a common set of message types for APIs to use. + * `message` (*type:* `String.t`, *default:* `nil`) - A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :code => integer() | nil, + :details => list(map()) | nil, + :message => String.t() | nil + } + + field(:code) + field(:details, type: :list) + field(:message) +end + +defimpl Poison.Decoder, for: GoogleApi.Admin.Directory_v1.Model.Status do + def decode(value, options) do + GoogleApi.Admin.Directory_v1.Model.Status.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Admin.Directory_v1.Model.Status do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/admin/lib/google_api/admin/directory_v1/model/user.ex b/clients/admin/lib/google_api/admin/directory_v1/model/user.ex index 45b7c8d1a7..417e68fa2a 100644 --- a/clients/admin/lib/google_api/admin/directory_v1/model/user.ex +++ b/clients/admin/lib/google_api/admin/directory_v1/model/user.ex @@ -17,7 +17,7 @@ defmodule GoogleApi.Admin.Directory_v1.Model.User do @moduledoc """ - The Directory API allows you to create and manage your account's users, user aliases, and user Gmail chat profile photos. For more information about common tasks, see the [User Accounts Developer's Guide](/admin-sdk/directory/v1/guides/manage-users.html) and the [User Aliases Developer's Guide](/admin-sdk/directory/v1/guides/manage-user-aliases.html). + The Directory API allows you to create and manage your account's users, user aliases, and user Google profile photos. For more information about common tasks, see the [User Accounts Developer's Guide](/admin-sdk/directory/v1/guides/manage-users.html) and the [User Aliases Developer's Guide](/admin-sdk/directory/v1/guides/manage-user-aliases.html). ## Attributes @@ -49,19 +49,19 @@ defmodule GoogleApi.Admin.Directory_v1.Model.User do * `recoveryEmail` (*type:* `String.t`, *default:* `nil`) - Recovery email of the user. * `websites` (*type:* `any()`, *default:* `nil`) - The user's websites. The maximum allowed data size for this field is 2KB. * `primaryEmail` (*type:* `String.t`, *default:* `nil`) - The user's primary email address. This property is required in a request to create a user account. The `primaryEmail` must be unique and cannot be an alias of another user. - * `ipWhitelisted` (*type:* `boolean()`, *default:* `nil`) - If `true`, the user's IP address is [whitelisted](https://support.google.com/a/answer/60752). + * `ipWhitelisted` (*type:* `boolean()`, *default:* `nil`) - If `true`, the user's IP address is subject to a deprecated IP address [`allowlist`](https://support.google.com/a/answer/60752) configuration. * `creationTime` (*type:* `DateTime.t`, *default:* `nil`) - User's G Suite account creation time. (Read-only) * `customerId` (*type:* `String.t`, *default:* `nil`) - Output only. The customer ID to [retrieve all account users](/admin-sdk/directory/v1/guides/manage-users.html#get_all_users). You can use the alias `my_customer` to represent your account's `customerId`. As a reseller administrator, you can use the resold customer account's `customerId`. To get a `customerId`, use the account's primary domain in the `domain` parameter of a [users.list](/admin-sdk/directory/v1/reference/users/list) request. * `archived` (*type:* `boolean()`, *default:* `nil`) - Indicates if user is archived. * `isDelegatedAdmin` (*type:* `boolean()`, *default:* `nil`) - Output only. Indicates if the user is a delegated administrator. Delegated administrators are supported by the API but cannot create or undelete users, or make users administrators. These requests are ignored by the API service. Roles and privileges for administrators are assigned using the [Admin console](https://support.google.com/a/answer/33325). * `locations` (*type:* `any()`, *default:* `nil`) - The user's locations. The maximum allowed data size for this field is 10KB. * `nonEditableAliases` (*type:* `list(String.t)`, *default:* `nil`) - Output only. The list of the user's non-editable alias email addresses. These are typically outside the account's primary domain or sub-domain. - * `emails` (*type:* `any()`, *default:* `nil`) - The list of the user's email addresses. The maximum allowed data size for this field is 10KB. + * `emails` (*type:* `any()`, *default:* `nil`) - The list of the user's email addresses. The maximum allowed data size for this field is 10KB. This excludes `publicKeyEncryptionCertificates`. * `isAdmin` (*type:* `boolean()`, *default:* `nil`) - Output only. Indicates a user with super admininistrator privileges. The `isAdmin` property can only be edited in the [Make a user an administrator](/admin-sdk/directory/v1/guides/manage-users.html#make_admin) operation ( [makeAdmin](/admin-sdk/directory/v1/reference/users/makeAdmin.html) method). If edited in the user [insert](/admin-sdk/directory/v1/reference/users/insert.html) or [update](/admin-sdk/directory/v1/reference/users/update.html) methods, the edit is ignored by the API service. * `aliases` (*type:* `list(String.t)`, *default:* `nil`) - Output only. The list of the user's alias email addresses. * `id` (*type:* `String.t`, *default:* `nil`) - The unique ID for the user. A user `id` can be used as a user request URI's `userKey`. * `isEnforcedIn2Sv` (*type:* `boolean()`, *default:* `nil`) - Output only. Is 2-step verification enforced (Read-only) - * `thumbnailPhotoUrl` (*type:* `String.t`, *default:* `nil`) - Output only. Photo Url of the user (Read-only) + * `thumbnailPhotoUrl` (*type:* `String.t`, *default:* `nil`) - Output only. The URL of the user's profile photo. The URL might be temporary or private. * `phones` (*type:* `any()`, *default:* `nil`) - The list of the user's phone numbers. The maximum allowed data size for this field is 1KB. * `notes` (*type:* `any()`, *default:* `nil`) - Notes for the user. * `changePasswordAtNextLogin` (*type:* `boolean()`, *default:* `nil`) - Indicates if the user is forced to change their password at next login. This setting doesn't apply when [the user signs in via a third-party identity provider](https://support.google.com/a/answer/60224). diff --git a/clients/admin/lib/google_api/admin/directory_v1/model/user_email.ex b/clients/admin/lib/google_api/admin/directory_v1/model/user_email.ex index 2dd5bb14bd..199e449760 100644 --- a/clients/admin/lib/google_api/admin/directory_v1/model/user_email.ex +++ b/clients/admin/lib/google_api/admin/directory_v1/model/user_email.ex @@ -24,6 +24,7 @@ defmodule GoogleApi.Admin.Directory_v1.Model.UserEmail do * `address` (*type:* `String.t`, *default:* `nil`) - Email id of the user. * `customType` (*type:* `String.t`, *default:* `nil`) - Custom Type. * `primary` (*type:* `boolean()`, *default:* `nil`) - If this is user's primary email. Only one entry could be marked as primary. + * `public_key_encryption_certificates` (*type:* `GoogleApi.Admin.Directory_v1.Model.UserEmailPublicKeyEncryptionCertificates.t`, *default:* `nil`) - Public Key Encryption Certificates. Current limit: 1 per email address, and 5 per user. * `type` (*type:* `String.t`, *default:* `nil`) - Each entry can have a type which indicates standard types of that entry. For example email could be of home, work etc. In addition to the standard type, an entry can have a custom type and can take any value Such types should have the CUSTOM value as type and also have a customType value. """ @@ -33,12 +34,19 @@ defmodule GoogleApi.Admin.Directory_v1.Model.UserEmail do :address => String.t() | nil, :customType => String.t() | nil, :primary => boolean() | nil, + :public_key_encryption_certificates => + GoogleApi.Admin.Directory_v1.Model.UserEmailPublicKeyEncryptionCertificates.t() | nil, :type => String.t() | nil } field(:address) field(:customType) field(:primary) + + field(:public_key_encryption_certificates, + as: GoogleApi.Admin.Directory_v1.Model.UserEmailPublicKeyEncryptionCertificates + ) + field(:type) end diff --git a/clients/admin/lib/google_api/admin/directory_v1/model/user_email_public_key_encryption_certificates.ex b/clients/admin/lib/google_api/admin/directory_v1/model/user_email_public_key_encryption_certificates.ex new file mode 100644 index 0000000000..1e2da43876 --- /dev/null +++ b/clients/admin/lib/google_api/admin/directory_v1/model/user_email_public_key_encryption_certificates.ex @@ -0,0 +1,57 @@ +# 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.Admin.Directory_v1.Model.UserEmailPublicKeyEncryptionCertificates do + @moduledoc """ + Public Key Encryption Certificates. Current limit: 1 per email address, and 5 per user. + + ## Attributes + + * `certificate` (*type:* `String.t`, *default:* `nil`) - X.509 encryption certificate in `PEM` format. Must only be an end-entity (leaf) certificate. + * `is_default` (*type:* `boolean()`, *default:* `nil`) - Whether this is the default certificate for the given email address. + * `state` (*type:* `String.t`, *default:* `nil`) - Denotes the certificate's state in its lifecycle. Possible values are `not_yet_validated`, `valid`, `invalid`, `expired`, and `revoked`. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :certificate => String.t() | nil, + :is_default => boolean() | nil, + :state => String.t() | nil + } + + field(:certificate) + field(:is_default) + field(:state) +end + +defimpl Poison.Decoder, + for: GoogleApi.Admin.Directory_v1.Model.UserEmailPublicKeyEncryptionCertificates do + def decode(value, options) do + GoogleApi.Admin.Directory_v1.Model.UserEmailPublicKeyEncryptionCertificates.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Admin.Directory_v1.Model.UserEmailPublicKeyEncryptionCertificates do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/admin/lib/google_api/admin/reports_v1/api/activities.ex b/clients/admin/lib/google_api/admin/reports_v1/api/activities.ex index 6ef617531b..15ab9e3713 100644 --- a/clients/admin/lib/google_api/admin/reports_v1/api/activities.ex +++ b/clients/admin/lib/google_api/admin/reports_v1/api/activities.ex @@ -144,7 +144,7 @@ defmodule GoogleApi.Admin.Reports_v1.Api.Activities do * `:filters` (*type:* `String.t`) - The `filters` query string is a comma-separated list composed of event parameters manipulated by relational operators. Event parameters are in the form `{parameter1 name}{relational operator}{parameter1 value},{parameter2 name}{relational operator}{parameter2 value},...` These event parameters are associated with a specific `eventName`. An empty report is returned if the request's parameter doesn't belong to the `eventName`. For more information about the available `eventName` fields for each application and their associated parameters, go to the [ApplicationName](#applicationname) table, then click through to the Activity Events page in the Appendix for the application you want. In the following Drive activity examples, the returned list consists of all `edit` events where the `doc_id` parameter value matches the conditions defined by the relational operator. In the first example, the request returns all edited documents with a `doc_id` value equal to `12345`. In the second example, the report returns any edited documents where the `doc_id` value is not equal to `98765`. The `<>` operator is URL-encoded in the request's query string (`%3C%3E`): ``` GET...&eventName=edit&filters=doc_id==12345 GET...&eventName=edit&filters=doc_id%3C%3E98765 ``` A `filters` query supports these relational operators: * `==`—'equal to'. * `<>`—'not equal to'. Must be URL-encoded (%3C%3E). * `<`—'less than'. Must be URL-encoded (%3C). * `<=`—'less than or equal to'. Must be URL-encoded (%3C=). * `>`—'greater than'. Must be URL-encoded (%3E). * `>=`—'greater than or equal to'. Must be URL-encoded (%3E=). **Note:** The API doesn't accept multiple values of the same parameter. If a parameter is supplied more than once in the API request, the API only accepts the last value of that parameter. In addition, if an invalid parameter is supplied in the API request, the API ignores that parameter and returns the response corresponding to the remaining valid parameters. If no parameters are requested, all parameters are returned. * `:groupIdFilter` (*type:* `String.t`) - Comma separated group ids (obfuscated) on which user activities are filtered, i.e. the response will contain activities for only those users that are a part of at least one of the group ids mentioned here. Format: "id:abc123,id:xyz456" * `:maxResults` (*type:* `integer()`) - Determines how many activity records are shown on each response page. For example, if the request sets `maxResults=1` and the report has two activities, the report has two pages. The response's `nextPageToken` property has the token to the second page. The `maxResults` query string is optional in the request. The default value is 1000. - * `:orgUnitID` (*type:* `String.t`) - ID of the organizational unit to report on. Activity records will be shown only for users who belong to the specified organizational unit. Data before Dec 17, 2018 doesn't appear in the filtered results. + * `:orgUnitID` (*type:* `String.t`) - `Deprecated`. This field is deprecated and is no longer supported. ID of the organizational unit to report on. Activity records will be shown only for users who belong to the specified organizational unit. Data before Dec 17, 2018 doesn't appear in the filtered results. * `:pageToken` (*type:* `String.t`) - The token to specify next page. A report with multiple pages has a `nextPageToken` property in the response. In your follow-on request getting the next page of the report, enter the `nextPageToken` value in the `pageToken` query string. * `:startTime` (*type:* `String.t`) - Sets the beginning of the range of time shown in the report. The date is in the RFC 3339 format, for example 2010-10-28T10:26:35.000Z. The report returns all activities from `startTime` until `endTime`. The `startTime` must be before the `endTime` (if specified) and the current time when the request is made, or the API returns an error. * `:body` (*type:* `GoogleApi.Admin.Reports_v1.Model.Channel.t`) - diff --git a/clients/admin/lib/google_api/admin/reports_v1/api/customer_usage_reports.ex b/clients/admin/lib/google_api/admin/reports_v1/api/customer_usage_reports.ex index 68df075fff..7ca9285dd0 100644 --- a/clients/admin/lib/google_api/admin/reports_v1/api/customer_usage_reports.ex +++ b/clients/admin/lib/google_api/admin/reports_v1/api/customer_usage_reports.ex @@ -31,7 +31,7 @@ defmodule GoogleApi.Admin.Reports_v1.Api.CustomerUsageReports do ## Parameters * `connection` (*type:* `GoogleApi.Admin.Reports_v1.Connection.t`) - Connection to server - * `date` (*type:* `String.t`) - Represents the date the usage occurred, based on PST time zone. The timestamp is in the [ISO 8601 format](https://en.wikipedia.org/wiki/ISO_8601), `yyyy-mm-dd`. + * `date` (*type:* `String.t`) - Represents the date the usage occurred, based on UTC-8:00 (Pacific Standard Time). The timestamp is in the [ISO 8601 format](https://en.wikipedia.org/wiki/ISO_8601), `yyyy-mm-dd`. * `optional_params` (*type:* `keyword()`) - Optional parameters * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. * `:access_token` (*type:* `String.t`) - OAuth access token. diff --git a/clients/admin/lib/google_api/admin/reports_v1/api/entity_usage_reports.ex b/clients/admin/lib/google_api/admin/reports_v1/api/entity_usage_reports.ex index de4ebf1061..3424c348ac 100644 --- a/clients/admin/lib/google_api/admin/reports_v1/api/entity_usage_reports.ex +++ b/clients/admin/lib/google_api/admin/reports_v1/api/entity_usage_reports.ex @@ -33,7 +33,7 @@ defmodule GoogleApi.Admin.Reports_v1.Api.EntityUsageReports do * `connection` (*type:* `GoogleApi.Admin.Reports_v1.Connection.t`) - Connection to server * `entity_type` (*type:* `String.t`) - Represents the type of entity for the report. * `entity_key` (*type:* `String.t`) - Represents the key of the object to filter the data with. It is a string which can take the value `all` to get activity events for all users, or any other value for an app-specific entity. For details on how to obtain the `entityKey` for a particular `entityType`, see the Entities Usage parameters reference guides. - * `date` (*type:* `String.t`) - Represents the date the usage occurred. The timestamp is in the ISO 8601 format, yyyy-mm-dd. We recommend you use your account's time zone for this. + * `date` (*type:* `String.t`) - Represents the date the usage occurred, based on UTC-8:00 (Pacific Standard Time). The timestamp is in the [ISO 8601 format](https://en.wikipedia.org/wiki/ISO_8601), `yyyy-mm-dd`. * `optional_params` (*type:* `keyword()`) - Optional parameters * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. * `:access_token` (*type:* `String.t`) - OAuth access token. diff --git a/clients/admin/lib/google_api/admin/reports_v1/api/user_usage_report.ex b/clients/admin/lib/google_api/admin/reports_v1/api/user_usage_report.ex index 3bb6fa7f69..d8fb6420a7 100644 --- a/clients/admin/lib/google_api/admin/reports_v1/api/user_usage_report.ex +++ b/clients/admin/lib/google_api/admin/reports_v1/api/user_usage_report.ex @@ -32,7 +32,7 @@ defmodule GoogleApi.Admin.Reports_v1.Api.UserUsageReport do * `connection` (*type:* `GoogleApi.Admin.Reports_v1.Connection.t`) - Connection to server * `user_key` (*type:* `String.t`) - Represents the profile ID or the user email for which the data should be filtered. Can be `all` for all information, or `userKey` for a user's unique Google Workspace profile ID or their primary email address. Must not be a deleted user. For a deleted user, call `users.list` in Directory API with `showDeleted=true`, then use the returned `ID` as the `userKey`. - * `date` (*type:* `String.t`) - Represents the date the usage occurred, based on GMT-7:00 (Pacific Standard Time). The timestamp is in the [ISO 8601 format](https://en.wikipedia.org/wiki/ISO_8601), `yyyy-mm-dd`. + * `date` (*type:* `String.t`) - Represents the date the usage occurred, based on UTC-8:00 (Pacific Standard Time). The timestamp is in the [ISO 8601 format](https://en.wikipedia.org/wiki/ISO_8601), `yyyy-mm-dd`. * `optional_params` (*type:* `keyword()`) - Optional parameters * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. * `:access_token` (*type:* `String.t`) - OAuth access token. diff --git a/clients/admin/lib/google_api/admin/reports_v1/metadata.ex b/clients/admin/lib/google_api/admin/reports_v1/metadata.ex index 00d8ce496c..bce52dfedf 100644 --- a/clients/admin/lib/google_api/admin/reports_v1/metadata.ex +++ b/clients/admin/lib/google_api/admin/reports_v1/metadata.ex @@ -20,7 +20,7 @@ defmodule GoogleApi.Admin.Reports_v1 do API client metadata for GoogleApi.Admin.Reports_v1. """ - @discovery_revision "20221108" + @discovery_revision "20240304" def discovery_revision(), do: @discovery_revision end diff --git a/clients/admin/lib/google_api/admin/reports_v1/model/activity_events.ex b/clients/admin/lib/google_api/admin/reports_v1/model/activity_events.ex index c8c453b38d..a57422f2f4 100644 --- a/clients/admin/lib/google_api/admin/reports_v1/model/activity_events.ex +++ b/clients/admin/lib/google_api/admin/reports_v1/model/activity_events.ex @@ -21,7 +21,7 @@ defmodule GoogleApi.Admin.Reports_v1.Model.ActivityEvents do ## Attributes - * `name` (*type:* `String.t`, *default:* `nil`) - Name of the event. This is the specific name of the activity reported by the API. And each `eventName` is related to a specific Google Workspace service or feature which the API organizes into types of events. For `eventName` request parameters in general: - If no `eventName` is given, the report returns all possible instances of an `eventName`. - When you request an `eventName`, the API's response returns all activities which contain that `eventName`. It is possible that the returned activities will have other `eventName` properties in addition to the one requested. For more information about `eventName` properties, see the list of event names for various applications above in `applicationName`. + * `name` (*type:* `String.t`, *default:* `nil`) - Name of the event. This is the specific name of the activity reported by the API. And each `eventName` is related to a specific Google Workspace service or feature which the API organizes into types of events. For `eventName` request parameters in general: - If no `eventName` is given, the report returns all possible instances of an `eventName`. - When you request an `eventName`, the API's response returns all activities which contain that `eventName`. For more information about `eventName` properties, see the list of event names for various applications above in `applicationName`. * `parameters` (*type:* `list(GoogleApi.Admin.Reports_v1.Model.ActivityEventsParameters.t)`, *default:* `nil`) - Parameter value pairs for various applications. For more information about `eventName` parameters, see the list of event names for various applications above in `applicationName`. * `type` (*type:* `String.t`, *default:* `nil`) - Type of event. The Google Workspace service or feature that an administrator changes is identified in the `type` property which identifies an event using the `eventName` property. For a full list of the API's `type` categories, see the list of event names for various applications above in `applicationName`. """ diff --git a/clients/admin/lib/google_api/admin/reports_v1/model/channel.ex b/clients/admin/lib/google_api/admin/reports_v1/model/channel.ex index 59927c5298..114c198a66 100644 --- a/clients/admin/lib/google_api/admin/reports_v1/model/channel.ex +++ b/clients/admin/lib/google_api/admin/reports_v1/model/channel.ex @@ -26,7 +26,7 @@ defmodule GoogleApi.Admin.Reports_v1.Model.Channel do * `id` (*type:* `String.t`, *default:* `nil`) - A UUID or similar unique string that identifies this channel. * `kind` (*type:* `String.t`, *default:* `api#channel`) - Identifies this as a notification channel used to watch for changes to a resource, which is "`api#channel`". * `params` (*type:* `map()`, *default:* `nil`) - Additional parameters controlling delivery channel behavior. Optional. - * `payload` (*type:* `boolean()`, *default:* `nil`) - A Boolean value to indicate whether payload is wanted. Optional. + * `payload` (*type:* `boolean()`, *default:* `nil`) - A Boolean value to indicate whether payload is wanted. A payload is data that is sent in the body of an HTTP POST, PUT, or PATCH message and contains important information about the request. Optional. * `resourceId` (*type:* `String.t`, *default:* `nil`) - An opaque ID that identifies the resource being watched on this channel. Stable across different API versions. * `resourceUri` (*type:* `String.t`, *default:* `nil`) - A version-specific identifier for the watched resource. * `token` (*type:* `String.t`, *default:* `nil`) - An arbitrary string delivered to the target address with each notification delivered over this channel. Optional.