Skip to content

Commit

Permalink
feat: Automated regeneration of SmartDeviceManagement client (#10957)
Browse files Browse the repository at this point in the history
Auto-created at 2024-03-12 02:39:52 +0000 using the toys pull request generator.
  • Loading branch information
yoshi-code-bot authored Mar 12, 2024
1 parent 5ebac73 commit 2278a57
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 29 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,6 @@ defmodule GoogleApi.SmartDeviceManagement.V1.Api.Enterprises do
* `: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").
* `:filter` (*type:* `String.t`) - Optional filter to list devices. Filters can be done on: Device custom name (substring match): 'customName=wing'
* `:pageSize` (*type:* `integer()`) - Optional requested page size. Server may return fewer devices than requested. If unspecified, server will pick an appropriate default.
* `:pageToken` (*type:* `String.t`) - Optional token of the page to retrieve.
* `opts` (*type:* `keyword()`) - Call options
## Returns
Expand Down Expand Up @@ -235,9 +233,7 @@ defmodule GoogleApi.SmartDeviceManagement.V1.Api.Enterprises do
:quotaUser => :query,
:uploadType => :query,
:upload_protocol => :query,
:filter => :query,
:pageSize => :query,
:pageToken => :query
:filter => :query
}

request =
Expand Down Expand Up @@ -353,8 +349,6 @@ defmodule GoogleApi.SmartDeviceManagement.V1.Api.Enterprises do
* `: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").
* `:filter` (*type:* `String.t`) - Optional filter to list structures.
* `:pageSize` (*type:* `integer()`) - Requested page size. Server may return fewer structures than requested. If unspecified, server will pick an appropriate default.
* `:pageToken` (*type:* `String.t`) - The token of the page to retrieve.
* `opts` (*type:* `keyword()`) - Call options
## Returns
Expand Down Expand Up @@ -391,9 +385,7 @@ defmodule GoogleApi.SmartDeviceManagement.V1.Api.Enterprises do
:quotaUser => :query,
:uploadType => :query,
:upload_protocol => :query,
:filter => :query,
:pageSize => :query,
:pageToken => :query
:filter => :query
}

request =
Expand Down Expand Up @@ -507,8 +499,6 @@ defmodule GoogleApi.SmartDeviceManagement.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").
* `:pageSize` (*type:* `integer()`) - Requested page size. Server may return fewer rooms than requested. If unspecified, server will pick an appropriate default.
* `:pageToken` (*type:* `String.t`) - The token of the page to retrieve.
* `opts` (*type:* `keyword()`) - Call options
## Returns
Expand Down Expand Up @@ -544,9 +534,7 @@ defmodule GoogleApi.SmartDeviceManagement.V1.Api.Enterprises do
:prettyPrint => :query,
:quotaUser => :query,
:uploadType => :query,
:upload_protocol => :query,
:pageSize => :query,
:pageToken => :query
:upload_protocol => :query
}

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

@discovery_revision "20220926"
@discovery_revision "20240303"

def discovery_revision(), do: @discovery_revision
end
Original file line number Diff line number Diff line change
Expand Up @@ -22,24 +22,20 @@ defmodule GoogleApi.SmartDeviceManagement.V1.Model.GoogleHomeEnterpriseSdmV1List
## Attributes
* `devices` (*type:* `list(GoogleApi.SmartDeviceManagement.V1.Model.GoogleHomeEnterpriseSdmV1Device.t)`, *default:* `nil`) - The list of devices.
* `nextPageToken` (*type:* `String.t`, *default:* `nil`) - The pagination token to retrieve the next page of results.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:devices =>
list(GoogleApi.SmartDeviceManagement.V1.Model.GoogleHomeEnterpriseSdmV1Device.t())
| nil,
:nextPageToken => String.t() | nil
| nil
}

field(:devices,
as: GoogleApi.SmartDeviceManagement.V1.Model.GoogleHomeEnterpriseSdmV1Device,
type: :list
)

field(:nextPageToken)
end

defimpl Poison.Decoder,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,16 @@ defmodule GoogleApi.SmartDeviceManagement.V1.Model.GoogleHomeEnterpriseSdmV1List
## Attributes
* `nextPageToken` (*type:* `String.t`, *default:* `nil`) - The pagination token to retrieve the next page of results. If this field is omitted, there are no subsequent pages.
* `rooms` (*type:* `list(GoogleApi.SmartDeviceManagement.V1.Model.GoogleHomeEnterpriseSdmV1Room.t)`, *default:* `nil`) - The list of rooms.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:nextPageToken => String.t() | nil,
:rooms =>
list(GoogleApi.SmartDeviceManagement.V1.Model.GoogleHomeEnterpriseSdmV1Room.t()) | nil
}

field(:nextPageToken)

field(:rooms,
as: GoogleApi.SmartDeviceManagement.V1.Model.GoogleHomeEnterpriseSdmV1Room,
type: :list
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,17 @@ defmodule GoogleApi.SmartDeviceManagement.V1.Model.GoogleHomeEnterpriseSdmV1List
## Attributes
* `nextPageToken` (*type:* `String.t`, *default:* `nil`) - The pagination token to retrieve the next page of results. If this field is omitted, there are no subsequent pages.
* `structures` (*type:* `list(GoogleApi.SmartDeviceManagement.V1.Model.GoogleHomeEnterpriseSdmV1Structure.t)`, *default:* `nil`) - The list of structures.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:nextPageToken => String.t() | nil,
:structures =>
list(GoogleApi.SmartDeviceManagement.V1.Model.GoogleHomeEnterpriseSdmV1Structure.t())
| nil
}

field(:nextPageToken)

field(:structures,
as: GoogleApi.SmartDeviceManagement.V1.Model.GoogleHomeEnterpriseSdmV1Structure,
type: :list
Expand Down

0 comments on commit 2278a57

Please sign in to comment.