Skip to content

Commit 4f5df19

Browse files
feat: Automated regeneration of AndroidEnterprise client (googleapis#12523)
Auto-created at 2024-11-14 13:15:52 +0000 using the toys pull request generator.
1 parent d50f800 commit 4f5df19

File tree

6 files changed

+69
-8
lines changed

6 files changed

+69
-8
lines changed

clients/android_enterprise/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_android_enterprise, "~> 0.29"}]
14+
[{:google_api_android_enterprise, "~> 0.30"}]
1515
end
1616
```
1717

clients/android_enterprise/lib/google_api/android_enterprise/v1/api/enterprises.ex

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ defmodule GoogleApi.AndroidEnterprise.V1.Api.Enterprises do
155155
## Parameters
156156
157157
* `connection` (*type:* `GoogleApi.AndroidEnterprise.V1.Connection.t`) - Connection to server
158-
* `enterprise_id` (*type:* `String.t`) - The ID of the enterprise.
158+
* `enterprise_id` (*type:* `String.t`) - Required. The ID of the enterprise.
159159
* `optional_params` (*type:* `keyword()`) - Optional parameters
160160
* `:"$.xgafv"` (*type:* `String.t`) - V1 error format.
161161
* `:access_token` (*type:* `String.t`) - OAuth access token.
@@ -168,7 +168,10 @@ defmodule GoogleApi.AndroidEnterprise.V1.Api.Enterprises do
168168
* `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
169169
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
170170
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
171-
* `:deviceType` (*type:* `String.t`) - Whether it’s a dedicated device or a knowledge worker device.
171+
* `:deviceType` (*type:* `String.t`) - Deprecated: Use enrollment_token instead. this field will be removed in the future.
172+
* `:"enrollmentToken.duration"` (*type:* `String.t`) - [Optional] The length of time the enrollment token is valid, ranging from 1 minute to [`Durations.MAX_VALUE`](https://developers.google.com/protocol-buffers/docs/reference/java/com/google/protobuf/util/Durations.html#MAX_VALUE), approximately 10,000 years. If not specified, the default duration is 1 hour.
173+
* `:"enrollmentToken.enrollmentTokenType"` (*type:* `String.t`) - [Required] The type of the enrollment token.
174+
* `:"enrollmentToken.token"` (*type:* `String.t`) - The token value that's passed to the device and authorizes the device to enroll. This is a read-only field generated by the server.
172175
* `opts` (*type:* `keyword()`) - Call options
173176
174177
## Returns
@@ -204,7 +207,10 @@ defmodule GoogleApi.AndroidEnterprise.V1.Api.Enterprises do
204207
:quotaUser => :query,
205208
:uploadType => :query,
206209
:upload_protocol => :query,
207-
:deviceType => :query
210+
:deviceType => :query,
211+
:"enrollmentToken.duration" => :query,
212+
:"enrollmentToken.enrollmentTokenType" => :query,
213+
:"enrollmentToken.token" => :query
208214
}
209215

210216
request =

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

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

23-
@discovery_revision "20241028"
23+
@discovery_revision "20241113"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
end

clients/android_enterprise/lib/google_api/android_enterprise/v1/model/create_enrollment_token_response.ex

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,19 @@ defmodule GoogleApi.AndroidEnterprise.V1.Model.CreateEnrollmentTokenResponse do
2121
2222
## Attributes
2323
24-
* `enrollmentToken` (*type:* `String.t`, *default:* `nil`) - Enrollment token.
24+
* `enrollmentToken` (*type:* `String.t`, *default:* `nil`) - Deprecated: Use token instead. This field will be removed in the future.
25+
* `token` (*type:* `GoogleApi.AndroidEnterprise.V1.Model.EnrollmentToken.t`, *default:* `nil`) - [Required] The created enrollment token.
2526
"""
2627

2728
use GoogleApi.Gax.ModelBase
2829

2930
@type t :: %__MODULE__{
30-
:enrollmentToken => String.t() | nil
31+
:enrollmentToken => String.t() | nil,
32+
:token => GoogleApi.AndroidEnterprise.V1.Model.EnrollmentToken.t() | nil
3133
}
3234

3335
field(:enrollmentToken)
36+
field(:token, as: GoogleApi.AndroidEnterprise.V1.Model.EnrollmentToken)
3437
end
3538

3639
defimpl Poison.Decoder, for: GoogleApi.AndroidEnterprise.V1.Model.CreateEnrollmentTokenResponse do
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
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.AndroidEnterprise.V1.Model.EnrollmentToken do
19+
@moduledoc """
20+
A token used to enroll a device.
21+
22+
## Attributes
23+
24+
* `duration` (*type:* `String.t`, *default:* `nil`) - [Optional] The length of time the enrollment token is valid, ranging from 1 minute to [`Durations.MAX_VALUE`](https://developers.google.com/protocol-buffers/docs/reference/java/com/google/protobuf/util/Durations.html#MAX_VALUE), approximately 10,000 years. If not specified, the default duration is 1 hour.
25+
* `enrollmentTokenType` (*type:* `String.t`, *default:* `nil`) - [Required] The type of the enrollment token.
26+
* `token` (*type:* `String.t`, *default:* `nil`) - The token value that's passed to the device and authorizes the device to enroll. This is a read-only field generated by the server.
27+
"""
28+
29+
use GoogleApi.Gax.ModelBase
30+
31+
@type t :: %__MODULE__{
32+
:duration => String.t() | nil,
33+
:enrollmentTokenType => String.t() | nil,
34+
:token => String.t() | nil
35+
}
36+
37+
field(:duration)
38+
field(:enrollmentTokenType)
39+
field(:token)
40+
end
41+
42+
defimpl Poison.Decoder, for: GoogleApi.AndroidEnterprise.V1.Model.EnrollmentToken do
43+
def decode(value, options) do
44+
GoogleApi.AndroidEnterprise.V1.Model.EnrollmentToken.decode(value, options)
45+
end
46+
end
47+
48+
defimpl Poison.Encoder, for: GoogleApi.AndroidEnterprise.V1.Model.EnrollmentToken do
49+
def encode(value, options) do
50+
GoogleApi.Gax.ModelBase.encode(value, options)
51+
end
52+
end

clients/android_enterprise/mix.exs

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

21-
@version "0.29.1"
21+
@version "0.30.0"
2222

2323
def project() do
2424
[

0 commit comments

Comments
 (0)