Skip to content

Commit

Permalink
feat: Automated regeneration of compute v1 client (#20431)
Browse files Browse the repository at this point in the history
Auto-created at 2024-10-20 09:51:07 +0000 using the toys pull request generator.
  • Loading branch information
yoshi-code-bot authored Oct 20, 2024
1 parent b45858c commit 6c839ff
Show file tree
Hide file tree
Showing 5 changed files with 104 additions and 9 deletions.
7 changes: 7 additions & 0 deletions api_names_out.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102000,6 +102000,7 @@
"/compute:v1/BackendService/serviceBindings/service_binding": service_binding
"/compute:v1/BackendService/serviceLbPolicy": service_lb_policy
"/compute:v1/BackendService/sessionAffinity": session_affinity
"/compute:v1/BackendService/strongSessionAffinityCookie": strong_session_affinity_cookie
"/compute:v1/BackendService/subsetting": subsetting
"/compute:v1/BackendService/timeoutSec": timeout_sec
"/compute:v1/BackendService/usedBy": used_by
Expand Down Expand Up @@ -102056,6 +102057,10 @@
"/compute:v1/BackendServiceGroupHealth/healthStatus": health_status
"/compute:v1/BackendServiceGroupHealth/healthStatus/health_status": health_status
"/compute:v1/BackendServiceGroupHealth/kind": kind
"/compute:v1/BackendServiceHttpCookie": backend_service_http_cookie
"/compute:v1/BackendServiceHttpCookie/name": name
"/compute:v1/BackendServiceHttpCookie/path": path
"/compute:v1/BackendServiceHttpCookie/ttl": ttl
"/compute:v1/BackendServiceIAP": backend_service_iap
"/compute:v1/BackendServiceIAP/enabled": enabled
"/compute:v1/BackendServiceIAP/oauth2ClientId": oauth2_client_id
Expand Down Expand Up @@ -103110,6 +103115,7 @@
"/compute:v1/HealthStatusForNetworkEndpoint/healthCheck": health_check
"/compute:v1/HealthStatusForNetworkEndpoint/healthCheckService": health_check_service
"/compute:v1/HealthStatusForNetworkEndpoint/healthState": health_state
"/compute:v1/HealthStatusForNetworkEndpoint/ipv6HealthState": ipv6_health_state
"/compute:v1/Help": help
"/compute:v1/Help/links": links
"/compute:v1/Help/links/link": link
Expand Down Expand Up @@ -104648,6 +104654,7 @@
"/compute:v1/NetworkEndpoint/fqdn": fqdn
"/compute:v1/NetworkEndpoint/instance": instance
"/compute:v1/NetworkEndpoint/ipAddress": ip_address
"/compute:v1/NetworkEndpoint/ipv6Address": ipv6_address
"/compute:v1/NetworkEndpoint/port": port
"/compute:v1/NetworkEndpointGroup": network_endpoint_group
"/compute:v1/NetworkEndpointGroup/annotations": annotations
Expand Down
4 changes: 4 additions & 0 deletions generated/google-apis-compute_v1/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release history for google-apis-compute_v1

### v0.110.0 (2024-10-20)

* Regenerated from discovery document revision 20241008

### v0.109.0 (2024-10-13)

* Regenerated from discovery document revision 20241001
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3670,6 +3670,11 @@ class BackendService
# @return [String]
attr_accessor :session_affinity

# The HTTP cookie used for stateful session affinity.
# Corresponds to the JSON property `strongSessionAffinityCookie`
# @return [Google::Apis::ComputeV1::BackendServiceHttpCookie]
attr_accessor :strong_session_affinity_cookie

# Subsetting configuration for this BackendService. Currently this is applicable
# only for Internal TCP/UDP load balancing, Internal HTTP(S) load balancing and
# Traffic Director.
Expand Down Expand Up @@ -3740,6 +3745,7 @@ def update!(**args)
@service_bindings = args[:service_bindings] if args.key?(:service_bindings)
@service_lb_policy = args[:service_lb_policy] if args.key?(:service_lb_policy)
@session_affinity = args[:session_affinity] if args.key?(:session_affinity)
@strong_session_affinity_cookie = args[:strong_session_affinity_cookie] if args.key?(:strong_session_affinity_cookie)
@subsetting = args[:subsetting] if args.key?(:subsetting)
@timeout_sec = args[:timeout_sec] if args.key?(:timeout_sec)
@used_by = args[:used_by] if args.key?(:used_by)
Expand Down Expand Up @@ -4232,6 +4238,40 @@ def update!(**args)
end
end

# The HTTP cookie used for stateful session affinity.
class BackendServiceHttpCookie
include Google::Apis::Core::Hashable

# Name of the cookie.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name

# Path to set for the cookie.
# Corresponds to the JSON property `path`
# @return [String]
attr_accessor :path

# A Duration represents a fixed-length span of time represented as a count of
# seconds and fractions of seconds at nanosecond resolution. It is independent
# of any calendar and concepts like "day" or "month". Range is approximately 10,
# 000 years.
# Corresponds to the JSON property `ttl`
# @return [Google::Apis::ComputeV1::Duration]
attr_accessor :ttl

def initialize(**args)
update!(**args)
end

# Update properties of this object
def update!(**args)
@name = args[:name] if args.key?(:name)
@path = args[:path] if args.key?(:path)
@ttl = args[:ttl] if args.key?(:ttl)
end
end

# Identity-Aware Proxy
class BackendServiceIap
include Google::Apis::Core::Hashable
Expand Down Expand Up @@ -12069,6 +12109,12 @@ class HealthStatusForNetworkEndpoint
# @return [String]
attr_accessor :health_state

# Health state of the ipv6 network endpoint determined based on the health
# checks configured.
# Corresponds to the JSON property `ipv6HealthState`
# @return [String]
attr_accessor :ipv6_health_state

def initialize(**args)
update!(**args)
end
Expand All @@ -12080,6 +12126,7 @@ def update!(**args)
@health_check = args[:health_check] if args.key?(:health_check)
@health_check_service = args[:health_check_service] if args.key?(:health_check_service)
@health_state = args[:health_state] if args.key?(:health_state)
@ipv6_health_state = args[:ipv6_health_state] if args.key?(:ipv6_health_state)
end
end

Expand Down Expand Up @@ -18136,7 +18183,7 @@ def update!(**args)
class InstancesGetEffectiveFirewallsResponse
include Google::Apis::Core::Hashable

# Effective firewalls from firewall policies.
# [Output Only] Effective firewalls from firewall policies.
# Corresponds to the JSON property `firewallPolicys`
# @return [Array<Google::Apis::ComputeV1::InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy>]
attr_accessor :firewall_policys
Expand Down Expand Up @@ -18178,7 +18225,9 @@ class InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy
# @return [Fixnum]
attr_accessor :priority

# The rules that apply to the network.
# [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.
# Corresponds to the JSON property `rules`
# @return [Array<Google::Apis::ComputeV1::FirewallPolicyRule>]
attr_accessor :rules
Expand Down Expand Up @@ -24356,6 +24405,11 @@ class NetworkEndpoint
# @return [String]
attr_accessor :ip_address

# Optional IPv6 address of network endpoint.
# Corresponds to the JSON property `ipv6Address`
# @return [String]
attr_accessor :ipv6_address

# 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.
Expand All @@ -24374,6 +24428,7 @@ def update!(**args)
@fqdn = args[:fqdn] if args.key?(:fqdn)
@instance = args[:instance] if args.key?(:instance)
@ip_address = args[:ip_address] if args.key?(:ip_address)
@ipv6_address = args[:ipv6_address] if args.key?(:ipv6_address)
@port = args[:port] if args.key?(:port)
end
end
Expand Down Expand Up @@ -25708,7 +25763,10 @@ def update!(**args)
class NetworksGetEffectiveFirewallsResponse
include Google::Apis::Core::Hashable

# Effective firewalls from firewall policy.
# [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.
# Corresponds to the JSON property `firewallPolicys`
# @return [Array<Google::Apis::ComputeV1::NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy>]
attr_accessor :firewall_policys
Expand Down Expand Up @@ -25750,7 +25808,7 @@ class NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy
# @return [Fixnum]
attr_accessor :priority

# The rules that apply to the network.
# [Output Only] The rules that apply to the network.
# Corresponds to the JSON property `rules`
# @return [Array<Google::Apis::ComputeV1::FirewallPolicyRule>]
attr_accessor :rules
Expand Down Expand Up @@ -32493,7 +32551,10 @@ def update!(**args)
class RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse
include Google::Apis::Core::Hashable

# Effective firewalls from firewall policy.
# [Output only] Effective firewalls from firewall policy. It applies to Regional
# Network Firewall Policies in the specified region, Global Network Firewall
# Policies and Hierachial Firewall Policies which are associated with the
# network.
# Corresponds to the JSON property `firewallPolicys`
# @return [Array<Google::Apis::ComputeV1::RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy>]
attr_accessor :firewall_policys
Expand Down Expand Up @@ -32528,7 +32589,7 @@ class RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewal
# @return [String]
attr_accessor :name

# The rules that apply to the network.
# [Output only] The rules that apply to the network.
# Corresponds to the JSON property `rules`
# @return [Array<Google::Apis::ComputeV1::FirewallPolicyRule>]
attr_accessor :rules
Expand Down Expand Up @@ -32817,7 +32878,10 @@ class Reservation
attr_accessor :specific_reservation_required
alias_method :specific_reservation_required?, :specific_reservation_required

# [Output Only] The status of the reservation.
# [Output Only] The status of the reservation. - CREATING: Reservation resources
# are being allocated. - READY: Reservation resources have been allocated, and
# the reservation is ready for use. - DELETING: Reservation deletion is in
# progress. - UPDATING: Reservation update is in progress.
# Corresponds to the JSON property `status`
# @return [String]
attr_accessor :status
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ module Google
module Apis
module ComputeV1
# Version of the google-apis-compute_v1 gem
GEM_VERSION = "0.109.0"
GEM_VERSION = "0.110.0"

# Version of the code generator used to generate this client
GENERATOR_VERSION = "0.15.1"

# Revision of the discovery document this client was generated from
REVISION = "20241001"
REVISION = "20241008"
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end

class BackendServiceHttpCookie
class Representation < Google::Apis::Core::JsonRepresentation; end

include Google::Apis::Core::JsonObjectSupport
end

class BackendServiceIap
class Representation < Google::Apis::Core::JsonRepresentation; end

Expand Down Expand Up @@ -7344,6 +7350,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
collection :service_bindings, as: 'serviceBindings'
property :service_lb_policy, as: 'serviceLbPolicy'
property :session_affinity, as: 'sessionAffinity'
property :strong_session_affinity_cookie, as: 'strongSessionAffinityCookie', class: Google::Apis::ComputeV1::BackendServiceHttpCookie, decorator: Google::Apis::ComputeV1::BackendServiceHttpCookie::Representation

property :subsetting, as: 'subsetting', class: Google::Apis::ComputeV1::Subsetting, decorator: Google::Apis::ComputeV1::Subsetting::Representation

property :timeout_sec, as: 'timeoutSec'
Expand Down Expand Up @@ -7450,6 +7458,16 @@ class Representation < Google::Apis::Core::JsonRepresentation
end
end

class BackendServiceHttpCookie
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
property :path, as: 'path'
property :ttl, as: 'ttl', class: Google::Apis::ComputeV1::Duration, decorator: Google::Apis::ComputeV1::Duration::Representation

end
end

class BackendServiceIap
# @private
class Representation < Google::Apis::Core::JsonRepresentation
Expand Down Expand Up @@ -9247,6 +9265,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
property :health_check_service, as: 'healthCheckService', class: Google::Apis::ComputeV1::HealthCheckServiceReference, decorator: Google::Apis::ComputeV1::HealthCheckServiceReference::Representation

property :health_state, as: 'healthState'
property :ipv6_health_state, as: 'ipv6HealthState'
end
end

Expand Down Expand Up @@ -12314,6 +12333,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
property :fqdn, as: 'fqdn'
property :instance, as: 'instance'
property :ip_address, as: 'ipAddress'
property :ipv6_address, as: 'ipv6Address'
property :port, as: 'port'
end
end
Expand Down

0 comments on commit 6c839ff

Please sign in to comment.