Skip to content

Commit

Permalink
feat: Automated regeneration of compute v1 client
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-automation committed Nov 14, 2020
1 parent 64cc0a9 commit 8c29bbb
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 16 deletions.
2 changes: 2 additions & 0 deletions api_names_out.yaml
Expand Up @@ -48654,6 +48654,7 @@
"/compute:v1/PacketMirroringFilter/IPProtocols/ip_protocol": ip_protocol
"/compute:v1/PacketMirroringFilter/cidrRanges": cidr_ranges
"/compute:v1/PacketMirroringFilter/cidrRanges/cidr_range": cidr_range
"/compute:v1/PacketMirroringFilter/direction": direction
"/compute:v1/PacketMirroringForwardingRuleInfo": packet_mirroring_forwarding_rule_info
"/compute:v1/PacketMirroringForwardingRuleInfo/canonicalUrl": canonical_url
"/compute:v1/PacketMirroringForwardingRuleInfo/url": url
Expand Down Expand Up @@ -49234,6 +49235,7 @@
"/compute:v1/RouterNat": router_nat
"/compute:v1/RouterNat/drainNatIps": drain_nat_ips
"/compute:v1/RouterNat/drainNatIps/drain_nat_ip": drain_nat_ip
"/compute:v1/RouterNat/enableEndpointIndependentMapping": enable_endpoint_independent_mapping
"/compute:v1/RouterNat/icmpIdleTimeoutSec": icmp_idle_timeout_sec
"/compute:v1/RouterNat/logConfig": log_config
"/compute:v1/RouterNat/minPortsPerVm": min_ports_per_vm
Expand Down
2 changes: 1 addition & 1 deletion generated/google/apis/compute_v1.rb
Expand Up @@ -25,7 +25,7 @@ module Apis
# @see https://developers.google.com/compute/docs/reference/latest/
module ComputeV1
VERSION = 'V1'
REVISION = '20201007'
REVISION = '20201022'

# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
Expand Down
48 changes: 35 additions & 13 deletions generated/google/apis/compute_v1/classes.rb
Expand Up @@ -1542,8 +1542,8 @@ def update!(**args)

# Represents an Autoscaler resource.
# Google Compute Engine has two Autoscaler resources:
# * [Global](/compute/docs/reference/rest/`$api_version`/autoscalers) * [
# Regional](/compute/docs/reference/rest/`$api_version`/regionAutoscalers)
# * [Zonal](/compute/docs/reference/rest/`$api_version`/autoscalers) * [Regional]
# (/compute/docs/reference/rest/`$api_version`/regionAutoscalers)
# Use autoscalers to automatically add or delete instances from a managed
# instance group according to your defined autoscaling policy. For more
# information, read Autoscaling Groups of Instances.
Expand Down Expand Up @@ -5823,7 +5823,7 @@ def update!(**args)
class DistributionPolicy
include Google::Apis::Core::Hashable

# Zones where the regional managed instance group will create and manage
# Zones where the regional managed instance group will create and manage its
# instances.
# Corresponds to the JSON property `zones`
# @return [Array<Google::Apis::ComputeV1::DistributionPolicyZoneConfiguration>]
Expand Down Expand Up @@ -11395,8 +11395,8 @@ class InstanceGroupManager
# @return [String]
attr_accessor :description

# Policy specifying intended distribution of instances in regional managed
# instance group.
# Policy specifying the intended distribution of managed instances across zones
# in a regional managed instance group.
# Corresponds to the JSON property `distributionPolicy`
# @return [Google::Apis::ComputeV1::DistributionPolicy]
attr_accessor :distribution_policy
Expand Down Expand Up @@ -11425,7 +11425,9 @@ class InstanceGroupManager

# The URL of the instance template that is specified for this managed instance
# group. The group uses this template to create all new instances in the managed
# instance group.
# instance group. The templates for existing instances in the group do not
# change unless you run recreateInstances, run applyUpdatesToInstances, or set
# the group's updatePolicy.type to PROACTIVE.
# Corresponds to the JSON property `instanceTemplate`
# @return [String]
attr_accessor :instance_template
Expand Down Expand Up @@ -11501,7 +11503,7 @@ class InstanceGroupManager
# @return [Array<Google::Apis::ComputeV1::InstanceGroupManagerVersion>]
attr_accessor :versions

# [Output Only] The URL of the zone where the managed instance group is located (
# [Output Only] The URL of a zone where the managed instance group is located (
# for zonal resources).
# Corresponds to the JSON property `zone`
# @return [String]
Expand Down Expand Up @@ -12086,7 +12088,11 @@ class InstanceGroupManagerVersion

# The URL of the instance template that is specified for this managed instance
# group. The group uses this template to create new instances in the managed
# instance group until the `targetSize` for this version is reached.
# instance group until the `targetSize` for this version is reached. The
# templates for existing instances in the group do not change unless you run
# recreateInstances, run applyUpdatesToInstances, or set the group's
# updatePolicy.type to PROACTIVE; in those cases, existing instances are updated
# until the `targetSize` for this version is reached.
# Corresponds to the JSON property `instanceTemplate`
# @return [String]
attr_accessor :instance_template
Expand Down Expand Up @@ -12543,7 +12549,9 @@ class InstanceGroupManagersSetInstanceTemplateRequest

