Skip to content

Commit

Permalink
feat: Automated regeneration of AndroidEnterprise client (#12523)
Browse files Browse the repository at this point in the history
Auto-created at 2024-11-14 13:15:52 +0000 using the toys pull request generator.
  • Loading branch information
yoshi-code-bot authored Nov 14, 2024
1 parent d50f800 commit 4f5df19
Show file tree
Hide file tree
Showing 6 changed files with 69 additions and 8 deletions.
2 changes: 1 addition & 1 deletion clients/android_enterprise/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_android_enterprise, "~> 0.29"}]
[{:google_api_android_enterprise, "~> 0.30"}]
end
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ defmodule GoogleApi.AndroidEnterprise.V1.Api.Enterprises do
## Parameters
* `connection` (*type:* `GoogleApi.AndroidEnterprise.V1.Connection.t`) - Connection to server
* `enterprise_id` (*type:* `String.t`) - The ID of the enterprise.
* `enterprise_id` (*type:* `String.t`) - Required. The ID of the enterprise.
* `optional_params` (*type:* `keyword()`) - Optional parameters
* `:"$.xgafv"` (*type:* `String.t`) - V1 error format.
* `:access_token` (*type:* `String.t`) - OAuth access token.
Expand All @@ -168,7 +168,10 @@ defmodule GoogleApi.AndroidEnterprise.V1.Api.Enterprises do
* `: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.
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
* `:deviceType` (*type:* `String.t`) - Whether it’s a dedicated device or a knowledge worker device.
* `:deviceType` (*type:* `String.t`) - Deprecated: Use enrollment_token instead. this field will be removed in the future.
* `:"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.
* `:"enrollmentToken.enrollmentTokenType"` (*type:* `String.t`) - [Required] The type of the enrollment token.
* `:"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.
* `opts` (*type:* `keyword()`) - Call options
## Returns
Expand Down Expand Up @@ -204,7 +207,10 @@ defmodule GoogleApi.AndroidEnterprise.V1.Api.Enterprises do
:quotaUser => :query,
:uploadType => :query,
:upload_protocol => :query,
:deviceType => :query
:deviceType => :query,
:"enrollmentToken.duration" => :query,
:"enrollmentToken.enrollmentTokenType" => :query,
:"enrollmentToken.token" => :query
}

request =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ defmodule GoogleApi.AndroidEnterprise.V1 do
API client metadata for GoogleApi.AndroidEnterprise.V1.
"""

@discovery_revision "20241028"
@discovery_revision "20241113"

def discovery_revision(), do: @discovery_revision
end
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,19 @@ defmodule GoogleApi.AndroidEnterprise.V1.Model.CreateEnrollmentTokenResponse do
## Attributes
* `enrollmentToken` (*type:* `String.t`, *default:* `nil`) - Enrollment token.
* `enrollmentToken` (*type:* `String.t`, *default:* `nil`) - Deprecated: Use token instead. This field will be removed in the future.
* `token` (*type:* `GoogleApi.AndroidEnterprise.V1.Model.EnrollmentToken.t`, *default:* `nil`) - [Required] The created enrollment token.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:enrollmentToken => String.t() | nil
:enrollmentToken => String.t() | nil,
:token => GoogleApi.AndroidEnterprise.V1.Model.EnrollmentToken.t() | nil
}

field(:enrollmentToken)
field(:token, as: GoogleApi.AndroidEnterprise.V1.Model.EnrollmentToken)
end

defimpl Poison.Decoder, for: GoogleApi.AndroidEnterprise.V1.Model.CreateEnrollmentTokenResponse do
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# 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.AndroidEnterprise.V1.Model.EnrollmentToken do
@moduledoc """
A token used to enroll a device.
## Attributes
* `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.
* `enrollmentTokenType` (*type:* `String.t`, *default:* `nil`) - [Required] The type of the enrollment token.
* `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.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:duration => String.t() | nil,
:enrollmentTokenType => String.t() | nil,
:token => String.t() | nil
}

field(:duration)
field(:enrollmentTokenType)
field(:token)
end

defimpl Poison.Decoder, for: GoogleApi.AndroidEnterprise.V1.Model.EnrollmentToken do
def decode(value, options) do
GoogleApi.AndroidEnterprise.V1.Model.EnrollmentToken.decode(value, options)
end
end

defimpl Poison.Encoder, for: GoogleApi.AndroidEnterprise.V1.Model.EnrollmentToken do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end
2 changes: 1 addition & 1 deletion clients/android_enterprise/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
defmodule GoogleApi.AndroidEnterprise.Mixfile do
use Mix.Project

@version "0.29.1"
@version "0.30.0"

def project() do
[
Expand Down

0 comments on commit 4f5df19

Please sign in to comment.