From bd6e454be023af49120139786d88df18d82f12cf Mon Sep 17 00:00:00 2001 From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> Date: Wed, 27 Nov 2024 05:18:45 -0800 Subject: [PATCH] feat: Automated regeneration of ChromeManagement client (#12621) Auto-created at 2024-11-27 13:15:37 +0000 using the toys pull request generator. --- clients/chrome_management/README.md | 2 +- .../chrome_management/v1/metadata.ex | 2 +- ...alpha1_certificate_provisioning_process.ex | 101 ++++++++++++++++++ ...ment_versions_v1alpha1_chrome_os_device.ex | 54 ++++++++++ ...ersions_v1alpha1_chrome_os_user_session.ex | 64 +++++++++++ ...nt_versions_v1alpha1_sign_data_metadata.ex | 51 +++++++++ ...nt_versions_v1alpha1_sign_data_response.ex | 56 ++++++++++ clients/chrome_management/mix.exs | 2 +- 8 files changed, 329 insertions(+), 3 deletions(-) create mode 100644 clients/chrome_management/lib/google_api/chrome_management/v1/model/google_chrome_management_versions_v1alpha1_certificate_provisioning_process.ex create mode 100644 clients/chrome_management/lib/google_api/chrome_management/v1/model/google_chrome_management_versions_v1alpha1_chrome_os_device.ex create mode 100644 clients/chrome_management/lib/google_api/chrome_management/v1/model/google_chrome_management_versions_v1alpha1_chrome_os_user_session.ex create mode 100644 clients/chrome_management/lib/google_api/chrome_management/v1/model/google_chrome_management_versions_v1alpha1_sign_data_metadata.ex create mode 100644 clients/chrome_management/lib/google_api/chrome_management/v1/model/google_chrome_management_versions_v1alpha1_sign_data_response.ex diff --git a/clients/chrome_management/README.md b/clients/chrome_management/README.md index d4dbe4d8cf..e2ab7f6872 100644 --- a/clients/chrome_management/README.md +++ b/clients/chrome_management/README.md @@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding ```elixir def deps do - [{:google_api_chrome_management, "~> 0.8"}] + [{:google_api_chrome_management, "~> 0.9"}] end ``` diff --git a/clients/chrome_management/lib/google_api/chrome_management/v1/metadata.ex b/clients/chrome_management/lib/google_api/chrome_management/v1/metadata.ex index d1d3771000..53f8172dc4 100644 --- a/clients/chrome_management/lib/google_api/chrome_management/v1/metadata.ex +++ b/clients/chrome_management/lib/google_api/chrome_management/v1/metadata.ex @@ -20,7 +20,7 @@ defmodule GoogleApi.ChromeManagement.V1 do API client metadata for GoogleApi.ChromeManagement.V1. """ - @discovery_revision "20241119" + @discovery_revision "20241121" def discovery_revision(), do: @discovery_revision end diff --git a/clients/chrome_management/lib/google_api/chrome_management/v1/model/google_chrome_management_versions_v1alpha1_certificate_provisioning_process.ex b/clients/chrome_management/lib/google_api/chrome_management/v1/model/google_chrome_management_versions_v1alpha1_certificate_provisioning_process.ex new file mode 100644 index 0000000000..0b5269ce23 --- /dev/null +++ b/clients/chrome_management/lib/google_api/chrome_management/v1/model/google_chrome_management_versions_v1alpha1_certificate_provisioning_process.ex @@ -0,0 +1,101 @@ +# 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.ChromeManagement.V1.Model.GoogleChromeManagementVersionsV1alpha1CertificateProvisioningProcess do + @moduledoc """ + A certificate provisioning process. + + ## Attributes + + * `caConnectionAdapterConfigReference` (*type:* `String.t`, *default:* `nil`) - Output only. A JSON string that contains the administrator-provided configuration for the certification authority service. This field can be missing if no configuration was given. + * `chromeOsDevice` (*type:* `GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementVersionsV1alpha1ChromeOsDevice.t`, *default:* `nil`) - Output only. The client certificate is being provisioned for a ChromeOS device. This contains information about the device. + * `chromeOsUserSession` (*type:* `GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementVersionsV1alpha1ChromeOsUserSession.t`, *default:* `nil`) - Output only. The client certificate is being provisioned for a ChromeOS user session. This contains information about the user session. + * `failureMessage` (*type:* `String.t`, *default:* `nil`) - Output only. A message describing why this `CertificateProvisioningProcess` failed. Presence of this field indicates that the `CertificateProvisioningProcess` has failed. + * `issuedCertificate` (*type:* `String.t`, *default:* `nil`) - Output only. The issued certificate for this `CertificateProvisioningProcess` in PEM format. + * `name` (*type:* `String.t`, *default:* `nil`) - Identifier. Resource name of the `CertificateProvisioningProcess`. The name pattern is given as `customers/{customer}/certificateProvisioningProcesses/{certificate_provisioning_process}` with `{customer}` being the obfuscated customer id and `{certificate_provisioning_process}` being the certificate provisioning process id. + * `profileAdapterConfigReference` (*type:* `String.t`, *default:* `nil`) - Output only. A JSON string that contains the administrator-provided configuration for the certificate provisioning profile. This field can be missing if no configuration was given. + * `provisioningProfileId` (*type:* `String.t`, *default:* `nil`) - Output only. The ID of the certificate provisioning profile. + * `signData` (*type:* `String.t`, *default:* `nil`) - Output only. The data that the client was asked to sign. This field is only present after the `SignData` operation has been initiated. + * `signature` (*type:* `String.t`, *default:* `nil`) - Output only. The signature of `signature_algorithm`, generated using the client's private key using `signature_algorithm`. This field is only present after the`SignData` operation has finished. + * `signatureAlgorithm` (*type:* `String.t`, *default:* `nil`) - Output only. The signature algorithm that the adapter expects the client and backend components to use when processing `sign_data`. This field is only present after the `SignData` operation has been initiated. + * `startTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Server-generated timestamp of when the certificate provisioning process has been created. + * `subjectPublicKeyInfo` (*type:* `String.t`, *default:* `nil`) - Output only. The public key for which a certificate should be provisioned. Represented as a DER-encoded X.509 SubjectPublicKeyInfo. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :caConnectionAdapterConfigReference => String.t() | nil, + :chromeOsDevice => + GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementVersionsV1alpha1ChromeOsDevice.t() + | nil, + :chromeOsUserSession => + GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementVersionsV1alpha1ChromeOsUserSession.t() + | nil, + :failureMessage => String.t() | nil, + :issuedCertificate => String.t() | nil, + :name => String.t() | nil, + :profileAdapterConfigReference => String.t() | nil, + :provisioningProfileId => String.t() | nil, + :signData => String.t() | nil, + :signature => String.t() | nil, + :signatureAlgorithm => String.t() | nil, + :startTime => DateTime.t() | nil, + :subjectPublicKeyInfo => String.t() | nil + } + + field(:caConnectionAdapterConfigReference) + + field(:chromeOsDevice, + as: GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementVersionsV1alpha1ChromeOsDevice + ) + + field(:chromeOsUserSession, + as: + GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementVersionsV1alpha1ChromeOsUserSession + ) + + field(:failureMessage) + field(:issuedCertificate) + field(:name) + field(:profileAdapterConfigReference) + field(:provisioningProfileId) + field(:signData) + field(:signature) + field(:signatureAlgorithm) + field(:startTime, as: DateTime) + field(:subjectPublicKeyInfo) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementVersionsV1alpha1CertificateProvisioningProcess do + def decode(value, options) do + GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementVersionsV1alpha1CertificateProvisioningProcess.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementVersionsV1alpha1CertificateProvisioningProcess do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/chrome_management/lib/google_api/chrome_management/v1/model/google_chrome_management_versions_v1alpha1_chrome_os_device.ex b/clients/chrome_management/lib/google_api/chrome_management/v1/model/google_chrome_management_versions_v1alpha1_chrome_os_device.ex new file mode 100644 index 0000000000..4f33395c83 --- /dev/null +++ b/clients/chrome_management/lib/google_api/chrome_management/v1/model/google_chrome_management_versions_v1alpha1_chrome_os_device.ex @@ -0,0 +1,54 @@ +# 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.ChromeManagement.V1.Model.GoogleChromeManagementVersionsV1alpha1ChromeOsDevice do + @moduledoc """ + Describes the ChromeOS device that a `CertificateProvisioningProcess` belongs to. + + ## Attributes + + * `deviceDirectoryApiId` (*type:* `String.t`, *default:* `nil`) - Output only. The unique Directory API ID of the device. This value is the same as the Admin Console's Directory API ID in the ChromeOS Devices tab. + * `serialNumber` (*type:* `String.t`, *default:* `nil`) - Output only. Device serial number. This value is the same as the Admin Console's Serial Number in the ChromeOS Devices tab. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :deviceDirectoryApiId => String.t() | nil, + :serialNumber => String.t() | nil + } + + field(:deviceDirectoryApiId) + field(:serialNumber) +end + +defimpl Poison.Decoder, + for: GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementVersionsV1alpha1ChromeOsDevice do + def decode(value, options) do + GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementVersionsV1alpha1ChromeOsDevice.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementVersionsV1alpha1ChromeOsDevice do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/chrome_management/lib/google_api/chrome_management/v1/model/google_chrome_management_versions_v1alpha1_chrome_os_user_session.ex b/clients/chrome_management/lib/google_api/chrome_management/v1/model/google_chrome_management_versions_v1alpha1_chrome_os_user_session.ex new file mode 100644 index 0000000000..e4bd1c5292 --- /dev/null +++ b/clients/chrome_management/lib/google_api/chrome_management/v1/model/google_chrome_management_versions_v1alpha1_chrome_os_user_session.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.ChromeManagement.V1.Model.GoogleChromeManagementVersionsV1alpha1ChromeOsUserSession do + @moduledoc """ + Describes the ChromeOS user session that a `CertificateProvisioningProcess` belongs to. + + ## Attributes + + * `chromeOsDevice` (*type:* `GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementVersionsV1alpha1ChromeOsDevice.t`, *default:* `nil`) - Output only. This field contains information about the ChromeOS device that the user session is running on. It is only set if the user session is affiliated, i.e. if the user is managed by the same organization that managed the ChromeOS device. + * `userDirectoryApiId` (*type:* `String.t`, *default:* `nil`) - Output only. The unique Directory API ID of the user. + * `userPrimaryEmail` (*type:* `String.t`, *default:* `nil`) - Output only. The primary e-mail address of the user. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :chromeOsDevice => + GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementVersionsV1alpha1ChromeOsDevice.t() + | nil, + :userDirectoryApiId => String.t() | nil, + :userPrimaryEmail => String.t() | nil + } + + field(:chromeOsDevice, + as: GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementVersionsV1alpha1ChromeOsDevice + ) + + field(:userDirectoryApiId) + field(:userPrimaryEmail) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementVersionsV1alpha1ChromeOsUserSession do + def decode(value, options) do + GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementVersionsV1alpha1ChromeOsUserSession.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementVersionsV1alpha1ChromeOsUserSession do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/chrome_management/lib/google_api/chrome_management/v1/model/google_chrome_management_versions_v1alpha1_sign_data_metadata.ex b/clients/chrome_management/lib/google_api/chrome_management/v1/model/google_chrome_management_versions_v1alpha1_sign_data_metadata.ex new file mode 100644 index 0000000000..459239c927 --- /dev/null +++ b/clients/chrome_management/lib/google_api/chrome_management/v1/model/google_chrome_management_versions_v1alpha1_sign_data_metadata.ex @@ -0,0 +1,51 @@ +# 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.ChromeManagement.V1.Model.GoogleChromeManagementVersionsV1alpha1SignDataMetadata do + @moduledoc """ + Metadata for the long-running operation returned by signData. + + ## Attributes + + * `startTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Start time of the SignData operation. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :startTime => DateTime.t() | nil + } + + field(:startTime, as: DateTime) +end + +defimpl Poison.Decoder, + for: GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementVersionsV1alpha1SignDataMetadata do + def decode(value, options) do + GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementVersionsV1alpha1SignDataMetadata.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementVersionsV1alpha1SignDataMetadata do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/chrome_management/lib/google_api/chrome_management/v1/model/google_chrome_management_versions_v1alpha1_sign_data_response.ex b/clients/chrome_management/lib/google_api/chrome_management/v1/model/google_chrome_management_versions_v1alpha1_sign_data_response.ex new file mode 100644 index 0000000000..7133569d7e --- /dev/null +++ b/clients/chrome_management/lib/google_api/chrome_management/v1/model/google_chrome_management_versions_v1alpha1_sign_data_response.ex @@ -0,0 +1,56 @@ +# 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.ChromeManagement.V1.Model.GoogleChromeManagementVersionsV1alpha1SignDataResponse do + @moduledoc """ + Response message for requesting a signature from the client that initated a certificate provisioning process. + + ## Attributes + + * `certificateProvisioningProcess` (*type:* `GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementVersionsV1alpha1CertificateProvisioningProcess.t`, *default:* `nil`) - Output only. The certificate provisioning process. The signature generated by the client will be available in the `signature` field of `CertificateProvisioningProcess`. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :certificateProvisioningProcess => + GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementVersionsV1alpha1CertificateProvisioningProcess.t() + | nil + } + + field(:certificateProvisioningProcess, + as: + GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementVersionsV1alpha1CertificateProvisioningProcess + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementVersionsV1alpha1SignDataResponse do + def decode(value, options) do + GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementVersionsV1alpha1SignDataResponse.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementVersionsV1alpha1SignDataResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/chrome_management/mix.exs b/clients/chrome_management/mix.exs index 5d0a2f14d3..768569f420 100644 --- a/clients/chrome_management/mix.exs +++ b/clients/chrome_management/mix.exs @@ -18,7 +18,7 @@ defmodule GoogleApi.ChromeManagement.Mixfile do use Mix.Project - @version "0.8.0" + @version "0.9.0" def project() do [