Skip to content

Commit 079a3c8

Browse files
feat: Automated regeneration of ChromeManagement client (#12733)
Auto-created at 2024-12-17 13:14:06 +0000 using the toys pull request generator.
1 parent ddbfec5 commit 079a3c8

8 files changed

+326
-3
lines changed

clients/chrome_management/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding
1111

1212
```elixir
1313
def deps do
14-
[{:google_api_chrome_management, "~> 0.9"}]
14+
[{:google_api_chrome_management, "~> 0.10"}]
1515
end
1616
```
1717

clients/chrome_management/lib/google_api/chrome_management/v1/metadata.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ defmodule GoogleApi.ChromeManagement.V1 do
2020
API client metadata for GoogleApi.ChromeManagement.V1.
2121
"""
2222

23-
@discovery_revision "20241121"
23+
@discovery_revision "20241215"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
# Copyright 2019 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# NOTE: This file is auto generated by the elixir code generator program.
16+
# Do not edit this file manually.
17+
18+
defmodule GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementVersionsV1CertificateProvisioningProcess do
19+
@moduledoc """
20+
A certificate provisioning process.
21+
22+
## Attributes
23+
24+
* `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.
25+
* `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.
26+
* `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.
27+
* `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.
28+
* `issuedCertificate` (*type:* `String.t`, *default:* `nil`) - Output only. The issued certificate for this `CertificateProvisioningProcess` in PEM format.
29+
* `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.
30+
* `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.
31+
* `provisioningProfileId` (*type:* `String.t`, *default:* `nil`) - Output only. The ID of the certificate provisioning profile.
32+
* `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.
33+
* `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.
34+
* `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.
35+
* `startTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Server-generated timestamp of when the certificate provisioning process has been created.
36+
* `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.
37+
"""
38+
39+
use GoogleApi.Gax.ModelBase
40+
41+
@type t :: %__MODULE__{
42+
:caConnectionAdapterConfigReference => String.t() | nil,
43+
:chromeOsDevice =>
44+
GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementVersionsV1ChromeOsDevice.t()
45+
| nil,
46+
:chromeOsUserSession =>
47+
GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementVersionsV1ChromeOsUserSession.t()
48+
| nil,
49+
:failureMessage => String.t() | nil,
50+
:issuedCertificate => String.t() | nil,
51+
:name => String.t() | nil,
52+
:profileAdapterConfigReference => String.t() | nil,
53+
:provisioningProfileId => String.t() | nil,
54+
:signData => String.t() | nil,
55+
:signature => String.t() | nil,
56+
:signatureAlgorithm => String.t() | nil,
57+
:startTime => DateTime.t() | nil,
58+
:subjectPublicKeyInfo => String.t() | nil
59+
}
60+
61+
field(:caConnectionAdapterConfigReference)
62+
63+
field(:chromeOsDevice,
64+
as: GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementVersionsV1ChromeOsDevice
65+
)
66+
67+
field(:chromeOsUserSession,
68+
as: GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementVersionsV1ChromeOsUserSession
69+
)
70+
71+
field(:failureMessage)
72+
field(:issuedCertificate)
73+
field(:name)
74+
field(:profileAdapterConfigReference)
75+
field(:provisioningProfileId)
76+
field(:signData)
77+
field(:signature)
78+
field(:signatureAlgorithm)
79+
field(:startTime, as: DateTime)
80+
field(:subjectPublicKeyInfo)
81+
end
82+
83+
defimpl Poison.Decoder,
84+
for:
85+
GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementVersionsV1CertificateProvisioningProcess do
86+
def decode(value, options) do
87+
GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementVersionsV1CertificateProvisioningProcess.decode(
88+
value,
89+
options
90+
)
91+
end
92+
end
93+
94+
defimpl Poison.Encoder,
95+
for:
96+
GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementVersionsV1CertificateProvisioningProcess do
97+
def encode(value, options) do
98+
GoogleApi.Gax.ModelBase.encode(value, options)
99+
end
100+
end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# Copyright 2019 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# NOTE: This file is auto generated by the elixir code generator program.
16+
# Do not edit this file manually.
17+
18+
defmodule GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementVersionsV1ChromeOsDevice do
19+
@moduledoc """
20+
Describes the ChromeOS device that a `CertificateProvisioningProcess` belongs to.
21+
22+
## Attributes
23+
24+
* `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.
25+
* `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.
26+
"""
27+
28+
use GoogleApi.Gax.ModelBase
29+
30+
@type t :: %__MODULE__{
31+
:deviceDirectoryApiId => String.t() | nil,
32+
:serialNumber => String.t() | nil
33+
}
34+
35+
field(:deviceDirectoryApiId)
36+
field(:serialNumber)
37+
end
38+
39+
defimpl Poison.Decoder,
40+
for: GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementVersionsV1ChromeOsDevice do
41+
def decode(value, options) do
42+
GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementVersionsV1ChromeOsDevice.decode(
43+
value,
44+
options
45+
)
46+
end
47+
end
48+
49+
defimpl Poison.Encoder,
50+
for: GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementVersionsV1ChromeOsDevice do
51+
def encode(value, options) do
52+
GoogleApi.Gax.ModelBase.encode(value, options)
53+
end
54+
end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# Copyright 2019 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# NOTE: This file is auto generated by the elixir code generator program.
16+
# Do not edit this file manually.
17+
18+
defmodule GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementVersionsV1ChromeOsUserSession do
19+
@moduledoc """
20+
Describes the ChromeOS user session that a `CertificateProvisioningProcess` belongs to.
21+
22+
## Attributes
23+
24+
* `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.
25+
* `userDirectoryApiId` (*type:* `String.t`, *default:* `nil`) - Output only. The unique Directory API ID of the user.
26+
* `userPrimaryEmail` (*type:* `String.t`, *default:* `nil`) - Output only. The primary e-mail address of the user.
27+
"""
28+
29+
use GoogleApi.Gax.ModelBase
30+
31+
@type t :: %__MODULE__{
32+
:chromeOsDevice =>
33+
GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementVersionsV1ChromeOsDevice.t()
34+
| nil,
35+
:userDirectoryApiId => String.t() | nil,
36+
:userPrimaryEmail => String.t() | nil
37+
}
38+
39+
field(:chromeOsDevice,
40+
as: GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementVersionsV1ChromeOsDevice
41+
)
42+
43+
field(:userDirectoryApiId)
44+
field(:userPrimaryEmail)
45+
end
46+
47+
defimpl Poison.Decoder,
48+
for: GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementVersionsV1ChromeOsUserSession do
49+
def decode(value, options) do
50+
GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementVersionsV1ChromeOsUserSession.decode(
51+
value,
52+
options
53+
)
54+
end
55+
end
56+
57+
defimpl Poison.Encoder,
58+
for: GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementVersionsV1ChromeOsUserSession do
59+
def encode(value, options) do
60+
GoogleApi.Gax.ModelBase.encode(value, options)
61+
end
62+
end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# Copyright 2019 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# NOTE: This file is auto generated by the elixir code generator program.
16+
# Do not edit this file manually.
17+
18+
defmodule GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementVersionsV1SignDataMetadata do
19+
@moduledoc """
20+
Metadata for the long-running operation returned by signData.
21+
22+
## Attributes
23+
24+
* `startTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Start time of the SignData operation.
25+
"""
26+
27+
use GoogleApi.Gax.ModelBase
28+
29+
@type t :: %__MODULE__{
30+
:startTime => DateTime.t() | nil
31+
}
32+
33+
field(:startTime, as: DateTime)
34+
end
35+
36+
defimpl Poison.Decoder,
37+
for: GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementVersionsV1SignDataMetadata do
38+
def decode(value, options) do
39+
GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementVersionsV1SignDataMetadata.decode(
40+
value,
41+
options
42+
)
43+
end
44+
end
45+
46+
defimpl Poison.Encoder,
47+
for: GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementVersionsV1SignDataMetadata do
48+
def encode(value, options) do
49+
GoogleApi.Gax.ModelBase.encode(value, options)
50+
end
51+
end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# Copyright 2019 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# NOTE: This file is auto generated by the elixir code generator program.
16+
# Do not edit this file manually.
17+
18+
defmodule GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementVersionsV1SignDataResponse do
19+
@moduledoc """
20+
Response message for requesting a signature from the client that initated a certificate provisioning process.
21+
22+
## Attributes
23+
24+
* `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`.
25+
"""
26+
27+
use GoogleApi.Gax.ModelBase
28+
29+
@type t :: %__MODULE__{
30+
:certificateProvisioningProcess =>
31+
GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementVersionsV1CertificateProvisioningProcess.t()
32+
| nil
33+
}
34+
35+
field(:certificateProvisioningProcess,
36+
as:
37+
GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementVersionsV1CertificateProvisioningProcess
38+
)
39+
end
40+
41+
defimpl Poison.Decoder,
42+
for: GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementVersionsV1SignDataResponse do
43+
def decode(value, options) do
44+
GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementVersionsV1SignDataResponse.decode(
45+
value,
46+
options
47+
)
48+
end
49+
end
50+
51+
defimpl Poison.Encoder,
52+
for: GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementVersionsV1SignDataResponse do
53+
def encode(value, options) do
54+
GoogleApi.Gax.ModelBase.encode(value, options)
55+
end
56+
end

clients/chrome_management/mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
defmodule GoogleApi.ChromeManagement.Mixfile do
1919
use Mix.Project
2020

21-
@version "0.9.0"
21+
@version "0.10.0"
2222

2323
def project() do
2424
[

0 commit comments

Comments
 (0)