Skip to content

Commit

Permalink
feat: Automated regeneration of Compute client (#11091)
Browse files Browse the repository at this point in the history
Auto-created at 2024-03-15 13:09:25 +0000 using the toys pull request generator.
  • Loading branch information
yoshi-code-bot authored Mar 15, 2024
1 parent de11df3 commit f87759c
Show file tree
Hide file tree
Showing 16 changed files with 1,235 additions and 4 deletions.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion clients/compute/lib/google_api/compute/v1/metadata.ex
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ defmodule GoogleApi.Compute.V1 do
API client metadata for GoogleApi.Compute.V1.
"""

@discovery_revision "20240227"
@discovery_revision "20240305"

def discovery_revision(), do: @discovery_revision
end
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ defmodule GoogleApi.Compute.V1.Model.CorsPolicy do
* `allowCredentials` (*type:* `boolean()`, *default:* `nil`) - In response to a preflight request, setting this to true indicates that the actual request can include user credentials. This field translates to the Access-Control-Allow-Credentials header. Default is false.
* `allowHeaders` (*type:* `list(String.t)`, *default:* `nil`) - Specifies the content for the Access-Control-Allow-Headers header.
* `allowMethods` (*type:* `list(String.t)`, *default:* `nil`) - Specifies the content for the Access-Control-Allow-Methods header.
* `allowOriginRegexes` (*type:* `list(String.t)`, *default:* `nil`) - Specifies a regular expression that matches allowed origins. For more information about the regular expression syntax, see Syntax. An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes. Regular expressions can only be used when the loadBalancingScheme is set to INTERNAL_SELF_MANAGED.
* `allowOriginRegexes` (*type:* `list(String.t)`, *default:* `nil`) - Specifies a regular expression that matches allowed origins. For more information, see regular expression syntax . An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes. Regular expressions can only be used when the loadBalancingScheme is set to INTERNAL_SELF_MANAGED.
* `allowOrigins` (*type:* `list(String.t)`, *default:* `nil`) - Specifies the list of origins that is allowed to do CORS requests. An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes.
* `disabled` (*type:* `boolean()`, *default:* `nil`) - If true, the setting specifies the CORS policy is disabled. The default value of false, which indicates that the CORS policy is in effect.
* `disabled` (*type:* `boolean()`, *default:* `nil`) - If true, disables the CORS policy. The default value is false, which indicates that the CORS policy is in effect.
* `exposeHeaders` (*type:* `list(String.t)`, *default:* `nil`) - Specifies the content for the Access-Control-Expose-Headers header.
* `maxAge` (*type:* `integer()`, *default:* `nil`) - Specifies how long results of a preflight request can be cached in seconds. This field translates to the Access-Control-Max-Age header.
"""
Expand Down
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
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
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
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
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
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
Loading

0 comments on commit f87759c

Please sign in to comment.