Skip to content

Commit

Permalink
feat: Automated regeneration of ChromeManagement client (#12621)
Browse files Browse the repository at this point in the history
Auto-created at 2024-11-27 13:15:37 +0000 using the toys pull request generator.
  • Loading branch information
yoshi-code-bot authored Nov 27, 2024
1 parent 55c29eb commit bd6e454
Show file tree
Hide file tree
Showing 8 changed files with 329 additions and 3 deletions.
2 changes: 1 addition & 1 deletion clients/chrome_management/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
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
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
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
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
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
2 changes: 1 addition & 1 deletion clients/chrome_management/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
defmodule GoogleApi.ChromeManagement.Mixfile do
use Mix.Project

@version "0.8.0"
@version "0.9.0"

def project() do
[
Expand Down

0 comments on commit bd6e454

Please sign in to comment.