Skip to content

Commit 1bb4d93

Browse files
feat: Automated regeneration of Compute client (googleapis#12357)
Auto-created at 2024-10-18 13:14:42 +0000 using the toys pull request generator.
1 parent de8cf41 commit 1bb4d93

14 files changed

+73
-11
lines changed

clients/compute/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding
1111

1212
```elixir
1313
def deps do
14-
[{:google_api_compute, "~> 0.65"}]
14+
[{:google_api_compute, "~> 0.66"}]
1515
end
1616
```
1717

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 "20241001"
23+
@discovery_revision "20241008"
2424

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

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ defmodule GoogleApi.Compute.V1.Model.BackendService do
4848
* `circuitBreakers` (*type:* `GoogleApi.Compute.V1.Model.CircuitBreakers.t`, *default:* `nil`) -
4949
* `backends` (*type:* `list(GoogleApi.Compute.V1.Model.Backend.t)`, *default:* `nil`) - The list of backends that serve this BackendService.
5050
* `securitySettings` (*type:* `GoogleApi.Compute.V1.Model.SecuritySettings.t`, *default:* `nil`) - This field specifies the security settings that apply to this backend service. This field is applicable to a global backend service with the load_balancing_scheme set to INTERNAL_SELF_MANAGED.
51+
* `strongSessionAffinityCookie` (*type:* `GoogleApi.Compute.V1.Model.BackendServiceHttpCookie.t`, *default:* `nil`) - Describes the HTTP cookie used for stateful session affinity. This field is applicable and required if the sessionAffinity is set to STRONG_COOKIE_AFFINITY.
5152
* `creationTimestamp` (*type:* `String.t`, *default:* `nil`) - [Output Only] Creation timestamp in RFC3339 text format.
5253
* `cdnPolicy` (*type:* `GoogleApi.Compute.V1.Model.BackendServiceCdnPolicy.t`, *default:* `nil`) - Cloud CDN configuration for this BackendService. Only available for specified load balancer types.
5354
* `timeoutSec` (*type:* `integer()`, *default:* `nil`) - The backend service timeout has a different meaning depending on the type of load balancer. For more information see, Backend service settings. The default is 30 seconds. The full range of timeout values allowed goes from 1 through 2,147,483,647 seconds. This value can be overridden in the PathMatcher configuration of the UrlMap that references this backend service. Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true. Instead, use maxStreamDuration.
@@ -98,6 +99,8 @@ defmodule GoogleApi.Compute.V1.Model.BackendService do
9899
:circuitBreakers => GoogleApi.Compute.V1.Model.CircuitBreakers.t() | nil,
99100
:backends => list(GoogleApi.Compute.V1.Model.Backend.t()) | nil,
100101
:securitySettings => GoogleApi.Compute.V1.Model.SecuritySettings.t() | nil,
102+
:strongSessionAffinityCookie =>
103+
GoogleApi.Compute.V1.Model.BackendServiceHttpCookie.t() | nil,
101104
:creationTimestamp => String.t() | nil,
102105
:cdnPolicy => GoogleApi.Compute.V1.Model.BackendServiceCdnPolicy.t() | nil,
103106
:timeoutSec => integer() | nil,
@@ -149,6 +152,7 @@ defmodule GoogleApi.Compute.V1.Model.BackendService do
149152
field(:circuitBreakers, as: GoogleApi.Compute.V1.Model.CircuitBreakers)
150153
field(:backends, as: GoogleApi.Compute.V1.Model.Backend, type: :list)
151154
field(:securitySettings, as: GoogleApi.Compute.V1.Model.SecuritySettings)
155+
field(:strongSessionAffinityCookie, as: GoogleApi.Compute.V1.Model.BackendServiceHttpCookie)
152156
field(:creationTimestamp)
153157
field(:cdnPolicy, as: GoogleApi.Compute.V1.Model.BackendServiceCdnPolicy)
154158
field(:timeoutSec)
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# Copyright 2019 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# NOTE: This file is auto generated by the elixir code generator program.
16+
# Do not edit this file manually.
17+
18+
defmodule GoogleApi.Compute.V1.Model.BackendServiceHttpCookie do
19+
@moduledoc """
20+
The HTTP cookie used for stateful session affinity.
21+
22+
## Attributes
23+
24+
* `name` (*type:* `String.t`, *default:* `nil`) - Name of the cookie.
25+
* `path` (*type:* `String.t`, *default:* `nil`) - Path to set for the cookie.
26+
* `ttl` (*type:* `GoogleApi.Compute.V1.Model.Duration.t`, *default:* `nil`) - Lifetime of the cookie.
27+
"""
28+
29+
use GoogleApi.Gax.ModelBase
30+
31+
@type t :: %__MODULE__{
32+
:name => String.t() | nil,
33+
:path => String.t() | nil,
34+
:ttl => GoogleApi.Compute.V1.Model.Duration.t() | nil
35+
}
36+
37+
field(:name)
38+
field(:path)
39+
field(:ttl, as: GoogleApi.Compute.V1.Model.Duration)
40+
end
41+
42+
defimpl Poison.Decoder, for: GoogleApi.Compute.V1.Model.BackendServiceHttpCookie do
43+
def decode(value, options) do
44+
GoogleApi.Compute.V1.Model.BackendServiceHttpCookie.decode(value, options)
45+
end
46+
end
47+
48+
defimpl Poison.Encoder, for: GoogleApi.Compute.V1.Model.BackendServiceHttpCookie do
49+
def encode(value, options) do
50+
GoogleApi.Gax.ModelBase.encode(value, options)
51+
end
52+
end

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ defmodule GoogleApi.Compute.V1.Model.HealthStatusForNetworkEndpoint do
2626
* `healthCheck` (*type:* `GoogleApi.Compute.V1.Model.HealthCheckReference.t`, *default:* `nil`) - URL of the health check associated with the health state of the network endpoint.
2727
* `healthCheckService` (*type:* `GoogleApi.Compute.V1.Model.HealthCheckServiceReference.t`, *default:* `nil`) - URL of the health check service associated with the health state of the network endpoint.
2828
* `healthState` (*type:* `String.t`, *default:* `nil`) - Health state of the network endpoint determined based on the health checks configured.
29+
* `ipv6HealthState` (*type:* `String.t`, *default:* `nil`) - Health state of the ipv6 network endpoint determined based on the health checks configured.
2930
"""
3031

3132
use GoogleApi.Gax.ModelBase
@@ -35,14 +36,16 @@ defmodule GoogleApi.Compute.V1.Model.HealthStatusForNetworkEndpoint do
3536
:forwardingRule => GoogleApi.Compute.V1.Model.ForwardingRuleReference.t() | nil,
3637
:healthCheck => GoogleApi.Compute.V1.Model.HealthCheckReference.t() | nil,
3738
:healthCheckService => GoogleApi.Compute.V1.Model.HealthCheckServiceReference.t() | nil,
38-
:healthState => String.t() | nil
39+
:healthState => String.t() | nil,
40+
:ipv6HealthState => String.t() | nil
3941
}
4042

4143
field(:backendService, as: GoogleApi.Compute.V1.Model.BackendServiceReference)
4244
field(:forwardingRule, as: GoogleApi.Compute.V1.Model.ForwardingRuleReference)
4345
field(:healthCheck, as: GoogleApi.Compute.V1.Model.HealthCheckReference)
4446
field(:healthCheckService, as: GoogleApi.Compute.V1.Model.HealthCheckServiceReference)
4547
field(:healthState)
48+
field(:ipv6HealthState)
4649
end
4750

4851
defimpl Poison.Decoder, for: GoogleApi.Compute.V1.Model.HealthStatusForNetworkEndpoint do

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ defmodule GoogleApi.Compute.V1.Model.InstancesGetEffectiveFirewallsResponse do
2121
2222
## Attributes
2323
24-
* `firewallPolicys` (*type:* `list(GoogleApi.Compute.V1.Model.InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.t)`, *default:* `nil`) - Effective firewalls from firewall policies.
24+
* `firewallPolicys` (*type:* `list(GoogleApi.Compute.V1.Model.InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.t)`, *default:* `nil`) - [Output Only] Effective firewalls from firewall policies.
2525
* `firewalls` (*type:* `list(GoogleApi.Compute.V1.Model.Firewall.t)`, *default:* `nil`) - Effective firewalls on the instance.
2626
"""
2727

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ defmodule GoogleApi.Compute.V1.Model.InstancesGetEffectiveFirewallsResponseEffec
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.
2626
* `priority` (*type:* `integer()`, *default:* `nil`) - [Output only] Priority of firewall policy association. Not applicable for type=HIERARCHY.
27-
* `rules` (*type:* `list(GoogleApi.Compute.V1.Model.FirewallPolicyRule.t)`, *default:* `nil`) - The rules that apply to the network.
27+
* `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.
2828
* `shortName` (*type:* `String.t`, *default:* `nil`) - [Output Only] The short name of the firewall policy.
2929
* `type` (*type:* `String.t`, *default:* `nil`) - [Output Only] The type of the firewall policy. Can be one of HIERARCHY, NETWORK, NETWORK_REGIONAL, SYSTEM_GLOBAL, SYSTEM_REGIONAL.
3030
"""

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ defmodule GoogleApi.Compute.V1.Model.NetworkEndpoint do
2626
* `fqdn` (*type:* `String.t`, *default:* `nil`) - Optional fully qualified domain name of network endpoint. This can only be specified when NetworkEndpointGroup.network_endpoint_type is NON_GCP_FQDN_PORT.
2727
* `instance` (*type:* `String.t`, *default:* `nil`) - The name or a URL of VM instance of this network endpoint. This field is required for network endpoints of type GCE_VM_IP and GCE_VM_IP_PORT. The instance must be in the same zone of network endpoint group (for zonal NEGs) or in the zone within the region of the NEG (for regional NEGs). If the ipAddress is specified, it must belongs to the VM instance. The name must be 1-63 characters long, and comply with RFC1035 or be a valid URL pointing to an existing instance.
2828
* `ipAddress` (*type:* `String.t`, *default:* `nil`) - Optional IPv4 address of network endpoint. The IP address must belong to a VM in Compute Engine (either the primary IP or as part of an aliased IP range). If the IP address is not specified, then the primary IP address for the VM instance in the network that the network endpoint group belongs to will be used. This field is redundant and need not be set for network endpoints of type GCE_VM_IP. If set, it must be set to the primary internal IP address of the attached VM instance that matches the subnetwork of the NEG. The primary internal IP address from any NIC of a multi-NIC VM instance can be added to a NEG as long as it matches the NEG subnetwork.
29+
* `ipv6Address` (*type:* `String.t`, *default:* `nil`) - Optional IPv6 address of network endpoint.
2930
* `port` (*type:* `integer()`, *default:* `nil`) - Optional port number of network endpoint. If not specified, the defaultPort for the network endpoint group will be used. This field can not be set for network endpoints of type GCE_VM_IP.
3031
"""
3132

@@ -37,6 +38,7 @@ defmodule GoogleApi.Compute.V1.Model.NetworkEndpoint do
3738
:fqdn => String.t() | nil,
3839
:instance => String.t() | nil,
3940
:ipAddress => String.t() | nil,
41+
:ipv6Address => String.t() | nil,
4042
:port => integer() | nil
4143
}
4244

@@ -45,6 +47,7 @@ defmodule GoogleApi.Compute.V1.Model.NetworkEndpoint do
4547
field(:fqdn)
4648
field(:instance)
4749
field(:ipAddress)
50+
field(:ipv6Address)
4851
field(:port)
4952
end
5053

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ defmodule GoogleApi.Compute.V1.Model.NetworksGetEffectiveFirewallsResponse do
2121
2222
## Attributes
2323
24-
* `firewallPolicys` (*type:* `list(GoogleApi.Compute.V1.Model.NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy.t)`, *default:* `nil`) - Effective firewalls from firewall policy.
24+
* `firewallPolicys` (*type:* `list(GoogleApi.Compute.V1.Model.NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy.t)`, *default:* `nil`) - [Output Only] Effective firewalls from firewall policy. It returns Global Network Firewall Policies and Hierarchical Firewall Policies. Use regionNetworkFirewallPolicies.getEffectiveFirewalls to get Regional Network Firewall Policies as well.
2525
* `firewalls` (*type:* `list(GoogleApi.Compute.V1.Model.Firewall.t)`, *default:* `nil`) - Effective firewalls on the network.
2626
"""
2727

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ defmodule GoogleApi.Compute.V1.Model.NetworksGetEffectiveFirewallsResponseEffect
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.
2626
* `priority` (*type:* `integer()`, *default:* `nil`) - [Output only] Priority of firewall policy association. Not applicable for type=HIERARCHY.
27-
* `rules` (*type:* `list(GoogleApi.Compute.V1.Model.FirewallPolicyRule.t)`, *default:* `nil`) - The rules that apply to the network.
27+
* `rules` (*type:* `list(GoogleApi.Compute.V1.Model.FirewallPolicyRule.t)`, *default:* `nil`) - [Output Only] The rules that apply to the network.
2828
* `shortName` (*type:* `String.t`, *default:* `nil`) - [Output Only] The short name of the firewall policy.
2929
* `type` (*type:* `String.t`, *default:* `nil`) - [Output Only] The type of the firewall policy.
3030
"""

0 commit comments

Comments
 (0)