Skip to content

Commit 99f9165

Browse files
feat: Automated regeneration of Compute client (googleapis#12932)
Auto-created at 2025-02-07 13:10:49 +0000 using the toys pull request generator.
1 parent 231c0f3 commit 99f9165

14 files changed

+379
-31
lines changed

clients/compute/lib/google_api/compute/v1/api/network_firewall_policies.ex

Lines changed: 336 additions & 0 deletions
Large diffs are not rendered by default.

clients/compute/lib/google_api/compute/v1/api/region_commitments.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,14 +358,14 @@ defmodule GoogleApi.Compute.V1.Api.RegionCommitments do
358358
end
359359

360360
@doc """
361-
Updates the specified commitment with the data included in the request. Update is performed only on selected fields included as part of update-mask. Only the following fields can be modified: auto_renew.
361+
Updates the specified commitment with the data included in the request. Update is performed only on selected fields included as part of update-mask. Only the following fields can be updated: auto_renew and plan.
362362
363363
## Parameters
364364
365365
* `connection` (*type:* `GoogleApi.Compute.V1.Connection.t`) - Connection to server
366366
* `project` (*type:* `String.t`) - Project ID for this request.
367367
* `region` (*type:* `String.t`) - Name of the region for this request.
368-
* `commitment` (*type:* `String.t`) - Name of the commitment for which auto renew is being updated.
368+
* `commitment` (*type:* `String.t`) - Name of the commitment that you want to update.
369369
* `optional_params` (*type:* `keyword()`) - Optional parameters
370370
* `:"$.xgafv"` (*type:* `String.t`) - V1 error format.
371371
* `:access_token` (*type:* `String.t`) - OAuth access token.

clients/compute/lib/google_api/compute/v1/metadata.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ defmodule GoogleApi.Compute.V1 do
2020
API client metadata for GoogleApi.Compute.V1.
2121
"""
2222

23-
@discovery_revision "20250119"
23+
@discovery_revision "20250126"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
end

clients/compute/lib/google_api/compute/v1/model/commitment.ex

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -17,33 +17,33 @@
1717

1818
defmodule GoogleApi.Compute.V1.Model.Commitment do
1919
@moduledoc """
20-
Represents a regional Commitment resource. Creating a commitment resource means that you are purchasing a committed use contract with an explicit start and end time. You can create commitments based on vCPUs and memory usage and receive discounted rates. For full details, read Signing Up for Committed Use Discounts.
20+
Represents a regional resource-based commitment resource. Creating this commitment resource means that you are purchasing a resource-based committed use contract, with an explicit start and end time. You can purchase resource-based commitments for both hardware and software resources. For more information, read Resource-based committed use discounts
2121
2222
## Attributes
2323
24-
* `autoRenew` (*type:* `boolean()`, *default:* `nil`) - Specifies whether to enable automatic renewal for the commitment. The default value is false if not specified. The field can be updated until the day of the commitment expiration at 12:00am PST. If the field is set to true, the commitment will be automatically renewed for either one or three years according to the terms of the existing commitment.
25-
* `category` (*type:* `String.t`, *default:* `nil`) - The category of the commitment. Category MACHINE specifies commitments composed of machine resources such as VCPU or MEMORY, listed in resources. Category LICENSE specifies commitments composed of software licenses, listed in licenseResources. Note that only MACHINE commitments should have a Type specified.
24+
* `autoRenew` (*type:* `boolean()`, *default:* `nil`) - Specifies whether to automatically renew the commitment at the end of its current term. The default value is false. If you set the field to true, each time your commitment reaches the end of its term, Compute Engine automatically renews it for another term. You can update this field anytime before the commitment expires. For example, if the commitment is set to expire at 12 AM UTC-8 on January 3, 2027, you can update this field until 11:59 PM UTC-8 on January 2, 2027.
25+
* `category` (*type:* `String.t`, *default:* `nil`) - The category of the commitment; specifies whether the commitment is for hardware or software resources. Category MACHINE specifies that you are committing to hardware machine resources such as VCPU or MEMORY, listed in resources. Category LICENSE specifies that you are committing to software licenses, listed in licenseResources. Note that if you specify MACHINE commitments, then you must also specify a type to indicate the machine series of the hardware resource that you are committing to.
2626
* `creationTimestamp` (*type:* `String.t`, *default:* `nil`) - [Output Only] Creation timestamp in RFC3339 text format.
27-
* `customEndTimestamp` (*type:* `String.t`, *default:* `nil`) - [Input Only] Optional, specifies the CUD end time requested by the customer in RFC3339 text format. Needed when the customer wants CUD's end date is later than the start date + term duration.
28-
* `description` (*type:* `String.t`, *default:* `nil`) - An optional description of this resource. Provide this property when you create the resource.
27+
* `customEndTimestamp` (*type:* `String.t`, *default:* `nil`) - [Input Only] Optional, specifies the requested commitment end time in RFC3339 text format. Use this option when the desired commitment's end date is later than the start date + term duration.
28+
* `description` (*type:* `String.t`, *default:* `nil`) - An optional description of the commitment. You can provide this property when you create the resource.
2929
* `endTimestamp` (*type:* `String.t`, *default:* `nil`) - [Output Only] Commitment end time in RFC3339 text format.
30-
* `existingReservations` (*type:* `list(String.t)`, *default:* `nil`) - Specifies the already existing reservations to attach to the Commitment. This field is optional, and it can be a full or partial URL. For example, the following are valid URLs to an reservation: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /reservations/reservation - projects/project/zones/zone/reservations/reservation
30+
* `existingReservations` (*type:* `list(String.t)`, *default:* `nil`) -
3131
* `id` (*type:* `String.t`, *default:* `nil`) - [Output Only] The unique identifier for the resource. This identifier is defined by the server.
3232
* `kind` (*type:* `String.t`, *default:* `compute#commitment`) - [Output Only] Type of the resource. Always compute#commitment for commitments.
3333
* `licenseResource` (*type:* `GoogleApi.Compute.V1.Model.LicenseResourceCommitment.t`, *default:* `nil`) - The license specification required as part of a license commitment.
34-
* `mergeSourceCommitments` (*type:* `list(String.t)`, *default:* `nil`) - List of source commitments to be merged into a new commitment.
35-
* `name` (*type:* `String.t`, *default:* `nil`) - Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
36-
* `plan` (*type:* `String.t`, *default:* `nil`) - The plan for this commitment, which determines duration and discount rate. The currently supported plans are TWELVE_MONTH (1 year), and THIRTY_SIX_MONTH (3 years).
37-
* `region` (*type:* `String.t`, *default:* `nil`) - [Output Only] URL of the region where this commitment may be used.
38-
* `reservations` (*type:* `list(GoogleApi.Compute.V1.Model.Reservation.t)`, *default:* `nil`) - List of create-on-create reservations for this commitment.
34+
* `mergeSourceCommitments` (*type:* `list(String.t)`, *default:* `nil`) - The list of source commitments that you are merging to create the new merged commitment. For more information, see Merging commitments.
35+
* `name` (*type:* `String.t`, *default:* `nil`) - Name of the commitment. You must specify a name when you purchase the commitment. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
36+
* `plan` (*type:* `String.t`, *default:* `nil`) - The minimum time duration that you commit to purchasing resources. The plan that you choose determines the preset term length of the commitment (which is 1 year or 3 years) and affects the discount rate that you receive for your resources. Committing to a longer time duration typically gives you a higher discount rate. The supported values for this field are TWELVE_MONTH (1 year), and THIRTY_SIX_MONTH (3 years).
37+
* `region` (*type:* `String.t`, *default:* `nil`) - [Output Only] URL of the region where the commitment and committed resources are located.
38+
* `reservations` (*type:* `list(GoogleApi.Compute.V1.Model.Reservation.t)`, *default:* `nil`) - The list of new reservations that you want to create and attach to this commitment. You must attach reservations to your commitment if your commitment specifies any GPUs or Local SSD disks. For more information, see Attach reservations to resource-based commitments. Specify this property only if you want to create new reservations to attach. To attach existing reservations, specify the existingReservations property instead.
3939
* `resourceStatus` (*type:* `GoogleApi.Compute.V1.Model.CommitmentResourceStatus.t`, *default:* `nil`) - [Output Only] Status information for Commitment resource.
40-
* `resources` (*type:* `list(GoogleApi.Compute.V1.Model.ResourceCommitment.t)`, *default:* `nil`) - A list of commitment amounts for particular resources. Note that VCPU and MEMORY resource commitments must occur together.
40+
* `resources` (*type:* `list(GoogleApi.Compute.V1.Model.ResourceCommitment.t)`, *default:* `nil`) - The list of all the hardware resources, with their types and amounts, that you want to commit to. Specify as a separate entry in the list for each individual resource type.
4141
* `selfLink` (*type:* `String.t`, *default:* `nil`) - [Output Only] Server-defined URL for the resource.
42-
* `splitSourceCommitment` (*type:* `String.t`, *default:* `nil`) - Source commitment to be split into a new commitment.
42+
* `splitSourceCommitment` (*type:* `String.t`, *default:* `nil`) - The source commitment from which you are transferring resources to create the new split commitment. For more information, see Split commitments.
4343
* `startTimestamp` (*type:* `String.t`, *default:* `nil`) - [Output Only] Commitment start time in RFC3339 text format.
44-
* `status` (*type:* `String.t`, *default:* `nil`) - [Output Only] Status of the commitment with regards to eventual expiration (each commitment has an end date defined). One of the following values: NOT_YET_ACTIVE, ACTIVE, EXPIRED.
44+
* `status` (*type:* `String.t`, *default:* `nil`) - [Output Only] Status of the commitment with regards to eventual expiration (each commitment has an end date defined). Status can be one of the following values: NOT_YET_ACTIVE, ACTIVE, or EXPIRED.
4545
* `statusMessage` (*type:* `String.t`, *default:* `nil`) - [Output Only] An optional, human-readable explanation of the status.
46-
* `type` (*type:* `String.t`, *default:* `nil`) - The type of commitment, which affects the discount rate and the eligible resources. Type MEMORY_OPTIMIZED specifies a commitment that will only apply to memory optimized machines. Type ACCELERATOR_OPTIMIZED specifies a commitment that will only apply to accelerator optimized machines.
46+
* `type` (*type:* `String.t`, *default:* `nil`) - The type of commitment; specifies the machine series for which you want to commit to purchasing resources. The choice of machine series affects the discount rate and the eligible resource types. The type must be one of the following: ACCELERATOR_OPTIMIZED, ACCELERATOR_OPTIMIZED_A3, ACCELERATOR_OPTIMIZED_A3_MEGA, COMPUTE_OPTIMIZED, COMPUTE_OPTIMIZED_C2D, COMPUTE_OPTIMIZED_C3, COMPUTE_OPTIMIZED_C3D, COMPUTE_OPTIMIZED_H3, GENERAL_PURPOSE, GENERAL_PURPOSE_C4, GENERAL_PURPOSE_E2, GENERAL_PURPOSE_N2, GENERAL_PURPOSE_N2D, GENERAL_PURPOSE_N4, GENERAL_PURPOSE_T2D, GRAPHICS_OPTIMIZED, MEMORY_OPTIMIZED, MEMORY_OPTIMIZED_M3, MEMORY_OPTIMIZED_X4, STORAGE_OPTIMIZED_Z3. For example, type MEMORY_OPTIMIZED specifies a commitment that applies only to eligible resources of memory optimized M1 and M2 machine series. Type GENERAL_PURPOSE specifies a commitment that applies only to eligible resources of general purpose N1 machine series.
4747
"""
4848

4949
use GoogleApi.Gax.ModelBase

clients/compute/lib/google_api/compute/v1/model/commitments_scoped_list.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ defmodule GoogleApi.Compute.V1.Model.CommitmentsScopedList do
2121
2222
## Attributes
2323
24-
* `commitments` (*type:* `list(GoogleApi.Compute.V1.Model.Commitment.t)`, *default:* `nil`) - [Output Only] A list of commitments contained in this scope.
24+
* `commitments` (*type:* `list(GoogleApi.Compute.V1.Model.Commitment.t)`, *default:* `nil`) - [Output Only] The list of commitments contained in this scope.
2525
* `warning` (*type:* `GoogleApi.Compute.V1.Model.CommitmentsScopedListWarning.t`, *default:* `nil`) - [Output Only] Informational warning which replaces the list of commitments when the list is empty.
2626
"""
2727

clients/compute/lib/google_api/compute/v1/model/firewall_policy.ex

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ defmodule GoogleApi.Compute.V1.Model.FirewallPolicy do
2929
* `id` (*type:* `String.t`, *default:* `nil`) - [Output Only] The unique identifier for the resource. This identifier is defined by the server.
3030
* `kind` (*type:* `String.t`, *default:* `compute#firewallPolicy`) - [Output only] Type of the resource. Always compute#firewallPolicyfor firewall policies
3131
* `name` (*type:* `String.t`, *default:* `nil`) - Name of the resource. For Organization Firewall Policies it's a [Output Only] numeric ID allocated by Google Cloud which uniquely identifies the Organization Firewall Policy.
32+
* `packetMirroringRules` (*type:* `list(GoogleApi.Compute.V1.Model.FirewallPolicyRule.t)`, *default:* `nil`) - A list of packet mirroring rules that belong to this policy.
3233
* `parent` (*type:* `String.t`, *default:* `nil`) - [Output Only] The parent of the firewall policy. This field is not applicable to network firewall policies.
3334
* `region` (*type:* `String.t`, *default:* `nil`) - [Output Only] URL of the region where the regional firewall policy resides. This field is not applicable to global firewall policies. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
3435
* `ruleTupleCount` (*type:* `integer()`, *default:* `nil`) - [Output Only] Total count of all firewall policy rule tuples. A firewall policy can not exceed a set number of tuples.
@@ -49,6 +50,7 @@ defmodule GoogleApi.Compute.V1.Model.FirewallPolicy do
4950
:id => String.t() | nil,
5051
:kind => String.t() | nil,
5152
:name => String.t() | nil,
53+
:packetMirroringRules => list(GoogleApi.Compute.V1.Model.FirewallPolicyRule.t()) | nil,
5254
:parent => String.t() | nil,
5355
:region => String.t() | nil,
5456
:ruleTupleCount => integer() | nil,
@@ -66,6 +68,7 @@ defmodule GoogleApi.Compute.V1.Model.FirewallPolicy do
6668
field(:id)
6769
field(:kind)
6870
field(:name)
71+
field(:packetMirroringRules, as: GoogleApi.Compute.V1.Model.FirewallPolicyRule, type: :list)
6972
field(:parent)
7073
field(:region)
7174
field(:ruleTupleCount)

clients/compute/lib/google_api/compute/v1/model/instances_get_effective_firewalls_response_effective_firewall_policy.ex

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ defmodule GoogleApi.Compute.V1.Model.InstancesGetEffectiveFirewallsResponseEffec
2323
2424
* `displayName` (*type:* `String.t`, *default:* `nil`) - [Output Only] Deprecated, please use short name instead. The display name of the firewall policy.
2525
* `name` (*type:* `String.t`, *default:* `nil`) - [Output Only] The name of the firewall policy.
26+
* `packetMirroringRules` (*type:* `list(GoogleApi.Compute.V1.Model.FirewallPolicyRule.t)`, *default:* `nil`) - [Output Only] The packet mirroring rules that apply to the instance.
2627
* `priority` (*type:* `integer()`, *default:* `nil`) - [Output only] Priority of firewall policy association. Not applicable for type=HIERARCHY.
2728
* `rules` (*type:* `list(GoogleApi.Compute.V1.Model.FirewallPolicyRule.t)`, *default:* `nil`) - [Output Only] The rules that apply to the instance. Only rules that target the specific VM instance are returned if target service accounts or target secure tags are specified in the rules.
2829
* `shortName` (*type:* `String.t`, *default:* `nil`) - [Output Only] The short name of the firewall policy.
@@ -34,6 +35,7 @@ defmodule GoogleApi.Compute.V1.Model.InstancesGetEffectiveFirewallsResponseEffec
3435
@type t :: %__MODULE__{
3536
:displayName => String.t() | nil,
3637
:name => String.t() | nil,
38+
:packetMirroringRules => list(GoogleApi.Compute.V1.Model.FirewallPolicyRule.t()) | nil,
3739
:priority => integer() | nil,
3840
:rules => list(GoogleApi.Compute.V1.Model.FirewallPolicyRule.t()) | nil,
3941
:shortName => String.t() | nil,
@@ -42,6 +44,7 @@ defmodule GoogleApi.Compute.V1.Model.InstancesGetEffectiveFirewallsResponseEffec
4244

4345
field(:displayName)
4446
field(:name)
47+
field(:packetMirroringRules, as: GoogleApi.Compute.V1.Model.FirewallPolicyRule, type: :list)
4548
field(:priority)
4649
field(:rules, as: GoogleApi.Compute.V1.Model.FirewallPolicyRule, type: :list)
4750
field(:shortName)

clients/compute/lib/google_api/compute/v1/model/license_resource_commitment.ex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ defmodule GoogleApi.Compute.V1.Model.LicenseResourceCommitment do
2121
2222
## Attributes
2323
24-
* `amount` (*type:* `String.t`, *default:* `nil`) - The number of licenses purchased.
25-
* `coresPerLicense` (*type:* `String.t`, *default:* `nil`) - Specifies the core range of the instance for which this license applies.
26-
* `license` (*type:* `String.t`, *default:* `nil`) - Any applicable license URI.
24+
* `amount` (*type:* `String.t`, *default:* `nil`) - The number of licenses you plan to purchase.
25+
* `coresPerLicense` (*type:* `String.t`, *default:* `nil`) - The number of cores per license.
26+
* `license` (*type:* `String.t`, *default:* `nil`) - The applicable license URI.
2727
"""
2828

2929
use GoogleApi.Gax.ModelBase

clients/compute/lib/google_api/compute/v1/model/network_profile.ex

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ defmodule GoogleApi.Compute.V1.Model.NetworkProfile do
3030
* `name` (*type:* `String.t`, *default:* `nil`) - [Output Only] Name of the resource.
3131
* `selfLink` (*type:* `String.t`, *default:* `nil`) - [Output Only] Server-defined URL for the resource.
3232
* `selfLinkWithId` (*type:* `String.t`, *default:* `nil`) - [Output Only] Server-defined URL for this resource with the resource id.
33-
* `zone` (*type:* `String.t`, *default:* `nil`) - [Output Only] Zone to which the network is restricted.
3433
"""
3534

3635
use GoogleApi.Gax.ModelBase
@@ -44,8 +43,7 @@ defmodule GoogleApi.Compute.V1.Model.NetworkProfile do
4443
:location => GoogleApi.Compute.V1.Model.NetworkProfileLocation.t() | nil,
4544
:name => String.t() | nil,
4645
:selfLink => String.t() | nil,
47-
:selfLinkWithId => String.t() | nil,
48-
:zone => String.t() | nil
46+
:selfLinkWithId => String.t() | nil
4947
}
5048

5149
field(:creationTimestamp)
@@ -57,7 +55,6 @@ defmodule GoogleApi.Compute.V1.Model.NetworkProfile do
5755
field(:name)
5856
field(:selfLink)
5957
field(:selfLinkWithId)
60-
field(:zone)
6158
end
6259

6360
defimpl Poison.Decoder, for: GoogleApi.Compute.V1.Model.NetworkProfile do

0 commit comments

Comments
 (0)