diff --git a/api_names_out.yaml b/api_names_out.yaml index 30148e3c6..6b937c8a8 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -30090,6 +30090,9 @@ "/compute:alpha/AllocationsUpdateResourceShapeRequest/count": count "/compute:alpha/AllocationsUpdateResourceShapeRequest/destinationAllocation": destination_allocation "/compute:alpha/AllocationsUpdateResourceShapeRequest/updatedResourceProperties": updated_resource_properties +"/compute:alpha/Any": any +"/compute:alpha/Any/typeUrl": type_url +"/compute:alpha/Any/value": value "/compute:alpha/AttachedDisk": attached_disk "/compute:alpha/AttachedDisk/autoDelete": auto_delete "/compute:alpha/AttachedDisk/boot": boot @@ -30355,6 +30358,7 @@ "/compute:alpha/BackendService/loadBalancingScheme": load_balancing_scheme "/compute:alpha/BackendService/localityLbPolicy": locality_lb_policy "/compute:alpha/BackendService/logConfig": log_config +"/compute:alpha/BackendService/maxStreamDuration": max_stream_duration "/compute:alpha/BackendService/name": name "/compute:alpha/BackendService/network": network "/compute:alpha/BackendService/outlierDetection": outlier_detection @@ -30417,6 +30421,8 @@ "/compute:alpha/BackendServiceCloudFunctionBackend/targetProject": target_project "/compute:alpha/BackendServiceConnectionTrackingPolicy": backend_service_connection_tracking_policy "/compute:alpha/BackendServiceConnectionTrackingPolicy/connectionPersistenceOnUnhealthyBackends": connection_persistence_on_unhealthy_backends +"/compute:alpha/BackendServiceConnectionTrackingPolicy/idleTimeoutSec": idle_timeout_sec +"/compute:alpha/BackendServiceConnectionTrackingPolicy/trackingMode": tracking_mode "/compute:alpha/BackendServiceFailoverPolicy": backend_service_failover_policy "/compute:alpha/BackendServiceFailoverPolicy/disableConnectionDrainOnFailover": disable_connection_drain_on_failover "/compute:alpha/BackendServiceFailoverPolicy/dropTrafficIfUnhealthy": drop_traffic_if_unhealthy @@ -30518,9 +30524,13 @@ "/compute:alpha/BulkInsertInstanceResource/locationPolicy": location_policy "/compute:alpha/BulkInsertInstanceResource/minCount": min_count "/compute:alpha/BulkInsertInstanceResource/namePattern": name_pattern +"/compute:alpha/BulkInsertInstanceResource/perInstanceProperties": per_instance_properties +"/compute:alpha/BulkInsertInstanceResource/perInstanceProperties/per_instance_property": per_instance_property "/compute:alpha/BulkInsertInstanceResource/predefinedNames": predefined_names "/compute:alpha/BulkInsertInstanceResource/predefinedNames/predefined_name": predefined_name "/compute:alpha/BulkInsertInstanceResource/sourceInstanceTemplate": source_instance_template +"/compute:alpha/BulkInsertInstanceResourcePerInstanceProperties": bulk_insert_instance_resource_per_instance_properties +"/compute:alpha/BulkInsertInstanceResourcePerInstanceProperties/name": name "/compute:alpha/CacheInvalidationRule": cache_invalidation_rule "/compute:alpha/CacheInvalidationRule/host": host "/compute:alpha/CacheInvalidationRule/path": path @@ -30688,6 +30698,7 @@ "/compute:alpha/Disk/licenseCodes/license_code": license_code "/compute:alpha/Disk/licenses": licenses "/compute:alpha/Disk/licenses/license": license +"/compute:alpha/Disk/locationHint": location_hint "/compute:alpha/Disk/multiWriter": multi_writer "/compute:alpha/Disk/name": name "/compute:alpha/Disk/options": options @@ -31483,6 +31494,7 @@ "/compute:alpha/HttpRouteAction": http_route_action "/compute:alpha/HttpRouteAction/corsPolicy": cors_policy "/compute:alpha/HttpRouteAction/faultInjectionPolicy": fault_injection_policy +"/compute:alpha/HttpRouteAction/maxStreamDuration": max_stream_duration "/compute:alpha/HttpRouteAction/requestMirrorPolicy": request_mirror_policy "/compute:alpha/HttpRouteAction/retryPolicy": retry_policy "/compute:alpha/HttpRouteAction/timeout": timeout @@ -31566,6 +31578,7 @@ "/compute:alpha/Image/rawDisk/containerType": container_type "/compute:alpha/Image/rawDisk/sha1Checksum": sha1_checksum "/compute:alpha/Image/rawDisk/source": source +"/compute:alpha/Image/satisfiesPzs": satisfies_pzs "/compute:alpha/Image/selfLink": self_link "/compute:alpha/Image/selfLinkWithId": self_link_with_id "/compute:alpha/Image/shieldedInstanceInitialState": shielded_instance_initial_state @@ -32179,6 +32192,7 @@ "/compute:alpha/InstantSnapshot/labels/label": label "/compute:alpha/InstantSnapshot/name": name "/compute:alpha/InstantSnapshot/region": region +"/compute:alpha/InstantSnapshot/satisfiesPzs": satisfies_pzs "/compute:alpha/InstantSnapshot/selfLink": self_link "/compute:alpha/InstantSnapshot/selfLinkWithId": self_link_with_id "/compute:alpha/InstantSnapshot/sourceDisk": source_disk @@ -32543,6 +32557,7 @@ "/compute:alpha/MachineImage/kind": kind "/compute:alpha/MachineImage/machineImageEncryptionKey": machine_image_encryption_key "/compute:alpha/MachineImage/name": name +"/compute:alpha/MachineImage/satisfiesPzs": satisfies_pzs "/compute:alpha/MachineImage/selfLink": self_link "/compute:alpha/MachineImage/selfLinkWithId": self_link_with_id "/compute:alpha/MachineImage/sourceDiskEncryptionKeys": source_disk_encryption_keys @@ -33229,6 +33244,7 @@ "/compute:alpha/Operation/id": id "/compute:alpha/Operation/insertTime": insert_time "/compute:alpha/Operation/kind": kind +"/compute:alpha/Operation/metadata": metadata "/compute:alpha/Operation/name": name "/compute:alpha/Operation/operationType": operation_type "/compute:alpha/Operation/progress": progress @@ -34437,6 +34453,7 @@ "/compute:alpha/SecurityPolicyRule/preview": preview "/compute:alpha/SecurityPolicyRule/priority": priority "/compute:alpha/SecurityPolicyRule/rateLimitOptions": rate_limit_options +"/compute:alpha/SecurityPolicyRule/redirectTarget": redirect_target "/compute:alpha/SecurityPolicyRule/ruleNumber": rule_number "/compute:alpha/SecurityPolicyRule/ruleTupleCount": rule_tuple_count "/compute:alpha/SecurityPolicyRule/targetResources": target_resources @@ -34519,6 +34536,7 @@ "/compute:alpha/ServiceAttachment/consumerForwardingRules/consumer_forwarding_rule": consumer_forwarding_rule "/compute:alpha/ServiceAttachment/creationTimestamp": creation_timestamp "/compute:alpha/ServiceAttachment/description": description +"/compute:alpha/ServiceAttachment/enableProxyProtocol": enable_proxy_protocol "/compute:alpha/ServiceAttachment/id": id "/compute:alpha/ServiceAttachment/kind": kind "/compute:alpha/ServiceAttachment/name": name @@ -34594,6 +34612,7 @@ "/compute:alpha/Snapshot/licenseCodes/license_code": license_code "/compute:alpha/Snapshot/licenses": licenses "/compute:alpha/Snapshot/licenses/license": license +"/compute:alpha/Snapshot/locationHint": location_hint "/compute:alpha/Snapshot/name": name "/compute:alpha/Snapshot/satisfiesPhysicalZoneSeparation": satisfies_physical_zone_separation "/compute:alpha/Snapshot/satisfiesPzs": satisfies_pzs @@ -35312,8 +35331,12 @@ "/compute:alpha/UDPHealthCheck/response": response "/compute:alpha/UpcomingMaintenance": upcoming_maintenance "/compute:alpha/UpcomingMaintenance/date": date +"/compute:alpha/UpcomingMaintenance/startTimeWindow": start_time_window "/compute:alpha/UpcomingMaintenance/time": time "/compute:alpha/UpcomingMaintenance/type": type +"/compute:alpha/UpcomingMaintenanceTimeWindow": upcoming_maintenance_time_window +"/compute:alpha/UpcomingMaintenanceTimeWindow/earliest": earliest +"/compute:alpha/UpcomingMaintenanceTimeWindow/latest": latest "/compute:alpha/UrlMap": url_map "/compute:alpha/UrlMap/creationTimestamp": creation_timestamp "/compute:alpha/UrlMap/defaultRouteAction": default_route_action diff --git a/generated/google-apis-compute_alpha/CHANGELOG.md b/generated/google-apis-compute_alpha/CHANGELOG.md index ff71f4b18..7c7b0a01c 100644 --- a/generated/google-apis-compute_alpha/CHANGELOG.md +++ b/generated/google-apis-compute_alpha/CHANGELOG.md @@ -1,5 +1,10 @@ # Release history for google-apis-compute_alpha +### v0.2.0 (2021-01-21) + +* Regenerated from discovery document revision 20201213 +* Regenerated using generator version 0.1.2 + ### v0.1.0 (2021-01-07) * Regenerated using generator version 0.1.1 diff --git a/generated/google-apis-compute_alpha/lib/google/apis/compute_alpha/classes.rb b/generated/google-apis-compute_alpha/lib/google/apis/compute_alpha/classes.rb index 9a2e9a681..a91b7cb4e 100644 --- a/generated/google-apis-compute_alpha/lib/google/apis/compute_alpha/classes.rb +++ b/generated/google-apis-compute_alpha/lib/google/apis/compute_alpha/classes.rb @@ -1291,6 +1291,80 @@ module Google end end + # `Any` contains an arbitrary serialized protocol buffer message along with a + # URL that describes the type of the serialized message. + # Protobuf library provides support to pack/unpack Any values in the form of + # utility functions or additional generated methods of the Any type. + # Example 1: Pack and unpack a message in C++. + # Foo foo = ...; Any any; any.PackFrom(foo); ... if (any.UnpackTo(&foo)) ` ... ` + # Example 2: Pack and unpack a message in Java. + # Foo foo = ...; Any any = Any.pack(foo); ... if (any.is(Foo.class)) ` foo = any. + # unpack(Foo.class); ` + # Example 3: Pack and unpack a message in Python. + # foo = Foo(...) any = Any() any.Pack(foo) ... if any.Is(Foo.DESCRIPTOR): any. + # Unpack(foo) ... + # Example 4: Pack and unpack a message in Go + # foo := &pb.Foo`...` any, err := anypb.New(foo) if err != nil ` ... ` ... foo := + # &pb.Foo`` if err := any.UnmarshalTo(foo); err != nil ` ... ` + # The pack methods provided by protobuf library will by default use 'type. + # googleapis.com/full.type.name' as the type URL and the unpack methods only use + # the fully qualified type name after the last '/' in the type URL, for example " + # foo.bar.com/x/y.z" will yield type name "y.z". + # JSON ==== The JSON representation of an `Any` value uses the regular + # representation of the deserialized, embedded message, with an additional field + # `@type` which contains the type URL. Example: + # package google.profile; message Person ` string first_name = 1; string + # last_name = 2; ` + # ` "@type": "type.googleapis.com/google.profile.Person", "firstName": , " + # lastName": ` + # If the embedded message type is well-known and has a custom JSON + # representation, that representation will be embedded adding a field `value` + # which holds the custom JSON in addition to the `@type` field. Example (for + # message [google.protobuf.Duration][]): + # ` "@type": "type.googleapis.com/google.protobuf.Duration", "value": "1.212s" ` + class Any + include Google::Apis::Core::Hashable + + # A URL/resource name that uniquely identifies the type of the serialized + # protocol buffer message. This string must contain at least one "/" character. + # The last segment of the URL's path must represent the fully qualified name of + # the type (as in `path/google.protobuf.Duration`). The name should be in a + # canonical form (e.g., leading "." is not accepted). + # In practice, teams usually precompile into the binary all types that they + # expect it to use in the context of Any. However, for URLs which use the scheme + # `http`, `https`, or no scheme, one can optionally set up a type server that + # maps type URLs to message definitions as follows: + # * If no scheme is provided, `https` is assumed. * An HTTP GET on the URL must + # yield a [google.protobuf.Type][] value in binary format, or produce an error. * + # Applications are allowed to cache lookup results based on the URL, or have + # them precompiled into a binary to avoid any lookup. Therefore, binary + # compatibility needs to be preserved on changes to types. (Use versioned type + # names to manage breaking changes.) + # Note: this functionality is not currently available in the official protobuf + # release, and it is not used for type URLs beginning with type.googleapis.com. + # Schemes other than `http`, `https` (or the empty scheme) might be used with + # implementation specific semantics. + # Corresponds to the JSON property `typeUrl` + # @return [String] + attr_accessor :type_url + + # Must be a valid serialized protocol buffer of the above specified type. + # Corresponds to the JSON property `value` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @type_url = args[:type_url] if args.key?(:type_url) + @value = args[:value] if args.key?(:value) + end + end + # An instance-attached disk resource. class AttachedDisk include Google::Apis::Core::Hashable @@ -3485,6 +3559,14 @@ module Google # @return [Google::Apis::ComputeAlpha::BackendServiceLogConfig] attr_accessor :log_config + # 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 `maxStreamDuration` + # @return [Google::Apis::ComputeAlpha::Duration] + attr_accessor :max_stream_duration + # 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- @@ -3624,6 +3706,7 @@ module Google @load_balancing_scheme = args[:load_balancing_scheme] if args.key?(:load_balancing_scheme) @locality_lb_policy = args[:locality_lb_policy] if args.key?(:locality_lb_policy) @log_config = args[:log_config] if args.key?(:log_config) + @max_stream_duration = args[:max_stream_duration] if args.key?(:max_stream_duration) @name = args[:name] if args.key?(:name) @network = args[:network] if args.key?(:network) @outlier_detection = args[:outlier_detection] if args.key?(:outlier_detection) @@ -3987,6 +4070,25 @@ module Google # @return [String] attr_accessor :connection_persistence_on_unhealthy_backends + # Specifies how long to keep a Connection Tracking entry while there is no + # matching traffic (in seconds). + # For L4 ILB the minimum(default) is 10 minutes and maximum is 16 hours. + # For NLB the minimum(default) is 60 seconds and the maximum is 16 hours. + # This field will be supported only if the Connection Tracking key is less than + # 5-tuple. + # Corresponds to the JSON property `idleTimeoutSec` + # @return [Fixnum] + attr_accessor :idle_timeout_sec + + # Specifies the key used for connection tracking. There are two options: + # PER_CONNECTION: This is the default mode. The Connection Tracking is performed + # as per the Connection Key (default Hash Method) for the specific protocol. + # PER_SESSION: The Connection Tracking is performed as per the configured + # Session Affinity. It matches the configured Session Affinity. + # Corresponds to the JSON property `trackingMode` + # @return [String] + attr_accessor :tracking_mode + def initialize(**args) update!(**args) end @@ -3994,6 +4096,8 @@ module Google # Update properties of this object def update!(**args) @connection_persistence_on_unhealthy_backends = args[:connection_persistence_on_unhealthy_backends] if args.key?(:connection_persistence_on_unhealthy_backends) + @idle_timeout_sec = args[:idle_timeout_sec] if args.key?(:idle_timeout_sec) + @tracking_mode = args[:tracking_mode] if args.key?(:tracking_mode) end end @@ -4830,6 +4934,12 @@ module Google # @return [String] attr_accessor :name_pattern + # Per-instance properties to be set on individual instances. Keys of this map + # specify requested instance names. Can be empty if name_pattern is used. + # Corresponds to the JSON property `perInstanceProperties` + # @return [Hash] + attr_accessor :per_instance_properties + # List of predefined names. The number of names provided must be equal to count. # Corresponds to the JSON property `predefinedNames` # @return [Array] @@ -4862,11 +4972,32 @@ module Google @location_policy = args[:location_policy] if args.key?(:location_policy) @min_count = args[:min_count] if args.key?(:min_count) @name_pattern = args[:name_pattern] if args.key?(:name_pattern) + @per_instance_properties = args[:per_instance_properties] if args.key?(:per_instance_properties) @predefined_names = args[:predefined_names] if args.key?(:predefined_names) @source_instance_template = args[:source_instance_template] if args.key?(:source_instance_template) end end + # Per-instance properties to be set on individual instances. To be extended in + # the future. + class BulkInsertInstanceResourcePerInstanceProperties + include Google::Apis::Core::Hashable + + # This field is only temporary. It will be removed. Do not use it. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] if args.key?(:name) + end + end + # class CacheInvalidationRule include Google::Apis::Core::Hashable @@ -5776,8 +5907,7 @@ module Google attr_accessor :allow_methods # Specifies the regualar expression patterns that match allowed origins. For - # regular expression grammar please see en.cppreference.com/w/cpp/regex/ - # ecmascript + # regular expression grammar please see github.com/google/re2/wiki/Syntax # An origin is allowed if it matches either an item in allowOrigins or an item # in allowOriginRegexes. # Corresponds to the JSON property `allowOriginRegexes` @@ -6070,6 +6200,12 @@ module Google # @return [Array] attr_accessor :licenses + # An opaque location hint used to place the disk close to other resources. This + # field is for use by internal tools that use the public API. + # Corresponds to the JSON property `locationHint` + # @return [String] + attr_accessor :location_hint + # Indicates whether or not the disk can be read/write attached to more than one # instance. # Corresponds to the JSON property `multiWriter` @@ -6271,7 +6407,9 @@ module Google # The full Google Cloud Storage URI where the disk image is stored. This file # must be a gzip-compressed tarball whose name ends in .tar.gz or virtual # machine disk whose name ends in vmdk. Valid URIs may start with gs:// or https: - # //storage.googleapis.com/. + # //storage.googleapis.com/. This flag is not optimized for creating multiple + # disks from a source storage object. To create many disks from a source storage + # object, use gcloud compute images import instead. # Corresponds to the JSON property `sourceStorageObject` # @return [String] attr_accessor :source_storage_object @@ -6337,6 +6475,7 @@ module Google @last_detach_timestamp = args[:last_detach_timestamp] if args.key?(:last_detach_timestamp) @license_codes = args[:license_codes] if args.key?(:license_codes) @licenses = args[:licenses] if args.key?(:licenses) + @location_hint = args[:location_hint] if args.key?(:location_hint) @multi_writer = args[:multi_writer] if args.key?(:multi_writer) @name = args[:name] if args.key?(:name) @options = args[:options] if args.key?(:options) @@ -8629,7 +8768,7 @@ module Google attr_accessor :rule_tuple_count # A list of network resource URLs to which this rule applies. This field allows - # you to control which network?s VMs get this rule. If this field is left blank, + # you to control which network's VMs get this rule. If this field is left blank, # all VMs within the organization will receive the rule. # Corresponds to the JSON property `targetResources` # @return [Array] @@ -8818,8 +8957,6 @@ module Google # ip_address_specifications). # Must be set to `0.0.0.0` when the target is targetGrpcProxy that has # validateForProxyless field set to true. - # For Private Service Connect forwarding rules that forward traffic to Google - # APIs, IP address must be provided. # Corresponds to the JSON property `IPAddress` # @return [String] attr_accessor :ip_address @@ -8992,8 +9129,6 @@ module Google # For Internal TCP/UDP Load Balancing, this field identifies the network that # the load balanced IP should belong to for this Forwarding Rule. If this field # is not specified, the default network will be used. - # For Private Service Connect forwarding rules that forward traffic to Google - # APIs, a network must be provided. # Corresponds to the JSON property `network` # @return [String] attr_accessor :network @@ -9104,15 +9239,6 @@ module Google # resource. The forwarded traffic must be of a type appropriate to the target # object. For more information, see the "Target" column in [Port specifications]( # /load-balancing/docs/forwarding-rule-concepts#ip_address_specifications). - # For Private Service Connect forwarding rules that forward traffic to Google - # APIs, provide the name of a supported Google API bundle. Currently, the - # supported Google API bundles include: - # - # - vpc-sc - GCP APIs that support VPC Service Controls. For more information - # about which APIs support VPC Service Controls, refer to VPC-SC supported - # products and limitations. - # - all-apis - All GCP APIs. For more information about which APIs are supported - # with this bundle, refer to Private Google Access-specific domains and VIPs. # Corresponds to the JSON property `target` # @return [String] attr_accessor :target @@ -11314,8 +11440,8 @@ module Google attr_accessor :range_match # The value of the header must match the regular expression specified in - # regexMatch. For regular expression grammar, please see: en.cppreference.com/w/ - # cpp/regex/ecmascript + # regexMatch. For regular expression grammar, please see: github.com/google/re2/ + # wiki/Syntax # For matching against a port specified in the HTTP request, use a headerMatch # with headerName set to PORT and a regular expression that satisfies the # RFC2616 Host header's port specifier. @@ -11644,7 +11770,7 @@ module Google # The queryParameterMatch matches if the value of the parameter matches the # regular expression specified by regexMatch. For the regular expression grammar, - # please see en.cppreference.com/w/cpp/regex/ecmascript + # please see github.com/google/re2/wiki/Syntax # Only one of presentMatch, exactMatch or regexMatch must be set. # Note that regexMatch only applies when the loadBalancingScheme is set to # INTERNAL_SELF_MANAGED. @@ -11823,6 +11949,14 @@ module Google # @return [Google::Apis::ComputeAlpha::HttpFaultInjection] attr_accessor :fault_injection_policy + # 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 `maxStreamDuration` + # @return [Google::Apis::ComputeAlpha::Duration] + attr_accessor :max_stream_duration + # A policy that specifies how requests intended for the route's backends are # shadowed to a separate mirrored backend service. Loadbalancer does not wait # for responses from the shadow service. Prior to sending traffic to the shadow @@ -11871,6 +12005,7 @@ module Google def update!(**args) @cors_policy = args[:cors_policy] if args.key?(:cors_policy) @fault_injection_policy = args[:fault_injection_policy] if args.key?(:fault_injection_policy) + @max_stream_duration = args[:max_stream_duration] if args.key?(:max_stream_duration) @request_mirror_policy = args[:request_mirror_policy] if args.key?(:request_mirror_policy) @retry_policy = args[:retry_policy] if args.key?(:retry_policy) @timeout = args[:timeout] if args.key?(:timeout) @@ -12057,7 +12192,7 @@ module Google # For satisfying the matchRule condition, the path of the request must satisfy # the regular expression specified in regexMatch after removing any query # parameters and anchor supplied with the original URL. For regular expression - # grammar please see en.cppreference.com/w/cpp/regex/ecmascript + # grammar please see github.com/google/re2/wiki/Syntax # Only one of prefixMatch, fullPathMatch or regexMatch must be specified. # Note that regexMatch only applies to Loadbalancers that have their # loadBalancingScheme set to INTERNAL_SELF_MANAGED. @@ -12424,6 +12559,12 @@ module Google # @return [Google::Apis::ComputeAlpha::Image::RawDisk] attr_accessor :raw_disk + # [Output Only] Reserved for future use. + # Corresponds to the JSON property `satisfiesPzs` + # @return [Boolean] + attr_accessor :satisfies_pzs + alias_method :satisfies_pzs?, :satisfies_pzs + # [Output Only] Server-defined URL for the resource. # Corresponds to the JSON property `selfLink` # @return [String] @@ -12555,6 +12696,7 @@ module Google @licenses = args[:licenses] if args.key?(:licenses) @name = args[:name] if args.key?(:name) @raw_disk = args[:raw_disk] if args.key?(:raw_disk) + @satisfies_pzs = args[:satisfies_pzs] if args.key?(:satisfies_pzs) @self_link = args[:self_link] if args.key?(:self_link) @self_link_with_id = args[:self_link_with_id] if args.key?(:self_link_with_id) @shielded_instance_initial_state = args[:shielded_instance_initial_state] if args.key?(:shielded_instance_initial_state) @@ -16919,6 +17061,12 @@ module Google # @return [String] attr_accessor :region + # [Output Only] Reserved for future use. + # Corresponds to the JSON property `satisfiesPzs` + # @return [Boolean] + attr_accessor :satisfies_pzs + alias_method :satisfies_pzs?, :satisfies_pzs + # [Output Only] Server-defined URL for the resource. # Corresponds to the JSON property `selfLink` # @return [String] @@ -16976,6 +17124,7 @@ module Google @labels = args[:labels] if args.key?(:labels) @name = args[:name] if args.key?(:name) @region = args[:region] if args.key?(:region) + @satisfies_pzs = args[:satisfies_pzs] if args.key?(:satisfies_pzs) @self_link = args[:self_link] if args.key?(:self_link) @self_link_with_id = args[:self_link_with_id] if args.key?(:self_link_with_id) @source_disk = args[:source_disk] if args.key?(:source_disk) @@ -19878,6 +20027,12 @@ module Google # @return [String] attr_accessor :name + # [Output Only] Reserved for future use. + # Corresponds to the JSON property `satisfiesPzs` + # @return [Boolean] + attr_accessor :satisfies_pzs + alias_method :satisfies_pzs?, :satisfies_pzs + # [Output Only] The URL for this machine image. The server defines this URL. # Corresponds to the JSON property `selfLink` # @return [String] @@ -19940,6 +20095,7 @@ module Google @kind = args[:kind] if args.key?(:kind) @machine_image_encryption_key = args[:machine_image_encryption_key] if args.key?(:machine_image_encryption_key) @name = args[:name] if args.key?(:name) + @satisfies_pzs = args[:satisfies_pzs] if args.key?(:satisfies_pzs) @self_link = args[:self_link] if args.key?(:self_link) @self_link_with_id = args[:self_link_with_id] if args.key?(:self_link_with_id) @source_disk_encryption_keys = args[:source_disk_encryption_keys] if args.key?(:source_disk_encryption_keys) @@ -21156,9 +21312,8 @@ module Google # @return [String] attr_accessor :ip_address - # Optional port number of network endpoint. If not specified and the - # NetworkEndpointGroup.network_endpoint_type is GCE_IP_PORT, the defaultPort for - # the network endpoint group will be used. + # Optional port number of network endpoint. If not specified, the defaultPort + # for the network endpoint group will be used. # Corresponds to the JSON property `port` # @return [Fixnum] attr_accessor :port @@ -24739,6 +24894,41 @@ module Google # @return [String] attr_accessor :kind + # `Any` contains an arbitrary serialized protocol buffer message along with a + # URL that describes the type of the serialized message. + # Protobuf library provides support to pack/unpack Any values in the form of + # utility functions or additional generated methods of the Any type. + # Example 1: Pack and unpack a message in C++. + # Foo foo = ...; Any any; any.PackFrom(foo); ... if (any.UnpackTo(&foo)) ` ... ` + # Example 2: Pack and unpack a message in Java. + # Foo foo = ...; Any any = Any.pack(foo); ... if (any.is(Foo.class)) ` foo = any. + # unpack(Foo.class); ` + # Example 3: Pack and unpack a message in Python. + # foo = Foo(...) any = Any() any.Pack(foo) ... if any.Is(Foo.DESCRIPTOR): any. + # Unpack(foo) ... + # Example 4: Pack and unpack a message in Go + # foo := &pb.Foo`...` any, err := anypb.New(foo) if err != nil ` ... ` ... foo := + # &pb.Foo`` if err := any.UnmarshalTo(foo); err != nil ` ... ` + # The pack methods provided by protobuf library will by default use 'type. + # googleapis.com/full.type.name' as the type URL and the unpack methods only use + # the fully qualified type name after the last '/' in the type URL, for example " + # foo.bar.com/x/y.z" will yield type name "y.z". + # JSON ==== The JSON representation of an `Any` value uses the regular + # representation of the deserialized, embedded message, with an additional field + # `@type` which contains the type URL. Example: + # package google.profile; message Person ` string first_name = 1; string + # last_name = 2; ` + # ` "@type": "type.googleapis.com/google.profile.Person", "firstName": , " + # lastName": ` + # If the embedded message type is well-known and has a custom JSON + # representation, that representation will be embedded adding a field `value` + # which holds the custom JSON in addition to the `@type` field. Example (for + # message [google.protobuf.Duration][]): + # ` "@type": "type.googleapis.com/google.protobuf.Duration", "value": "1.212s" ` + # Corresponds to the JSON property `metadata` + # @return [Google::Apis::ComputeAlpha::Any] + attr_accessor :metadata + # [Output Only] Name of the operation. # Corresponds to the JSON property `name` # @return [String] @@ -24839,6 +25029,7 @@ module Google @id = args[:id] if args.key?(:id) @insert_time = args[:insert_time] if args.key?(:insert_time) @kind = args[:kind] if args.key?(:kind) + @metadata = args[:metadata] if args.key?(:metadata) @name = args[:name] if args.key?(:name) @operation_type = args[:operation_type] if args.key?(:operation_type) @progress = args[:progress] if args.key?(:progress) @@ -33564,6 +33755,12 @@ module Google # @return [Google::Apis::ComputeAlpha::SecurityPolicyRuleRateLimitOptions] attr_accessor :rate_limit_options + # This must be specified for redirect actions. Cannot be specified for any other + # actions. + # Corresponds to the JSON property `redirectTarget` + # @return [String] + attr_accessor :redirect_target + # Identifier for the rule. This is only unique within the given security policy. # This can only be set during rule creation, if rule number is not specified it # will be generated by the server. @@ -33606,6 +33803,7 @@ module Google @preview = args[:preview] if args.key?(:preview) @priority = args[:priority] if args.key?(:priority) @rate_limit_options = args[:rate_limit_options] if args.key?(:rate_limit_options) + @redirect_target = args[:redirect_target] if args.key?(:redirect_target) @rule_number = args[:rule_number] if args.key?(:rule_number) @rule_tuple_count = args[:rule_tuple_count] if args.key?(:rule_tuple_count) @target_resources = args[:target_resources] if args.key?(:target_resources) @@ -34108,6 +34306,14 @@ module Google # @return [String] attr_accessor :description + # If true, enable the proxy protocol which is for supplying client TCP/IP + # address data in TCP connections that traverse proxies on their way to + # destination servers. + # Corresponds to the JSON property `enableProxyProtocol` + # @return [Boolean] + attr_accessor :enable_proxy_protocol + alias_method :enable_proxy_protocol?, :enable_proxy_protocol + # [Output Only] The unique identifier for the resource type. The server # generates this identifier. # Corresponds to the JSON property `id` @@ -34164,6 +34370,7 @@ module Google @consumer_forwarding_rules = args[:consumer_forwarding_rules] if args.key?(:consumer_forwarding_rules) @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) @description = args[:description] if args.key?(:description) + @enable_proxy_protocol = args[:enable_proxy_protocol] if args.key?(:enable_proxy_protocol) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) @name = args[:name] if args.key?(:name) @@ -34678,6 +34885,12 @@ module Google # @return [Array] attr_accessor :licenses + # An opaque location hint used to place the snapshot close to other resources. + # This field is for use by internal tools that use the public API. + # Corresponds to the JSON property `locationHint` + # @return [String] + attr_accessor :location_hint + # 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- @@ -34782,6 +34995,7 @@ module Google @labels = args[:labels] if args.key?(:labels) @license_codes = args[:license_codes] if args.key?(:license_codes) @licenses = args[:licenses] if args.key?(:licenses) + @location_hint = args[:location_hint] if args.key?(:location_hint) @name = args[:name] if args.key?(:name) @satisfies_pzs = args[:satisfies_pzs] if args.key?(:satisfies_pzs) @self_link = args[:self_link] if args.key?(:self_link) @@ -35460,8 +35674,9 @@ module Google # @return [Hash] attr_accessor :domain_status - # The domains for which a managed SSL certificate will be generated. Currently - # only single-domain certs are supported. + # The domains for which a managed SSL certificate will be generated. Each Google- + # managed SSL certificate supports up to the [maximum number of domains per + # Google-managed SSL certificate](/load-balancing/docs/quotas#ssl_certificates). # Corresponds to the JSON property `domains` # @return [Array] attr_accessor :domains @@ -40462,6 +40677,12 @@ module Google # @return [String] attr_accessor :date + # Represents a window of time using two timestamps: `earliest` and `latest`. + # This timestamp values are in RFC3339 text format. + # Corresponds to the JSON property `startTimeWindow` + # @return [Google::Apis::ComputeAlpha::UpcomingMaintenanceTimeWindow] + attr_accessor :start_time_window + # [Output Only] The time when the maintenance will take place. This value is in # RFC3339 text format. DEPRECATED: Use start_time_window instead. # Corresponds to the JSON property `time` @@ -40480,11 +40701,38 @@ module Google # Update properties of this object def update!(**args) @date = args[:date] if args.key?(:date) + @start_time_window = args[:start_time_window] if args.key?(:start_time_window) @time = args[:time] if args.key?(:time) @type = args[:type] if args.key?(:type) end end + # Represents a window of time using two timestamps: `earliest` and `latest`. + # This timestamp values are in RFC3339 text format. + class UpcomingMaintenanceTimeWindow + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `earliest` + # @return [String] + attr_accessor :earliest + + # + # Corresponds to the JSON property `latest` + # @return [String] + attr_accessor :latest + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @earliest = args[:earliest] if args.key?(:earliest) + @latest = args[:latest] if args.key?(:latest) + end + end + # Represents a URL Map resource. # Google Compute Engine has two URL Map resources: # * [Global](/compute/docs/reference/rest/`$api_version`/urlMaps) * [Regional](/ @@ -42182,9 +42430,9 @@ module Google attr_accessor :id # URL of the interconnect attachment resource. When the value of this field is - # present, the VPN Gateway will be used for IPsec over Interconnect; all Egress - # or Ingress traffic for this VPN Gateway interface will go through the - # specified interconnect attachment resource. + # present, the VPN Gateway will be used for IPsec-encrypted Cloud Interconnect; + # all Egress or Ingress traffic for this VPN Gateway interface will go through + # the specified interconnect attachment resource. # Corresponds to the JSON property `interconnectAttachment` # @return [String] attr_accessor :interconnect_attachment diff --git a/generated/google-apis-compute_alpha/lib/google/apis/compute_alpha/gem_version.rb b/generated/google-apis-compute_alpha/lib/google/apis/compute_alpha/gem_version.rb index 9c3e6a723..cfcdf5dac 100644 --- a/generated/google-apis-compute_alpha/lib/google/apis/compute_alpha/gem_version.rb +++ b/generated/google-apis-compute_alpha/lib/google/apis/compute_alpha/gem_version.rb @@ -16,13 +16,13 @@ module Google module Apis module ComputeAlpha # Version of the google-apis-compute_alpha gem - GEM_VERSION = "0.1.0" + GEM_VERSION = "0.2.0" # Version of the code generator used to generate this client - GENERATOR_VERSION = "0.1.1" + GENERATOR_VERSION = "0.1.2" # Revision of the discovery document this client was generated from - REVISION = "20201122" + REVISION = "20201213" end end end diff --git a/generated/google-apis-compute_alpha/lib/google/apis/compute_alpha/representations.rb b/generated/google-apis-compute_alpha/lib/google/apis/compute_alpha/representations.rb index b9a0966cc..df399cc42 100644 --- a/generated/google-apis-compute_alpha/lib/google/apis/compute_alpha/representations.rb +++ b/generated/google-apis-compute_alpha/lib/google/apis/compute_alpha/representations.rb @@ -190,6 +190,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class Any + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class AttachedDisk class Representation < Google::Apis::Core::JsonRepresentation; end @@ -538,6 +544,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class BulkInsertInstanceResourcePerInstanceProperties + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class CacheInvalidationRule class Representation < Google::Apis::Core::JsonRepresentation; end @@ -5242,6 +5254,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class UpcomingMaintenanceTimeWindow + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class UrlMap class Representation < Google::Apis::Core::JsonRepresentation; end @@ -5966,6 +5984,14 @@ module Google end end + class Any + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :type_url, as: 'typeUrl' + property :value, :base64 => true, as: 'value' + end + end + class AttachedDisk # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -6405,6 +6431,8 @@ module Google property :locality_lb_policy, as: 'localityLbPolicy' property :log_config, as: 'logConfig', class: Google::Apis::ComputeAlpha::BackendServiceLogConfig, decorator: Google::Apis::ComputeAlpha::BackendServiceLogConfig::Representation + property :max_stream_duration, as: 'maxStreamDuration', class: Google::Apis::ComputeAlpha::Duration, decorator: Google::Apis::ComputeAlpha::Duration::Representation + property :name, as: 'name' property :network, as: 'network' property :outlier_detection, as: 'outlierDetection', class: Google::Apis::ComputeAlpha::OutlierDetection, decorator: Google::Apis::ComputeAlpha::OutlierDetection::Representation @@ -6498,6 +6526,8 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :connection_persistence_on_unhealthy_backends, as: 'connectionPersistenceOnUnhealthyBackends' + property :idle_timeout_sec, as: 'idleTimeoutSec' + property :tracking_mode, as: 'trackingMode' end end @@ -6697,11 +6727,20 @@ module Google property :min_count, :numeric_string => true, as: 'minCount' property :name_pattern, as: 'namePattern' + hash :per_instance_properties, as: 'perInstanceProperties', class: Google::Apis::ComputeAlpha::BulkInsertInstanceResourcePerInstanceProperties, decorator: Google::Apis::ComputeAlpha::BulkInsertInstanceResourcePerInstanceProperties::Representation + collection :predefined_names, as: 'predefinedNames' property :source_instance_template, as: 'sourceInstanceTemplate' end end + class BulkInsertInstanceResourcePerInstanceProperties + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + end + end + class CacheInvalidationRule # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -6992,6 +7031,7 @@ module Google property :last_detach_timestamp, as: 'lastDetachTimestamp' collection :license_codes, as: 'licenseCodes' collection :licenses, as: 'licenses' + property :location_hint, as: 'locationHint' property :multi_writer, as: 'multiWriter' property :name, as: 'name' property :options, as: 'options' @@ -8302,6 +8342,8 @@ module Google property :fault_injection_policy, as: 'faultInjectionPolicy', class: Google::Apis::ComputeAlpha::HttpFaultInjection, decorator: Google::Apis::ComputeAlpha::HttpFaultInjection::Representation + property :max_stream_duration, as: 'maxStreamDuration', class: Google::Apis::ComputeAlpha::Duration, decorator: Google::Apis::ComputeAlpha::Duration::Representation + property :request_mirror_policy, as: 'requestMirrorPolicy', class: Google::Apis::ComputeAlpha::RequestMirrorPolicy, decorator: Google::Apis::ComputeAlpha::RequestMirrorPolicy::Representation property :retry_policy, as: 'retryPolicy', class: Google::Apis::ComputeAlpha::HttpRetryPolicy, decorator: Google::Apis::ComputeAlpha::HttpRetryPolicy::Representation @@ -8427,6 +8469,7 @@ module Google property :name, as: 'name' property :raw_disk, as: 'rawDisk', class: Google::Apis::ComputeAlpha::Image::RawDisk, decorator: Google::Apis::ComputeAlpha::Image::RawDisk::Representation + property :satisfies_pzs, as: 'satisfiesPzs' property :self_link, as: 'selfLink' property :self_link_with_id, as: 'selfLinkWithId' property :shielded_instance_initial_state, as: 'shieldedInstanceInitialState', class: Google::Apis::ComputeAlpha::InitialStateConfig, decorator: Google::Apis::ComputeAlpha::InitialStateConfig::Representation @@ -9569,6 +9612,7 @@ module Google hash :labels, as: 'labels' property :name, as: 'name' property :region, as: 'region' + property :satisfies_pzs, as: 'satisfiesPzs' property :self_link, as: 'selfLink' property :self_link_with_id, as: 'selfLinkWithId' property :source_disk, as: 'sourceDisk' @@ -10265,6 +10309,7 @@ module Google property :machine_image_encryption_key, as: 'machineImageEncryptionKey', class: Google::Apis::ComputeAlpha::CustomerEncryptionKey, decorator: Google::Apis::ComputeAlpha::CustomerEncryptionKey::Representation property :name, as: 'name' + property :satisfies_pzs, as: 'satisfiesPzs' property :self_link, as: 'selfLink' property :self_link_with_id, as: 'selfLinkWithId' collection :source_disk_encryption_keys, as: 'sourceDiskEncryptionKeys', class: Google::Apis::ComputeAlpha::SourceDiskEncryptionKey, decorator: Google::Apis::ComputeAlpha::SourceDiskEncryptionKey::Representation @@ -11495,6 +11540,8 @@ module Google property :id, :numeric_string => true, as: 'id' property :insert_time, as: 'insertTime' property :kind, as: 'kind' + property :metadata, as: 'metadata', class: Google::Apis::ComputeAlpha::Any, decorator: Google::Apis::ComputeAlpha::Any::Representation + property :name, as: 'name' property :operation_type, as: 'operationType' property :progress, as: 'progress' @@ -13747,6 +13794,7 @@ module Google property :priority, as: 'priority' property :rate_limit_options, as: 'rateLimitOptions', class: Google::Apis::ComputeAlpha::SecurityPolicyRuleRateLimitOptions, decorator: Google::Apis::ComputeAlpha::SecurityPolicyRuleRateLimitOptions::Representation + property :redirect_target, as: 'redirectTarget' property :rule_number, :numeric_string => true, as: 'ruleNumber' property :rule_tuple_count, as: 'ruleTupleCount' collection :target_resources, as: 'targetResources' @@ -13876,6 +13924,7 @@ module Google property :creation_timestamp, as: 'creationTimestamp' property :description, as: 'description' + property :enable_proxy_protocol, as: 'enableProxyProtocol' property :id, :numeric_string => true, as: 'id' property :kind, as: 'kind' property :name, as: 'name' @@ -14022,6 +14071,7 @@ module Google hash :labels, as: 'labels' collection :license_codes, as: 'licenseCodes' collection :licenses, as: 'licenses' + property :location_hint, as: 'locationHint' property :name, as: 'name' property :satisfies_pzs, as: 'satisfiesPzs' property :self_link, as: 'selfLink' @@ -15450,11 +15500,21 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :date, as: 'date' + property :start_time_window, as: 'startTimeWindow', class: Google::Apis::ComputeAlpha::UpcomingMaintenanceTimeWindow, decorator: Google::Apis::ComputeAlpha::UpcomingMaintenanceTimeWindow::Representation + property :time, as: 'time' property :type, as: 'type' end end + class UpcomingMaintenanceTimeWindow + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :earliest, as: 'earliest' + property :latest, as: 'latest' + end + end + class UrlMap # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google-apis-compute_alpha/lib/google/apis/compute_alpha/service.rb b/generated/google-apis-compute_alpha/lib/google/apis/compute_alpha/service.rb index 9cf76658a..67b5a8ed9 100644 --- a/generated/google-apis-compute_alpha/lib/google/apis/compute_alpha/service.rb +++ b/generated/google-apis-compute_alpha/lib/google/apis/compute_alpha/service.rb @@ -12865,7 +12865,11 @@ module Google execute_or_queue_command(command, &block) end - # Updates an instance's network interface. This method follows PATCH semantics. + # Updates an instance's network interface. This method can only update an + # interface's alias IP range and attached network. See Modifying alias IP ranges + # for an existing instance for instructions on changing alias IP ranges. See + # Migrating a VM between networks for instructions on migrating an interface. + # This method follows PATCH semantics. # @param [String] project # Project ID for this request. # @param [String] zone diff --git a/generated/google-apis-compute_alpha/synth.metadata b/generated/google-apis-compute_alpha/synth.metadata index 0a6484a6c..2c6697729 100644 --- a/generated/google-apis-compute_alpha/synth.metadata +++ b/generated/google-apis-compute_alpha/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/google-api-ruby-client.git", - "sha": "1bb8091fcf4270989ed1528741f8e96740431e03" + "sha": "a489b644a1bd47c075ba8c0c10ea2175e5456069" } } ]