-
Notifications
You must be signed in to change notification settings - Fork 461
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Automated regeneration of Compute client (#11091)
Auto-created at 2024-03-15 13:09:25 +0000 using the toys pull request generator.
- Loading branch information
1 parent
de11df3
commit f87759c
Showing
16 changed files
with
1,235 additions
and
4 deletions.
There are no files selected for viewing
477 changes: 477 additions & 0 deletions
477
clients/compute/lib/google_api/compute/v1/api/instance_group_manager_resize_requests.ex
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
79 changes: 79 additions & 0 deletions
79
clients/compute/lib/google_api/compute/v1/model/instance_group_manager_resize_request.ex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
# 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.Compute.V1.Model.InstanceGroupManagerResizeRequest do | ||
@moduledoc """ | ||
InstanceGroupManagerResizeRequest represents a request to create a number of VMs: either immediately or by queuing the request for the specified time. This resize request is nested under InstanceGroupManager and the VMs created by this request are added to the owning InstanceGroupManager. | ||
## Attributes | ||
* `creationTimestamp` (*type:* `String.t`, *default:* `nil`) - [Output Only] The creation timestamp for this resize request in RFC3339 text format. | ||
* `description` (*type:* `String.t`, *default:* `nil`) - An optional description of this resource. | ||
* `id` (*type:* `String.t`, *default:* `nil`) - [Output Only] A unique identifier for this resource type. The server generates this identifier. | ||
* `kind` (*type:* `String.t`, *default:* `compute#instanceGroupManagerResizeRequest`) - [Output Only] The resource type, which is always compute#instanceGroupManagerResizeRequest for resize requests. | ||
* `name` (*type:* `String.t`, *default:* `nil`) - The name of this resize request. The name must be 1-63 characters long, and comply with RFC1035. | ||
* `requestedRunDuration` (*type:* `GoogleApi.Compute.V1.Model.Duration.t`, *default:* `nil`) - Requested run duration for instances that will be created by this request. At the end of the run duration instance will be deleted. | ||
* `resizeBy` (*type:* `integer()`, *default:* `nil`) - The number of instances to be created by this resize request. The group's target size will be increased by this number. | ||
* `selfLink` (*type:* `String.t`, *default:* `nil`) - [Output Only] The URL for this resize request. The server defines this URL. | ||
* `selfLinkWithId` (*type:* `String.t`, *default:* `nil`) - [Output Only] Server-defined URL for this resource with the resource id. | ||
* `state` (*type:* `String.t`, *default:* `nil`) - [Output only] Current state of the request. | ||
* `status` (*type:* `GoogleApi.Compute.V1.Model.InstanceGroupManagerResizeRequestStatus.t`, *default:* `nil`) - [Output only] Status of the request. | ||
* `zone` (*type:* `String.t`, *default:* `nil`) - [Output Only] The URL of a zone where the resize request is located. Populated only for zonal resize requests. | ||
""" | ||
|
||
use GoogleApi.Gax.ModelBase | ||
|
||
@type t :: %__MODULE__{ | ||
:creationTimestamp => String.t() | nil, | ||
:description => String.t() | nil, | ||
:id => String.t() | nil, | ||
:kind => String.t() | nil, | ||
:name => String.t() | nil, | ||
:requestedRunDuration => GoogleApi.Compute.V1.Model.Duration.t() | nil, | ||
:resizeBy => integer() | nil, | ||
:selfLink => String.t() | nil, | ||
:selfLinkWithId => String.t() | nil, | ||
:state => String.t() | nil, | ||
:status => GoogleApi.Compute.V1.Model.InstanceGroupManagerResizeRequestStatus.t() | nil, | ||
:zone => String.t() | nil | ||
} | ||
|
||
field(:creationTimestamp) | ||
field(:description) | ||
field(:id) | ||
field(:kind) | ||
field(:name) | ||
field(:requestedRunDuration, as: GoogleApi.Compute.V1.Model.Duration) | ||
field(:resizeBy) | ||
field(:selfLink) | ||
field(:selfLinkWithId) | ||
field(:state) | ||
field(:status, as: GoogleApi.Compute.V1.Model.InstanceGroupManagerResizeRequestStatus) | ||
field(:zone) | ||
end | ||
|
||
defimpl Poison.Decoder, for: GoogleApi.Compute.V1.Model.InstanceGroupManagerResizeRequest do | ||
def decode(value, options) do | ||
GoogleApi.Compute.V1.Model.InstanceGroupManagerResizeRequest.decode(value, options) | ||
end | ||
end | ||
|
||
defimpl Poison.Encoder, for: GoogleApi.Compute.V1.Model.InstanceGroupManagerResizeRequest do | ||
def encode(value, options) do | ||
GoogleApi.Gax.ModelBase.encode(value, options) | ||
end | ||
end |
55 changes: 55 additions & 0 deletions
55
...s/compute/lib/google_api/compute/v1/model/instance_group_manager_resize_request_status.ex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# 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.Compute.V1.Model.InstanceGroupManagerResizeRequestStatus do | ||
@moduledoc """ | ||
## Attributes | ||
* `error` (*type:* `GoogleApi.Compute.V1.Model.InstanceGroupManagerResizeRequestStatusError.t`, *default:* `nil`) - [Output only] Fatal errors encountered during the queueing or provisioning phases of the ResizeRequest that caused the transition to the FAILED state. Contrary to the last_attempt errors, this field is final and errors are never removed from here, as the ResizeRequest is not going to retry. | ||
* `lastAttempt` (*type:* `GoogleApi.Compute.V1.Model.InstanceGroupManagerResizeRequestStatusLastAttempt.t`, *default:* `nil`) - [Output only] Information about the last attempt to fulfill the request. The value is temporary since the ResizeRequest can retry, as long as it's still active and the last attempt value can either be cleared or replaced with a different error. Since ResizeRequest retries infrequently, the value may be stale and no longer show an active problem. The value is cleared when ResizeRequest transitions to the final state (becomes inactive). If the final state is FAILED the error describing it will be storred in the "error" field only. | ||
""" | ||
|
||
use GoogleApi.Gax.ModelBase | ||
|
||
@type t :: %__MODULE__{ | ||
:error => | ||
GoogleApi.Compute.V1.Model.InstanceGroupManagerResizeRequestStatusError.t() | nil, | ||
:lastAttempt => | ||
GoogleApi.Compute.V1.Model.InstanceGroupManagerResizeRequestStatusLastAttempt.t() | ||
| nil | ||
} | ||
|
||
field(:error, as: GoogleApi.Compute.V1.Model.InstanceGroupManagerResizeRequestStatusError) | ||
|
||
field(:lastAttempt, | ||
as: GoogleApi.Compute.V1.Model.InstanceGroupManagerResizeRequestStatusLastAttempt | ||
) | ||
end | ||
|
||
defimpl Poison.Decoder, for: GoogleApi.Compute.V1.Model.InstanceGroupManagerResizeRequestStatus do | ||
def decode(value, options) do | ||
GoogleApi.Compute.V1.Model.InstanceGroupManagerResizeRequestStatus.decode(value, options) | ||
end | ||
end | ||
|
||
defimpl Poison.Encoder, for: GoogleApi.Compute.V1.Model.InstanceGroupManagerResizeRequestStatus do | ||
def encode(value, options) do | ||
GoogleApi.Gax.ModelBase.encode(value, options) | ||
end | ||
end |
55 changes: 55 additions & 0 deletions
55
...ute/lib/google_api/compute/v1/model/instance_group_manager_resize_request_status_error.ex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# 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.Compute.V1.Model.InstanceGroupManagerResizeRequestStatusError do | ||
@moduledoc """ | ||
[Output only] Fatal errors encountered during the queueing or provisioning phases of the ResizeRequest that caused the transition to the FAILED state. Contrary to the last_attempt errors, this field is final and errors are never removed from here, as the ResizeRequest is not going to retry. | ||
## Attributes | ||
* `errors` (*type:* `list(GoogleApi.Compute.V1.Model.InstanceGroupManagerResizeRequestStatusErrorErrors.t)`, *default:* `nil`) - [Output Only] The array of errors encountered while processing this operation. | ||
""" | ||
|
||
use GoogleApi.Gax.ModelBase | ||
|
||
@type t :: %__MODULE__{ | ||
:errors => | ||
list( | ||
GoogleApi.Compute.V1.Model.InstanceGroupManagerResizeRequestStatusErrorErrors.t() | ||
) | ||
| nil | ||
} | ||
|
||
field(:errors, | ||
as: GoogleApi.Compute.V1.Model.InstanceGroupManagerResizeRequestStatusErrorErrors, | ||
type: :list | ||
) | ||
end | ||
|
||
defimpl Poison.Decoder, | ||
for: GoogleApi.Compute.V1.Model.InstanceGroupManagerResizeRequestStatusError do | ||
def decode(value, options) do | ||
GoogleApi.Compute.V1.Model.InstanceGroupManagerResizeRequestStatusError.decode(value, options) | ||
end | ||
end | ||
|
||
defimpl Poison.Encoder, | ||
for: GoogleApi.Compute.V1.Model.InstanceGroupManagerResizeRequestStatusError do | ||
def encode(value, options) do | ||
GoogleApi.Gax.ModelBase.encode(value, options) | ||
end | ||
end |
69 changes: 69 additions & 0 deletions
69
.../google_api/compute/v1/model/instance_group_manager_resize_request_status_error_errors.ex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
# 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.Compute.V1.Model.InstanceGroupManagerResizeRequestStatusErrorErrors do | ||
@moduledoc """ | ||
## Attributes | ||
* `code` (*type:* `String.t`, *default:* `nil`) - [Output Only] The error type identifier for this error. | ||
* `errorDetails` (*type:* `list(GoogleApi.Compute.V1.Model.InstanceGroupManagerResizeRequestStatusErrorErrorsErrorDetails.t)`, *default:* `nil`) - [Output Only] An optional list of messages that contain the error details. There is a set of defined message types to use for providing details.The syntax depends on the error code. For example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED. | ||
* `location` (*type:* `String.t`, *default:* `nil`) - [Output Only] Indicates the field in the request that caused the error. This property is optional. | ||
* `message` (*type:* `String.t`, *default:* `nil`) - [Output Only] An optional, human-readable error message. | ||
""" | ||
|
||
use GoogleApi.Gax.ModelBase | ||
|
||
@type t :: %__MODULE__{ | ||
:code => String.t() | nil, | ||
:errorDetails => | ||
list( | ||
GoogleApi.Compute.V1.Model.InstanceGroupManagerResizeRequestStatusErrorErrorsErrorDetails.t() | ||
) | ||
| nil, | ||
:location => String.t() | nil, | ||
:message => String.t() | nil | ||
} | ||
|
||
field(:code) | ||
|
||
field(:errorDetails, | ||
as: GoogleApi.Compute.V1.Model.InstanceGroupManagerResizeRequestStatusErrorErrorsErrorDetails, | ||
type: :list | ||
) | ||
|
||
field(:location) | ||
field(:message) | ||
end | ||
|
||
defimpl Poison.Decoder, | ||
for: GoogleApi.Compute.V1.Model.InstanceGroupManagerResizeRequestStatusErrorErrors do | ||
def decode(value, options) do | ||
GoogleApi.Compute.V1.Model.InstanceGroupManagerResizeRequestStatusErrorErrors.decode( | ||
value, | ||
options | ||
) | ||
end | ||
end | ||
|
||
defimpl Poison.Encoder, | ||
for: GoogleApi.Compute.V1.Model.InstanceGroupManagerResizeRequestStatusErrorErrors do | ||
def encode(value, options) do | ||
GoogleApi.Gax.ModelBase.encode(value, options) | ||
end | ||
end |
60 changes: 60 additions & 0 deletions
60
...mpute/v1/model/instance_group_manager_resize_request_status_error_errors_error_details.ex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
# 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.Compute.V1.Model.InstanceGroupManagerResizeRequestStatusErrorErrorsErrorDetails do | ||
@moduledoc """ | ||
## Attributes | ||
* `errorInfo` (*type:* `GoogleApi.Compute.V1.Model.ErrorInfo.t`, *default:* `nil`) - | ||
* `help` (*type:* `GoogleApi.Compute.V1.Model.Help.t`, *default:* `nil`) - | ||
* `localizedMessage` (*type:* `GoogleApi.Compute.V1.Model.LocalizedMessage.t`, *default:* `nil`) - | ||
* `quotaInfo` (*type:* `GoogleApi.Compute.V1.Model.QuotaExceededInfo.t`, *default:* `nil`) - | ||
""" | ||
|
||
use GoogleApi.Gax.ModelBase | ||
|
||
@type t :: %__MODULE__{ | ||
:errorInfo => GoogleApi.Compute.V1.Model.ErrorInfo.t() | nil, | ||
:help => GoogleApi.Compute.V1.Model.Help.t() | nil, | ||
:localizedMessage => GoogleApi.Compute.V1.Model.LocalizedMessage.t() | nil, | ||
:quotaInfo => GoogleApi.Compute.V1.Model.QuotaExceededInfo.t() | nil | ||
} | ||
|
||
field(:errorInfo, as: GoogleApi.Compute.V1.Model.ErrorInfo) | ||
field(:help, as: GoogleApi.Compute.V1.Model.Help) | ||
field(:localizedMessage, as: GoogleApi.Compute.V1.Model.LocalizedMessage) | ||
field(:quotaInfo, as: GoogleApi.Compute.V1.Model.QuotaExceededInfo) | ||
end | ||
|
||
defimpl Poison.Decoder, | ||
for: GoogleApi.Compute.V1.Model.InstanceGroupManagerResizeRequestStatusErrorErrorsErrorDetails do | ||
def decode(value, options) do | ||
GoogleApi.Compute.V1.Model.InstanceGroupManagerResizeRequestStatusErrorErrorsErrorDetails.decode( | ||
value, | ||
options | ||
) | ||
end | ||
end | ||
|
||
defimpl Poison.Encoder, | ||
for: GoogleApi.Compute.V1.Model.InstanceGroupManagerResizeRequestStatusErrorErrorsErrorDetails do | ||
def encode(value, options) do | ||
GoogleApi.Gax.ModelBase.encode(value, options) | ||
end | ||
end |
55 changes: 55 additions & 0 deletions
55
.../google_api/compute/v1/model/instance_group_manager_resize_request_status_last_attempt.ex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# 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.Compute.V1.Model.InstanceGroupManagerResizeRequestStatusLastAttempt do | ||
@moduledoc """ | ||
## Attributes | ||
* `error` (*type:* `GoogleApi.Compute.V1.Model.InstanceGroupManagerResizeRequestStatusLastAttemptError.t`, *default:* `nil`) - Errors that prevented the ResizeRequest to be fulfilled. | ||
""" | ||
|
||
use GoogleApi.Gax.ModelBase | ||
|
||
@type t :: %__MODULE__{ | ||
:error => | ||
GoogleApi.Compute.V1.Model.InstanceGroupManagerResizeRequestStatusLastAttemptError.t() | ||
| nil | ||
} | ||
|
||
field(:error, | ||
as: GoogleApi.Compute.V1.Model.InstanceGroupManagerResizeRequestStatusLastAttemptError | ||
) | ||
end | ||
|
||
defimpl Poison.Decoder, | ||
for: GoogleApi.Compute.V1.Model.InstanceGroupManagerResizeRequestStatusLastAttempt do | ||
def decode(value, options) do | ||
GoogleApi.Compute.V1.Model.InstanceGroupManagerResizeRequestStatusLastAttempt.decode( | ||
value, | ||
options | ||
) | ||
end | ||
end | ||
|
||
defimpl Poison.Encoder, | ||
for: GoogleApi.Compute.V1.Model.InstanceGroupManagerResizeRequestStatusLastAttempt do | ||
def encode(value, options) do | ||
GoogleApi.Gax.ModelBase.encode(value, options) | ||
end | ||
end |
Oops, something went wrong.