-
Notifications
You must be signed in to change notification settings - Fork 461
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Automated regeneration of ChromeManagement client (#12621)
Auto-created at 2024-11-27 13:15:37 +0000 using the toys pull request generator.
- Loading branch information
1 parent
55c29eb
commit bd6e454
Showing
8 changed files
with
329 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
101 changes: 101 additions & 0 deletions
101
...t/v1/model/google_chrome_management_versions_v1alpha1_certificate_provisioning_process.ex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
54 changes: 54 additions & 0 deletions
54
...chrome_management/v1/model/google_chrome_management_versions_v1alpha1_chrome_os_device.ex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
64 changes: 64 additions & 0 deletions
64
..._management/v1/model/google_chrome_management_versions_v1alpha1_chrome_os_user_session.ex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
51 changes: 51 additions & 0 deletions
51
...rome_management/v1/model/google_chrome_management_versions_v1alpha1_sign_data_metadata.ex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
56 changes: 56 additions & 0 deletions
56
...rome_management/v1/model/google_chrome_management_versions_v1alpha1_sign_data_response.ex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters