diff --git a/clients/chrome_management/README.md b/clients/chrome_management/README.md index e2ab7f6872..7c9115dc95 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.9"}] + [{:google_api_chrome_management, "~> 0.10"}] 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 53f8172dc4..83a3db87b4 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 "20241121" + @discovery_revision "20241215" def discovery_revision(), do: @discovery_revision end diff --git a/clients/chrome_management/lib/google_api/chrome_management/v1/model/google_chrome_management_versions_v1_certificate_provisioning_process.ex b/clients/chrome_management/lib/google_api/chrome_management/v1/model/google_chrome_management_versions_v1_certificate_provisioning_process.ex new file mode 100644 index 0000000000..26d89962f2 --- /dev/null +++ b/clients/chrome_management/lib/google_api/chrome_management/v1/model/google_chrome_management_versions_v1_certificate_provisioning_process.ex @@ -0,0 +1,100 @@ +# 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.GoogleChromeManagementVersionsV1CertificateProvisioningProcess 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.GoogleChromeManagementVersionsV1ChromeOsDevice.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.GoogleChromeManagementVersionsV1ChromeOsUserSession.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.GoogleChromeManagementVersionsV1ChromeOsDevice.t() + | nil, + :chromeOsUserSession => + GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementVersionsV1ChromeOsUserSession.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.GoogleChromeManagementVersionsV1ChromeOsDevice + ) + + field(:chromeOsUserSession, + as: GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementVersionsV1ChromeOsUserSession + ) + + 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.GoogleChromeManagementVersionsV1CertificateProvisioningProcess do + def decode(value, options) do + GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementVersionsV1CertificateProvisioningProcess.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementVersionsV1CertificateProvisioningProcess 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_v1_chrome_os_device.ex b/clients/chrome_management/lib/google_api/chrome_management/v1/model/google_chrome_management_versions_v1_chrome_os_device.ex new file mode 100644 index 0000000000..8a32b597d1 --- /dev/null +++ b/clients/chrome_management/lib/google_api/chrome_management/v1/model/google_chrome_management_versions_v1_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.GoogleChromeManagementVersionsV1ChromeOsDevice 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.GoogleChromeManagementVersionsV1ChromeOsDevice do + def decode(value, options) do + GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementVersionsV1ChromeOsDevice.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementVersionsV1ChromeOsDevice 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_v1_chrome_os_user_session.ex b/clients/chrome_management/lib/google_api/chrome_management/v1/model/google_chrome_management_versions_v1_chrome_os_user_session.ex new file mode 100644 index 0000000000..bac1bf6dc4 --- /dev/null +++ b/clients/chrome_management/lib/google_api/chrome_management/v1/model/google_chrome_management_versions_v1_chrome_os_user_session.ex @@ -0,0 +1,62 @@ +# 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.GoogleChromeManagementVersionsV1ChromeOsUserSession do + @moduledoc """ + Describes the ChromeOS user session that a `CertificateProvisioningProcess` belongs to. + + ## Attributes + + * `chromeOsDevice` (*type:* `GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementVersionsV1ChromeOsDevice.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.GoogleChromeManagementVersionsV1ChromeOsDevice.t() + | nil, + :userDirectoryApiId => String.t() | nil, + :userPrimaryEmail => String.t() | nil + } + + field(:chromeOsDevice, + as: GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementVersionsV1ChromeOsDevice + ) + + field(:userDirectoryApiId) + field(:userPrimaryEmail) +end + +defimpl Poison.Decoder, + for: GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementVersionsV1ChromeOsUserSession do + def decode(value, options) do + GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementVersionsV1ChromeOsUserSession.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementVersionsV1ChromeOsUserSession 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_v1_sign_data_metadata.ex b/clients/chrome_management/lib/google_api/chrome_management/v1/model/google_chrome_management_versions_v1_sign_data_metadata.ex new file mode 100644 index 0000000000..76b1823000 --- /dev/null +++ b/clients/chrome_management/lib/google_api/chrome_management/v1/model/google_chrome_management_versions_v1_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.GoogleChromeManagementVersionsV1SignDataMetadata 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.GoogleChromeManagementVersionsV1SignDataMetadata do + def decode(value, options) do + GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementVersionsV1SignDataMetadata.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementVersionsV1SignDataMetadata 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_v1_sign_data_response.ex b/clients/chrome_management/lib/google_api/chrome_management/v1/model/google_chrome_management_versions_v1_sign_data_response.ex new file mode 100644 index 0000000000..7577f7fd47 --- /dev/null +++ b/clients/chrome_management/lib/google_api/chrome_management/v1/model/google_chrome_management_versions_v1_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.GoogleChromeManagementVersionsV1SignDataResponse do + @moduledoc """ + Response message for requesting a signature from the client that initated a certificate provisioning process. + + ## Attributes + + * `certificateProvisioningProcess` (*type:* `GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementVersionsV1CertificateProvisioningProcess.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.GoogleChromeManagementVersionsV1CertificateProvisioningProcess.t() + | nil + } + + field(:certificateProvisioningProcess, + as: + GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementVersionsV1CertificateProvisioningProcess + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementVersionsV1SignDataResponse do + def decode(value, options) do + GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementVersionsV1SignDataResponse.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementVersionsV1SignDataResponse 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 768569f420..3ada1b65e4 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.9.0" + @version "0.10.0" def project() do [