Skip to content

Commit

Permalink
feat: Automated regeneration of AndroidEnterprise client (googleapis#…
Browse files Browse the repository at this point in the history
…12754)

Auto-created at 2025-01-02 13:16:07 +0000 using the toys pull request generator.
  • Loading branch information
yoshi-code-bot authored Jan 2, 2025
1 parent c205402 commit 0ecbf16
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 11 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.30"}]
[{:google_api_android_enterprise, "~> 0.31"}]
end
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,6 @@ 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`) - 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.
Expand Down Expand Up @@ -207,7 +206,6 @@ defmodule GoogleApi.AndroidEnterprise.V1.Api.Enterprises do
:quotaUser => :query,
:uploadType => :query,
:upload_protocol => :query,
:deviceType => :query,
:"enrollmentToken.duration" => :query,
:"enrollmentToken.enrollmentTokenType" => :query,
:"enrollmentToken.token" => :query
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 "20241113"
@discovery_revision "20241217"

def discovery_revision(), do: @discovery_revision
end
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,16 @@ defmodule GoogleApi.AndroidEnterprise.V1.Model.CreateEnrollmentTokenResponse do
## Attributes
* `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.
* `enrollmentToken` (*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,
:token => GoogleApi.AndroidEnterprise.V1.Model.EnrollmentToken.t() | nil
:enrollmentToken => GoogleApi.AndroidEnterprise.V1.Model.EnrollmentToken.t() | nil
}

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

defimpl Poison.Decoder, for: GoogleApi.AndroidEnterprise.V1.Model.CreateEnrollmentTokenResponse do
Expand Down
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.30.0"
@version "0.31.0"

def project() do
[
Expand Down

0 comments on commit 0ecbf16

Please sign in to comment.