# The URL of the instance template that is specified for this managed instance
# group. The group uses this template to create all new instances in the managed
# instance group.
# instance group. The templates for existing instances in the group do not
# change unless you run recreateInstances, run applyUpdatesToInstances, or set
# the group's updatePolicy.type to PROACTIVE.
# Corresponds to the JSON property `instanceTemplate`
# @return [String]
attr_accessor :instance_template
Expand Down Expand Up @@ -21171,6 +21179,12 @@ class PacketMirroringFilter
# @return [Array<String>]
attr_accessor :cidr_ranges

# Direction of traffic to mirror, either INGRESS, EGRESS, or BOTH. The default
# is BOTH.
# Corresponds to the JSON property `direction`
# @return [String]
attr_accessor :direction

def initialize(**args)
update!(**args)
end
Expand All @@ -21179,6 +21193,7 @@ def initialize(**args)
def update!(**args)
@ip_protocols = args[:ip_protocols] if args.key?(:ip_protocols)
@cidr_ranges = args[:cidr_ranges] if args.key?(:cidr_ranges)
@direction = args[:direction] if args.key?(:direction)
end
end

Expand Down Expand Up @@ -25871,6 +25886,12 @@ class RouterNat
# @return [Array<String>]
attr_accessor :drain_nat_ips

#
# Corresponds to the JSON property `enableEndpointIndependentMapping`
# @return [Boolean]
attr_accessor :enable_endpoint_independent_mapping
alias_method :enable_endpoint_independent_mapping?, :enable_endpoint_independent_mapping

# Timeout (in seconds) for ICMP connections. Defaults to 30s if not set.
# Corresponds to the JSON property `icmpIdleTimeoutSec`
# @return [Fixnum]
Expand Down Expand Up @@ -25956,6 +25977,7 @@ def initialize(**args)
# Update properties of this object
def update!(**args)
@drain_nat_ips = args[:drain_nat_ips] if args.key?(:drain_nat_ips)
@enable_endpoint_independent_mapping = args[:enable_endpoint_independent_mapping] if args.key?(:enable_endpoint_independent_mapping)
@icmp_idle_timeout_sec = args[:icmp_idle_timeout_sec] if args.key?(:icmp_idle_timeout_sec)
@log_config = args[:log_config] if args.key?(:log_config)
@min_ports_per_vm = args[:min_ports_per_vm] if args.key?(:min_ports_per_vm)
Expand Down Expand Up @@ -28255,10 +28277,10 @@ def update!(**args)
end
end

# Represents a Google Cloud Armor security policy resource.
# Only external backend services used by HTTP or HTTPS load balancers can
# reference a security policy. For more information, see Google Cloud Armor
# security policy overview. (== resource_for `$api_version`.sslPolicies ==)
# Represents an SSL Policy resource.
# Use SSL policies to control the SSL features, such as versions and cipher
# suites, offered by an HTTPS or SSL Proxy load balancer. For more information,
# read SSL Policy Concepts. (== resource_for `$api_version`.sslPolicies ==)
class SslPolicy
include Google::Apis::Core::Hashable

Expand Down
2 changes: 2 additions & 0 deletions generated/google/apis/compute_v1/representations.rb
Expand Up @@ -9863,6 +9863,7 @@ class PacketMirroringFilter
class Representation < Google::Apis::Core::JsonRepresentation
collection :ip_protocols, as: 'IPProtocols'
collection :cidr_ranges, as: 'cidrRanges'
property :direction, as: 'direction'
end
end

Expand Down Expand Up @@ -11102,6 +11103,7 @@ class RouterNat
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :drain_nat_ips, as: 'drainNatIps'
property :enable_endpoint_independent_mapping, as: 'enableEndpointIndependentMapping'
property :icmp_idle_timeout_sec, as: 'icmpIdleTimeoutSec'
property :log_config, as: 'logConfig', class: Google::Apis::ComputeV1::RouterNatLogConfig, decorator: Google::Apis::ComputeV1::RouterNatLogConfig::Representation

Expand Down
3 changes: 2 additions & 1 deletion generated/google/apis/compute_v1/service.rb
Expand Up @@ -7754,7 +7754,8 @@ def resize_instance_group_manager(project, zone, instance_group_manager, size, r

# Specifies the instance template to use when creating new instances in this
# group. The templates for existing instances in the group do not change unless
# you recreate them.
# you run recreateInstances, run applyUpdatesToInstances, or set the group's
# updatePolicy.type to PROACTIVE.
# @param [String] project
# Project ID for this request.
# @param [String] zone
Expand Down
2 changes: 1 addition & 1 deletion generated/google/apis/compute_v1/synth.metadata
Expand Up @@ -4,7 +4,7 @@
"git": {
"name": ".",
"remote": "https://github.com/googleapis/google-api-ruby-client.git",
"sha": "9a89003a7c09c1981bf1d46ddd74c9997efaf69d"
"sha": "64cc0a9fa3e5be2081f51465ccb191ff506c9ece"
}
}
]
Expand Down

0 comments on commit 8c29bbb

Please sign in to comment.