Autogenerated update (2020-08-29)

Update:
- appengine_v1
- bigtableadmin_v2
- calendar_v3
- compute_alpha
- compute_beta
- compute_v1
- doubleclicksearch_v2
- memcache_v1beta2
- playablelocations_v3
- speech_v1
- speech_v1p1beta1
- speech_v2beta1
This commit is contained in:
Google APIs 2020-08-29 00:38:13 +00:00
parent 32fac21291
commit 76a32f11cf
35 changed files with 1713 additions and 889 deletions

View File

@ -11111,6 +11111,8 @@
"/appengine:v1/Version/basicScaling": basic_scaling
"/appengine:v1/Version/betaSettings": beta_settings
"/appengine:v1/Version/betaSettings/beta_setting": beta_setting
"/appengine:v1/Version/buildEnvVariables": build_env_variables
"/appengine:v1/Version/buildEnvVariables/build_env_variable": build_env_variable
"/appengine:v1/Version/createTime": create_time
"/appengine:v1/Version/createdBy": created_by
"/appengine:v1/Version/defaultExpiration": default_expiration
@ -15200,6 +15202,13 @@
"/bigtableadmin:v2/Expr/expression": expression
"/bigtableadmin:v2/Expr/location": location
"/bigtableadmin:v2/Expr/title": title
"/bigtableadmin:v2/FailureTrace": failure_trace
"/bigtableadmin:v2/FailureTrace/frames": frames
"/bigtableadmin:v2/FailureTrace/frames/frame": frame
"/bigtableadmin:v2/Frame": frame
"/bigtableadmin:v2/Frame/targetName": target_name
"/bigtableadmin:v2/Frame/workflowGuid": workflow_guid
"/bigtableadmin:v2/Frame/zoneId": zone_id
"/bigtableadmin:v2/GcRule": gc_rule
"/bigtableadmin:v2/GcRule/intersection": intersection
"/bigtableadmin:v2/GcRule/maxAge": max_age
@ -26573,6 +26582,7 @@
"/compute:alpha/AddressesScopedList/warning/message": message
"/compute:alpha/AdvancedMachineFeatures": advanced_machine_features
"/compute:alpha/AdvancedMachineFeatures/enableNestedVirtualization": enable_nested_virtualization
"/compute:alpha/AdvancedMachineFeatures/threadsPerCore": threads_per_core
"/compute:alpha/AliasIpRange": alias_ip_range
"/compute:alpha/AliasIpRange/ipCidrRange": ip_cidr_range
"/compute:alpha/AliasIpRange/subnetworkRangeName": subnetwork_range_name
@ -26879,6 +26889,8 @@
"/compute:alpha/BackendBucket/selfLink": self_link
"/compute:alpha/BackendBucket/selfLinkWithId": self_link_with_id
"/compute:alpha/BackendBucketCdnPolicy": backend_bucket_cdn_policy
"/compute:alpha/BackendBucketCdnPolicy/bypassCacheOnRequestHeaders": bypass_cache_on_request_headers
"/compute:alpha/BackendBucketCdnPolicy/bypassCacheOnRequestHeaders/bypass_cache_on_request_header": bypass_cache_on_request_header
"/compute:alpha/BackendBucketCdnPolicy/cacheMode": cache_mode
"/compute:alpha/BackendBucketCdnPolicy/clientTtl": client_ttl
"/compute:alpha/BackendBucketCdnPolicy/defaultTtl": default_ttl
@ -26889,9 +26901,12 @@
"/compute:alpha/BackendBucketCdnPolicy/negativeCachingPolicys": negative_caching_policys
"/compute:alpha/BackendBucketCdnPolicy/negativeCachingPolicys/negative_caching_policy": negative_caching_policy
"/compute:alpha/BackendBucketCdnPolicy/requestCoalescing": request_coalescing
"/compute:alpha/BackendBucketCdnPolicy/serveWhileStale": serve_while_stale
"/compute:alpha/BackendBucketCdnPolicy/signedUrlCacheMaxAgeSec": signed_url_cache_max_age_sec
"/compute:alpha/BackendBucketCdnPolicy/signedUrlKeyNames": signed_url_key_names
"/compute:alpha/BackendBucketCdnPolicy/signedUrlKeyNames/signed_url_key_name": signed_url_key_name
"/compute:alpha/BackendBucketCdnPolicyBypassCacheOnRequestHeader": backend_bucket_cdn_policy_bypass_cache_on_request_header
"/compute:alpha/BackendBucketCdnPolicyBypassCacheOnRequestHeader/headerName": header_name
"/compute:alpha/BackendBucketCdnPolicyNegativeCachingPolicy": backend_bucket_cdn_policy_negative_caching_policy
"/compute:alpha/BackendBucketCdnPolicyNegativeCachingPolicy/code": code
"/compute:alpha/BackendBucketCdnPolicyNegativeCachingPolicy/ttl": ttl
@ -26971,6 +26986,8 @@
"/compute:alpha/BackendServiceAppEngineBackend/targetProject": target_project
"/compute:alpha/BackendServiceAppEngineBackend/version": version
"/compute:alpha/BackendServiceCdnPolicy": backend_service_cdn_policy
"/compute:alpha/BackendServiceCdnPolicy/bypassCacheOnRequestHeaders": bypass_cache_on_request_headers
"/compute:alpha/BackendServiceCdnPolicy/bypassCacheOnRequestHeaders/bypass_cache_on_request_header": bypass_cache_on_request_header
"/compute:alpha/BackendServiceCdnPolicy/cacheKeyPolicy": cache_key_policy
"/compute:alpha/BackendServiceCdnPolicy/cacheMode": cache_mode
"/compute:alpha/BackendServiceCdnPolicy/clientTtl": client_ttl
@ -26982,9 +26999,12 @@
"/compute:alpha/BackendServiceCdnPolicy/negativeCachingPolicys": negative_caching_policys
"/compute:alpha/BackendServiceCdnPolicy/negativeCachingPolicys/negative_caching_policy": negative_caching_policy
"/compute:alpha/BackendServiceCdnPolicy/requestCoalescing": request_coalescing
"/compute:alpha/BackendServiceCdnPolicy/serveWhileStale": serve_while_stale
"/compute:alpha/BackendServiceCdnPolicy/signedUrlCacheMaxAgeSec": signed_url_cache_max_age_sec
"/compute:alpha/BackendServiceCdnPolicy/signedUrlKeyNames": signed_url_key_names
"/compute:alpha/BackendServiceCdnPolicy/signedUrlKeyNames/signed_url_key_name": signed_url_key_name
"/compute:alpha/BackendServiceCdnPolicyBypassCacheOnRequestHeader": backend_service_cdn_policy_bypass_cache_on_request_header
"/compute:alpha/BackendServiceCdnPolicyBypassCacheOnRequestHeader/headerName": header_name
"/compute:alpha/BackendServiceCdnPolicyNegativeCachingPolicy": backend_service_cdn_policy_negative_caching_policy
"/compute:alpha/BackendServiceCdnPolicyNegativeCachingPolicy/code": code
"/compute:alpha/BackendServiceCdnPolicyNegativeCachingPolicy/ttl": ttl
@ -27269,6 +27289,7 @@
"/compute:alpha/Disk/replicaZones/replica_zone": replica_zone
"/compute:alpha/Disk/resourcePolicies": resource_policies
"/compute:alpha/Disk/resourcePolicies/resource_policy": resource_policy
"/compute:alpha/Disk/satisfiesPhysicalZoneSeparation": satisfies_physical_zone_separation
"/compute:alpha/Disk/selfLink": self_link
"/compute:alpha/Disk/selfLinkWithId": self_link_with_id
"/compute:alpha/Disk/sizeGb": size_gb
@ -27279,6 +27300,8 @@
"/compute:alpha/Disk/sourceImageId": source_image_id
"/compute:alpha/Disk/sourceInPlaceSnapshot": source_in_place_snapshot
"/compute:alpha/Disk/sourceInPlaceSnapshotId": source_in_place_snapshot_id
"/compute:alpha/Disk/sourceInstantSnapshot": source_instant_snapshot
"/compute:alpha/Disk/sourceInstantSnapshotId": source_instant_snapshot_id
"/compute:alpha/Disk/sourceSnapshot": source_snapshot
"/compute:alpha/Disk/sourceSnapshotEncryptionKey": source_snapshot_encryption_key
"/compute:alpha/Disk/sourceSnapshotId": source_snapshot_id
@ -27613,6 +27636,8 @@
"/compute:alpha/ForwardingRule/region": region
"/compute:alpha/ForwardingRule/selfLink": self_link
"/compute:alpha/ForwardingRule/selfLinkWithId": self_link_with_id
"/compute:alpha/ForwardingRule/serviceDirectoryRegistrations": service_directory_registrations
"/compute:alpha/ForwardingRule/serviceDirectoryRegistrations/service_directory_registration": service_directory_registration
"/compute:alpha/ForwardingRule/serviceLabel": service_label
"/compute:alpha/ForwardingRule/serviceName": service_name
"/compute:alpha/ForwardingRule/subnetwork": subnetwork
@ -27649,6 +27674,9 @@
"/compute:alpha/ForwardingRuleList/warning/message": message
"/compute:alpha/ForwardingRuleReference": forwarding_rule_reference
"/compute:alpha/ForwardingRuleReference/forwardingRule": forwarding_rule
"/compute:alpha/ForwardingRuleServiceDirectoryRegistration": forwarding_rule_service_directory_registration
"/compute:alpha/ForwardingRuleServiceDirectoryRegistration/namespace": namespace
"/compute:alpha/ForwardingRuleServiceDirectoryRegistration/service": service
"/compute:alpha/ForwardingRulesScopedList": forwarding_rules_scoped_list
"/compute:alpha/ForwardingRulesScopedList/forwardingRules": forwarding_rules
"/compute:alpha/ForwardingRulesScopedList/forwardingRules/forwarding_rule": forwarding_rule
@ -28230,6 +28258,7 @@
"/compute:alpha/Instance/reservationAffinity": reservation_affinity
"/compute:alpha/Instance/resourcePolicies": resource_policies
"/compute:alpha/Instance/resourcePolicies/resource_policy": resource_policy
"/compute:alpha/Instance/satisfiesPhysicalZoneSeparation": satisfies_physical_zone_separation
"/compute:alpha/Instance/scheduling": scheduling
"/compute:alpha/Instance/selfLink": self_link
"/compute:alpha/Instance/selfLinkWithId": self_link_with_id
@ -28748,9 +28777,12 @@
"/compute:alpha/InterconnectAttachment/customerRouterIpAddress": customer_router_ip_address
"/compute:alpha/InterconnectAttachment/description": description
"/compute:alpha/InterconnectAttachment/edgeAvailabilityDomain": edge_availability_domain
"/compute:alpha/InterconnectAttachment/encryption": encryption
"/compute:alpha/InterconnectAttachment/googleReferenceId": google_reference_id
"/compute:alpha/InterconnectAttachment/id": id
"/compute:alpha/InterconnectAttachment/interconnect": interconnect
"/compute:alpha/InterconnectAttachment/ipsecInternalAddresses": ipsec_internal_addresses
"/compute:alpha/InterconnectAttachment/ipsecInternalAddresses/ipsec_internal_address": ipsec_internal_address
"/compute:alpha/InterconnectAttachment/kind": kind
"/compute:alpha/InterconnectAttachment/labelFingerprint": label_fingerprint
"/compute:alpha/InterconnectAttachment/labels": labels
@ -29495,6 +29527,7 @@
"/compute:alpha/NodeGroupNode/instances/instance": instance
"/compute:alpha/NodeGroupNode/name": name
"/compute:alpha/NodeGroupNode/nodeType": node_type
"/compute:alpha/NodeGroupNode/satisfiesPhysicalZoneSeparation": satisfies_physical_zone_separation
"/compute:alpha/NodeGroupNode/serverBinding": server_binding
"/compute:alpha/NodeGroupNode/serverId": server_id
"/compute:alpha/NodeGroupNode/status": status
@ -30015,7 +30048,9 @@
"/compute:alpha/PublicAdvertisedPrefixList/warning/data/datum/value": value
"/compute:alpha/PublicAdvertisedPrefixList/warning/message": message
"/compute:alpha/PublicAdvertisedPrefixPublicDelegatedPrefix": public_advertised_prefix_public_delegated_prefix
"/compute:alpha/PublicAdvertisedPrefixPublicDelegatedPrefix/ipRange": ip_range
"/compute:alpha/PublicAdvertisedPrefixPublicDelegatedPrefix/name": name
"/compute:alpha/PublicAdvertisedPrefixPublicDelegatedPrefix/project": project
"/compute:alpha/PublicAdvertisedPrefixPublicDelegatedPrefix/region": region
"/compute:alpha/PublicAdvertisedPrefixPublicDelegatedPrefix/status": status
"/compute:alpha/PublicDelegatedPrefix": public_delegated_prefix
@ -30109,6 +30144,7 @@
"/compute:alpha/Region/selfLink": self_link
"/compute:alpha/Region/selfLinkWithId": self_link_with_id
"/compute:alpha/Region/status": status
"/compute:alpha/Region/supportsPhysicalZoneSeparation": supports_physical_zone_separation
"/compute:alpha/Region/zones": zones
"/compute:alpha/Region/zones/zone": zone
"/compute:alpha/RegionAutoscalerList": region_autoscaler_list
@ -31032,6 +31068,7 @@
"/compute:alpha/Snapshot/licenses": licenses
"/compute:alpha/Snapshot/licenses/license": license
"/compute:alpha/Snapshot/name": name
"/compute:alpha/Snapshot/satisfiesPhysicalZoneSeparation": satisfies_physical_zone_separation
"/compute:alpha/Snapshot/selfLink": self_link
"/compute:alpha/Snapshot/selfLinkWithId": self_link_with_id
"/compute:alpha/Snapshot/snapshotEncryptionKey": snapshot_encryption_key
@ -31946,6 +31983,7 @@
"/compute:alpha/VpnGatewayStatusVpnConnection/tunnels/tunnel": tunnel
"/compute:alpha/VpnGatewayVpnGatewayInterface": vpn_gateway_vpn_gateway_interface
"/compute:alpha/VpnGatewayVpnGatewayInterface/id": id
"/compute:alpha/VpnGatewayVpnGatewayInterface/interconnectAttachment": interconnect_attachment
"/compute:alpha/VpnGatewayVpnGatewayInterface/ipAddress": ip_address
"/compute:alpha/VpnGatewaysGetStatusResponse": vpn_gateways_get_status_response
"/compute:alpha/VpnGatewaysGetStatusResponse/result": result
@ -32068,6 +32106,7 @@
"/compute:alpha/Zone/region": region
"/compute:alpha/Zone/selfLink": self_link
"/compute:alpha/Zone/status": status
"/compute:alpha/Zone/supportsPhysicalZoneSeparation": supports_physical_zone_separation
"/compute:alpha/ZoneList": zone_list
"/compute:alpha/ZoneList/id": id
"/compute:alpha/ZoneList/items": items
@ -36041,6 +36080,8 @@
"/compute:beta/BackendBucket/name": name
"/compute:beta/BackendBucket/selfLink": self_link
"/compute:beta/BackendBucketCdnPolicy": backend_bucket_cdn_policy
"/compute:beta/BackendBucketCdnPolicy/bypassCacheOnRequestHeaders": bypass_cache_on_request_headers
"/compute:beta/BackendBucketCdnPolicy/bypassCacheOnRequestHeaders/bypass_cache_on_request_header": bypass_cache_on_request_header
"/compute:beta/BackendBucketCdnPolicy/cacheMode": cache_mode
"/compute:beta/BackendBucketCdnPolicy/clientTtl": client_ttl
"/compute:beta/BackendBucketCdnPolicy/defaultTtl": default_ttl
@ -36050,9 +36091,12 @@
"/compute:beta/BackendBucketCdnPolicy/negativeCachingPolicy/negative_caching_policy": negative_caching_policy
"/compute:beta/BackendBucketCdnPolicy/negativeCachingPolicys": negative_caching_policys
"/compute:beta/BackendBucketCdnPolicy/negativeCachingPolicys/negative_caching_policy": negative_caching_policy
"/compute:beta/BackendBucketCdnPolicy/serveWhileStale": serve_while_stale
"/compute:beta/BackendBucketCdnPolicy/signedUrlCacheMaxAgeSec": signed_url_cache_max_age_sec
"/compute:beta/BackendBucketCdnPolicy/signedUrlKeyNames": signed_url_key_names
"/compute:beta/BackendBucketCdnPolicy/signedUrlKeyNames/signed_url_key_name": signed_url_key_name
"/compute:beta/BackendBucketCdnPolicyBypassCacheOnRequestHeader": backend_bucket_cdn_policy_bypass_cache_on_request_header
"/compute:beta/BackendBucketCdnPolicyBypassCacheOnRequestHeader/headerName": header_name
"/compute:beta/BackendBucketCdnPolicyNegativeCachingPolicy": backend_bucket_cdn_policy_negative_caching_policy
"/compute:beta/BackendBucketCdnPolicyNegativeCachingPolicy/code": code
"/compute:beta/BackendBucketCdnPolicyNegativeCachingPolicy/ttl": ttl
@ -36122,6 +36166,8 @@
"/compute:beta/BackendServiceAggregatedList/warning/data/datum/value": value
"/compute:beta/BackendServiceAggregatedList/warning/message": message
"/compute:beta/BackendServiceCdnPolicy": backend_service_cdn_policy
"/compute:beta/BackendServiceCdnPolicy/bypassCacheOnRequestHeaders": bypass_cache_on_request_headers
"/compute:beta/BackendServiceCdnPolicy/bypassCacheOnRequestHeaders/bypass_cache_on_request_header": bypass_cache_on_request_header
"/compute:beta/BackendServiceCdnPolicy/cacheKeyPolicy": cache_key_policy
"/compute:beta/BackendServiceCdnPolicy/cacheMode": cache_mode
"/compute:beta/BackendServiceCdnPolicy/clientTtl": client_ttl
@ -36132,9 +36178,12 @@
"/compute:beta/BackendServiceCdnPolicy/negativeCachingPolicy/negative_caching_policy": negative_caching_policy
"/compute:beta/BackendServiceCdnPolicy/negativeCachingPolicys": negative_caching_policys
"/compute:beta/BackendServiceCdnPolicy/negativeCachingPolicys/negative_caching_policy": negative_caching_policy
"/compute:beta/BackendServiceCdnPolicy/serveWhileStale": serve_while_stale
"/compute:beta/BackendServiceCdnPolicy/signedUrlCacheMaxAgeSec": signed_url_cache_max_age_sec
"/compute:beta/BackendServiceCdnPolicy/signedUrlKeyNames": signed_url_key_names
"/compute:beta/BackendServiceCdnPolicy/signedUrlKeyNames/signed_url_key_name": signed_url_key_name
"/compute:beta/BackendServiceCdnPolicyBypassCacheOnRequestHeader": backend_service_cdn_policy_bypass_cache_on_request_header
"/compute:beta/BackendServiceCdnPolicyBypassCacheOnRequestHeader/headerName": header_name
"/compute:beta/BackendServiceCdnPolicyNegativeCachingPolicy": backend_service_cdn_policy_negative_caching_policy
"/compute:beta/BackendServiceCdnPolicyNegativeCachingPolicy/code": code
"/compute:beta/BackendServiceCdnPolicyNegativeCachingPolicy/ttl": ttl
@ -36386,6 +36435,7 @@
"/compute:beta/Disk/sourceSnapshot": source_snapshot
"/compute:beta/Disk/sourceSnapshotEncryptionKey": source_snapshot_encryption_key
"/compute:beta/Disk/sourceSnapshotId": source_snapshot_id
"/compute:beta/Disk/sourceStorageObject": source_storage_object
"/compute:beta/Disk/status": status
"/compute:beta/Disk/storageType": storage_type
"/compute:beta/Disk/type": type
@ -36649,6 +36699,8 @@
"/compute:beta/ForwardingRule/ports/port": port
"/compute:beta/ForwardingRule/region": region
"/compute:beta/ForwardingRule/selfLink": self_link
"/compute:beta/ForwardingRule/serviceDirectoryRegistrations": service_directory_registrations
"/compute:beta/ForwardingRule/serviceDirectoryRegistrations/service_directory_registration": service_directory_registration
"/compute:beta/ForwardingRule/serviceLabel": service_label
"/compute:beta/ForwardingRule/serviceName": service_name
"/compute:beta/ForwardingRule/subnetwork": subnetwork
@ -36683,6 +36735,9 @@
"/compute:beta/ForwardingRuleList/warning/message": message
"/compute:beta/ForwardingRuleReference": forwarding_rule_reference
"/compute:beta/ForwardingRuleReference/forwardingRule": forwarding_rule
"/compute:beta/ForwardingRuleServiceDirectoryRegistration": forwarding_rule_service_directory_registration
"/compute:beta/ForwardingRuleServiceDirectoryRegistration/namespace": namespace
"/compute:beta/ForwardingRuleServiceDirectoryRegistration/service": service
"/compute:beta/ForwardingRulesScopedList": forwarding_rules_scoped_list
"/compute:beta/ForwardingRulesScopedList/forwardingRules": forwarding_rules
"/compute:beta/ForwardingRulesScopedList/forwardingRules/forwarding_rule": forwarding_rule
@ -39729,6 +39784,7 @@
"/compute:beta/TargetInstance/kind": kind
"/compute:beta/TargetInstance/name": name
"/compute:beta/TargetInstance/natPolicy": nat_policy
"/compute:beta/TargetInstance/network": network
"/compute:beta/TargetInstance/selfLink": self_link
"/compute:beta/TargetInstance/zone": zone
"/compute:beta/TargetInstanceAggregatedList": target_instance_aggregated_list
@ -46425,6 +46481,9 @@
"/compute:v1/SchedulingNodeAffinity/operator": operator
"/compute:v1/SchedulingNodeAffinity/values": values
"/compute:v1/SchedulingNodeAffinity/values/value": value
"/compute:v1/Screenshot": screenshot
"/compute:v1/Screenshot/contents": contents
"/compute:v1/Screenshot/kind": kind
"/compute:v1/SecurityPoliciesListPreconfiguredExpressionSetsResponse": security_policies_list_preconfigured_expression_sets_response
"/compute:v1/SecurityPoliciesListPreconfiguredExpressionSetsResponse/preconfiguredExpressionSets": preconfigured_expression_sets
"/compute:v1/SecurityPoliciesWafConfig": security_policies_waf_config
@ -48213,6 +48272,10 @@
"/compute:v1/compute.instances.getIamPolicy/project": project
"/compute:v1/compute.instances.getIamPolicy/resource": resource
"/compute:v1/compute.instances.getIamPolicy/zone": zone
"/compute:v1/compute.instances.getScreenshot": get_instance_screenshot
"/compute:v1/compute.instances.getScreenshot/instance": instance
"/compute:v1/compute.instances.getScreenshot/project": project
"/compute:v1/compute.instances.getScreenshot/zone": zone
"/compute:v1/compute.instances.getSerialPortOutput": get_instance_serial_port_output
"/compute:v1/compute.instances.getSerialPortOutput/instance": instance
"/compute:v1/compute.instances.getSerialPortOutput/port": port

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/appengine/docs/admin-api/
module AppengineV1
VERSION = 'V1'
REVISION = '20200802'
REVISION = '20200822'
# View and manage your applications deployed on Google App Engine
AUTH_APPENGINE_ADMIN = 'https://www.googleapis.com/auth/appengine.admin'

View File

@ -2635,6 +2635,12 @@ module Google
# @return [Hash<String,String>]
attr_accessor :beta_settings
# Environment variables available to the build environment.Only returned in GET
# requests if view=FULL is set.
# Corresponds to the JSON property `buildEnvVariables`
# @return [Hash<String,String>]
attr_accessor :build_env_variables
# Time that this version was created.@OutputOnly
# Corresponds to the JSON property `createTime`
# @return [String]
@ -2847,6 +2853,7 @@ module Google
@automatic_scaling = args[:automatic_scaling] if args.key?(:automatic_scaling)
@basic_scaling = args[:basic_scaling] if args.key?(:basic_scaling)
@beta_settings = args[:beta_settings] if args.key?(:beta_settings)
@build_env_variables = args[:build_env_variables] if args.key?(:build_env_variables)
@create_time = args[:create_time] if args.key?(:create_time)
@created_by = args[:created_by] if args.key?(:created_by)
@default_expiration = args[:default_expiration] if args.key?(:default_expiration)

View File

@ -1113,6 +1113,7 @@ module Google
property :basic_scaling, as: 'basicScaling', class: Google::Apis::AppengineV1::BasicScaling, decorator: Google::Apis::AppengineV1::BasicScaling::Representation
hash :beta_settings, as: 'betaSettings'
hash :build_env_variables, as: 'buildEnvVariables'
property :create_time, as: 'createTime'
property :created_by, as: 'createdBy'
property :default_expiration, as: 'defaultExpiration'

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/bigtable/
module BigtableadminV2
VERSION = 'V2'
REVISION = '20200715'
REVISION = '20200817'
# Administer your Cloud Bigtable tables and clusters
AUTH_BIGTABLE_ADMIN = 'https://www.googleapis.com/auth/bigtable.admin'

View File

@ -883,6 +883,56 @@ module Google
end
end
# Added to the error payload.
class FailureTrace
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `frames`
# @return [Array<Google::Apis::BigtableadminV2::Frame>]
attr_accessor :frames
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@frames = args[:frames] if args.key?(:frames)
end
end
#
class Frame
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `targetName`
# @return [String]
attr_accessor :target_name
#
# Corresponds to the JSON property `workflowGuid`
# @return [String]
attr_accessor :workflow_guid
#
# Corresponds to the JSON property `zoneId`
# @return [String]
attr_accessor :zone_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@target_name = args[:target_name] if args.key?(:target_name)
@workflow_guid = args[:workflow_guid] if args.key?(:workflow_guid)
@zone_id = args[:zone_id] if args.key?(:zone_id)
end
end
# Rule for determining which cells to delete during garbage collection.
class GcRule
include Google::Apis::Core::Hashable

View File

@ -142,6 +142,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class FailureTrace
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Frame
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GcRule
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -562,6 +574,23 @@ module Google
end
end
class FailureTrace
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :frames, as: 'frames', class: Google::Apis::BigtableadminV2::Frame, decorator: Google::Apis::BigtableadminV2::Frame::Representation
end
end
class Frame
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :target_name, as: 'targetName'
property :workflow_guid, as: 'workflowGuid'
property :zone_id, as: 'zoneId'
end
end
class GcRule
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -25,47 +25,14 @@ module Google
# @see https://developers.google.com/google-apps/calendar/firstapp
module CalendarV3
VERSION = 'V3'
REVISION = '20200818'
REVISION = '20200827'
# See, edit, share, and permanently delete all the calendars you can access using Google Calendar
AUTH_CALENDAR = 'https://www.googleapis.com/auth/calendar'
# See and change the sharing permissions of Google calendars you own
AUTH_CALENDAR_ACLS = 'https://www.googleapis.com/auth/calendar.acls'
# See the sharing permissions of Google calendars you own
AUTH_CALENDAR_ACLS_READONLY = 'https://www.googleapis.com/auth/calendar.acls.readonly'
# Make secondary Google calendars, and see, create, change, and delete events on them
AUTH_CALENDAR_APP_CREATED = 'https://www.googleapis.com/auth/calendar.app.created'
# See, add, and remove Google calendars youre subscribed to
AUTH_CALENDAR_CALENDARLIST = 'https://www.googleapis.com/auth/calendar.calendarlist'
# See the list of Google calendars youre subscribed to
AUTH_CALENDAR_CALENDARLIST_READONLY = 'https://www.googleapis.com/auth/calendar.calendarlist.readonly'
# See and change the properties of Google calendars you have access to, and create secondary calendars
AUTH_CALENDAR_CALENDARS = 'https://www.googleapis.com/auth/calendar.calendars'
# See the title, description, default time zone, and other properties of Google calendars you have access to
AUTH_CALENDAR_CALENDARS_READONLY = 'https://www.googleapis.com/auth/calendar.calendars.readonly'
# View and edit events on all your calendars
AUTH_CALENDAR_EVENTS = 'https://www.googleapis.com/auth/calendar.events'
# See the availability on Google calendars you have access to
AUTH_CALENDAR_EVENTS_FREEBUSY = 'https://www.googleapis.com/auth/calendar.events.freebusy'
# See, create, change, and delete events on Google calendars you own
AUTH_CALENDAR_EVENTS_OWNED = 'https://www.googleapis.com/auth/calendar.events.owned'
# See the events on Google calendars you own
AUTH_CALENDAR_EVENTS_OWNED_READONLY = 'https://www.googleapis.com/auth/calendar.events.owned.readonly'
# See the events on public calendars
AUTH_CALENDAR_EVENTS_PUBLIC_READONLY = 'https://www.googleapis.com/auth/calendar.events.public.readonly'
# View events on all your calendars
AUTH_CALENDAR_EVENTS_READONLY = 'https://www.googleapis.com/auth/calendar.events.readonly'

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/compute/docs/reference/latest/
module ComputeAlpha
VERSION = 'Alpha'
REVISION = '20200727'
REVISION = '20200811'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -1086,6 +1086,13 @@ module Google
attr_accessor :enable_nested_virtualization
alias_method :enable_nested_virtualization?, :enable_nested_virtualization
# The number of threads per physical core. To disable simultaneous
# multithreading (SMT) set this to 1. If unset, the maximum number of threads
# supported per core by the underlying processor is assumed.
# Corresponds to the JSON property `threadsPerCore`
# @return [Fixnum]
attr_accessor :threads_per_core
def initialize(**args)
update!(**args)
end
@ -1093,6 +1100,7 @@ module Google
# Update properties of this object
def update!(**args)
@enable_nested_virtualization = args[:enable_nested_virtualization] if args.key?(:enable_nested_virtualization)
@threads_per_core = args[:threads_per_core] if args.key?(:threads_per_core)
end
end
@ -1275,7 +1283,20 @@ module Google
# @return [String]
attr_accessor :device_name
# Represents a customer-supplied encryption key
# Encrypts or decrypts a disk using a customer-supplied encryption key.
# If you are creating a new disk, this field encrypts the new disk using an
# encryption key that you provide. If you are attaching an existing disk that is
# already encrypted, this field decrypts the disk using the customer-supplied
# encryption key.
# If you encrypt a disk using a customer-supplied key, you must provide the same
# key again when you attempt to use this resource at a later time. For example,
# you must provide the key when you create a snapshot or an image from the disk
# or when you attach the disk to a virtual machine instance.
# If you do not provide an encryption key, then the disk will be encrypted using
# an automatically generated key and you do not need to provide a key to use the
# disk later.
# Instance templates do not store customer-supplied encryption keys, so you
# cannot use your own keys to encrypt disks in a managed instance group.
# Corresponds to the JSON property `diskEncryptionKey`
# @return [Google::Apis::ComputeAlpha::CustomerEncryptionKey]
attr_accessor :disk_encryption_key
@ -1503,7 +1524,11 @@ module Google
# @return [String]
attr_accessor :source_image
# Represents a customer-supplied encryption key
# The customer-supplied encryption key of the source image. Required if the
# source image is protected by a customer-supplied encryption key.
# Instance templates do not store customer-supplied encryption keys, so you
# cannot create disks for instances in a managed instance group if the source
# images are encrypted with your own keys.
# Corresponds to the JSON property `sourceImageEncryptionKey`
# @return [Google::Apis::ComputeAlpha::CustomerEncryptionKey]
attr_accessor :source_image_encryption_key
@ -1519,7 +1544,7 @@ module Google
# @return [String]
attr_accessor :source_snapshot
# Represents a customer-supplied encryption key
# The customer-supplied encryption key of the source snapshot.
# Corresponds to the JSON property `sourceSnapshotEncryptionKey`
# @return [Google::Apis::ComputeAlpha::CustomerEncryptionKey]
attr_accessor :source_snapshot_encryption_key
@ -2895,6 +2920,13 @@ module Google
class BackendBucketCdnPolicy
include Google::Apis::Core::Hashable
# Bypass the cache when the specified request headers are matched - e.g. Pragma
# or Authorization headers. Up to 5 headers can be specified. The cache is
# bypassed for all cdnPolicy.cacheMode settings.
# Corresponds to the JSON property `bypassCacheOnRequestHeaders`
# @return [Array<Google::Apis::ComputeAlpha::BackendBucketCdnPolicyBypassCacheOnRequestHeader>]
attr_accessor :bypass_cache_on_request_headers
#
# Corresponds to the JSON property `cacheMode`
# @return [String]
@ -2962,6 +2994,18 @@ module Google
attr_accessor :request_coalescing
alias_method :request_coalescing?, :request_coalescing
# Serve existing content from the cache (if available) when revalidating content
# with the origin, or when an error is encountered when refreshing the cache.
# This setting defines the default "max-stale" duration for any cached responses
# that do not specify a max-stale directive. Stale responses that exceed the TTL
# configured here will not be served. The default limit (max-stale) is 86400s (1
# day), which will allow stale content to be served up to this limit beyond the
# max-age (or s-max-age) of a cached response. The maximum allowed value is
# 604800(1 week). Set this to zero (0) to disable serve-while-stale.
# Corresponds to the JSON property `serveWhileStale`
# @return [Fixnum]
attr_accessor :serve_while_stale
# Maximum number of seconds the response to a signed URL request will be
# considered fresh. After this time period, the response will be revalidated
# before being served. Defaults to 1hr (3600s). When serving responses to signed
@ -2984,6 +3028,7 @@ module Google
# Update properties of this object
def update!(**args)
@bypass_cache_on_request_headers = args[:bypass_cache_on_request_headers] if args.key?(:bypass_cache_on_request_headers)
@cache_mode = args[:cache_mode] if args.key?(:cache_mode)
@client_ttl = args[:client_ttl] if args.key?(:client_ttl)
@default_ttl = args[:default_ttl] if args.key?(:default_ttl)
@ -2991,11 +3036,34 @@ module Google
@negative_caching = args[:negative_caching] if args.key?(:negative_caching)
@negative_caching_policy = args[:negative_caching_policy] if args.key?(:negative_caching_policy)
@request_coalescing = args[:request_coalescing] if args.key?(:request_coalescing)
@serve_while_stale = args[:serve_while_stale] if args.key?(:serve_while_stale)
@signed_url_cache_max_age_sec = args[:signed_url_cache_max_age_sec] if args.key?(:signed_url_cache_max_age_sec)
@signed_url_key_names = args[:signed_url_key_names] if args.key?(:signed_url_key_names)
end
end
# Bypass the cache when the specified request headers are present, e.g. Pragma
# or Authorization headers. Values are case insensitive. The presence of such a
# header overrides the cache_mode setting.
class BackendBucketCdnPolicyBypassCacheOnRequestHeader
include Google::Apis::Core::Hashable
# The header field name to match on when bypassing cache. Values are case-
# insensitive.
# Corresponds to the JSON property `headerName`
# @return [String]
attr_accessor :header_name
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@header_name = args[:header_name] if args.key?(:header_name)
end
end
# Specify CDN TTLs for response error codes.
class BackendBucketCdnPolicyNegativeCachingPolicy
include Google::Apis::Core::Hashable
@ -3162,6 +3230,8 @@ module Google
# If set to 0, the cookie is non-persistent and lasts only until the end of the
# browser session (or equivalent). The maximum allowed value is one day (86,400).
# 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.
# Corresponds to the JSON property `affinityCookieTtlSec`
# @return [Fixnum]
attr_accessor :affinity_cookie_ttl_sec
@ -3303,8 +3373,11 @@ module Google
# HTTP2, and load_balancing_scheme set to INTERNAL_MANAGED.
# - A global backend service with the load_balancing_scheme set to
# INTERNAL_SELF_MANAGED.
# If sessionAffinity is not NONE, and this field is not set to >MAGLEV or
# If sessionAffinity is not NONE, and this field is not set to MAGLEV or
# RING_HASH, session affinity settings will not take effect.
# Only the default ROUND_ROBIN policy is 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.
# Corresponds to the JSON property `localityLbPolicy`
# @return [String]
attr_accessor :locality_lb_policy
@ -3361,6 +3434,8 @@ module Google
# the chosen load balancer or Traffic Director configuration. Refer to the
# documentation for the load balancer or for Traffic Director for more
# information.
# Must be set to GRPC when the backend service is referenced by a URL map that
# is bound to target gRPC proxy.
# Corresponds to the JSON property `protocol`
# @return [String]
attr_accessor :protocol
@ -3404,6 +3479,8 @@ module Google
# When the loadBalancingScheme is INTERNAL_SELF_MANAGED, or INTERNAL_MANAGED,
# possible values are NONE, CLIENT_IP, GENERATED_COOKIE, HEADER_FIELD, or
# HTTP_COOKIE.
# 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.
# Corresponds to the JSON property `sessionAffinity`
# @return [String]
attr_accessor :session_affinity
@ -3584,6 +3661,13 @@ module Google
class BackendServiceCdnPolicy
include Google::Apis::Core::Hashable
# Bypass the cache when the specified request headers are matched - e.g. Pragma
# or Authorization headers. Up to 5 headers can be specified. The cache is
# bypassed for all cdnPolicy.cacheMode settings.
# Corresponds to the JSON property `bypassCacheOnRequestHeaders`
# @return [Array<Google::Apis::ComputeAlpha::BackendServiceCdnPolicyBypassCacheOnRequestHeader>]
attr_accessor :bypass_cache_on_request_headers
# Message containing what to include in the cache key for a request for Cloud
# CDN.
# Corresponds to the JSON property `cacheKeyPolicy`
@ -3657,6 +3741,18 @@ module Google
attr_accessor :request_coalescing
alias_method :request_coalescing?, :request_coalescing
# Serve existing content from the cache (if available) when revalidating content
# with the origin, or when an error is encountered when refreshing the cache.
# This setting defines the default "max-stale" duration for any cached responses
# that do not specify a max-stale directive. Stale responses that exceed the TTL
# configured here will not be served. The default limit (max-stale) is 86400s (1
# day), which will allow stale content to be served up to this limit beyond the
# max-age (or s-max-age) of a cached response. The maximum allowed value is
# 604800(1 week). Set this to zero (0) to disable serve-while-stale.
# Corresponds to the JSON property `serveWhileStale`
# @return [Fixnum]
attr_accessor :serve_while_stale
# Maximum number of seconds the response to a signed URL request will be
# considered fresh. After this time period, the response will be revalidated
# before being served. Defaults to 1hr (3600s). When serving responses to signed
@ -3679,6 +3775,7 @@ module Google
# Update properties of this object
def update!(**args)
@bypass_cache_on_request_headers = args[:bypass_cache_on_request_headers] if args.key?(:bypass_cache_on_request_headers)
@cache_key_policy = args[:cache_key_policy] if args.key?(:cache_key_policy)
@cache_mode = args[:cache_mode] if args.key?(:cache_mode)
@client_ttl = args[:client_ttl] if args.key?(:client_ttl)
@ -3687,11 +3784,34 @@ module Google
@negative_caching = args[:negative_caching] if args.key?(:negative_caching)
@negative_caching_policy = args[:negative_caching_policy] if args.key?(:negative_caching_policy)
@request_coalescing = args[:request_coalescing] if args.key?(:request_coalescing)
@serve_while_stale = args[:serve_while_stale] if args.key?(:serve_while_stale)
@signed_url_cache_max_age_sec = args[:signed_url_cache_max_age_sec] if args.key?(:signed_url_cache_max_age_sec)
@signed_url_key_names = args[:signed_url_key_names] if args.key?(:signed_url_key_names)
end
end
# Bypass the cache when the specified request headers are present, e.g. Pragma
# or Authorization headers. Values are case insensitive. The presence of such a
# header overrides the cache_mode setting.
class BackendServiceCdnPolicyBypassCacheOnRequestHeader
include Google::Apis::Core::Hashable
# The header field name to match on when bypassing cache. Values are case-
# insensitive.
# Corresponds to the JSON property `headerName`
# @return [String]
attr_accessor :header_name
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@header_name = args[:header_name] if args.key?(:header_name)
end
end
# Specify CDN TTLs for response error codes.
class BackendServiceCdnPolicyNegativeCachingPolicy
include Google::Apis::Core::Hashable
@ -5523,7 +5643,7 @@ module Google
end
end
# Represents a customer-supplied encryption key
#
class CustomerEncryptionKey
include Google::Apis::Core::Hashable
@ -5580,7 +5700,7 @@ module Google
class CustomerEncryptionKeyProtectedDisk
include Google::Apis::Core::Hashable
# Represents a customer-supplied encryption key
# Decrypts data associated with the disk with a customer-supplied encryption key.
# Corresponds to the JSON property `diskEncryptionKey`
# @return [Google::Apis::ComputeAlpha::CustomerEncryptionKey]
attr_accessor :disk_encryption_key
@ -5684,7 +5804,16 @@ module Google
# @return [String]
attr_accessor :description
# Represents a customer-supplied encryption key
# Encrypts the disk using a customer-supplied encryption key.
# After you encrypt a disk with a customer-supplied key, you must provide the
# same key if you use the disk later (e.g. to create a disk snapshot, to create
# a disk image, to create a machine image, or to attach the disk to a virtual
# machine).
# Customer-supplied encryption keys do not protect access to metadata of the
# disk.
# If you do not provide an encryption key when creating the disk, then the disk
# will be encrypted using an automatically generated key and you do not need to
# provide a key to use the disk later.
# Corresponds to the JSON property `diskEncryptionKey`
# @return [Google::Apis::ComputeAlpha::CustomerEncryptionKey]
attr_accessor :disk_encryption_key
@ -5811,6 +5940,12 @@ module Google
# @return [Array<String>]
attr_accessor :resource_policies
# [Output Only] Specifies whether this disk satisfies zone separation.
# Corresponds to the JSON property `satisfiesPhysicalZoneSeparation`
# @return [Boolean]
attr_accessor :satisfies_physical_zone_separation
alias_method :satisfies_physical_zone_separation?, :satisfies_physical_zone_separation
# [Output Only] Server-defined fully-qualified URL for this resource.
# Corresponds to the JSON property `selfLink`
# @return [String]
@ -5867,7 +6002,8 @@ module Google
# @return [String]
attr_accessor :source_image
# Represents a customer-supplied encryption key
# The customer-supplied encryption key of the source image. Required if the
# source image is protected by a customer-supplied encryption key.
# Corresponds to the JSON property `sourceImageEncryptionKey`
# @return [Google::Apis::ComputeAlpha::CustomerEncryptionKey]
attr_accessor :source_image_encryption_key
@ -5902,6 +6038,27 @@ module Google
# @return [String]
attr_accessor :source_in_place_snapshot_id
# The source instant snapshot used to create this disk. You can provide this as
# a partial or full URL to the resource. For example, the following are valid
# values:
# - https://www.googleapis.com/compute/v1/projects/project/zones/zone/
# instantSnapshots/instantSnapshot
# - projects/project/zones/zone/instantSnapshots/instantSnapshot
# - zones/zone/instantSnapshots/instantSnapshot
# Corresponds to the JSON property `sourceInstantSnapshot`
# @return [String]
attr_accessor :source_instant_snapshot
# [Output Only] The unique ID of the instant snapshot used to create this disk.
# This value identifies the exact instant snapshot that was used to create this
# persistent disk. For example, if you created the persistent disk from an
# instant snapshot that was later deleted and recreated under the same name, the
# source instant snapshot ID would identify the exact version of the instant
# snapshot that was used.
# Corresponds to the JSON property `sourceInstantSnapshotId`
# @return [String]
attr_accessor :source_instant_snapshot_id
# The source snapshot used to create this disk. You can provide this as a
# partial or full URL to the resource. For example, the following are valid
# values:
@ -5913,7 +6070,8 @@ module Google
# @return [String]
attr_accessor :source_snapshot
# Represents a customer-supplied encryption key
# The customer-supplied encryption key of the source snapshot. Required if the
# source snapshot is protected by a customer-supplied encryption key.
# Corresponds to the JSON property `sourceSnapshotEncryptionKey`
# @return [Google::Apis::ComputeAlpha::CustomerEncryptionKey]
attr_accessor :source_snapshot_encryption_key
@ -5995,6 +6153,7 @@ module Google
@region = args[:region] if args.key?(:region)
@replica_zones = args[:replica_zones] if args.key?(:replica_zones)
@resource_policies = args[:resource_policies] if args.key?(:resource_policies)
@satisfies_physical_zone_separation = args[:satisfies_physical_zone_separation] if args.key?(:satisfies_physical_zone_separation)
@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)
@size_gb = args[:size_gb] if args.key?(:size_gb)
@ -6005,6 +6164,8 @@ module Google
@source_image_id = args[:source_image_id] if args.key?(:source_image_id)
@source_in_place_snapshot = args[:source_in_place_snapshot] if args.key?(:source_in_place_snapshot)
@source_in_place_snapshot_id = args[:source_in_place_snapshot_id] if args.key?(:source_in_place_snapshot_id)
@source_instant_snapshot = args[:source_instant_snapshot] if args.key?(:source_instant_snapshot)
@source_instant_snapshot_id = args[:source_instant_snapshot_id] if args.key?(:source_instant_snapshot_id)
@source_snapshot = args[:source_snapshot] if args.key?(:source_snapshot)
@source_snapshot_encryption_key = args[:source_snapshot_encryption_key] if args.key?(:source_snapshot_encryption_key)
@source_snapshot_id = args[:source_snapshot_id] if args.key?(:source_snapshot_id)
@ -8443,6 +8604,8 @@ module Google
# IP address that you can use. For detailed information, refer to [IP address
# specifications](/load-balancing/docs/forwarding-rule-concepts#
# ip_address_specifications).
# Must be set to `0.0.0.0` when the target is targetGrpcProxy that has
# validateForProxyless field set to true.
# Corresponds to the JSON property `IPAddress`
# @return [String]
attr_accessor :ip_address
@ -8581,7 +8744,7 @@ module Google
# Opaque filter criteria used by Loadbalancer to restrict routing configuration
# to a limited set of xDS compliant clients. In their xDS requests to
# Loadbalancer, xDS clients present node metadata. If a match takes place, the
# Loadbalancer, xDS clients present node metadata. When there is a match, the
# relevant configuration is made available to those proxies. Otherwise, all the
# resources (e.g. TargetHttpProxy, UrlMap) referenced by the ForwardingRule will
# not be visible to those proxies.
@ -8589,7 +8752,8 @@ module Google
# MATCH_ANY, at least one of the filterLabels must match the corresponding label
# provided in the metadata. If its filterMatchCriteria is set to MATCH_ALL, then
# all of its filterLabels must match with corresponding labels provided in the
# metadata.
# metadata. If multiple metadataFilters are specified, all of them need to be
# satisfied in order to be considered a match.
# metadataFilters specified here will be applifed before those specified in the
# UrlMap that this ForwardingRule references.
# metadataFilters only applies to Loadbalancers that have their
@ -8680,6 +8844,12 @@ module Google
# @return [String]
attr_accessor :self_link_with_id
# Service Directory resources to register this forwarding rule with. Currently,
# only supports a single Service Directory resource.
# Corresponds to the JSON property `serviceDirectoryRegistrations`
# @return [Array<Google::Apis::ComputeAlpha::ForwardingRuleServiceDirectoryRegistration>]
attr_accessor :service_directory_registrations
# An optional prefix to the service name for this Forwarding Rule. If specified,
# the prefix is the first label of the fully qualified service name.
# The label must be 1-63 characters long, and comply with RFC1035. Specifically,
@ -8749,6 +8919,7 @@ module Google
@region = args[:region] if args.key?(:region)
@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)
@service_directory_registrations = args[:service_directory_registrations] if args.key?(:service_directory_registrations)
@service_label = args[:service_label] if args.key?(:service_label)
@service_name = args[:service_name] if args.key?(:service_name)
@subnetwork = args[:subnetwork] if args.key?(:subnetwork)
@ -9016,6 +9187,33 @@ module Google
end
end
# Describes the auto-registration of the Forwarding Rule to Service Directory.
# The region and project of the Service Directory resource generated from this
# registration will be the same as this Forwarding Rule.
class ForwardingRuleServiceDirectoryRegistration
include Google::Apis::Core::Hashable
# Service Directory namespace to register the forwarding rule under.
# Corresponds to the JSON property `namespace`
# @return [String]
attr_accessor :namespace
# Service Directory service to register the forwarding rule under.
# Corresponds to the JSON property `service`
# @return [String]
attr_accessor :service
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@namespace = args[:namespace] if args.key?(:namespace)
@service = args[:service] if args.key?(:service)
end
end
#
class ForwardingRulesScopedList
include Google::Apis::Core::Hashable
@ -10622,6 +10820,8 @@ module Google
# port numbers in the format host:port. * matches any string of ([a-z0-9-.]*).
# In that case, * must be the first character and must be followed in the
# pattern by either - or ..
# * based matching is not supported when the URL map is bound to target gRPC
# proxy that has validateForProxyless field set to true.
# Corresponds to the JSON property `hosts`
# @return [Array<String>]
attr_accessor :hosts
@ -11565,13 +11765,14 @@ module Google
# Opaque filter criteria used by Loadbalancer to restrict routing configuration
# to a limited set of xDS compliant clients. In their xDS requests to
# Loadbalancer, xDS clients present node metadata. If a match takes place, the
# Loadbalancer, xDS clients present node metadata. When there is a match, the
# relevant routing configuration is made available to those proxies.
# For each metadataFilter in this list, if its filterMatchCriteria is set to
# MATCH_ANY, at least one of the filterLabels must match the corresponding label
# provided in the metadata. If its filterMatchCriteria is set to MATCH_ALL, then
# all of its filterLabels must match with corresponding labels provided in the
# metadata.
# metadata. If multiple metadataFilters are specified, all of them need to be
# satisfied in order to be considered a match.
# metadataFilters specified here will be applied after those specified in
# ForwardingRule that refers to the UrlMap this HttpRouteRuleMatch belongs to.
# metadataFilters only applies to Loadbalancers that have their
@ -11904,7 +12105,14 @@ module Google
# @return [Fixnum]
attr_accessor :id
# Represents a customer-supplied encryption key
# Encrypts the image using a customer-supplied encryption key.
# After you encrypt an image with a customer-supplied key, you must provide the
# same key if you use the image later (e.g. to create a disk from the image).
# Customer-supplied encryption keys do not protect access to metadata of the
# disk.
# If you do not provide an encryption key when creating the image, then the disk
# will be encrypted using an automatically generated key and you do not need to
# provide a key to use the image later.
# Corresponds to the JSON property `imageEncryptionKey`
# @return [Google::Apis::ComputeAlpha::CustomerEncryptionKey]
attr_accessor :image_encryption_key
@ -11984,7 +12192,8 @@ module Google
# @return [String]
attr_accessor :source_disk
# Represents a customer-supplied encryption key
# The customer-supplied encryption key of the source disk. Required if the
# source disk is protected by a customer-supplied encryption key.
# Corresponds to the JSON property `sourceDiskEncryptionKey`
# @return [Google::Apis::ComputeAlpha::CustomerEncryptionKey]
attr_accessor :source_disk_encryption_key
@ -12007,7 +12216,8 @@ module Google
# @return [String]
attr_accessor :source_image
# Represents a customer-supplied encryption key
# The customer-supplied encryption key of the source image. Required if the
# source image is protected by a customer-supplied encryption key.
# Corresponds to the JSON property `sourceImageEncryptionKey`
# @return [Google::Apis::ComputeAlpha::CustomerEncryptionKey]
attr_accessor :source_image_encryption_key
@ -12031,7 +12241,8 @@ module Google
# @return [String]
attr_accessor :source_snapshot
# Represents a customer-supplied encryption key
# The customer-supplied encryption key of the source snapshot. Required if the
# source snapshot is protected by a customer-supplied encryption key.
# Corresponds to the JSON property `sourceSnapshotEncryptionKey`
# @return [Google::Apis::ComputeAlpha::CustomerEncryptionKey]
attr_accessor :source_snapshot_encryption_key
@ -12653,7 +12864,19 @@ module Google
# @return [Fixnum]
attr_accessor :id
# Represents a customer-supplied encryption key
# Encrypts or decrypts data for an instance with a customer-supplied encryption
# key.
# If you are creating a new instance, this field encrypts the local SSD and in-
# memory contents of the instance using a key that you provide.
# If you are restarting an instance protected with a customer-supplied
# encryption key, you must provide the correct key in order to successfully
# restart the instance.
# If you do not provide an encryption key when creating the instance, then the
# local SSD and in-memory contents will be encrypted using an automatically
# generated key and you do not need to provide a key to start the instance later.
# Instance templates do not store customer-supplied encryption keys, so you
# cannot use your own keys to encrypt local SSDs and in-memory content in a
# managed instance group.
# Corresponds to the JSON property `instanceEncryptionKey`
# @return [Google::Apis::ComputeAlpha::CustomerEncryptionKey]
attr_accessor :instance_encryption_key
@ -12768,6 +12991,12 @@ module Google
# @return [Array<String>]
attr_accessor :resource_policies
# [Output Only] Specifies whether this instance satisfies zone separation.
# Corresponds to the JSON property `satisfiesPhysicalZoneSeparation`
# @return [Boolean]
attr_accessor :satisfies_physical_zone_separation
alias_method :satisfies_physical_zone_separation?, :satisfies_physical_zone_separation
# Sets the scheduling options for an Instance. NextID: 12
# Corresponds to the JSON property `scheduling`
# @return [Google::Apis::ComputeAlpha::Scheduling]
@ -12819,7 +13048,7 @@ module Google
# @return [String]
attr_accessor :source_machine_image
# Represents a customer-supplied encryption key
# Source GMI encryption key when creating an instance from GMI.
# Corresponds to the JSON property `sourceMachineImageEncryptionKey`
# @return [Google::Apis::ComputeAlpha::CustomerEncryptionKey]
attr_accessor :source_machine_image_encryption_key
@ -12897,6 +13126,7 @@ module Google
@private_ipv6_google_access = args[:private_ipv6_google_access] if args.key?(:private_ipv6_google_access)
@reservation_affinity = args[:reservation_affinity] if args.key?(:reservation_affinity)
@resource_policies = args[:resource_policies] if args.key?(:resource_policies)
@satisfies_physical_zone_separation = args[:satisfies_physical_zone_separation] if args.key?(:satisfies_physical_zone_separation)
@scheduling = args[:scheduling] if args.key?(:scheduling)
@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)
@ -16038,7 +16268,11 @@ module Google
# @return [Array<Google::Apis::ComputeAlpha::CustomerEncryptionKeyProtectedDisk>]
attr_accessor :disks
# Represents a customer-supplied encryption key
# Decrypts data associated with an instance that is protected with a customer-
# supplied encryption key.
# If the instance you are starting is protected with a customer-supplied
# encryption key, the correct key must be provided otherwise the instance resume
# will not succeed.
# Corresponds to the JSON property `instanceEncryptionKey`
# @return [Google::Apis::ComputeAlpha::CustomerEncryptionKey]
attr_accessor :instance_encryption_key
@ -16297,7 +16531,11 @@ module Google
# @return [Array<Google::Apis::ComputeAlpha::CustomerEncryptionKeyProtectedDisk>]
attr_accessor :disks
# Represents a customer-supplied encryption key
# Decrypts data associated with an instance that is protected with a customer-
# supplied encryption key.
# If the instance you are starting is protected with a customer-supplied
# encryption key, the correct key must be provided otherwise the instance start
# will not succeed.
# Corresponds to the JSON property `instanceEncryptionKey`
# @return [Google::Apis::ComputeAlpha::CustomerEncryptionKey]
attr_accessor :instance_encryption_key
@ -16643,6 +16881,11 @@ module Google
# @return [String]
attr_accessor :edge_availability_domain
# Indicates the user-supplied encryption option of this interconnect attachment.
# Corresponds to the JSON property `encryption`
# @return [String]
attr_accessor :encryption
# [Output Only] Google reference ID, to be used when raising support tickets
# with Google or otherwise to debug backend connectivity issues. [Deprecated]
# This field is not used.
@ -16662,6 +16905,22 @@ module Google
# @return [String]
attr_accessor :interconnect
# URL of addresses that have been reserved for the interconnect attachment, Used
# only for interconnect attachment that has the encryption option as IPSEC. The
# addresses must be RFC 1918 IP address ranges. When creating HA VPN gateway
# over the interconnect attachment, if the attachment is configured to use an
# RFC 1918 IP address, then the VPN gateway?s IP address will be allocated from
# the IP address range specified here. For example, if the HA VPN gateway?s
# interface 0 is paired to this interconnect attachment, then an RFC 1918 IP
# address for the VPN gateway interface 0 will be allocated from the IP address
# specified for this interconnect attachment. If this field is not specified for
# interconnect attachment that has encryption option as IPSEC, later on when
# creating HA VPN gateway on this interconnect attachment, the HA VPN gateway's
# IP address will be allocated from regional external IP address pool.
# Corresponds to the JSON property `ipsecInternalAddresses`
# @return [Array<String>]
attr_accessor :ipsec_internal_addresses
# [Output Only] Type of the resource. Always compute#interconnectAttachment for
# interconnect attachments.
# Corresponds to the JSON property `kind`
@ -16820,9 +17079,11 @@ module Google
@customer_router_ip_address = args[:customer_router_ip_address] if args.key?(:customer_router_ip_address)
@description = args[:description] if args.key?(:description)
@edge_availability_domain = args[:edge_availability_domain] if args.key?(:edge_availability_domain)
@encryption = args[:encryption] if args.key?(:encryption)
@google_reference_id = args[:google_reference_id] if args.key?(:google_reference_id)
@id = args[:id] if args.key?(:id)
@interconnect = args[:interconnect] if args.key?(:interconnect)
@ipsec_internal_addresses = args[:ipsec_internal_addresses] if args.key?(:ipsec_internal_addresses)
@kind = args[:kind] if args.key?(:kind)
@label_fingerprint = args[:label_fingerprint] if args.key?(:label_fingerprint)
@labels = args[:labels] if args.key?(:labels)
@ -18939,7 +19200,16 @@ module Google
# @return [String]
attr_accessor :kind
# Represents a customer-supplied encryption key
# Encrypts the machine image using a customer-supplied encryption key.
# After you encrypt a machine image using a customer-supplied key, you must
# provide the same key if you use the machine image later. For example, you must
# provide the encryption key when you create an instance from the encrypted
# machine image in a future request.
# Customer-supplied encryption keys do not protect access to metadata of the
# machine image.
# If you do not provide an encryption key when creating the machine image, then
# the machine image will be encrypted using an automatically generated key and
# you do not need to provide a key to use the machine image later.
# Corresponds to the JSON property `machineImageEncryptionKey`
# @return [Google::Apis::ComputeAlpha::CustomerEncryptionKey]
attr_accessor :machine_image_encryption_key
@ -21707,7 +21977,9 @@ module Google
attr_accessor :location_hint
# Specifies how to handle instances when a node in the group undergoes
# maintenance.
# maintenance. Set to one of: DEFAULT, RESTART_IN_PLACE, or
# MIGRATE_WITHIN_NODE_GROUP. The default value is DEFAULT. For more information,
# see Maintenance policies.
# Corresponds to the JSON property `maintenancePolicy`
# @return [String]
attr_accessor :maintenance_policy
@ -21923,7 +22195,8 @@ module Google
# @return [Fixnum]
attr_accessor :min_nodes
# The autoscaling mode.
# The autoscaling mode. Set to one of: ON, OFF, or ONLY_SCALE_OUT. For more
# information, see Autoscaler modes.
# Corresponds to the JSON property `mode`
# @return [String]
attr_accessor :mode
@ -22121,6 +22394,12 @@ module Google
# @return [String]
attr_accessor :node_type
# [Output Only] Specifies whether this node satisfies zone separation.
# Corresponds to the JSON property `satisfiesPhysicalZoneSeparation`
# @return [Boolean]
attr_accessor :satisfies_physical_zone_separation
alias_method :satisfies_physical_zone_separation?, :satisfies_physical_zone_separation
# Binding properties for the physical server.
# Corresponds to the JSON property `serverBinding`
# @return [Google::Apis::ComputeAlpha::ServerBinding]
@ -22148,6 +22427,7 @@ module Google
@instances = args[:instances] if args.key?(:instances)
@name = args[:name] if args.key?(:name)
@node_type = args[:node_type] if args.key?(:node_type)
@satisfies_physical_zone_separation = args[:satisfies_physical_zone_separation] if args.key?(:satisfies_physical_zone_separation)
@server_binding = args[:server_binding] if args.key?(:server_binding)
@server_id = args[:server_id] if args.key?(:server_id)
@status = args[:status] if args.key?(:status)
@ -25101,6 +25381,8 @@ module Google
# Only one of defaultRouteAction or defaultUrlRedirect must be set.
# UrlMaps for external HTTP(S) load balancers support only the urlRewrite action
# within a pathMatcher's defaultRouteAction.
# 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.
# Corresponds to the JSON property `defaultRouteAction`
# @return [Google::Apis::ComputeAlpha::HttpRouteAction]
attr_accessor :default_route_action
@ -25123,6 +25405,8 @@ module Google
# the specified resource default_service:
# - compute.backendBuckets.use
# - compute.backendServices.use
# pathMatchers[].defaultService is the only option available when the URL map is
# bound to target gRPC proxy that has validateForProxyless field set to true.
# Corresponds to the JSON property `defaultService`
# @return [String]
attr_accessor :default_service
@ -25156,6 +25440,8 @@ module Google
# For example: a pathRule with a path /a/b/c/* will match before /a/b/*
# irrespective of the order in which those paths appear in this list.
# Within a given pathMatcher, only one of pathRules or routeRules must be set.
# 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.
# Corresponds to the JSON property `pathRules`
# @return [Array<Google::Apis::ComputeAlpha::PathRule>]
attr_accessor :path_rules
@ -25164,6 +25450,8 @@ module Google
# route matching and routing actions are desired. routeRules are evaluated in
# order of priority, from the lowest to highest number.
# Within a given pathMatcher, you can set only one of pathRules or routeRules.
# 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.
# Corresponds to the JSON property `routeRules`
# @return [Array<Google::Apis::ComputeAlpha::HttpRouteRule>]
attr_accessor :route_rules
@ -25751,7 +26039,8 @@ module Google
attr_accessor :usage_export_location
# [Output Only] The role this project has in a shared VPC configuration.
# Currently only HOST projects are differentiated.
# Currently, only projects with the host role, which is specified by the value
# HOST, are differentiated.
# Corresponds to the JSON property `xpnProjectStatus`
# @return [String]
attr_accessor :xpn_project_status
@ -26144,11 +26433,21 @@ module Google
class PublicAdvertisedPrefixPublicDelegatedPrefix
include Google::Apis::Core::Hashable
# The IP address range of the public delegated prefix
# Corresponds to the JSON property `ipRange`
# @return [String]
attr_accessor :ip_range
# The name of the public delegated prefix
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# The project number of the public delegated prefix
# Corresponds to the JSON property `project`
# @return [String]
attr_accessor :project
# The region of the public delegated prefix if it is regional. If absent, the
# prefix is global.
# Corresponds to the JSON property `region`
@ -26168,7 +26467,9 @@ module Google
# Update properties of this object
def update!(**args)
@ip_range = args[:ip_range] if args.key?(:ip_range)
@name = args[:name] if args.key?(:name)
@project = args[:project] if args.key?(:project)
@region = args[:region] if args.key?(:region)
@status = args[:status] if args.key?(:status)
end
@ -26850,6 +27151,12 @@ module Google
# @return [String]
attr_accessor :status
# [Output Only] Specifies whether this region supports physical zone separation.
# Corresponds to the JSON property `supportsPhysicalZoneSeparation`
# @return [Boolean]
attr_accessor :supports_physical_zone_separation
alias_method :supports_physical_zone_separation?, :supports_physical_zone_separation
# [Output Only] A list of zones available in this region, in the form of
# resource URLs.
# Corresponds to the JSON property `zones`
@ -26872,6 +27179,7 @@ module Google
@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)
@status = args[:status] if args.key?(:status)
@supports_physical_zone_separation = args[:supports_physical_zone_separation] if args.key?(:supports_physical_zone_separation)
@zones = args[:zones] if args.key?(:zones)
end
end
@ -27503,7 +27811,7 @@ module Google
end
end
# InstanceGroupManagers.applyUpdatesToInstances
# RegionInstanceGroupManagers.applyUpdatesToInstances
class RegionInstanceGroupManagersApplyUpdatesRequest
include Google::Apis::Core::Hashable
@ -28268,6 +28576,10 @@ module Google
# Traffic Director.
# * urlMaps are used by external HTTP(S) load balancers and Traffic Director. *
# regionUrlMaps are used by internal HTTP(S) load balancers.
# For a list of supported URL map features by load balancer type, see the Load
# balancing features: Routing and traffic management table.
# For a list of supported URL map features for Traffic Director, see the
# Traffic Director features: Routing and traffic management table.
# This resource defines mappings from host names and URL paths to either a
# backend service or a backend bucket.
# To use the global urlMaps resource, the backend service must have a
@ -31590,7 +31902,7 @@ module Google
# @return [String]
attr_accessor :device_name
# Represents a customer-supplied encryption key
# The encryption key for the disk.
# Corresponds to the JSON property `diskEncryptionKey`
# @return [Google::Apis::ComputeAlpha::CustomerEncryptionKey]
attr_accessor :disk_encryption_key
@ -32537,7 +32849,7 @@ module Google
class SecurityPolicyRuleRateLimitOptions
include Google::Apis::Core::Hashable
# Can only be specifed if the action for the rule is "rate_based_blacklist" If
# Can only be specified if the action for the rule is "rate_based_blacklist" If
# specified, determines the time (in seconds) the traffic will continue to be
# blocked by the rate limit after the rate falls below the threshold. The
# default value is 0 seconds.
@ -32610,6 +32922,7 @@ module Google
# clientTlsPolicy only applies to a global BackendService with the
# loadBalancingScheme set to INTERNAL_SELF_MANAGED.
# If left blank, communications are not encrypted.
# Note: This field currently has no impact.
# Corresponds to the JSON property `clientTlsPolicy`
# @return [String]
attr_accessor :client_tls_policy
@ -32632,6 +32945,7 @@ module Google
# Only applies to a global BackendService with loadBalancingScheme set to
# INTERNAL_SELF_MANAGED. Only applies when BackendService has an attached
# clientTlsPolicy with clientCertificate (mTLS mode).
# Note: This field currently has no impact.
# Corresponds to the JSON property `subjectAltNames`
# @return [Array<String>]
attr_accessor :subject_alt_names
@ -33382,6 +33696,12 @@ module Google
# @return [String]
attr_accessor :name
# [Output Only] Specifies whether this snapshot satisfies zone separation.
# Corresponds to the JSON property `satisfiesPhysicalZoneSeparation`
# @return [Boolean]
attr_accessor :satisfies_physical_zone_separation
alias_method :satisfies_physical_zone_separation?, :satisfies_physical_zone_separation
# [Output Only] Server-defined URL for the resource.
# Corresponds to the JSON property `selfLink`
# @return [String]
@ -33392,7 +33712,16 @@ module Google
# @return [String]
attr_accessor :self_link_with_id
# Represents a customer-supplied encryption key
# Encrypts the snapshot using a customer-supplied encryption key.
# After you encrypt a snapshot using a customer-supplied key, you must provide
# the same key if you use the snapshot later. For example, you must provide the
# encryption key when you create a disk from the encrypted snapshot in a future
# request.
# Customer-supplied encryption keys do not protect access to metadata of the
# snapshot.
# If you do not provide an encryption key when creating the snapshot, then the
# snapshot will be encrypted using an automatically generated key and you do not
# need to provide a key to use the snapshot later.
# Corresponds to the JSON property `snapshotEncryptionKey`
# @return [Google::Apis::ComputeAlpha::CustomerEncryptionKey]
attr_accessor :snapshot_encryption_key
@ -33402,7 +33731,8 @@ module Google
# @return [String]
attr_accessor :source_disk
# Represents a customer-supplied encryption key
# The customer-supplied encryption key of the source disk. Required if the
# source disk is protected by a customer-supplied encryption key.
# Corresponds to the JSON property `sourceDiskEncryptionKey`
# @return [Google::Apis::ComputeAlpha::CustomerEncryptionKey]
attr_accessor :source_disk_encryption_key
@ -33460,6 +33790,7 @@ module Google
@license_codes = args[:license_codes] if args.key?(:license_codes)
@licenses = args[:licenses] if args.key?(:licenses)
@name = args[:name] if args.key?(:name)
@satisfies_physical_zone_separation = args[:satisfies_physical_zone_separation] if args.key?(:satisfies_physical_zone_separation)
@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)
@snapshot_encryption_key = args[:snapshot_encryption_key] if args.key?(:snapshot_encryption_key)
@ -33594,7 +33925,8 @@ module Google
class SourceDiskEncryptionKey
include Google::Apis::Core::Hashable
# Represents a customer-supplied encryption key
# The customer-supplied encryption key of the source disk. Required if the
# source disk is protected by a customer-supplied encryption key.
# Corresponds to the JSON property `diskEncryptionKey`
# @return [Google::Apis::ComputeAlpha::CustomerEncryptionKey]
attr_accessor :disk_encryption_key
@ -36350,6 +36682,7 @@ module Google
# authorizationPolicy only applies to a global TargetHttpsProxy attached to
# globalForwardingRules with the loadBalancingScheme set to
# INTERNAL_SELF_MANAGED.
# Note: This field currently has no impact.
# Corresponds to the JSON property `authorizationPolicy`
# @return [String]
attr_accessor :authorization_policy
@ -36437,6 +36770,7 @@ module Google
# globalForwardingRules with the loadBalancingScheme set to
# INTERNAL_SELF_MANAGED.
# If left blank, communications are not encrypted.
# Note: This field currently has no impact.
# Corresponds to the JSON property `serverTlsPolicy`
# @return [String]
attr_accessor :server_tls_policy
@ -38985,13 +39319,13 @@ module Google
include Google::Apis::Core::Hashable
# [Output Only] The date when the maintenance will take place. This value is in
# RFC3339 text format.
# RFC3339 text format. DEPRECATED: Use start_time_window instead.
# Corresponds to the JSON property `date`
# @return [String]
attr_accessor :date
# [Output Only] The time when the maintenance will take place. This value is in
# RFC3339 text format.
# RFC3339 text format. DEPRECATED: Use start_time_window instead.
# Corresponds to the JSON property `time`
# @return [String]
attr_accessor :time
@ -39021,6 +39355,10 @@ module Google
# Traffic Director.
# * urlMaps are used by external HTTP(S) load balancers and Traffic Director. *
# regionUrlMaps are used by internal HTTP(S) load balancers.
# For a list of supported URL map features by load balancer type, see the Load
# balancing features: Routing and traffic management table.
# For a list of supported URL map features for Traffic Director, see the
# Traffic Director features: Routing and traffic management table.
# This resource defines mappings from host names and URL paths to either a
# backend service or a backend bucket.
# To use the global urlMaps resource, the backend service must have a
@ -39044,6 +39382,9 @@ module Google
# Only one of defaultRouteAction or defaultUrlRedirect must be set.
# UrlMaps for external HTTP(S) load balancers support only the urlRewrite action
# within defaultRouteAction.
# defaultRouteAction has no effect when the backend service is referenced by a
# URL map that is bound to target gRPC proxy that has validateForProxyless field
# set to true.
# Corresponds to the JSON property `defaultRouteAction`
# @return [Google::Apis::ComputeAlpha::HttpRouteAction]
attr_accessor :default_route_action
@ -39057,6 +39398,9 @@ module Google
# specified.
# Only one of defaultService, defaultUrlRedirect or defaultRouteAction.
# weightedBackendService must be set.
# defaultService has no effect when the backend service is referenced by a URL
# map that is bound to target gRPC proxy that has validateForProxyless field set
# to true.
# Corresponds to the JSON property `defaultService`
# @return [String]
attr_accessor :default_service
@ -39135,6 +39479,8 @@ module Google
# The list of expected URL mapping tests. Request to update this UrlMap will
# succeed only if all of the test cases pass. You can specify a maximum of 100
# tests per UrlMap.
# 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.
# Corresponds to the JSON property `tests`
# @return [Array<Google::Apis::ComputeAlpha::UrlMapTest>]
attr_accessor :tests
@ -39617,6 +39963,10 @@ module Google
# Traffic Director.
# * urlMaps are used by external HTTP(S) load balancers and Traffic Director. *
# regionUrlMaps are used by internal HTTP(S) load balancers.
# For a list of supported URL map features by load balancer type, see the Load
# balancing features: Routing and traffic management table.
# For a list of supported URL map features for Traffic Director, see the
# Traffic Director features: Routing and traffic management table.
# This resource defines mappings from host names and URL paths to either a
# backend service or a backend bucket.
# To use the global urlMaps resource, the backend service must have a
@ -40633,6 +40983,14 @@ module Google
# @return [Fixnum]
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.
# Corresponds to the JSON property `interconnectAttachment`
# @return [String]
attr_accessor :interconnect_attachment
# [Output Only] The external IP address for this VPN gateway interface.
# Corresponds to the JSON property `ipAddress`
# @return [String]
@ -40645,6 +41003,7 @@ module Google
# Update properties of this object
def update!(**args)
@id = args[:id] if args.key?(:id)
@interconnect_attachment = args[:interconnect_attachment] if args.key?(:interconnect_attachment)
@ip_address = args[:ip_address] if args.key?(:ip_address)
end
end
@ -41609,6 +41968,12 @@ module Google
# @return [String]
attr_accessor :status
# [Output Only] Specifies whether this zone supports physical zone separation.
# Corresponds to the JSON property `supportsPhysicalZoneSeparation`
# @return [Boolean]
attr_accessor :supports_physical_zone_separation
alias_method :supports_physical_zone_separation?, :supports_physical_zone_separation
def initialize(**args)
update!(**args)
end
@ -41625,6 +41990,7 @@ module Google
@region = args[:region] if args.key?(:region)
@self_link = args[:self_link] if args.key?(:self_link)
@status = args[:status] if args.key?(:status)
@supports_physical_zone_separation = args[:supports_physical_zone_separation] if args.key?(:supports_physical_zone_separation)
end
end

View File

@ -352,6 +352,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class BackendBucketCdnPolicyBypassCacheOnRequestHeader
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class BackendBucketCdnPolicyNegativeCachingPolicy
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -406,6 +412,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class BackendServiceCdnPolicyBypassCacheOnRequestHeader
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class BackendServiceCdnPolicyNegativeCachingPolicy
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -1048,6 +1060,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class ForwardingRuleServiceDirectoryRegistration
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ForwardingRulesScopedList
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -5786,6 +5804,7 @@ module Google
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :enable_nested_virtualization, as: 'enableNestedVirtualization'
property :threads_per_core, as: 'threadsPerCore'
end
end
@ -6169,6 +6188,8 @@ module Google
class BackendBucketCdnPolicy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :bypass_cache_on_request_headers, as: 'bypassCacheOnRequestHeaders', class: Google::Apis::ComputeAlpha::BackendBucketCdnPolicyBypassCacheOnRequestHeader, decorator: Google::Apis::ComputeAlpha::BackendBucketCdnPolicyBypassCacheOnRequestHeader::Representation
property :cache_mode, as: 'cacheMode'
property :client_ttl, as: 'clientTtl'
property :default_ttl, as: 'defaultTtl'
@ -6177,11 +6198,19 @@ module Google
collection :negative_caching_policy, as: 'negativeCachingPolicy', class: Google::Apis::ComputeAlpha::BackendBucketCdnPolicyNegativeCachingPolicy, decorator: Google::Apis::ComputeAlpha::BackendBucketCdnPolicyNegativeCachingPolicy::Representation
property :request_coalescing, as: 'requestCoalescing'
property :serve_while_stale, as: 'serveWhileStale'
property :signed_url_cache_max_age_sec, :numeric_string => true, as: 'signedUrlCacheMaxAgeSec'
collection :signed_url_key_names, as: 'signedUrlKeyNames'
end
end
class BackendBucketCdnPolicyBypassCacheOnRequestHeader
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :header_name, as: 'headerName'
end
end
class BackendBucketCdnPolicyNegativeCachingPolicy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -6307,6 +6336,8 @@ module Google
class BackendServiceCdnPolicy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :bypass_cache_on_request_headers, as: 'bypassCacheOnRequestHeaders', class: Google::Apis::ComputeAlpha::BackendServiceCdnPolicyBypassCacheOnRequestHeader, decorator: Google::Apis::ComputeAlpha::BackendServiceCdnPolicyBypassCacheOnRequestHeader::Representation
property :cache_key_policy, as: 'cacheKeyPolicy', class: Google::Apis::ComputeAlpha::CacheKeyPolicy, decorator: Google::Apis::ComputeAlpha::CacheKeyPolicy::Representation
property :cache_mode, as: 'cacheMode'
@ -6317,11 +6348,19 @@ module Google
collection :negative_caching_policy, as: 'negativeCachingPolicy', class: Google::Apis::ComputeAlpha::BackendServiceCdnPolicyNegativeCachingPolicy, decorator: Google::Apis::ComputeAlpha::BackendServiceCdnPolicyNegativeCachingPolicy::Representation
property :request_coalescing, as: 'requestCoalescing'
property :serve_while_stale, as: 'serveWhileStale'
property :signed_url_cache_max_age_sec, :numeric_string => true, as: 'signedUrlCacheMaxAgeSec'
collection :signed_url_key_names, as: 'signedUrlKeyNames'
end
end
class BackendServiceCdnPolicyBypassCacheOnRequestHeader
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :header_name, as: 'headerName'
end
end
class BackendServiceCdnPolicyNegativeCachingPolicy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -6825,6 +6864,7 @@ module Google
property :region, as: 'region'
collection :replica_zones, as: 'replicaZones'
collection :resource_policies, as: 'resourcePolicies'
property :satisfies_physical_zone_separation, as: 'satisfiesPhysicalZoneSeparation'
property :self_link, as: 'selfLink'
property :self_link_with_id, as: 'selfLinkWithId'
property :size_gb, :numeric_string => true, as: 'sizeGb'
@ -6836,6 +6876,8 @@ module Google
property :source_image_id, as: 'sourceImageId'
property :source_in_place_snapshot, as: 'sourceInPlaceSnapshot'
property :source_in_place_snapshot_id, as: 'sourceInPlaceSnapshotId'
property :source_instant_snapshot, as: 'sourceInstantSnapshot'
property :source_instant_snapshot_id, as: 'sourceInstantSnapshotId'
property :source_snapshot, as: 'sourceSnapshot'
property :source_snapshot_encryption_key, as: 'sourceSnapshotEncryptionKey', class: Google::Apis::ComputeAlpha::CustomerEncryptionKey, decorator: Google::Apis::ComputeAlpha::CustomerEncryptionKey::Representation
@ -7464,6 +7506,8 @@ module Google
property :region, as: 'region'
property :self_link, as: 'selfLink'
property :self_link_with_id, as: 'selfLinkWithId'
collection :service_directory_registrations, as: 'serviceDirectoryRegistrations', class: Google::Apis::ComputeAlpha::ForwardingRuleServiceDirectoryRegistration, decorator: Google::Apis::ComputeAlpha::ForwardingRuleServiceDirectoryRegistration::Representation
property :service_label, as: 'serviceLabel'
property :service_name, as: 'serviceName'
property :subnetwork, as: 'subnetwork'
@ -7543,6 +7587,14 @@ module Google
end
end
class ForwardingRuleServiceDirectoryRegistration
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :namespace, as: 'namespace'
property :service, as: 'service'
end
end
class ForwardingRulesScopedList
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -8408,6 +8460,7 @@ module Google
property :reservation_affinity, as: 'reservationAffinity', class: Google::Apis::ComputeAlpha::ReservationAffinity, decorator: Google::Apis::ComputeAlpha::ReservationAffinity::Representation
collection :resource_policies, as: 'resourcePolicies'
property :satisfies_physical_zone_separation, as: 'satisfiesPhysicalZoneSeparation'
property :scheduling, as: 'scheduling', class: Google::Apis::ComputeAlpha::Scheduling, decorator: Google::Apis::ComputeAlpha::Scheduling::Representation
property :self_link, as: 'selfLink'
@ -9406,9 +9459,11 @@ module Google
property :customer_router_ip_address, as: 'customerRouterIpAddress'
property :description, as: 'description'
property :edge_availability_domain, as: 'edgeAvailabilityDomain'
property :encryption, as: 'encryption'
property :google_reference_id, as: 'googleReferenceId'
property :id, :numeric_string => true, as: 'id'
property :interconnect, as: 'interconnect'
collection :ipsec_internal_addresses, as: 'ipsecInternalAddresses'
property :kind, as: 'kind'
property :label_fingerprint, :base64 => true, as: 'labelFingerprint'
hash :labels, as: 'labels'
@ -10775,6 +10830,7 @@ module Google
collection :instances, as: 'instances'
property :name, as: 'name'
property :node_type, as: 'nodeType'
property :satisfies_physical_zone_separation, as: 'satisfiesPhysicalZoneSeparation'
property :server_binding, as: 'serverBinding', class: Google::Apis::ComputeAlpha::ServerBinding, decorator: Google::Apis::ComputeAlpha::ServerBinding::Representation
property :server_id, as: 'serverId'
@ -11796,7 +11852,9 @@ module Google
class PublicAdvertisedPrefixPublicDelegatedPrefix
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :ip_range, as: 'ipRange'
property :name, as: 'name'
property :project, as: 'project'
property :region, as: 'region'
property :status, as: 'status'
end
@ -11974,6 +12032,7 @@ module Google
property :self_link, as: 'selfLink'
property :self_link_with_id, as: 'selfLinkWithId'
property :status, as: 'status'
property :supports_physical_zone_separation, as: 'supportsPhysicalZoneSeparation'
collection :zones, as: 'zones'
end
end
@ -13652,6 +13711,7 @@ module Google
collection :license_codes, as: 'licenseCodes'
collection :licenses, as: 'licenses'
property :name, as: 'name'
property :satisfies_physical_zone_separation, as: 'satisfiesPhysicalZoneSeparation'
property :self_link, as: 'selfLink'
property :self_link_with_id, as: 'selfLinkWithId'
property :snapshot_encryption_key, as: 'snapshotEncryptionKey', class: Google::Apis::ComputeAlpha::CustomerEncryptionKey, decorator: Google::Apis::ComputeAlpha::CustomerEncryptionKey::Representation
@ -15486,6 +15546,7 @@ module Google
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
property :interconnect_attachment, as: 'interconnectAttachment'
property :ip_address, as: 'ipAddress'
end
end
@ -15730,6 +15791,7 @@ module Google
property :region, as: 'region'
property :self_link, as: 'selfLink'
property :status, as: 'status'
property :supports_physical_zone_separation, as: 'supportsPhysicalZoneSeparation'
end
end

View File

@ -18815,7 +18815,9 @@ module Google
# request.
# @param [Google::Apis::ComputeAlpha::SecurityPolicy] security_policy_object
# @param [String] parent_id
# Parent ID for this request.
# Parent ID for this request. The ID can be either be "folders/[FOLDER_ID]" if
# the parent is a folder or "organizations/[ORGANIZATION_ID]" if the parent is
# an organization.
# @param [String] request_id
# An optional request ID to identify requests. Specify a unique request ID so
# that if you must retry your request, the server will know to ignore the

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/compute/docs/reference/latest/
module ComputeBeta
VERSION = 'Beta'
REVISION = '20200727'
REVISION = '20200811'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -1199,7 +1199,20 @@ module Google
# @return [String]
attr_accessor :device_name
# Represents a customer-supplied encryption key
# Encrypts or decrypts a disk using a customer-supplied encryption key.
# If you are creating a new disk, this field encrypts the new disk using an
# encryption key that you provide. If you are attaching an existing disk that is
# already encrypted, this field decrypts the disk using the customer-supplied
# encryption key.
# If you encrypt a disk using a customer-supplied key, you must provide the same
# key again when you attempt to use this resource at a later time. For example,
# you must provide the key when you create a snapshot or an image from the disk
# or when you attach the disk to a virtual machine instance.
# If you do not provide an encryption key, then the disk will be encrypted using
# an automatically generated key and you do not need to provide a key to use the
# disk later.
# Instance templates do not store customer-supplied encryption keys, so you
# cannot use your own keys to encrypt disks in a managed instance group.
# Corresponds to the JSON property `diskEncryptionKey`
# @return [Google::Apis::ComputeBeta::CustomerEncryptionKey]
attr_accessor :disk_encryption_key
@ -1407,7 +1420,11 @@ module Google
# @return [String]
attr_accessor :source_image
# Represents a customer-supplied encryption key
# The customer-supplied encryption key of the source image. Required if the
# source image is protected by a customer-supplied encryption key.
# Instance templates do not store customer-supplied encryption keys, so you
# cannot create disks for instances in a managed instance group if the source
# images are encrypted with your own keys.
# Corresponds to the JSON property `sourceImageEncryptionKey`
# @return [Google::Apis::ComputeBeta::CustomerEncryptionKey]
attr_accessor :source_image_encryption_key
@ -1423,7 +1440,7 @@ module Google
# @return [String]
attr_accessor :source_snapshot
# Represents a customer-supplied encryption key
# The customer-supplied encryption key of the source snapshot.
# Corresponds to the JSON property `sourceSnapshotEncryptionKey`
# @return [Google::Apis::ComputeBeta::CustomerEncryptionKey]
attr_accessor :source_snapshot_encryption_key
@ -2614,6 +2631,13 @@ module Google
class BackendBucketCdnPolicy
include Google::Apis::Core::Hashable
# Bypass the cache when the specified request headers are matched - e.g. Pragma
# or Authorization headers. Up to 5 headers can be specified. The cache is
# bypassed for all cdnPolicy.cacheMode settings.
# Corresponds to the JSON property `bypassCacheOnRequestHeaders`
# @return [Array<Google::Apis::ComputeBeta::BackendBucketCdnPolicyBypassCacheOnRequestHeader>]
attr_accessor :bypass_cache_on_request_headers
#
# Corresponds to the JSON property `cacheMode`
# @return [String]
@ -2674,6 +2698,18 @@ module Google
# @return [Array<Google::Apis::ComputeBeta::BackendBucketCdnPolicyNegativeCachingPolicy>]
attr_accessor :negative_caching_policy
# Serve existing content from the cache (if available) when revalidating content
# with the origin, or when an error is encountered when refreshing the cache.
# This setting defines the default "max-stale" duration for any cached responses
# that do not specify a max-stale directive. Stale responses that exceed the TTL
# configured here will not be served. The default limit (max-stale) is 86400s (1
# day), which will allow stale content to be served up to this limit beyond the
# max-age (or s-max-age) of a cached response. The maximum allowed value is
# 604800(1 week). Set this to zero (0) to disable serve-while-stale.
# Corresponds to the JSON property `serveWhileStale`
# @return [Fixnum]
attr_accessor :serve_while_stale
# Maximum number of seconds the response to a signed URL request will be
# considered fresh. After this time period, the response will be revalidated
# before being served. Defaults to 1hr (3600s). When serving responses to signed
@ -2696,17 +2732,41 @@ module Google
# Update properties of this object
def update!(**args)
@bypass_cache_on_request_headers = args[:bypass_cache_on_request_headers] if args.key?(:bypass_cache_on_request_headers)
@cache_mode = args[:cache_mode] if args.key?(:cache_mode)
@client_ttl = args[:client_ttl] if args.key?(:client_ttl)
@default_ttl = args[:default_ttl] if args.key?(:default_ttl)
@max_ttl = args[:max_ttl] if args.key?(:max_ttl)
@negative_caching = args[:negative_caching] if args.key?(:negative_caching)
@negative_caching_policy = args[:negative_caching_policy] if args.key?(:negative_caching_policy)
@serve_while_stale = args[:serve_while_stale] if args.key?(:serve_while_stale)
@signed_url_cache_max_age_sec = args[:signed_url_cache_max_age_sec] if args.key?(:signed_url_cache_max_age_sec)
@signed_url_key_names = args[:signed_url_key_names] if args.key?(:signed_url_key_names)
end
end
# Bypass the cache when the specified request headers are present, e.g. Pragma
# or Authorization headers. Values are case insensitive. The presence of such a
# header overrides the cache_mode setting.
class BackendBucketCdnPolicyBypassCacheOnRequestHeader
include Google::Apis::Core::Hashable
# The header field name to match on when bypassing cache. Values are case-
# insensitive.
# Corresponds to the JSON property `headerName`
# @return [String]
attr_accessor :header_name
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@header_name = args[:header_name] if args.key?(:header_name)
end
end
# Specify CDN TTLs for response error codes.
class BackendBucketCdnPolicyNegativeCachingPolicy
include Google::Apis::Core::Hashable
@ -2873,6 +2933,8 @@ module Google
# If set to 0, the cookie is non-persistent and lasts only until the end of the
# browser session (or equivalent). The maximum allowed value is one day (86,400).
# 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.
# Corresponds to the JSON property `affinityCookieTtlSec`
# @return [Fixnum]
attr_accessor :affinity_cookie_ttl_sec
@ -3014,8 +3076,11 @@ module Google
# HTTP2, and load_balancing_scheme set to INTERNAL_MANAGED.
# - A global backend service with the load_balancing_scheme set to
# INTERNAL_SELF_MANAGED.
# If sessionAffinity is not NONE, and this field is not set to >MAGLEV or
# If sessionAffinity is not NONE, and this field is not set to MAGLEV or
# RING_HASH, session affinity settings will not take effect.
# Only the default ROUND_ROBIN policy is 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.
# Corresponds to the JSON property `localityLbPolicy`
# @return [String]
attr_accessor :locality_lb_policy
@ -3072,6 +3137,8 @@ module Google
# the chosen load balancer or Traffic Director configuration. Refer to the
# documentation for the load balancer or for Traffic Director for more
# information.
# Must be set to GRPC when the backend service is referenced by a URL map that
# is bound to target gRPC proxy.
# Corresponds to the JSON property `protocol`
# @return [String]
attr_accessor :protocol
@ -3110,6 +3177,8 @@ module Google
# When the loadBalancingScheme is INTERNAL_SELF_MANAGED, or INTERNAL_MANAGED,
# possible values are NONE, CLIENT_IP, GENERATED_COOKIE, HEADER_FIELD, or
# HTTP_COOKIE.
# 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.
# Corresponds to the JSON property `sessionAffinity`
# @return [String]
attr_accessor :session_affinity
@ -3283,6 +3352,13 @@ module Google
class BackendServiceCdnPolicy
include Google::Apis::Core::Hashable
# Bypass the cache when the specified request headers are matched - e.g. Pragma
# or Authorization headers. Up to 5 headers can be specified. The cache is
# bypassed for all cdnPolicy.cacheMode settings.
# Corresponds to the JSON property `bypassCacheOnRequestHeaders`
# @return [Array<Google::Apis::ComputeBeta::BackendServiceCdnPolicyBypassCacheOnRequestHeader>]
attr_accessor :bypass_cache_on_request_headers
# Message containing what to include in the cache key for a request for Cloud
# CDN.
# Corresponds to the JSON property `cacheKeyPolicy`
@ -3349,6 +3425,18 @@ module Google
# @return [Array<Google::Apis::ComputeBeta::BackendServiceCdnPolicyNegativeCachingPolicy>]
attr_accessor :negative_caching_policy
# Serve existing content from the cache (if available) when revalidating content
# with the origin, or when an error is encountered when refreshing the cache.
# This setting defines the default "max-stale" duration for any cached responses
# that do not specify a max-stale directive. Stale responses that exceed the TTL
# configured here will not be served. The default limit (max-stale) is 86400s (1
# day), which will allow stale content to be served up to this limit beyond the
# max-age (or s-max-age) of a cached response. The maximum allowed value is
# 604800(1 week). Set this to zero (0) to disable serve-while-stale.
# Corresponds to the JSON property `serveWhileStale`
# @return [Fixnum]
attr_accessor :serve_while_stale
# Maximum number of seconds the response to a signed URL request will be
# considered fresh. After this time period, the response will be revalidated
# before being served. Defaults to 1hr (3600s). When serving responses to signed
@ -3371,6 +3459,7 @@ module Google
# Update properties of this object
def update!(**args)
@bypass_cache_on_request_headers = args[:bypass_cache_on_request_headers] if args.key?(:bypass_cache_on_request_headers)
@cache_key_policy = args[:cache_key_policy] if args.key?(:cache_key_policy)
@cache_mode = args[:cache_mode] if args.key?(:cache_mode)
@client_ttl = args[:client_ttl] if args.key?(:client_ttl)
@ -3378,11 +3467,34 @@ module Google
@max_ttl = args[:max_ttl] if args.key?(:max_ttl)
@negative_caching = args[:negative_caching] if args.key?(:negative_caching)
@negative_caching_policy = args[:negative_caching_policy] if args.key?(:negative_caching_policy)
@serve_while_stale = args[:serve_while_stale] if args.key?(:serve_while_stale)
@signed_url_cache_max_age_sec = args[:signed_url_cache_max_age_sec] if args.key?(:signed_url_cache_max_age_sec)
@signed_url_key_names = args[:signed_url_key_names] if args.key?(:signed_url_key_names)
end
end
# Bypass the cache when the specified request headers are present, e.g. Pragma
# or Authorization headers. Values are case insensitive. The presence of such a
# header overrides the cache_mode setting.
class BackendServiceCdnPolicyBypassCacheOnRequestHeader
include Google::Apis::Core::Hashable
# The header field name to match on when bypassing cache. Values are case-
# insensitive.
# Corresponds to the JSON property `headerName`
# @return [String]
attr_accessor :header_name
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@header_name = args[:header_name] if args.key?(:header_name)
end
end
# Specify CDN TTLs for response error codes.
class BackendServiceCdnPolicyNegativeCachingPolicy
include Google::Apis::Core::Hashable
@ -4965,7 +5077,7 @@ module Google
end
end
# Represents a customer-supplied encryption key
#
class CustomerEncryptionKey
include Google::Apis::Core::Hashable
@ -5022,7 +5134,7 @@ module Google
class CustomerEncryptionKeyProtectedDisk
include Google::Apis::Core::Hashable
# Represents a customer-supplied encryption key
# Decrypts data associated with the disk with a customer-supplied encryption key.
# Corresponds to the JSON property `diskEncryptionKey`
# @return [Google::Apis::ComputeBeta::CustomerEncryptionKey]
attr_accessor :disk_encryption_key
@ -5126,7 +5238,16 @@ module Google
# @return [String]
attr_accessor :description
# Represents a customer-supplied encryption key
# Encrypts the disk using a customer-supplied encryption key.
# After you encrypt a disk with a customer-supplied key, you must provide the
# same key if you use the disk later (e.g. to create a disk snapshot, to create
# a disk image, to create a machine image, or to attach the disk to a virtual
# machine).
# Customer-supplied encryption keys do not protect access to metadata of the
# disk.
# If you do not provide an encryption key when creating the disk, then the disk
# will be encrypted using an automatically generated key and you do not need to
# provide a key to use the disk later.
# Corresponds to the JSON property `diskEncryptionKey`
# @return [Google::Apis::ComputeBeta::CustomerEncryptionKey]
attr_accessor :disk_encryption_key
@ -5299,7 +5420,8 @@ module Google
# @return [String]
attr_accessor :source_image
# Represents a customer-supplied encryption key
# The customer-supplied encryption key of the source image. Required if the
# source image is protected by a customer-supplied encryption key.
# Corresponds to the JSON property `sourceImageEncryptionKey`
# @return [Google::Apis::ComputeBeta::CustomerEncryptionKey]
attr_accessor :source_image_encryption_key
@ -5324,7 +5446,8 @@ module Google
# @return [String]
attr_accessor :source_snapshot
# Represents a customer-supplied encryption key
# The customer-supplied encryption key of the source snapshot. Required if the
# source snapshot is protected by a customer-supplied encryption key.
# Corresponds to the JSON property `sourceSnapshotEncryptionKey`
# @return [Google::Apis::ComputeBeta::CustomerEncryptionKey]
attr_accessor :source_snapshot_encryption_key
@ -5338,6 +5461,14 @@ module Google
# @return [String]
attr_accessor :source_snapshot_id
# 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/.
# Corresponds to the JSON property `sourceStorageObject`
# @return [String]
attr_accessor :source_storage_object
# [Output Only] The status of disk creation. CREATING: Disk is provisioning.
# RESTORING: Source data is being copied into the disk. FAILED: Disk creation
# failed. READY: Disk is ready for use. DELETING: Disk is deleting.
@ -5407,6 +5538,7 @@ module Google
@source_snapshot = args[:source_snapshot] if args.key?(:source_snapshot)
@source_snapshot_encryption_key = args[:source_snapshot_encryption_key] if args.key?(:source_snapshot_encryption_key)
@source_snapshot_id = args[:source_snapshot_id] if args.key?(:source_snapshot_id)
@source_storage_object = args[:source_storage_object] if args.key?(:source_storage_object)
@status = args[:status] if args.key?(:status)
@storage_type = args[:storage_type] if args.key?(:storage_type)
@type = args[:type] if args.key?(:type)
@ -7383,6 +7515,8 @@ module Google
# IP address that you can use. For detailed information, refer to [IP address
# specifications](/load-balancing/docs/forwarding-rule-concepts#
# ip_address_specifications).
# Must be set to `0.0.0.0` when the target is targetGrpcProxy that has
# validateForProxyless field set to true.
# Corresponds to the JSON property `IPAddress`
# @return [String]
attr_accessor :ip_address
@ -7521,7 +7655,7 @@ module Google
# Opaque filter criteria used by Loadbalancer to restrict routing configuration
# to a limited set of xDS compliant clients. In their xDS requests to
# Loadbalancer, xDS clients present node metadata. If a match takes place, the
# Loadbalancer, xDS clients present node metadata. When there is a match, the
# relevant configuration is made available to those proxies. Otherwise, all the
# resources (e.g. TargetHttpProxy, UrlMap) referenced by the ForwardingRule will
# not be visible to those proxies.
@ -7529,7 +7663,8 @@ module Google
# MATCH_ANY, at least one of the filterLabels must match the corresponding label
# provided in the metadata. If its filterMatchCriteria is set to MATCH_ALL, then
# all of its filterLabels must match with corresponding labels provided in the
# metadata.
# metadata. If multiple metadataFilters are specified, all of them need to be
# satisfied in order to be considered a match.
# metadataFilters specified here will be applifed before those specified in the
# UrlMap that this ForwardingRule references.
# metadataFilters only applies to Loadbalancers that have their
@ -7615,6 +7750,12 @@ module Google
# @return [String]
attr_accessor :self_link
# Service Directory resources to register this forwarding rule with. Currently,
# only supports a single Service Directory resource.
# Corresponds to the JSON property `serviceDirectoryRegistrations`
# @return [Array<Google::Apis::ComputeBeta::ForwardingRuleServiceDirectoryRegistration>]
attr_accessor :service_directory_registrations
# An optional prefix to the service name for this Forwarding Rule. If specified,
# the prefix is the first label of the fully qualified service name.
# The label must be 1-63 characters long, and comply with RFC1035. Specifically,
@ -7683,6 +7824,7 @@ module Google
@ports = args[:ports] if args.key?(:ports)
@region = args[:region] if args.key?(:region)
@self_link = args[:self_link] if args.key?(:self_link)
@service_directory_registrations = args[:service_directory_registrations] if args.key?(:service_directory_registrations)
@service_label = args[:service_label] if args.key?(:service_label)
@service_name = args[:service_name] if args.key?(:service_name)
@subnetwork = args[:subnetwork] if args.key?(:subnetwork)
@ -7944,6 +8086,33 @@ module Google
end
end
# Describes the auto-registration of the Forwarding Rule to Service Directory.
# The region and project of the Service Directory resource generated from this
# registration will be the same as this Forwarding Rule.
class ForwardingRuleServiceDirectoryRegistration
include Google::Apis::Core::Hashable
# Service Directory namespace to register the forwarding rule under.
# Corresponds to the JSON property `namespace`
# @return [String]
attr_accessor :namespace
# Service Directory service to register the forwarding rule under.
# Corresponds to the JSON property `service`
# @return [String]
attr_accessor :service
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@namespace = args[:namespace] if args.key?(:namespace)
@service = args[:service] if args.key?(:service)
end
end
#
class ForwardingRulesScopedList
include Google::Apis::Core::Hashable
@ -9473,6 +9642,8 @@ module Google
# port numbers in the format host:port. * matches any string of ([a-z0-9-.]*).
# In that case, * must be the first character and must be followed in the
# pattern by either - or ..
# * based matching is not supported when the URL map is bound to target gRPC
# proxy that has validateForProxyless field set to true.
# Corresponds to the JSON property `hosts`
# @return [Array<String>]
attr_accessor :hosts
@ -10354,13 +10525,14 @@ module Google
# Opaque filter criteria used by Loadbalancer to restrict routing configuration
# to a limited set of xDS compliant clients. In their xDS requests to
# Loadbalancer, xDS clients present node metadata. If a match takes place, the
# Loadbalancer, xDS clients present node metadata. When there is a match, the
# relevant routing configuration is made available to those proxies.
# For each metadataFilter in this list, if its filterMatchCriteria is set to
# MATCH_ANY, at least one of the filterLabels must match the corresponding label
# provided in the metadata. If its filterMatchCriteria is set to MATCH_ALL, then
# all of its filterLabels must match with corresponding labels provided in the
# metadata.
# metadata. If multiple metadataFilters are specified, all of them need to be
# satisfied in order to be considered a match.
# metadataFilters specified here will be applied after those specified in
# ForwardingRule that refers to the UrlMap this HttpRouteRuleMatch belongs to.
# metadataFilters only applies to Loadbalancers that have their
@ -10687,7 +10859,14 @@ module Google
# @return [Fixnum]
attr_accessor :id
# Represents a customer-supplied encryption key
# Encrypts the image using a customer-supplied encryption key.
# After you encrypt an image with a customer-supplied key, you must provide the
# same key if you use the image later (e.g. to create a disk from the image).
# Customer-supplied encryption keys do not protect access to metadata of the
# disk.
# If you do not provide an encryption key when creating the image, then the disk
# will be encrypted using an automatically generated key and you do not need to
# provide a key to use the image later.
# Corresponds to the JSON property `imageEncryptionKey`
# @return [Google::Apis::ComputeBeta::CustomerEncryptionKey]
attr_accessor :image_encryption_key
@ -10762,7 +10941,8 @@ module Google
# @return [String]
attr_accessor :source_disk
# Represents a customer-supplied encryption key
# The customer-supplied encryption key of the source disk. Required if the
# source disk is protected by a customer-supplied encryption key.
# Corresponds to the JSON property `sourceDiskEncryptionKey`
# @return [Google::Apis::ComputeBeta::CustomerEncryptionKey]
attr_accessor :source_disk_encryption_key
@ -10785,7 +10965,8 @@ module Google
# @return [String]
attr_accessor :source_image
# Represents a customer-supplied encryption key
# The customer-supplied encryption key of the source image. Required if the
# source image is protected by a customer-supplied encryption key.
# Corresponds to the JSON property `sourceImageEncryptionKey`
# @return [Google::Apis::ComputeBeta::CustomerEncryptionKey]
attr_accessor :source_image_encryption_key
@ -10809,7 +10990,8 @@ module Google
# @return [String]
attr_accessor :source_snapshot
# Represents a customer-supplied encryption key
# The customer-supplied encryption key of the source snapshot. Required if the
# source snapshot is protected by a customer-supplied encryption key.
# Corresponds to the JSON property `sourceSnapshotEncryptionKey`
# @return [Google::Apis::ComputeBeta::CustomerEncryptionKey]
attr_accessor :source_snapshot_encryption_key
@ -11291,7 +11473,7 @@ module Google
# @return [String]
attr_accessor :source_machine_image
# Represents a customer-supplied encryption key
# Source GMI encryption key when creating an instance from GMI.
# Corresponds to the JSON property `sourceMachineImageEncryptionKey`
# @return [Google::Apis::ComputeBeta::CustomerEncryptionKey]
attr_accessor :source_machine_image_encryption_key
@ -14424,7 +14606,11 @@ module Google
# @return [Array<Google::Apis::ComputeBeta::CustomerEncryptionKeyProtectedDisk>]
attr_accessor :disks
# Represents a customer-supplied encryption key
# Decrypts data associated with an instance that is protected with a customer-
# supplied encryption key.
# If the instance you are starting is protected with a customer-supplied
# encryption key, the correct key must be provided otherwise the instance resume
# will not succeed.
# Corresponds to the JSON property `instanceEncryptionKey`
# @return [Google::Apis::ComputeBeta::CustomerEncryptionKey]
attr_accessor :instance_encryption_key
@ -16824,7 +17010,16 @@ module Google
# @return [String]
attr_accessor :kind
# Represents a customer-supplied encryption key
# Encrypts the machine image using a customer-supplied encryption key.
# After you encrypt a machine image using a customer-supplied key, you must
# provide the same key if you use the machine image later. For example, you must
# provide the encryption key when you create an instance from the encrypted
# machine image in a future request.
# Customer-supplied encryption keys do not protect access to metadata of the
# machine image.
# If you do not provide an encryption key when creating the machine image, then
# the machine image will be encrypted using an automatically generated key and
# you do not need to provide a key to use the machine image later.
# Corresponds to the JSON property `machineImageEncryptionKey`
# @return [Google::Apis::ComputeBeta::CustomerEncryptionKey]
attr_accessor :machine_image_encryption_key
@ -19428,7 +19623,9 @@ module Google
attr_accessor :kind
# Specifies how to handle instances when a node in the group undergoes
# maintenance.
# maintenance. Set to one of: DEFAULT, RESTART_IN_PLACE, or
# MIGRATE_WITHIN_NODE_GROUP. The default value is DEFAULT. For more information,
# see Maintenance policies.
# Corresponds to the JSON property `maintenancePolicy`
# @return [String]
attr_accessor :maintenance_policy
@ -19624,7 +19821,8 @@ module Google
# @return [Fixnum]
attr_accessor :min_nodes
# The autoscaling mode.
# The autoscaling mode. Set to one of: ON, OFF, or ONLY_SCALE_OUT. For more
# information, see Autoscaler modes.
# Corresponds to the JSON property `mode`
# @return [String]
attr_accessor :mode
@ -22673,6 +22871,8 @@ module Google
# Only one of defaultRouteAction or defaultUrlRedirect must be set.
# UrlMaps for external HTTP(S) load balancers support only the urlRewrite action
# within a pathMatcher's defaultRouteAction.
# 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.
# Corresponds to the JSON property `defaultRouteAction`
# @return [Google::Apis::ComputeBeta::HttpRouteAction]
attr_accessor :default_route_action
@ -22695,6 +22895,8 @@ module Google
# the specified resource default_service:
# - compute.backendBuckets.use
# - compute.backendServices.use
# pathMatchers[].defaultService is the only option available when the URL map is
# bound to target gRPC proxy that has validateForProxyless field set to true.
# Corresponds to the JSON property `defaultService`
# @return [String]
attr_accessor :default_service
@ -22728,6 +22930,8 @@ module Google
# For example: a pathRule with a path /a/b/c/* will match before /a/b/*
# irrespective of the order in which those paths appear in this list.
# Within a given pathMatcher, only one of pathRules or routeRules must be set.
# 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.
# Corresponds to the JSON property `pathRules`
# @return [Array<Google::Apis::ComputeBeta::PathRule>]
attr_accessor :path_rules
@ -22736,6 +22940,8 @@ module Google
# route matching and routing actions are desired. routeRules are evaluated in
# order of priority, from the lowest to highest number.
# Within a given pathMatcher, you can set only one of pathRules or routeRules.
# 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.
# Corresponds to the JSON property `routeRules`
# @return [Array<Google::Apis::ComputeBeta::HttpRouteRule>]
attr_accessor :route_rules
@ -23130,7 +23336,8 @@ module Google
attr_accessor :usage_export_location
# [Output Only] The role this project has in a shared VPC configuration.
# Currently only HOST projects are differentiated.
# Currently, only projects with the host role, which is specified by the value
# HOST, are differentiated.
# Corresponds to the JSON property `xpnProjectStatus`
# @return [String]
attr_accessor :xpn_project_status
@ -24054,7 +24261,7 @@ module Google
end
end
# InstanceGroupManagers.applyUpdatesToInstances
# RegionInstanceGroupManagers.applyUpdatesToInstances
class RegionInstanceGroupManagersApplyUpdatesRequest
include Google::Apis::Core::Hashable
@ -24812,6 +25019,10 @@ module Google
# Traffic Director.
# * urlMaps are used by external HTTP(S) load balancers and Traffic Director. *
# regionUrlMaps are used by internal HTTP(S) load balancers.
# For a list of supported URL map features by load balancer type, see the Load
# balancing features: Routing and traffic management table.
# For a list of supported URL map features for Traffic Director, see the
# Traffic Director features: Routing and traffic management table.
# This resource defines mappings from host names and URL paths to either a
# backend service or a backend bucket.
# To use the global urlMaps resource, the backend service must have a
@ -27749,7 +27960,7 @@ module Google
# @return [String]
attr_accessor :device_name
# Represents a customer-supplied encryption key
# The encryption key for the disk.
# Corresponds to the JSON property `diskEncryptionKey`
# @return [Google::Apis::ComputeBeta::CustomerEncryptionKey]
attr_accessor :disk_encryption_key
@ -28554,6 +28765,7 @@ module Google
# clientTlsPolicy only applies to a global BackendService with the
# loadBalancingScheme set to INTERNAL_SELF_MANAGED.
# If left blank, communications are not encrypted.
# Note: This field currently has no impact.
# Corresponds to the JSON property `clientTlsPolicy`
# @return [String]
attr_accessor :client_tls_policy
@ -28570,6 +28782,7 @@ module Google
# Only applies to a global BackendService with loadBalancingScheme set to
# INTERNAL_SELF_MANAGED. Only applies when BackendService has an attached
# clientTlsPolicy with clientCertificate (mTLS mode).
# Note: This field currently has no impact.
# Corresponds to the JSON property `subjectAltNames`
# @return [Array<String>]
attr_accessor :subject_alt_names
@ -29037,7 +29250,16 @@ module Google
# @return [String]
attr_accessor :self_link
# Represents a customer-supplied encryption key
# Encrypts the snapshot using a customer-supplied encryption key.
# After you encrypt a snapshot using a customer-supplied key, you must provide
# the same key if you use the snapshot later. For example, you must provide the
# encryption key when you create a disk from the encrypted snapshot in a future
# request.
# Customer-supplied encryption keys do not protect access to metadata of the
# snapshot.
# If you do not provide an encryption key when creating the snapshot, then the
# snapshot will be encrypted using an automatically generated key and you do not
# need to provide a key to use the snapshot later.
# Corresponds to the JSON property `snapshotEncryptionKey`
# @return [Google::Apis::ComputeBeta::CustomerEncryptionKey]
attr_accessor :snapshot_encryption_key
@ -29047,7 +29269,8 @@ module Google
# @return [String]
attr_accessor :source_disk
# Represents a customer-supplied encryption key
# The customer-supplied encryption key of the source disk. Required if the
# source disk is protected by a customer-supplied encryption key.
# Corresponds to the JSON property `sourceDiskEncryptionKey`
# @return [Google::Apis::ComputeBeta::CustomerEncryptionKey]
attr_accessor :source_disk_encryption_key
@ -29237,7 +29460,8 @@ module Google
class SourceDiskEncryptionKey
include Google::Apis::Core::Hashable
# Represents a customer-supplied encryption key
# The customer-supplied encryption key of the source disk. Required if the
# source disk is protected by a customer-supplied encryption key.
# Corresponds to the JSON property `diskEncryptionKey`
# @return [Google::Apis::ComputeBeta::CustomerEncryptionKey]
attr_accessor :disk_encryption_key
@ -31860,6 +32084,7 @@ module Google
# authorizationPolicy only applies to a global TargetHttpsProxy attached to
# globalForwardingRules with the loadBalancingScheme set to
# INTERNAL_SELF_MANAGED.
# Note: This field currently has no impact.
# Corresponds to the JSON property `authorizationPolicy`
# @return [String]
attr_accessor :authorization_policy
@ -31935,6 +32160,7 @@ module Google
# globalForwardingRules with the loadBalancingScheme set to
# INTERNAL_SELF_MANAGED.
# If left blank, communications are not encrypted.
# Note: This field currently has no impact.
# Corresponds to the JSON property `serverTlsPolicy`
# @return [String]
attr_accessor :server_tls_policy
@ -32283,6 +32509,13 @@ module Google
# @return [String]
attr_accessor :nat_policy
# The URL of the network this target instance uses to forward traffic. If not
# specified, the traffic will be forwarded to the network that the default
# network interface belongs to.
# Corresponds to the JSON property `network`
# @return [String]
attr_accessor :network
# [Output Only] Server-defined URL for the resource.
# Corresponds to the JSON property `selfLink`
# @return [String]
@ -32308,6 +32541,7 @@ module Google
@kind = args[:kind] if args.key?(:kind)
@name = args[:name] if args.key?(:name)
@nat_policy = args[:nat_policy] if args.key?(:nat_policy)
@network = args[:network] if args.key?(:network)
@self_link = args[:self_link] if args.key?(:self_link)
@zone = args[:zone] if args.key?(:zone)
end
@ -34248,6 +34482,10 @@ module Google
# Traffic Director.
# * urlMaps are used by external HTTP(S) load balancers and Traffic Director. *
# regionUrlMaps are used by internal HTTP(S) load balancers.
# For a list of supported URL map features by load balancer type, see the Load
# balancing features: Routing and traffic management table.
# For a list of supported URL map features for Traffic Director, see the
# Traffic Director features: Routing and traffic management table.
# This resource defines mappings from host names and URL paths to either a
# backend service or a backend bucket.
# To use the global urlMaps resource, the backend service must have a
@ -34271,6 +34509,9 @@ module Google
# Only one of defaultRouteAction or defaultUrlRedirect must be set.
# UrlMaps for external HTTP(S) load balancers support only the urlRewrite action
# within defaultRouteAction.
# defaultRouteAction has no effect when the backend service is referenced by a
# URL map that is bound to target gRPC proxy that has validateForProxyless field
# set to true.
# Corresponds to the JSON property `defaultRouteAction`
# @return [Google::Apis::ComputeBeta::HttpRouteAction]
attr_accessor :default_route_action
@ -34284,6 +34525,9 @@ module Google
# specified.
# Only one of defaultService, defaultUrlRedirect or defaultRouteAction.
# weightedBackendService must be set.
# defaultService has no effect when the backend service is referenced by a URL
# map that is bound to target gRPC proxy that has validateForProxyless field set
# to true.
# Corresponds to the JSON property `defaultService`
# @return [String]
attr_accessor :default_service
@ -34362,6 +34606,8 @@ module Google
# The list of expected URL mapping tests. Request to update this UrlMap will
# succeed only if all of the test cases pass. You can specify a maximum of 100
# tests per UrlMap.
# 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.
# Corresponds to the JSON property `tests`
# @return [Array<Google::Apis::ComputeBeta::UrlMapTest>]
attr_accessor :tests
@ -34824,6 +35070,10 @@ module Google
# Traffic Director.
# * urlMaps are used by external HTTP(S) load balancers and Traffic Director. *
# regionUrlMaps are used by internal HTTP(S) load balancers.
# For a list of supported URL map features by load balancer type, see the Load
# balancing features: Routing and traffic management table.
# For a list of supported URL map features for Traffic Director, see the
# Traffic Director features: Routing and traffic management table.
# This resource defines mappings from host names and URL paths to either a
# backend service or a backend bucket.
# To use the global urlMaps resource, the backend service must have a

View File

@ -328,6 +328,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class BackendBucketCdnPolicyBypassCacheOnRequestHeader
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class BackendBucketCdnPolicyNegativeCachingPolicy
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -382,6 +388,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class BackendServiceCdnPolicyBypassCacheOnRequestHeader
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class BackendServiceCdnPolicyNegativeCachingPolicy
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -946,6 +958,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class ForwardingRuleServiceDirectoryRegistration
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ForwardingRulesScopedList
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -5570,6 +5588,8 @@ module Google
class BackendBucketCdnPolicy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :bypass_cache_on_request_headers, as: 'bypassCacheOnRequestHeaders', class: Google::Apis::ComputeBeta::BackendBucketCdnPolicyBypassCacheOnRequestHeader, decorator: Google::Apis::ComputeBeta::BackendBucketCdnPolicyBypassCacheOnRequestHeader::Representation
property :cache_mode, as: 'cacheMode'
property :client_ttl, as: 'clientTtl'
property :default_ttl, as: 'defaultTtl'
@ -5577,11 +5597,19 @@ module Google
property :negative_caching, as: 'negativeCaching'
collection :negative_caching_policy, as: 'negativeCachingPolicy', class: Google::Apis::ComputeBeta::BackendBucketCdnPolicyNegativeCachingPolicy, decorator: Google::Apis::ComputeBeta::BackendBucketCdnPolicyNegativeCachingPolicy::Representation
property :serve_while_stale, as: 'serveWhileStale'
property :signed_url_cache_max_age_sec, :numeric_string => true, as: 'signedUrlCacheMaxAgeSec'
collection :signed_url_key_names, as: 'signedUrlKeyNames'
end
end
class BackendBucketCdnPolicyBypassCacheOnRequestHeader
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :header_name, as: 'headerName'
end
end
class BackendBucketCdnPolicyNegativeCachingPolicy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -5705,6 +5733,8 @@ module Google
class BackendServiceCdnPolicy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :bypass_cache_on_request_headers, as: 'bypassCacheOnRequestHeaders', class: Google::Apis::ComputeBeta::BackendServiceCdnPolicyBypassCacheOnRequestHeader, decorator: Google::Apis::ComputeBeta::BackendServiceCdnPolicyBypassCacheOnRequestHeader::Representation
property :cache_key_policy, as: 'cacheKeyPolicy', class: Google::Apis::ComputeBeta::CacheKeyPolicy, decorator: Google::Apis::ComputeBeta::CacheKeyPolicy::Representation
property :cache_mode, as: 'cacheMode'
@ -5714,11 +5744,19 @@ module Google
property :negative_caching, as: 'negativeCaching'
collection :negative_caching_policy, as: 'negativeCachingPolicy', class: Google::Apis::ComputeBeta::BackendServiceCdnPolicyNegativeCachingPolicy, decorator: Google::Apis::ComputeBeta::BackendServiceCdnPolicyNegativeCachingPolicy::Representation
property :serve_while_stale, as: 'serveWhileStale'
property :signed_url_cache_max_age_sec, :numeric_string => true, as: 'signedUrlCacheMaxAgeSec'
collection :signed_url_key_names, as: 'signedUrlKeyNames'
end
end
class BackendServiceCdnPolicyBypassCacheOnRequestHeader
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :header_name, as: 'headerName'
end
end
class BackendServiceCdnPolicyNegativeCachingPolicy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -6171,6 +6209,7 @@ module Google
property :source_snapshot_encryption_key, as: 'sourceSnapshotEncryptionKey', class: Google::Apis::ComputeBeta::CustomerEncryptionKey, decorator: Google::Apis::ComputeBeta::CustomerEncryptionKey::Representation
property :source_snapshot_id, as: 'sourceSnapshotId'
property :source_storage_object, as: 'sourceStorageObject'
property :status, as: 'status'
property :storage_type, as: 'storageType'
property :type, as: 'type'
@ -6690,6 +6729,8 @@ module Google
collection :ports, as: 'ports'
property :region, as: 'region'
property :self_link, as: 'selfLink'
collection :service_directory_registrations, as: 'serviceDirectoryRegistrations', class: Google::Apis::ComputeBeta::ForwardingRuleServiceDirectoryRegistration, decorator: Google::Apis::ComputeBeta::ForwardingRuleServiceDirectoryRegistration::Representation
property :service_label, as: 'serviceLabel'
property :service_name, as: 'serviceName'
property :subnetwork, as: 'subnetwork'
@ -6768,6 +6809,14 @@ module Google
end
end
class ForwardingRuleServiceDirectoryRegistration
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :namespace, as: 'namespace'
property :service, as: 'service'
end
end
class ForwardingRulesScopedList
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -12875,6 +12924,7 @@ module Google
property :kind, as: 'kind'
property :name, as: 'name'
property :nat_policy, as: 'natPolicy'
property :network, as: 'network'
property :self_link, as: 'selfLink'
property :zone, as: 'zone'
end

View File

@ -16767,7 +16767,9 @@ module Google
# request.
# @param [Google::Apis::ComputeBeta::SecurityPolicy] security_policy_object
# @param [String] parent_id
# Parent ID for this request.
# Parent ID for this request. The ID can be either be "folders/[FOLDER_ID]" if
# the parent is a folder or "organizations/[ORGANIZATION_ID]" if the parent is
# an organization.
# @param [String] request_id
# An optional request ID to identify requests. Specify a unique request ID so
# that if you must retry your request, the server will know to ignore the

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/compute/docs/reference/latest/
module ComputeV1
VERSION = 'V1'
REVISION = '20200727'
REVISION = '20200811'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -1178,7 +1178,20 @@ module Google
# @return [String]
attr_accessor :device_name
# Represents a customer-supplied encryption key
# Encrypts or decrypts a disk using a customer-supplied encryption key.
# If you are creating a new disk, this field encrypts the new disk using an
# encryption key that you provide. If you are attaching an existing disk that is
# already encrypted, this field decrypts the disk using the customer-supplied
# encryption key.
# If you encrypt a disk using a customer-supplied key, you must provide the same
# key again when you attempt to use this resource at a later time. For example,
# you must provide the key when you create a snapshot or an image from the disk
# or when you attach the disk to a virtual machine instance.
# If you do not provide an encryption key, then the disk will be encrypted using
# an automatically generated key and you do not need to provide a key to use the
# disk later.
# Instance templates do not store customer-supplied encryption keys, so you
# cannot use your own keys to encrypt disks in a managed instance group.
# Corresponds to the JSON property `diskEncryptionKey`
# @return [Google::Apis::ComputeV1::CustomerEncryptionKey]
attr_accessor :disk_encryption_key
@ -1370,7 +1383,11 @@ module Google
# @return [String]
attr_accessor :source_image
# Represents a customer-supplied encryption key
# The customer-supplied encryption key of the source image. Required if the
# source image is protected by a customer-supplied encryption key.
# Instance templates do not store customer-supplied encryption keys, so you
# cannot create disks for instances in a managed instance group if the source
# images are encrypted with your own keys.
# Corresponds to the JSON property `sourceImageEncryptionKey`
# @return [Google::Apis::ComputeV1::CustomerEncryptionKey]
attr_accessor :source_image_encryption_key
@ -1386,7 +1403,7 @@ module Google
# @return [String]
attr_accessor :source_snapshot
# Represents a customer-supplied encryption key
# The customer-supplied encryption key of the source snapshot.
# Corresponds to the JSON property `sourceSnapshotEncryptionKey`
# @return [Google::Apis::ComputeV1::CustomerEncryptionKey]
attr_accessor :source_snapshot_encryption_key
@ -2648,6 +2665,8 @@ module Google
# If set to 0, the cookie is non-persistent and lasts only until the end of the
# browser session (or equivalent). The maximum allowed value is one day (86,400).
# 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.
# Corresponds to the JSON property `affinityCookieTtlSec`
# @return [Fixnum]
attr_accessor :affinity_cookie_ttl_sec
@ -2784,8 +2803,11 @@ module Google
# HTTP2, and load_balancing_scheme set to INTERNAL_MANAGED.
# - A global backend service with the load_balancing_scheme set to
# INTERNAL_SELF_MANAGED.
# If sessionAffinity is not NONE, and this field is not set to >MAGLEV or
# If sessionAffinity is not NONE, and this field is not set to MAGLEV or
# RING_HASH, session affinity settings will not take effect.
# Only the default ROUND_ROBIN policy is 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.
# Corresponds to the JSON property `localityLbPolicy`
# @return [String]
attr_accessor :locality_lb_policy
@ -2842,6 +2864,8 @@ module Google
# the chosen load balancer or Traffic Director configuration. Refer to the
# documentation for the load balancer or for Traffic Director for more
# information.
# Must be set to GRPC when the backend service is referenced by a URL map that
# is bound to target gRPC proxy.
# Corresponds to the JSON property `protocol`
# @return [String]
attr_accessor :protocol
@ -2875,6 +2899,8 @@ module Google
# When the loadBalancingScheme is INTERNAL_SELF_MANAGED, or INTERNAL_MANAGED,
# possible values are NONE, CLIENT_IP, GENERATED_COOKIE, HEADER_FIELD, or
# HTTP_COOKIE.
# 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.
# Corresponds to the JSON property `sessionAffinity`
# @return [String]
attr_accessor :session_affinity
@ -4344,7 +4370,7 @@ module Google
end
end
# Represents a customer-supplied encryption key
#
class CustomerEncryptionKey
include Google::Apis::Core::Hashable
@ -4388,7 +4414,7 @@ module Google
class CustomerEncryptionKeyProtectedDisk
include Google::Apis::Core::Hashable
# Represents a customer-supplied encryption key
# Decrypts data associated with the disk with a customer-supplied encryption key.
# Corresponds to the JSON property `diskEncryptionKey`
# @return [Google::Apis::ComputeV1::CustomerEncryptionKey]
attr_accessor :disk_encryption_key
@ -4492,7 +4518,16 @@ module Google
# @return [String]
attr_accessor :description
# Represents a customer-supplied encryption key
# Encrypts the disk using a customer-supplied encryption key.
# After you encrypt a disk with a customer-supplied key, you must provide the
# same key if you use the disk later (e.g. to create a disk snapshot, to create
# a disk image, to create a machine image, or to attach the disk to a virtual
# machine).
# Customer-supplied encryption keys do not protect access to metadata of the
# disk.
# If you do not provide an encryption key when creating the disk, then the disk
# will be encrypted using an automatically generated key and you do not need to
# provide a key to use the disk later.
# Corresponds to the JSON property `diskEncryptionKey`
# @return [Google::Apis::ComputeV1::CustomerEncryptionKey]
attr_accessor :disk_encryption_key
@ -4645,7 +4680,8 @@ module Google
# @return [String]
attr_accessor :source_image
# Represents a customer-supplied encryption key
# The customer-supplied encryption key of the source image. Required if the
# source image is protected by a customer-supplied encryption key.
# Corresponds to the JSON property `sourceImageEncryptionKey`
# @return [Google::Apis::ComputeV1::CustomerEncryptionKey]
attr_accessor :source_image_encryption_key
@ -4670,7 +4706,8 @@ module Google
# @return [String]
attr_accessor :source_snapshot
# Represents a customer-supplied encryption key
# The customer-supplied encryption key of the source snapshot. Required if the
# source snapshot is protected by a customer-supplied encryption key.
# Corresponds to the JSON property `sourceSnapshotEncryptionKey`
# @return [Google::Apis::ComputeV1::CustomerEncryptionKey]
attr_accessor :source_snapshot_encryption_key
@ -6711,6 +6748,8 @@ module Google
# IP address that you can use. For detailed information, refer to [IP address
# specifications](/load-balancing/docs/forwarding-rule-concepts#
# ip_address_specifications).
# Must be set to `0.0.0.0` when the target is targetGrpcProxy that has
# validateForProxyless field set to true.
# Corresponds to the JSON property `IPAddress`
# @return [String]
attr_accessor :ip_address
@ -6829,7 +6868,7 @@ module Google
# Opaque filter criteria used by Loadbalancer to restrict routing configuration
# to a limited set of xDS compliant clients. In their xDS requests to
# Loadbalancer, xDS clients present node metadata. If a match takes place, the
# Loadbalancer, xDS clients present node metadata. When there is a match, the
# relevant configuration is made available to those proxies. Otherwise, all the
# resources (e.g. TargetHttpProxy, UrlMap) referenced by the ForwardingRule will
# not be visible to those proxies.
@ -6837,7 +6876,8 @@ module Google
# MATCH_ANY, at least one of the filterLabels must match the corresponding label
# provided in the metadata. If its filterMatchCriteria is set to MATCH_ALL, then
# all of its filterLabels must match with corresponding labels provided in the
# metadata.
# metadata. If multiple metadataFilters are specified, all of them need to be
# satisfied in order to be considered a match.
# metadataFilters specified here will be applifed before those specified in the
# UrlMap that this ForwardingRule references.
# metadataFilters only applies to Loadbalancers that have their
@ -8737,6 +8777,8 @@ module Google
# port numbers in the format host:port. * matches any string of ([a-z0-9-.]*).
# In that case, * must be the first character and must be followed in the
# pattern by either - or ..
# * based matching is not supported when the URL map is bound to target gRPC
# proxy that has validateForProxyless field set to true.
# Corresponds to the JSON property `hosts`
# @return [Array<String>]
attr_accessor :hosts
@ -9618,13 +9660,14 @@ module Google
# Opaque filter criteria used by Loadbalancer to restrict routing configuration
# to a limited set of xDS compliant clients. In their xDS requests to
# Loadbalancer, xDS clients present node metadata. If a match takes place, the
# Loadbalancer, xDS clients present node metadata. When there is a match, the
# relevant routing configuration is made available to those proxies.
# For each metadataFilter in this list, if its filterMatchCriteria is set to
# MATCH_ANY, at least one of the filterLabels must match the corresponding label
# provided in the metadata. If its filterMatchCriteria is set to MATCH_ALL, then
# all of its filterLabels must match with corresponding labels provided in the
# metadata.
# metadata. If multiple metadataFilters are specified, all of them need to be
# satisfied in order to be considered a match.
# metadataFilters specified here will be applied after those specified in
# ForwardingRule that refers to the UrlMap this HttpRouteRuleMatch belongs to.
# metadataFilters only applies to Loadbalancers that have their
@ -9951,7 +9994,14 @@ module Google
# @return [Fixnum]
attr_accessor :id
# Represents a customer-supplied encryption key
# Encrypts the image using a customer-supplied encryption key.
# After you encrypt an image with a customer-supplied key, you must provide the
# same key if you use the image later (e.g. to create a disk from the image).
# Customer-supplied encryption keys do not protect access to metadata of the
# disk.
# If you do not provide an encryption key when creating the image, then the disk
# will be encrypted using an automatically generated key and you do not need to
# provide a key to use the image later.
# Corresponds to the JSON property `imageEncryptionKey`
# @return [Google::Apis::ComputeV1::CustomerEncryptionKey]
attr_accessor :image_encryption_key
@ -10026,7 +10076,8 @@ module Google
# @return [String]
attr_accessor :source_disk
# Represents a customer-supplied encryption key
# The customer-supplied encryption key of the source disk. Required if the
# source disk is protected by a customer-supplied encryption key.
# Corresponds to the JSON property `sourceDiskEncryptionKey`
# @return [Google::Apis::ComputeV1::CustomerEncryptionKey]
attr_accessor :source_disk_encryption_key
@ -10049,7 +10100,8 @@ module Google
# @return [String]
attr_accessor :source_image
# Represents a customer-supplied encryption key
# The customer-supplied encryption key of the source image. Required if the
# source image is protected by a customer-supplied encryption key.
# Corresponds to the JSON property `sourceImageEncryptionKey`
# @return [Google::Apis::ComputeV1::CustomerEncryptionKey]
attr_accessor :source_image_encryption_key
@ -10073,7 +10125,8 @@ module Google
# @return [String]
attr_accessor :source_snapshot
# Represents a customer-supplied encryption key
# The customer-supplied encryption key of the source snapshot. Required if the
# source snapshot is protected by a customer-supplied encryption key.
# Corresponds to the JSON property `sourceSnapshotEncryptionKey`
# @return [Google::Apis::ComputeV1::CustomerEncryptionKey]
attr_accessor :source_snapshot_encryption_key
@ -18013,7 +18066,9 @@ module Google
attr_accessor :kind
# Specifies how to handle instances when a node in the group undergoes
# maintenance.
# maintenance. Set to one of: DEFAULT, RESTART_IN_PLACE, or
# MIGRATE_WITHIN_NODE_GROUP. The default value is DEFAULT. For more information,
# see Maintenance policies.
# Corresponds to the JSON property `maintenancePolicy`
# @return [String]
attr_accessor :maintenance_policy
@ -18209,7 +18264,8 @@ module Google
# @return [Fixnum]
attr_accessor :min_nodes
# The autoscaling mode.
# The autoscaling mode. Set to one of: ON, OFF, or ONLY_SCALE_OUT. For more
# information, see Autoscaler modes.
# Corresponds to the JSON property `mode`
# @return [String]
attr_accessor :mode
@ -21182,6 +21238,8 @@ module Google
# Only one of defaultRouteAction or defaultUrlRedirect must be set.
# UrlMaps for external HTTP(S) load balancers support only the urlRewrite action
# within a pathMatcher's defaultRouteAction.
# 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.
# Corresponds to the JSON property `defaultRouteAction`
# @return [Google::Apis::ComputeV1::HttpRouteAction]
attr_accessor :default_route_action
@ -21204,6 +21262,8 @@ module Google
# the specified resource default_service:
# - compute.backendBuckets.use
# - compute.backendServices.use
# pathMatchers[].defaultService is the only option available when the URL map is
# bound to target gRPC proxy that has validateForProxyless field set to true.
# Corresponds to the JSON property `defaultService`
# @return [String]
attr_accessor :default_service
@ -21237,6 +21297,8 @@ module Google
# For example: a pathRule with a path /a/b/c/* will match before /a/b/*
# irrespective of the order in which those paths appear in this list.
# Within a given pathMatcher, only one of pathRules or routeRules must be set.
# 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.
# Corresponds to the JSON property `pathRules`
# @return [Array<Google::Apis::ComputeV1::PathRule>]
attr_accessor :path_rules
@ -21245,6 +21307,8 @@ module Google
# route matching and routing actions are desired. routeRules are evaluated in
# order of priority, from the lowest to highest number.
# Within a given pathMatcher, you can set only one of pathRules or routeRules.
# 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.
# Corresponds to the JSON property `routeRules`
# @return [Array<Google::Apis::ComputeV1::HttpRouteRule>]
attr_accessor :route_rules
@ -21639,7 +21703,8 @@ module Google
attr_accessor :usage_export_location
# [Output Only] The role this project has in a shared VPC configuration.
# Currently only HOST projects are differentiated.
# Currently, only projects with the host role, which is specified by the value
# HOST, are differentiated.
# Corresponds to the JSON property `xpnProjectStatus`
# @return [String]
attr_accessor :xpn_project_status
@ -22544,7 +22609,7 @@ module Google
end
end
# InstanceGroupManagers.applyUpdatesToInstances
# RegionInstanceGroupManagers.applyUpdatesToInstances
class RegionInstanceGroupManagersApplyUpdatesRequest
include Google::Apis::Core::Hashable
@ -23275,6 +23340,10 @@ module Google
# Traffic Director.
# * urlMaps are used by external HTTP(S) load balancers and Traffic Director. *
# regionUrlMaps are used by internal HTTP(S) load balancers.
# For a list of supported URL map features by load balancer type, see the Load
# balancing features: Routing and traffic management table.
# For a list of supported URL map features for Traffic Director, see the
# Traffic Director features: Routing and traffic management table.
# This resource defines mappings from host names and URL paths to either a
# backend service or a backend bucket.
# To use the global urlMaps resource, the backend service must have a
@ -26171,6 +26240,32 @@ module Google
end
end
# An instance's screenshot.
class Screenshot
include Google::Apis::Core::Hashable
# [Output Only] The Base64-encoded screenshot data.
# Corresponds to the JSON property `contents`
# @return [String]
attr_accessor :contents
# [Output Only] Type of the resource. Always compute#screenshot for the
# screenshots.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@contents = args[:contents] if args.key?(:contents)
@kind = args[:kind] if args.key?(:kind)
end
end
#
class SecurityPoliciesListPreconfiguredExpressionSetsResponse
include Google::Apis::Core::Hashable
@ -26889,7 +26984,16 @@ module Google
# @return [String]
attr_accessor :self_link
# Represents a customer-supplied encryption key
# Encrypts the snapshot using a customer-supplied encryption key.
# After you encrypt a snapshot using a customer-supplied key, you must provide
# the same key if you use the snapshot later. For example, you must provide the
# encryption key when you create a disk from the encrypted snapshot in a future
# request.
# Customer-supplied encryption keys do not protect access to metadata of the
# snapshot.
# If you do not provide an encryption key when creating the snapshot, then the
# snapshot will be encrypted using an automatically generated key and you do not
# need to provide a key to use the snapshot later.
# Corresponds to the JSON property `snapshotEncryptionKey`
# @return [Google::Apis::ComputeV1::CustomerEncryptionKey]
attr_accessor :snapshot_encryption_key
@ -26899,7 +27003,8 @@ module Google
# @return [String]
attr_accessor :source_disk
# Represents a customer-supplied encryption key
# The customer-supplied encryption key of the source disk. Required if the
# source disk is protected by a customer-supplied encryption key.
# Corresponds to the JSON property `sourceDiskEncryptionKey`
# @return [Google::Apis::ComputeV1::CustomerEncryptionKey]
attr_accessor :source_disk_encryption_key
@ -31799,6 +31904,10 @@ module Google
# Traffic Director.
# * urlMaps are used by external HTTP(S) load balancers and Traffic Director. *
# regionUrlMaps are used by internal HTTP(S) load balancers.
# For a list of supported URL map features by load balancer type, see the Load
# balancing features: Routing and traffic management table.
# For a list of supported URL map features for Traffic Director, see the
# Traffic Director features: Routing and traffic management table.
# This resource defines mappings from host names and URL paths to either a
# backend service or a backend bucket.
# To use the global urlMaps resource, the backend service must have a
@ -31822,6 +31931,9 @@ module Google
# Only one of defaultRouteAction or defaultUrlRedirect must be set.
# UrlMaps for external HTTP(S) load balancers support only the urlRewrite action
# within defaultRouteAction.
# defaultRouteAction has no effect when the backend service is referenced by a
# URL map that is bound to target gRPC proxy that has validateForProxyless field
# set to true.
# Corresponds to the JSON property `defaultRouteAction`
# @return [Google::Apis::ComputeV1::HttpRouteAction]
attr_accessor :default_route_action
@ -31835,6 +31947,9 @@ module Google
# specified.
# Only one of defaultService, defaultUrlRedirect or defaultRouteAction.
# weightedBackendService must be set.
# defaultService has no effect when the backend service is referenced by a URL
# map that is bound to target gRPC proxy that has validateForProxyless field set
# to true.
# Corresponds to the JSON property `defaultService`
# @return [String]
attr_accessor :default_service
@ -31913,6 +32028,8 @@ module Google
# The list of expected URL mapping tests. Request to update this UrlMap will
# succeed only if all of the test cases pass. You can specify a maximum of 100
# tests per UrlMap.
# 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.
# Corresponds to the JSON property `tests`
# @return [Array<Google::Apis::ComputeV1::UrlMapTest>]
attr_accessor :tests
@ -32375,6 +32492,10 @@ module Google
# Traffic Director.
# * urlMaps are used by external HTTP(S) load balancers and Traffic Director. *
# regionUrlMaps are used by internal HTTP(S) load balancers.
# For a list of supported URL map features by load balancer type, see the Load
# balancing features: Routing and traffic management table.
# For a list of supported URL map features for Traffic Director, see the
# Traffic Director features: Routing and traffic management table.
# This resource defines mappings from host names and URL paths to either a
# backend service or a backend bucket.
# To use the global urlMaps resource, the backend service must have a

View File

@ -3532,6 +3532,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class Screenshot
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SecurityPoliciesListPreconfiguredExpressionSetsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -11195,6 +11201,14 @@ module Google
end
end
class Screenshot
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :contents, as: 'contents'
property :kind, as: 'kind'
end
end
class SecurityPoliciesListPreconfiguredExpressionSetsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -9164,6 +9164,45 @@ module Google
execute_or_queue_command(command, &block)
end
# Returns the screenshot from the specified instance.
# @param [String] project
# Project ID for this request.
# @param [String] zone
# The name of the zone for this request.
# @param [String] instance
# Name of the instance scoping this request.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeV1::Screenshot] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeV1::Screenshot]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_instance_screenshot(project, zone, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/zones/{zone}/instances/{instance}/screenshot', options)
command.response_representation = Google::Apis::ComputeV1::Screenshot::Representation
command.response_class = Google::Apis::ComputeV1::Screenshot
command.params['project'] = project unless project.nil?
command.params['zone'] = zone unless zone.nil?
command.params['instance'] = instance unless instance.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Returns the last 1 MB of serial port output from the specified instance.
# @param [String] project
# Project ID for this request.

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/search-ads
module DoubleclicksearchV2
VERSION = 'V2'
REVISION = '20200723'
REVISION = '20200825'
# View and manage your advertising data in DoubleClick Search
AUTH_DOUBLECLICKSEARCH = 'https://www.googleapis.com/auth/doubleclicksearch'

View File

@ -44,8 +44,8 @@ module Google
attr_accessor :quota_user
def initialize
super('https://www.googleapis.com/', '')
@batch_path = 'batch/doubleclicksearch/v2'
super('https://doubleclicksearch.googleapis.com/', '')
@batch_path = 'batch'
end
# Retrieves a list of conversions from a DoubleClick Search engine account.

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/memorystore/
module MemcacheV1beta2
VERSION = 'V1beta2'
REVISION = '20200817'
REVISION = '20200824'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -997,65 +997,6 @@ module Google
end
end
# Represents the metadata of a long-running operation.
class OperationMetadata
include Google::Apis::Core::Hashable
# Output only. API version used to start the operation.
# Corresponds to the JSON property `apiVersion`
# @return [String]
attr_accessor :api_version
# Output only. Identifies whether the user has requested cancellation of the
# operation. Operations that have successfully been cancelled have Operation.
# error value with a google.rpc.Status.code of 1, corresponding to `Code.
# CANCELLED`.
# Corresponds to the JSON property `cancelRequested`
# @return [Boolean]
attr_accessor :cancel_requested
alias_method :cancel_requested?, :cancel_requested
# Output only. Time when the operation was created.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
# Output only. Time when the operation finished running.
# Corresponds to the JSON property `endTime`
# @return [String]
attr_accessor :end_time
# Output only. Human-readable status of the operation, if any.
# Corresponds to the JSON property `statusDetail`
# @return [String]
attr_accessor :status_detail
# Output only. Server-defined resource path for the target of the operation.
# Corresponds to the JSON property `target`
# @return [String]
attr_accessor :target
# Output only. Name of the verb executed by the operation.
# Corresponds to the JSON property `verb`
# @return [String]
attr_accessor :verb
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@api_version = args[:api_version] if args.key?(:api_version)
@cancel_requested = args[:cancel_requested] if args.key?(:cancel_requested)
@create_time = args[:create_time] if args.key?(:create_time)
@end_time = args[:end_time] if args.key?(:end_time)
@status_detail = args[:status_detail] if args.key?(:status_detail)
@target = args[:target] if args.key?(:target)
@verb = args[:verb] if args.key?(:verb)
end
end
# The `Status` type defines a logical error model that is suitable for different
# programming environments, including REST APIs and RPC APIs. It is used by [
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of

View File

@ -160,12 +160,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class OperationMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Status
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -430,19 +424,6 @@ module Google
end
end
class OperationMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :api_version, as: 'apiVersion'
property :cancel_requested, as: 'cancelRequested'
property :create_time, as: 'createTime'
property :end_time, as: 'endTime'
property :status_detail, as: 'statusDetail'
property :target, as: 'target'
property :verb, as: 'verb'
end
end
class Status
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/maps/contact-sales/
module PlayablelocationsV3
VERSION = 'V3'
REVISION = '20200808'
REVISION = '20200826'
end
end
end

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/speech-to-text/docs/quickstart-protocol
module SpeechV1
VERSION = 'V1'
REVISION = '20200617'
REVISION = '20200824'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -48,8 +48,8 @@ module Google
end
# Describes the progress of a long-running `LongRunningRecognize` call. It is
# included in the `metadata` field of the `Operation` returned by the
# `GetOperation` call of the `google::longrunning::Operations` service.
# included in the `metadata` field of the `Operation` returned by the `
# GetOperation` call of the `google::longrunning::Operations` service.
class LongRunningRecognizeMetadata
include Google::Apis::Core::Hashable
@ -58,8 +58,8 @@ module Google
# @return [String]
attr_accessor :last_update_time
# Approximate percentage of audio processed thus far. Guaranteed to be 100
# when the audio is fully processed and the results are available.
# Approximate percentage of audio processed thus far. Guaranteed to be 100 when
# the audio is fully processed and the results are available.
# Corresponds to the JSON property `progressPercent`
# @return [Fixnum]
attr_accessor :progress_percent
@ -70,8 +70,7 @@ module Google
attr_accessor :start_time
# Output only. The URI of the audio file being transcribed. Empty if the audio
# was sent
# as byte content.
# was sent as byte content.
# Corresponds to the JSON property `uri`
# @return [String]
attr_accessor :uri
@ -89,15 +88,14 @@ module Google
end
end
# The top-level message sent by the client for the `LongRunningRecognize`
# method.
# The top-level message sent by the client for the `LongRunningRecognize` method.
class LongRunningRecognizeRequest
include Google::Apis::Core::Hashable
# Contains audio data in the encoding specified in the `RecognitionConfig`.
# Either `content` or `uri` must be supplied. Supplying both or neither
# returns google.rpc.Code.INVALID_ARGUMENT. See
# [content limits](https://cloud.google.com/speech-to-text/quotas#content).
# Either `content` or `uri` must be supplied. Supplying both or neither returns
# google.rpc.Code.INVALID_ARGUMENT. See [content limits](https://cloud.google.
# com/speech-to-text/quotas#content).
# Corresponds to the JSON property `audio`
# @return [Google::Apis::SpeechV1::RecognitionAudio]
attr_accessor :audio
@ -127,8 +125,8 @@ module Google
class LongRunningRecognizeResponse
include Google::Apis::Core::Hashable
# Sequential list of transcription results corresponding to
# sequential portions of audio.
# Sequential list of transcription results corresponding to sequential portions
# of audio.
# Corresponds to the JSON property `results`
# @return [Array<Google::Apis::SpeechV1::SpeechRecognitionResult>]
attr_accessor :results
@ -148,47 +146,45 @@ module Google
class Operation
include Google::Apis::Core::Hashable
# If the value is `false`, it means the operation is still in progress.
# If `true`, the operation is completed, and either `error` or `response` is
# available.
# If the value is `false`, it means the operation is still in progress. If `true`
# , the operation is completed, and either `error` or `response` is available.
# Corresponds to the JSON property `done`
# @return [Boolean]
attr_accessor :done
alias_method :done?, :done
# The `Status` type defines a logical error model that is suitable for
# different programming environments, including REST APIs and RPC APIs. It is
# used by [gRPC](https://github.com/grpc). Each `Status` message contains
# three pieces of data: error code, error message, and error details.
# You can find out more about this error model and how to work with it in the
# [API Design Guide](https://cloud.google.com/apis/design/errors).
# The `Status` type defines a logical error model that is suitable for different
# programming environments, including REST APIs and RPC APIs. It is used by [
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
# data: error code, error message, and error details. You can find out more
# about this error model and how to work with it in the [API Design Guide](https:
# //cloud.google.com/apis/design/errors).
# Corresponds to the JSON property `error`
# @return [Google::Apis::SpeechV1::Status]
attr_accessor :error
# Service-specific metadata associated with the operation. It typically
# contains progress information and common metadata such as create time.
# Some services might not provide such metadata. Any method that returns a
# long-running operation should document the metadata type, if any.
# Service-specific metadata associated with the operation. It typically contains
# progress information and common metadata such as create time. Some services
# might not provide such metadata. Any method that returns a long-running
# operation should document the metadata type, if any.
# Corresponds to the JSON property `metadata`
# @return [Hash<String,Object>]
attr_accessor :metadata
# The server-assigned name, which is only unique within the same service that
# originally returns it. If you use the default HTTP mapping, the
# `name` should be a resource name ending with `operations/`unique_id``.
# originally returns it. If you use the default HTTP mapping, the `name` should
# be a resource name ending with `operations/`unique_id``.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# The normal response of the operation in case of success. If the original
# method returns no data on success, such as `Delete`, the response is
# `google.protobuf.Empty`. If the original method is standard
# `Get`/`Create`/`Update`, the response should be the resource. For other
# methods, the response should have the type `XxxResponse`, where `Xxx`
# is the original method name. For example, if the original method name
# is `TakeSnapshot()`, the inferred response type is
# `TakeSnapshotResponse`.
# The normal response of the operation in case of success. If the original
# method returns no data on success, such as `Delete`, the response is `google.
# protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
# the response should be the resource. For other methods, the response should
# have the type `XxxResponse`, where `Xxx` is the original method name. For
# example, if the original method name is `TakeSnapshot()`, the inferred
# response type is `TakeSnapshotResponse`.
# Corresponds to the JSON property `response`
# @return [Hash<String,Object>]
attr_accessor :response
@ -208,27 +204,26 @@ module Google
end
# Contains audio data in the encoding specified in the `RecognitionConfig`.
# Either `content` or `uri` must be supplied. Supplying both or neither
# returns google.rpc.Code.INVALID_ARGUMENT. See
# [content limits](https://cloud.google.com/speech-to-text/quotas#content).
# Either `content` or `uri` must be supplied. Supplying both or neither returns
# google.rpc.Code.INVALID_ARGUMENT. See [content limits](https://cloud.google.
# com/speech-to-text/quotas#content).
class RecognitionAudio
include Google::Apis::Core::Hashable
# The audio data bytes encoded as specified in
# `RecognitionConfig`. Note: as with all bytes fields, proto buffers use a
# pure binary representation, whereas JSON representations use base64.
# The audio data bytes encoded as specified in `RecognitionConfig`. Note: as
# with all bytes fields, proto buffers use a pure binary representation, whereas
# JSON representations use base64.
# Corresponds to the JSON property `content`
# NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String]
attr_accessor :content
# URI that points to a file that contains audio data bytes as specified in
# `RecognitionConfig`. The file must not be compressed (for example, gzip).
# Currently, only Google Cloud Storage URIs are
# supported, which must be specified in the following format:
# `gs://bucket_name/object_name` (other URI formats return
# google.rpc.Code.INVALID_ARGUMENT). For more information, see
# [Request URIs](https://cloud.google.com/storage/docs/reference-uris).
# URI that points to a file that contains audio data bytes as specified in `
# RecognitionConfig`. The file must not be compressed (for example, gzip).
# Currently, only Google Cloud Storage URIs are supported, which must be
# specified in the following format: `gs://bucket_name/object_name` (other URI
# formats return google.rpc.Code.INVALID_ARGUMENT). For more information, see [
# Request URIs](https://cloud.google.com/storage/docs/reference-uris).
# Corresponds to the JSON property `uri`
# @return [String]
attr_accessor :uri
@ -249,15 +244,13 @@ module Google
class RecognitionConfig
include Google::Apis::Core::Hashable
# The number of channels in the input audio data.
# ONLY set this for MULTI-CHANNEL recognition.
# Valid values for LINEAR16 and FLAC are `1`-`8`.
# Valid values for OGG_OPUS are '1'-'254'.
# Valid value for MULAW, AMR, AMR_WB and SPEEX_WITH_HEADER_BYTE is only `1`.
# If `0` or omitted, defaults to one channel (mono).
# Note: We only recognize the first channel by default.
# To perform independent recognition on each channel set
# `enable_separate_recognition_per_channel` to 'true'.
# The number of channels in the input audio data. ONLY set this for MULTI-
# CHANNEL recognition. Valid values for LINEAR16 and FLAC are `1`-`8`. Valid
# values for OGG_OPUS are '1'-'254'. Valid value for MULAW, AMR, AMR_WB and
# SPEEX_WITH_HEADER_BYTE is only `1`. If `0` or omitted, defaults to one channel
# (mono). Note: We only recognize the first channel by default. To perform
# independent recognition on each channel set `
# enable_separate_recognition_per_channel` to 'true'.
# Corresponds to the JSON property `audioChannelCount`
# @return [Fixnum]
attr_accessor :audio_channel_count
@ -267,58 +260,54 @@ module Google
# @return [Google::Apis::SpeechV1::SpeakerDiarizationConfig]
attr_accessor :diarization_config
# If 'true', adds punctuation to recognition result hypotheses.
# This feature is only available in select languages. Setting this for
# requests in other languages has no effect at all.
# The default 'false' value does not add punctuation to result hypotheses.
# If 'true', adds punctuation to recognition result hypotheses. This feature is
# only available in select languages. Setting this for requests in other
# languages has no effect at all. The default 'false' value does not add
# punctuation to result hypotheses.
# Corresponds to the JSON property `enableAutomaticPunctuation`
# @return [Boolean]
attr_accessor :enable_automatic_punctuation
alias_method :enable_automatic_punctuation?, :enable_automatic_punctuation
# This needs to be set to `true` explicitly and `audio_channel_count` > 1
# to get each channel recognized separately. The recognition result will
# contain a `channel_tag` field to state which channel that result belongs
# to. If this is not true, we will only recognize the first channel. The
# request is billed cumulatively for all channels recognized:
# `audio_channel_count` multiplied by the length of the audio.
# This needs to be set to `true` explicitly and `audio_channel_count` > 1 to get
# each channel recognized separately. The recognition result will contain a `
# channel_tag` field to state which channel that result belongs to. If this is
# not true, we will only recognize the first channel. The request is billed
# cumulatively for all channels recognized: `audio_channel_count` multiplied by
# the length of the audio.
# Corresponds to the JSON property `enableSeparateRecognitionPerChannel`
# @return [Boolean]
attr_accessor :enable_separate_recognition_per_channel
alias_method :enable_separate_recognition_per_channel?, :enable_separate_recognition_per_channel
# If `true`, the top result includes a list of words and
# the start and end time offsets (timestamps) for those words. If
# `false`, no word-level time offset information is returned. The default is
# `false`.
# If `true`, the top result includes a list of words and the start and end time
# offsets (timestamps) for those words. If `false`, no word-level time offset
# information is returned. The default is `false`.
# Corresponds to the JSON property `enableWordTimeOffsets`
# @return [Boolean]
attr_accessor :enable_word_time_offsets
alias_method :enable_word_time_offsets?, :enable_word_time_offsets
# Encoding of audio data sent in all `RecognitionAudio` messages.
# This field is optional for `FLAC` and `WAV` audio files and required
# for all other audio formats. For details, see AudioEncoding.
# Encoding of audio data sent in all `RecognitionAudio` messages. This field is
# optional for `FLAC` and `WAV` audio files and required for all other audio
# formats. For details, see AudioEncoding.
# Corresponds to the JSON property `encoding`
# @return [String]
attr_accessor :encoding
# Required. The language of the supplied audio as a
# [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
# Example: "en-US".
# See [Language
# Support](https://cloud.google.com/speech-to-text/docs/languages) for a list
# of the currently supported language codes.
# Required. The language of the supplied audio as a [BCP-47](https://www.rfc-
# editor.org/rfc/bcp/bcp47.txt) language tag. Example: "en-US". See [Language
# Support](https://cloud.google.com/speech-to-text/docs/languages) for a list of
# the currently supported language codes.
# Corresponds to the JSON property `languageCode`
# @return [String]
attr_accessor :language_code
# Maximum number of recognition hypotheses to be returned.
# Specifically, the maximum number of `SpeechRecognitionAlternative` messages
# within each `SpeechRecognitionResult`.
# The server may return fewer than `max_alternatives`.
# Valid values are `0`-`30`. A value of `0` or `1` will return a maximum of
# one. If omitted, will return a maximum of one.
# Maximum number of recognition hypotheses to be returned. Specifically, the
# maximum number of `SpeechRecognitionAlternative` messages within each `
# SpeechRecognitionResult`. The server may return fewer than `max_alternatives`.
# Valid values are `0`-`30`. A value of `0` or `1` will return a maximum of one.
# If omitted, will return a maximum of one.
# Corresponds to the JSON property `maxAlternatives`
# @return [Fixnum]
attr_accessor :max_alternatives
@ -328,78 +317,51 @@ module Google
# @return [Google::Apis::SpeechV1::RecognitionMetadata]
attr_accessor :metadata
# Which model to select for the given request. Select the model
# best suited to your domain to get best results. If a model is not
# explicitly specified, then we auto-select a model based on the parameters
# in the RecognitionConfig.
# <table>
# <tr>
# <td><b>Model</b></td>
# <td><b>Description</b></td>
# </tr>
# <tr>
# <td><code>command_and_search</code></td>
# <td>Best for short queries such as voice commands or voice search.</td>
# </tr>
# <tr>
# <td><code>phone_call</code></td>
# <td>Best for audio that originated from a phone call (typically
# recorded at an 8khz sampling rate).</td>
# </tr>
# <tr>
# <td><code>video</code></td>
# <td>Best for audio that originated from from video or includes multiple
# speakers. Ideally the audio is recorded at a 16khz or greater
# sampling rate. This is a premium model that costs more than the
# standard rate.</td>
# </tr>
# <tr>
# <td><code>default</code></td>
# <td>Best for audio that is not one of the specific audio models.
# For example, long-form audio. Ideally the audio is high-fidelity,
# recorded at a 16khz or greater sampling rate.</td>
# </tr>
# </table>
# Which model to select for the given request. Select the model best suited to
# your domain to get best results. If a model is not explicitly specified, then
# we auto-select a model based on the parameters in the RecognitionConfig. *
# Model* *Description* command_and_search Best for short queries such as voice
# commands or voice search. phone_call Best for audio that originated from a
# phone call (typically recorded at an 8khz sampling rate). video Best for audio
# that originated from from video or includes multiple speakers. Ideally the
# audio is recorded at a 16khz or greater sampling rate. This is a premium model
# that costs more than the standard rate. default Best for audio that is not one
# of the specific audio models. For example, long-form audio. Ideally the audio
# is high-fidelity, recorded at a 16khz or greater sampling rate.
# Corresponds to the JSON property `model`
# @return [String]
attr_accessor :model
# If set to `true`, the server will attempt to filter out
# profanities, replacing all but the initial character in each filtered word
# with asterisks, e.g. "f***". If set to `false` or omitted, profanities
# won't be filtered out.
# If set to `true`, the server will attempt to filter out profanities, replacing
# all but the initial character in each filtered word with asterisks, e.g. "f***"
# . If set to `false` or omitted, profanities won't be filtered out.
# Corresponds to the JSON property `profanityFilter`
# @return [Boolean]
attr_accessor :profanity_filter
alias_method :profanity_filter?, :profanity_filter
# Sample rate in Hertz of the audio data sent in all
# `RecognitionAudio` messages. Valid values are: 8000-48000.
# 16000 is optimal. For best results, set the sampling rate of the audio
# source to 16000 Hz. If that's not possible, use the native sample rate of
# the audio source (instead of re-sampling).
# This field is optional for FLAC and WAV audio files, but is
# required for all other audio formats. For details, see AudioEncoding.
# Sample rate in Hertz of the audio data sent in all `RecognitionAudio` messages.
# Valid values are: 8000-48000. 16000 is optimal. For best results, set the
# sampling rate of the audio source to 16000 Hz. If that's not possible, use the
# native sample rate of the audio source (instead of re-sampling). This field is
# optional for FLAC and WAV audio files, but is required for all other audio
# formats. For details, see AudioEncoding.
# Corresponds to the JSON property `sampleRateHertz`
# @return [Fixnum]
attr_accessor :sample_rate_hertz
# Array of SpeechContext.
# A means to provide context to assist the speech recognition. For more
# information, see
# [speech
# adaptation](https://cloud.google.com/speech-to-text/docs/context-strength).
# Array of SpeechContext. A means to provide context to assist the speech
# recognition. For more information, see [speech adaptation](https://cloud.
# google.com/speech-to-text/docs/context-strength).
# Corresponds to the JSON property `speechContexts`
# @return [Array<Google::Apis::SpeechV1::SpeechContext>]
attr_accessor :speech_contexts
# Set to true to use an enhanced model for speech recognition.
# If `use_enhanced` is set to true and the `model` field is not set, then
# an appropriate enhanced model is chosen if an enhanced model exists for
# the audio.
# If `use_enhanced` is true and an enhanced version of the specified model
# does not exist, then the speech is recognized using the standard version
# of the specified model.
# Set to true to use an enhanced model for speech recognition. If `use_enhanced`
# is set to true and the `model` field is not set, then an appropriate enhanced
# model is chosen if an enhanced model exists for the audio. If `use_enhanced`
# is true and an enhanced version of the specified model does not exist, then
# the speech is recognized using the standard version of the specified model.
# Corresponds to the JSON property `useEnhanced`
# @return [Boolean]
attr_accessor :use_enhanced
@ -432,16 +394,16 @@ module Google
class RecognitionMetadata
include Google::Apis::Core::Hashable
# Description of the content. Eg. "Recordings of federal supreme court
# hearings from 2012".
# Description of the content. Eg. "Recordings of federal supreme court hearings
# from 2012".
# Corresponds to the JSON property `audioTopic`
# @return [String]
attr_accessor :audio_topic
# The industry vertical to which this speech recognition request most
# closely applies. This is most indicative of the topics contained
# in the audio. Use the 6-digit NAICS code to identify the industry
# vertical - see https://www.naics.com/search/.
# The industry vertical to which this speech recognition request most closely
# applies. This is most indicative of the topics contained in the audio. Use the
# 6-digit NAICS code to identify the industry vertical - see https://www.naics.
# com/search/.
# Corresponds to the JSON property `industryNaicsCodeOfAudio`
# @return [Fixnum]
attr_accessor :industry_naics_code_of_audio
@ -461,17 +423,16 @@ module Google
# @return [String]
attr_accessor :original_media_type
# Mime type of the original audio file. For example `audio/m4a`,
# `audio/x-alaw-basic`, `audio/mp3`, `audio/3gpp`.
# A list of possible audio mime types is maintained at
# http://www.iana.org/assignments/media-types/media-types.xhtml#audio
# Mime type of the original audio file. For example `audio/m4a`, `audio/x-alaw-
# basic`, `audio/mp3`, `audio/3gpp`. A list of possible audio mime types is
# maintained at http://www.iana.org/assignments/media-types/media-types.xhtml#
# audio
# Corresponds to the JSON property `originalMimeType`
# @return [String]
attr_accessor :original_mime_type
# The device used to make the recording. Examples 'Nexus 5X' or
# 'Polycom SoundStation IP 6000' or 'POTS' or 'VoIP' or
# 'Cardioid Microphone'.
# The device used to make the recording. Examples 'Nexus 5X' or 'Polycom
# SoundStation IP 6000' or 'POTS' or 'VoIP' or 'Cardioid Microphone'.
# Corresponds to the JSON property `recordingDeviceName`
# @return [String]
attr_accessor :recording_device_name
@ -503,9 +464,9 @@ module Google
include Google::Apis::Core::Hashable
# Contains audio data in the encoding specified in the `RecognitionConfig`.
# Either `content` or `uri` must be supplied. Supplying both or neither
# returns google.rpc.Code.INVALID_ARGUMENT. See
# [content limits](https://cloud.google.com/speech-to-text/quotas#content).
# Either `content` or `uri` must be supplied. Supplying both or neither returns
# google.rpc.Code.INVALID_ARGUMENT. See [content limits](https://cloud.google.
# com/speech-to-text/quotas#content).
# Corresponds to the JSON property `audio`
# @return [Google::Apis::SpeechV1::RecognitionAudio]
attr_accessor :audio
@ -527,14 +488,13 @@ module Google
end
end
# The only message returned to the client by the `Recognize` method. It
# contains the result as zero or more sequential `SpeechRecognitionResult`
# messages.
# The only message returned to the client by the `Recognize` method. It contains
# the result as zero or more sequential `SpeechRecognitionResult` messages.
class RecognizeResponse
include Google::Apis::Core::Hashable
# Sequential list of transcription results corresponding to
# sequential portions of audio.
# Sequential list of transcription results corresponding to sequential portions
# of audio.
# Corresponds to the JSON property `results`
# @return [Array<Google::Apis::SpeechV1::SpeechRecognitionResult>]
attr_accessor :results
@ -553,9 +513,9 @@ module Google
class SpeakerDiarizationConfig
include Google::Apis::Core::Hashable
# If 'true', enables speaker detection for each recognized word in
# the top alternative of the recognition result using a speaker_tag provided
# in the WordInfo.
# If 'true', enables speaker detection for each recognized word in the top
# alternative of the recognition result using a speaker_tag provided in the
# WordInfo.
# Corresponds to the JSON property `enableSpeakerDiarization`
# @return [Boolean]
attr_accessor :enable_speaker_diarization
@ -598,17 +558,16 @@ module Google
class SpeechContext
include Google::Apis::Core::Hashable
# A list of strings containing words and phrases "hints" so that
# the speech recognition is more likely to recognize them. This can be used
# to improve the accuracy for specific words and phrases, for example, if
# specific commands are typically spoken by the user. This can also be used
# to add additional words to the vocabulary of the recognizer. See
# [usage limits](https://cloud.google.com/speech-to-text/quotas#content).
# List items can also be set to classes for groups of words that represent
# common concepts that occur in natural language. For example, rather than
# providing phrase hints for every month of the year, using the $MONTH class
# improves the likelihood of correctly transcribing audio that includes
# months.
# A list of strings containing words and phrases "hints" so that the speech
# recognition is more likely to recognize them. This can be used to improve the
# accuracy for specific words and phrases, for example, if specific commands are
# typically spoken by the user. This can also be used to add additional words to
# the vocabulary of the recognizer. See [usage limits](https://cloud.google.com/
# speech-to-text/quotas#content). List items can also be set to classes for
# groups of words that represent common concepts that occur in natural language.
# For example, rather than providing phrase hints for every month of the year,
# using the $MONTH class improves the likelihood of correctly transcribing audio
# that includes months.
# Corresponds to the JSON property `phrases`
# @return [Array<String>]
attr_accessor :phrases
@ -627,13 +586,12 @@ module Google
class SpeechRecognitionAlternative
include Google::Apis::Core::Hashable
# The confidence estimate between 0.0 and 1.0. A higher number
# indicates an estimated greater likelihood that the recognized words are
# correct. This field is set only for the top alternative of a non-streaming
# result or, of a streaming result where `is_final=true`.
# This field is not guaranteed to be accurate and users should not rely on it
# to be always provided.
# The default of 0.0 is a sentinel value indicating `confidence` was not set.
# The confidence estimate between 0.0 and 1.0. A higher number indicates an
# estimated greater likelihood that the recognized words are correct. This field
# is set only for the top alternative of a non-streaming result or, of a
# streaming result where `is_final=true`. This field is not guaranteed to be
# accurate and users should not rely on it to be always provided. The default of
# 0.0 is a sentinel value indicating `confidence` was not set.
# Corresponds to the JSON property `confidence`
# @return [Float]
attr_accessor :confidence
@ -643,9 +601,9 @@ module Google
# @return [String]
attr_accessor :transcript
# A list of word-specific information for each recognized word.
# Note: When `enable_speaker_diarization` is true, you will see all the words
# from the beginning of the audio.
# A list of word-specific information for each recognized word. Note: When `
# enable_speaker_diarization` is true, you will see all the words from the
# beginning of the audio.
# Corresponds to the JSON property `words`
# @return [Array<Google::Apis::SpeechV1::WordInfo>]
attr_accessor :words
@ -666,17 +624,17 @@ module Google
class SpeechRecognitionResult
include Google::Apis::Core::Hashable
# May contain one or more recognition hypotheses (up to the
# maximum specified in `max_alternatives`).
# These alternatives are ordered in terms of accuracy, with the top (first)
# alternative being the most probable, as ranked by the recognizer.
# May contain one or more recognition hypotheses (up to the maximum specified in
# `max_alternatives`). These alternatives are ordered in terms of accuracy, with
# the top (first) alternative being the most probable, as ranked by the
# recognizer.
# Corresponds to the JSON property `alternatives`
# @return [Array<Google::Apis::SpeechV1::SpeechRecognitionAlternative>]
attr_accessor :alternatives
# For multi-channel audio, this is the channel number corresponding to the
# recognized result for the audio from that channel.
# For audio_channel_count = N, its output values can range from '1' to 'N'.
# recognized result for the audio from that channel. For audio_channel_count = N,
# its output values can range from '1' to 'N'.
# Corresponds to the JSON property `channelTag`
# @return [Fixnum]
attr_accessor :channel_tag
@ -692,12 +650,12 @@ module Google
end
end
# The `Status` type defines a logical error model that is suitable for
# different programming environments, including REST APIs and RPC APIs. It is
# used by [gRPC](https://github.com/grpc). Each `Status` message contains
# three pieces of data: error code, error message, and error details.
# You can find out more about this error model and how to work with it in the
# [API Design Guide](https://cloud.google.com/apis/design/errors).
# The `Status` type defines a logical error model that is suitable for different
# programming environments, including REST APIs and RPC APIs. It is used by [
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
# data: error code, error message, and error details. You can find out more
# about this error model and how to work with it in the [API Design Guide](https:
# //cloud.google.com/apis/design/errors).
class Status
include Google::Apis::Core::Hashable
@ -706,15 +664,15 @@ module Google
# @return [Fixnum]
attr_accessor :code
# A list of messages that carry the error details. There is a common set of
# A list of messages that carry the error details. There is a common set of
# message types for APIs to use.
# Corresponds to the JSON property `details`
# @return [Array<Hash<String,Object>>]
attr_accessor :details
# A developer-facing error message, which should be in English. Any
# user-facing error message should be localized and sent in the
# google.rpc.Status.details field, or localized by the client.
# A developer-facing error message, which should be in English. Any user-facing
# error message should be localized and sent in the google.rpc.Status.details
# field, or localized by the client.
# Corresponds to the JSON property `message`
# @return [String]
attr_accessor :message
@ -735,31 +693,27 @@ module Google
class WordInfo
include Google::Apis::Core::Hashable
# Time offset relative to the beginning of the audio,
# and corresponding to the end of the spoken word.
# This field is only set if `enable_word_time_offsets=true` and only
# in the top hypothesis.
# This is an experimental feature and the accuracy of the time offset can
# vary.
# Time offset relative to the beginning of the audio, and corresponding to the
# end of the spoken word. This field is only set if `enable_word_time_offsets=
# true` and only in the top hypothesis. This is an experimental feature and the
# accuracy of the time offset can vary.
# Corresponds to the JSON property `endTime`
# @return [String]
attr_accessor :end_time
# Output only. A distinct integer value is assigned for every speaker within
# the audio. This field specifies which one of those speakers was detected to
# have spoken this word. Value ranges from '1' to diarization_speaker_count.
# speaker_tag is set if enable_speaker_diarization = 'true' and only in the
# top alternative.
# Output only. A distinct integer value is assigned for every speaker within the
# audio. This field specifies which one of those speakers was detected to have
# spoken this word. Value ranges from '1' to diarization_speaker_count.
# speaker_tag is set if enable_speaker_diarization = 'true' and only in the top
# alternative.
# Corresponds to the JSON property `speakerTag`
# @return [Fixnum]
attr_accessor :speaker_tag
# Time offset relative to the beginning of the audio,
# and corresponding to the start of the spoken word.
# This field is only set if `enable_word_time_offsets=true` and only
# in the top hypothesis.
# This is an experimental feature and the accuracy of the time offset can
# vary.
# Time offset relative to the beginning of the audio, and corresponding to the
# start of the spoken word. This field is only set if `enable_word_time_offsets=
# true` and only in the top hypothesis. This is an experimental feature and the
# accuracy of the time offset can vary.
# Corresponds to the JSON property `startTime`
# @return [String]
attr_accessor :start_time

View File

@ -47,9 +47,8 @@ module Google
@batch_path = 'batch'
end
# Gets the latest state of a long-running operation. Clients can use this
# method to poll the operation result at intervals as recommended by the API
# service.
# Gets the latest state of a long-running operation. Clients can use this method
# to poll the operation result at intervals as recommended by the API service.
# @param [String] name
# The name of the operation resource.
# @param [String] fields
@ -79,15 +78,14 @@ module Google
execute_or_queue_command(command, &block)
end
# Lists operations that match the specified filter in the request. If the
# server doesn't support this method, it returns `UNIMPLEMENTED`.
# NOTE: the `name` binding allows API services to override the binding
# to use different resource name schemes, such as `users/*/operations`. To
# override the binding, API services can add a binding such as
# `"/v1/`name=users/*`/operations"` to their service configuration.
# For backwards compatibility, the default name includes the operations
# collection id, however overriding users must ensure the name binding
# is the parent resource, without the operations collection id.
# Lists operations that match the specified filter in the request. If the server
# doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
# binding allows API services to override the binding to use different resource
# name schemes, such as `users/*/operations`. To override the binding, API
# services can add a binding such as `"/v1/`name=users/*`/operations"` to their
# service configuration. For backwards compatibility, the default name includes
# the operations collection id, however overriding users must ensure the name
# binding is the parent resource, without the operations collection id.
# @param [String] filter
# The standard list filter.
# @param [String] name
@ -126,9 +124,8 @@ module Google
execute_or_queue_command(command, &block)
end
# Gets the latest state of a long-running operation. Clients can use this
# method to poll the operation result at intervals as recommended by the API
# service.
# Gets the latest state of a long-running operation. Clients can use this method
# to poll the operation result at intervals as recommended by the API service.
# @param [String] name
# The name of the operation resource.
# @param [String] fields
@ -158,15 +155,14 @@ module Google
execute_or_queue_command(command, &block)
end
# Lists operations that match the specified filter in the request. If the
# server doesn't support this method, it returns `UNIMPLEMENTED`.
# NOTE: the `name` binding allows API services to override the binding
# to use different resource name schemes, such as `users/*/operations`. To
# override the binding, API services can add a binding such as
# `"/v1/`name=users/*`/operations"` to their service configuration.
# For backwards compatibility, the default name includes the operations
# collection id, however overriding users must ensure the name binding
# is the parent resource, without the operations collection id.
# Lists operations that match the specified filter in the request. If the server
# doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
# binding allows API services to override the binding to use different resource
# name schemes, such as `users/*/operations`. To override the binding, API
# services can add a binding such as `"/v1/`name=users/*`/operations"` to their
# service configuration. For backwards compatibility, the default name includes
# the operations collection id, however overriding users must ensure the name
# binding is the parent resource, without the operations collection id.
# @param [String] name
# The name of the operation's parent resource.
# @param [String] filter
@ -205,12 +201,11 @@ module Google
execute_or_queue_command(command, &block)
end
# Performs asynchronous speech recognition: receive results via the
# google.longrunning.Operations interface. Returns either an
# `Operation.error` or an `Operation.response` which contains
# a `LongRunningRecognizeResponse` message.
# For more information on asynchronous speech recognition, see the
# [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).
# Performs asynchronous speech recognition: receive results via the google.
# longrunning.Operations interface. Returns either an `Operation.error` or an `
# Operation.response` which contains a `LongRunningRecognizeResponse` message.
# For more information on asynchronous speech recognition, see the [how-to](
# https://cloud.google.com/speech-to-text/docs/async-recognize).
# @param [Google::Apis::SpeechV1::LongRunningRecognizeRequest] long_running_recognize_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -240,8 +235,8 @@ module Google
execute_or_queue_command(command, &block)
end
# Performs synchronous speech recognition: receive results after all audio
# has been sent and processed.
# Performs synchronous speech recognition: receive results after all audio has
# been sent and processed.
# @param [Google::Apis::SpeechV1::RecognizeRequest] recognize_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/speech-to-text/docs/quickstart-protocol
module SpeechV1p1beta1
VERSION = 'V1p1beta1'
REVISION = '20200617'
REVISION = '20200824'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -41,14 +41,14 @@ module Google
end
end
# A set of words or phrases that represents a common concept likely to appear
# in your audio, for example a list of passenger ship names. CustomClass items
# can be substituted into placeholders that you set in PhraseSet phrases.
# A set of words or phrases that represents a common concept likely to appear in
# your audio, for example a list of passenger ship names. CustomClass items can
# be substituted into placeholders that you set in PhraseSet phrases.
class CustomClass
include Google::Apis::Core::Hashable
# If this custom class is a resource, the custom_class_id is the resource id
# of the CustomClass. Case sensitive.
# If this custom class is a resource, the custom_class_id is the resource id of
# the CustomClass. Case sensitive.
# Corresponds to the JSON property `customClassId`
# @return [String]
attr_accessor :custom_class_id
@ -101,8 +101,8 @@ module Google
end
# Describes the progress of a long-running `LongRunningRecognize` call. It is
# included in the `metadata` field of the `Operation` returned by the
# `GetOperation` call of the `google::longrunning::Operations` service.
# included in the `metadata` field of the `Operation` returned by the `
# GetOperation` call of the `google::longrunning::Operations` service.
class LongRunningRecognizeMetadata
include Google::Apis::Core::Hashable
@ -111,8 +111,8 @@ module Google
# @return [String]
attr_accessor :last_update_time
# Approximate percentage of audio processed thus far. Guaranteed to be 100
# when the audio is fully processed and the results are available.
# Approximate percentage of audio processed thus far. Guaranteed to be 100 when
# the audio is fully processed and the results are available.
# Corresponds to the JSON property `progressPercent`
# @return [Fixnum]
attr_accessor :progress_percent
@ -123,8 +123,7 @@ module Google
attr_accessor :start_time
# Output only. The URI of the audio file being transcribed. Empty if the audio
# was sent
# as byte content.
# was sent as byte content.
# Corresponds to the JSON property `uri`
# @return [String]
attr_accessor :uri
@ -142,15 +141,14 @@ module Google
end
end
# The top-level message sent by the client for the `LongRunningRecognize`
# method.
# The top-level message sent by the client for the `LongRunningRecognize` method.
class LongRunningRecognizeRequest
include Google::Apis::Core::Hashable
# Contains audio data in the encoding specified in the `RecognitionConfig`.
# Either `content` or `uri` must be supplied. Supplying both or neither
# returns google.rpc.Code.INVALID_ARGUMENT. See
# [content limits](https://cloud.google.com/speech-to-text/quotas#content).
# Either `content` or `uri` must be supplied. Supplying both or neither returns
# google.rpc.Code.INVALID_ARGUMENT. See [content limits](https://cloud.google.
# com/speech-to-text/quotas#content).
# Corresponds to the JSON property `audio`
# @return [Google::Apis::SpeechV1p1beta1::RecognitionAudio]
attr_accessor :audio
@ -180,8 +178,8 @@ module Google
class LongRunningRecognizeResponse
include Google::Apis::Core::Hashable
# Sequential list of transcription results corresponding to
# sequential portions of audio.
# Sequential list of transcription results corresponding to sequential portions
# of audio.
# Corresponds to the JSON property `results`
# @return [Array<Google::Apis::SpeechV1p1beta1::SpeechRecognitionResult>]
attr_accessor :results
@ -201,47 +199,45 @@ module Google
class Operation
include Google::Apis::Core::Hashable
# If the value is `false`, it means the operation is still in progress.
# If `true`, the operation is completed, and either `error` or `response` is
# available.
# If the value is `false`, it means the operation is still in progress. If `true`
# , the operation is completed, and either `error` or `response` is available.
# Corresponds to the JSON property `done`
# @return [Boolean]
attr_accessor :done
alias_method :done?, :done
# The `Status` type defines a logical error model that is suitable for
# different programming environments, including REST APIs and RPC APIs. It is
# used by [gRPC](https://github.com/grpc). Each `Status` message contains
# three pieces of data: error code, error message, and error details.
# You can find out more about this error model and how to work with it in the
# [API Design Guide](https://cloud.google.com/apis/design/errors).
# The `Status` type defines a logical error model that is suitable for different
# programming environments, including REST APIs and RPC APIs. It is used by [
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
# data: error code, error message, and error details. You can find out more
# about this error model and how to work with it in the [API Design Guide](https:
# //cloud.google.com/apis/design/errors).
# Corresponds to the JSON property `error`
# @return [Google::Apis::SpeechV1p1beta1::Status]
attr_accessor :error
# Service-specific metadata associated with the operation. It typically
# contains progress information and common metadata such as create time.
# Some services might not provide such metadata. Any method that returns a
# long-running operation should document the metadata type, if any.
# Service-specific metadata associated with the operation. It typically contains
# progress information and common metadata such as create time. Some services
# might not provide such metadata. Any method that returns a long-running
# operation should document the metadata type, if any.
# Corresponds to the JSON property `metadata`
# @return [Hash<String,Object>]
attr_accessor :metadata
# The server-assigned name, which is only unique within the same service that
# originally returns it. If you use the default HTTP mapping, the
# `name` should be a resource name ending with `operations/`unique_id``.
# originally returns it. If you use the default HTTP mapping, the `name` should
# be a resource name ending with `operations/`unique_id``.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# The normal response of the operation in case of success. If the original
# method returns no data on success, such as `Delete`, the response is
# `google.protobuf.Empty`. If the original method is standard
# `Get`/`Create`/`Update`, the response should be the resource. For other
# methods, the response should have the type `XxxResponse`, where `Xxx`
# is the original method name. For example, if the original method name
# is `TakeSnapshot()`, the inferred response type is
# `TakeSnapshotResponse`.
# The normal response of the operation in case of success. If the original
# method returns no data on success, such as `Delete`, the response is `google.
# protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
# the response should be the resource. For other methods, the response should
# have the type `XxxResponse`, where `Xxx` is the original method name. For
# example, if the original method name is `TakeSnapshot()`, the inferred
# response type is `TakeSnapshotResponse`.
# Corresponds to the JSON property `response`
# @return [Hash<String,Object>]
attr_accessor :response
@ -260,37 +256,35 @@ module Google
end
end
# A phrases containing words and phrase "hints" so that
# the speech recognition is more likely to recognize them. This can be used
# to improve the accuracy for specific words and phrases, for example, if
# specific commands are typically spoken by the user. This can also be used
# to add additional words to the vocabulary of the recognizer. See
# [usage limits](https://cloud.google.com/speech-to-text/quotas#content).
# List items can also include pre-built or custom classes containing groups
# of words that represent common concepts that occur in natural language. For
# example, rather than providing a phrase hint for every month of the
# year (e.g. "i was born in january", "i was born in febuary", ...), use the
# pre-built `$MONTH` class improves the likelihood of correctly transcribing
# audio that includes months (e.g. "i was born in $month").
# To refer to pre-built classes, use the class' symbol prepended with `$`
# e.g. `$MONTH`. To refer to custom classes that were defined inline in the
# request, set the class's `custom_class_id` to a string unique to all class
# resources and inline classes. Then use the class' id wrapped in $``...``
# e.g. "$`my-months`". To refer to custom classes resources, use the class'
# id wrapped in `$``` (e.g. `$`my-months``).
# A phrases containing words and phrase "hints" so that the speech recognition
# is more likely to recognize them. This can be used to improve the accuracy for
# specific words and phrases, for example, if specific commands are typically
# spoken by the user. This can also be used to add additional words to the
# vocabulary of the recognizer. See [usage limits](https://cloud.google.com/
# speech-to-text/quotas#content). List items can also include pre-built or
# custom classes containing groups of words that represent common concepts that
# occur in natural language. For example, rather than providing a phrase hint
# for every month of the year (e.g. "i was born in january", "i was born in
# febuary", ...), use the pre-built `$MONTH` class improves the likelihood of
# correctly transcribing audio that includes months (e.g. "i was born in $month")
# . To refer to pre-built classes, use the class' symbol prepended with `$` e.g.
# `$MONTH`. To refer to custom classes that were defined inline in the request,
# set the class's `custom_class_id` to a string unique to all class resources
# and inline classes. Then use the class' id wrapped in $``...`` e.g. "$`my-
# months`". To refer to custom classes resources, use the class' id wrapped in `$
# ``` (e.g. `$`my-months``).
class Phrase
include Google::Apis::Core::Hashable
# Hint Boost. Overrides the boost set at the phrase set level.
# Positive value will increase the probability that a specific phrase will
# be recognized over other similar sounding phrases. The higher the boost,
# the higher the chance of false positive recognition as well. Negative
# boost values would correspond to anti-biasing. Anti-biasing is not
# enabled, so negative boost will simply be ignored. Though `boost` can
# accept a wide range of positive values, most use cases are best served
# with values between 0 and 20. We recommend using a binary search approach
# to finding the optimal value for your use case. Speech recognition
# will skip PhraseSets with a boost value of 0.
# Hint Boost. Overrides the boost set at the phrase set level. Positive value
# will increase the probability that a specific phrase will be recognized over
# other similar sounding phrases. The higher the boost, the higher the chance of
# false positive recognition as well. Negative boost values would correspond to
# anti-biasing. Anti-biasing is not enabled, so negative boost will simply be
# ignored. Though `boost` can accept a wide range of positive values, most use
# cases are best served with values between 0 and 20. We recommend using a
# binary search approach to finding the optimal value for your use case. Speech
# recognition will skip PhraseSets with a boost value of 0.
# Corresponds to the JSON property `boost`
# @return [Float]
attr_accessor :boost
@ -317,14 +311,14 @@ module Google
include Google::Apis::Core::Hashable
# Hint Boost. Positive value will increase the probability that a specific
# phrase will be recognized over other similar sounding phrases. The higher
# the boost, the higher the chance of false positive recognition as well.
# Negative boost values would correspond to anti-biasing. Anti-biasing is not
# enabled, so negative boost will simply be ignored. Though `boost` can
# accept a wide range of positive values, most use cases are best served with
# values between 0 (exclusive) and 20. We recommend using a binary search
# approach to finding the optimal value for your use case. Speech recognition
# will skip PhraseSets with a boost value of 0.
# phrase will be recognized over other similar sounding phrases. The higher the
# boost, the higher the chance of false positive recognition as well. Negative
# boost values would correspond to anti-biasing. Anti-biasing is not enabled, so
# negative boost will simply be ignored. Though `boost` can accept a wide range
# of positive values, most use cases are best served with values between 0 (
# exclusive) and 20. We recommend using a binary search approach to finding the
# optimal value for your use case. Speech recognition will skip PhraseSets with
# a boost value of 0.
# Corresponds to the JSON property `boost`
# @return [Float]
attr_accessor :boost
@ -352,27 +346,26 @@ module Google
end
# Contains audio data in the encoding specified in the `RecognitionConfig`.
# Either `content` or `uri` must be supplied. Supplying both or neither
# returns google.rpc.Code.INVALID_ARGUMENT. See
# [content limits](https://cloud.google.com/speech-to-text/quotas#content).
# Either `content` or `uri` must be supplied. Supplying both or neither returns
# google.rpc.Code.INVALID_ARGUMENT. See [content limits](https://cloud.google.
# com/speech-to-text/quotas#content).
class RecognitionAudio
include Google::Apis::Core::Hashable
# The audio data bytes encoded as specified in
# `RecognitionConfig`. Note: as with all bytes fields, proto buffers use a
# pure binary representation, whereas JSON representations use base64.
# The audio data bytes encoded as specified in `RecognitionConfig`. Note: as
# with all bytes fields, proto buffers use a pure binary representation, whereas
# JSON representations use base64.
# Corresponds to the JSON property `content`
# NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String]
attr_accessor :content
# URI that points to a file that contains audio data bytes as specified in
# `RecognitionConfig`. The file must not be compressed (for example, gzip).
# Currently, only Google Cloud Storage URIs are
# supported, which must be specified in the following format:
# `gs://bucket_name/object_name` (other URI formats return
# google.rpc.Code.INVALID_ARGUMENT). For more information, see
# [Request URIs](https://cloud.google.com/storage/docs/reference-uris).
# URI that points to a file that contains audio data bytes as specified in `
# RecognitionConfig`. The file must not be compressed (for example, gzip).
# Currently, only Google Cloud Storage URIs are supported, which must be
# specified in the following format: `gs://bucket_name/object_name` (other URI
# formats return google.rpc.Code.INVALID_ARGUMENT). For more information, see [
# Request URIs](https://cloud.google.com/storage/docs/reference-uris).
# Corresponds to the JSON property `uri`
# @return [String]
attr_accessor :uri
@ -398,31 +391,27 @@ module Google
# @return [Google::Apis::SpeechV1p1beta1::SpeechAdaptation]
attr_accessor :adaptation
# A list of up to 3 additional
# [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
# listing possible alternative languages of the supplied audio.
# See [Language
# Support](https://cloud.google.com/speech-to-text/docs/languages) for a list
# of the currently supported language codes. If alternative languages are
# listed, recognition result will contain recognition in the most likely
# language detected including the main language_code. The recognition result
# will include the language tag of the language detected in the audio. Note:
# This feature is only supported for Voice Command and Voice Search use cases
# and performance may vary for other use cases (e.g., phone call
# transcription).
# A list of up to 3 additional [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.
# txt) language tags, listing possible alternative languages of the supplied
# audio. See [Language Support](https://cloud.google.com/speech-to-text/docs/
# languages) for a list of the currently supported language codes. If
# alternative languages are listed, recognition result will contain recognition
# in the most likely language detected including the main language_code. The
# recognition result will include the language tag of the language detected in
# the audio. Note: This feature is only supported for Voice Command and Voice
# Search use cases and performance may vary for other use cases (e.g., phone
# call transcription).
# Corresponds to the JSON property `alternativeLanguageCodes`
# @return [Array<String>]
attr_accessor :alternative_language_codes
# The number of channels in the input audio data.
# ONLY set this for MULTI-CHANNEL recognition.
# Valid values for LINEAR16 and FLAC are `1`-`8`.
# Valid values for OGG_OPUS are '1'-'254'.
# Valid value for MULAW, AMR, AMR_WB and SPEEX_WITH_HEADER_BYTE is only `1`.
# If `0` or omitted, defaults to one channel (mono).
# Note: We only recognize the first channel by default.
# To perform independent recognition on each channel set
# `enable_separate_recognition_per_channel` to 'true'.
# The number of channels in the input audio data. ONLY set this for MULTI-
# CHANNEL recognition. Valid values for LINEAR16 and FLAC are `1`-`8`. Valid
# values for OGG_OPUS are '1'-'254'. Valid value for MULAW, AMR, AMR_WB and
# SPEEX_WITH_HEADER_BYTE is only `1`. If `0` or omitted, defaults to one channel
# (mono). Note: We only recognize the first channel by default. To perform
# independent recognition on each channel set `
# enable_separate_recognition_per_channel` to 'true'.
# Corresponds to the JSON property `audioChannelCount`
# @return [Fixnum]
attr_accessor :audio_channel_count
@ -439,75 +428,70 @@ module Google
# @return [Fixnum]
attr_accessor :diarization_speaker_count
# If 'true', adds punctuation to recognition result hypotheses.
# This feature is only available in select languages. Setting this for
# requests in other languages has no effect at all.
# The default 'false' value does not add punctuation to result hypotheses.
# If 'true', adds punctuation to recognition result hypotheses. This feature is
# only available in select languages. Setting this for requests in other
# languages has no effect at all. The default 'false' value does not add
# punctuation to result hypotheses.
# Corresponds to the JSON property `enableAutomaticPunctuation`
# @return [Boolean]
attr_accessor :enable_automatic_punctuation
alias_method :enable_automatic_punctuation?, :enable_automatic_punctuation
# This needs to be set to `true` explicitly and `audio_channel_count` > 1
# to get each channel recognized separately. The recognition result will
# contain a `channel_tag` field to state which channel that result belongs
# to. If this is not true, we will only recognize the first channel. The
# request is billed cumulatively for all channels recognized:
# `audio_channel_count` multiplied by the length of the audio.
# This needs to be set to `true` explicitly and `audio_channel_count` > 1 to get
# each channel recognized separately. The recognition result will contain a `
# channel_tag` field to state which channel that result belongs to. If this is
# not true, we will only recognize the first channel. The request is billed
# cumulatively for all channels recognized: `audio_channel_count` multiplied by
# the length of the audio.
# Corresponds to the JSON property `enableSeparateRecognitionPerChannel`
# @return [Boolean]
attr_accessor :enable_separate_recognition_per_channel
alias_method :enable_separate_recognition_per_channel?, :enable_separate_recognition_per_channel
# If 'true', enables speaker detection for each recognized word in
# the top alternative of the recognition result using a speaker_tag provided
# in the WordInfo.
# Note: Use diarization_config instead.
# If 'true', enables speaker detection for each recognized word in the top
# alternative of the recognition result using a speaker_tag provided in the
# WordInfo. Note: Use diarization_config instead.
# Corresponds to the JSON property `enableSpeakerDiarization`
# @return [Boolean]
attr_accessor :enable_speaker_diarization
alias_method :enable_speaker_diarization?, :enable_speaker_diarization
# If `true`, the top result includes a list of words and the
# confidence for those words. If `false`, no word-level confidence
# information is returned. The default is `false`.
# If `true`, the top result includes a list of words and the confidence for
# those words. If `false`, no word-level confidence information is returned. The
# default is `false`.
# Corresponds to the JSON property `enableWordConfidence`
# @return [Boolean]
attr_accessor :enable_word_confidence
alias_method :enable_word_confidence?, :enable_word_confidence
# If `true`, the top result includes a list of words and
# the start and end time offsets (timestamps) for those words. If
# `false`, no word-level time offset information is returned. The default is
# `false`.
# If `true`, the top result includes a list of words and the start and end time
# offsets (timestamps) for those words. If `false`, no word-level time offset
# information is returned. The default is `false`.
# Corresponds to the JSON property `enableWordTimeOffsets`
# @return [Boolean]
attr_accessor :enable_word_time_offsets
alias_method :enable_word_time_offsets?, :enable_word_time_offsets
# Encoding of audio data sent in all `RecognitionAudio` messages.
# This field is optional for `FLAC` and `WAV` audio files and required
# for all other audio formats. For details, see AudioEncoding.
# Encoding of audio data sent in all `RecognitionAudio` messages. This field is
# optional for `FLAC` and `WAV` audio files and required for all other audio
# formats. For details, see AudioEncoding.
# Corresponds to the JSON property `encoding`
# @return [String]
attr_accessor :encoding
# Required. The language of the supplied audio as a
# [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
# Example: "en-US".
# See [Language
# Support](https://cloud.google.com/speech-to-text/docs/languages) for a list
# of the currently supported language codes.
# Required. The language of the supplied audio as a [BCP-47](https://www.rfc-
# editor.org/rfc/bcp/bcp47.txt) language tag. Example: "en-US". See [Language
# Support](https://cloud.google.com/speech-to-text/docs/languages) for a list of
# the currently supported language codes.
# Corresponds to the JSON property `languageCode`
# @return [String]
attr_accessor :language_code
# Maximum number of recognition hypotheses to be returned.
# Specifically, the maximum number of `SpeechRecognitionAlternative` messages
# within each `SpeechRecognitionResult`.
# The server may return fewer than `max_alternatives`.
# Valid values are `0`-`30`. A value of `0` or `1` will return a maximum of
# one. If omitted, will return a maximum of one.
# Maximum number of recognition hypotheses to be returned. Specifically, the
# maximum number of `SpeechRecognitionAlternative` messages within each `
# SpeechRecognitionResult`. The server may return fewer than `max_alternatives`.
# Valid values are `0`-`30`. A value of `0` or `1` will return a maximum of one.
# If omitted, will return a maximum of one.
# Corresponds to the JSON property `maxAlternatives`
# @return [Fixnum]
attr_accessor :max_alternatives
@ -517,78 +501,51 @@ module Google
# @return [Google::Apis::SpeechV1p1beta1::RecognitionMetadata]
attr_accessor :metadata
# Which model to select for the given request. Select the model
# best suited to your domain to get best results. If a model is not
# explicitly specified, then we auto-select a model based on the parameters
# in the RecognitionConfig.
# <table>
# <tr>
# <td><b>Model</b></td>
# <td><b>Description</b></td>
# </tr>
# <tr>
# <td><code>command_and_search</code></td>
# <td>Best for short queries such as voice commands or voice search.</td>
# </tr>
# <tr>
# <td><code>phone_call</code></td>
# <td>Best for audio that originated from a phone call (typically
# recorded at an 8khz sampling rate).</td>
# </tr>
# <tr>
# <td><code>video</code></td>
# <td>Best for audio that originated from from video or includes multiple
# speakers. Ideally the audio is recorded at a 16khz or greater
# sampling rate. This is a premium model that costs more than the
# standard rate.</td>
# </tr>
# <tr>
# <td><code>default</code></td>
# <td>Best for audio that is not one of the specific audio models.
# For example, long-form audio. Ideally the audio is high-fidelity,
# recorded at a 16khz or greater sampling rate.</td>
# </tr>
# </table>
# Which model to select for the given request. Select the model best suited to
# your domain to get best results. If a model is not explicitly specified, then
# we auto-select a model based on the parameters in the RecognitionConfig. *
# Model* *Description* command_and_search Best for short queries such as voice
# commands or voice search. phone_call Best for audio that originated from a
# phone call (typically recorded at an 8khz sampling rate). video Best for audio
# that originated from from video or includes multiple speakers. Ideally the
# audio is recorded at a 16khz or greater sampling rate. This is a premium model
# that costs more than the standard rate. default Best for audio that is not one
# of the specific audio models. For example, long-form audio. Ideally the audio
# is high-fidelity, recorded at a 16khz or greater sampling rate.
# Corresponds to the JSON property `model`
# @return [String]
attr_accessor :model
# If set to `true`, the server will attempt to filter out
# profanities, replacing all but the initial character in each filtered word
# with asterisks, e.g. "f***". If set to `false` or omitted, profanities
# won't be filtered out.
# If set to `true`, the server will attempt to filter out profanities, replacing
# all but the initial character in each filtered word with asterisks, e.g. "f***"
# . If set to `false` or omitted, profanities won't be filtered out.
# Corresponds to the JSON property `profanityFilter`
# @return [Boolean]
attr_accessor :profanity_filter
alias_method :profanity_filter?, :profanity_filter
# Sample rate in Hertz of the audio data sent in all
# `RecognitionAudio` messages. Valid values are: 8000-48000.
# 16000 is optimal. For best results, set the sampling rate of the audio
# source to 16000 Hz. If that's not possible, use the native sample rate of
# the audio source (instead of re-sampling).
# This field is optional for FLAC and WAV audio files, but is
# required for all other audio formats. For details, see AudioEncoding.
# Sample rate in Hertz of the audio data sent in all `RecognitionAudio` messages.
# Valid values are: 8000-48000. 16000 is optimal. For best results, set the
# sampling rate of the audio source to 16000 Hz. If that's not possible, use the
# native sample rate of the audio source (instead of re-sampling). This field is
# optional for FLAC and WAV audio files, but is required for all other audio
# formats. For details, see AudioEncoding.
# Corresponds to the JSON property `sampleRateHertz`
# @return [Fixnum]
attr_accessor :sample_rate_hertz
# Array of SpeechContext.
# A means to provide context to assist the speech recognition. For more
# information, see
# [speech
# adaptation](https://cloud.google.com/speech-to-text/docs/context-strength).
# Array of SpeechContext. A means to provide context to assist the speech
# recognition. For more information, see [speech adaptation](https://cloud.
# google.com/speech-to-text/docs/context-strength).
# Corresponds to the JSON property `speechContexts`
# @return [Array<Google::Apis::SpeechV1p1beta1::SpeechContext>]
attr_accessor :speech_contexts
# Set to true to use an enhanced model for speech recognition.
# If `use_enhanced` is set to true and the `model` field is not set, then
# an appropriate enhanced model is chosen if an enhanced model exists for
# the audio.
# If `use_enhanced` is true and an enhanced version of the specified model
# does not exist, then the speech is recognized using the standard version
# of the specified model.
# Set to true to use an enhanced model for speech recognition. If `use_enhanced`
# is set to true and the `model` field is not set, then an appropriate enhanced
# model is chosen if an enhanced model exists for the audio. If `use_enhanced`
# is true and an enhanced version of the specified model does not exist, then
# the speech is recognized using the standard version of the specified model.
# Corresponds to the JSON property `useEnhanced`
# @return [Boolean]
attr_accessor :use_enhanced
@ -626,16 +583,16 @@ module Google
class RecognitionMetadata
include Google::Apis::Core::Hashable
# Description of the content. Eg. "Recordings of federal supreme court
# hearings from 2012".
# Description of the content. Eg. "Recordings of federal supreme court hearings
# from 2012".
# Corresponds to the JSON property `audioTopic`
# @return [String]
attr_accessor :audio_topic
# The industry vertical to which this speech recognition request most
# closely applies. This is most indicative of the topics contained
# in the audio. Use the 6-digit NAICS code to identify the industry
# vertical - see https://www.naics.com/search/.
# The industry vertical to which this speech recognition request most closely
# applies. This is most indicative of the topics contained in the audio. Use the
# 6-digit NAICS code to identify the industry vertical - see https://www.naics.
# com/search/.
# Corresponds to the JSON property `industryNaicsCodeOfAudio`
# @return [Fixnum]
attr_accessor :industry_naics_code_of_audio
@ -650,8 +607,8 @@ module Google
# @return [String]
attr_accessor :microphone_distance
# Obfuscated (privacy-protected) ID of the user, to identify number of
# unique users using the service.
# Obfuscated (privacy-protected) ID of the user, to identify number of unique
# users using the service.
# Corresponds to the JSON property `obfuscatedId`
# @return [Fixnum]
attr_accessor :obfuscated_id
@ -661,17 +618,16 @@ module Google
# @return [String]
attr_accessor :original_media_type
# Mime type of the original audio file. For example `audio/m4a`,
# `audio/x-alaw-basic`, `audio/mp3`, `audio/3gpp`.
# A list of possible audio mime types is maintained at
# http://www.iana.org/assignments/media-types/media-types.xhtml#audio
# Mime type of the original audio file. For example `audio/m4a`, `audio/x-alaw-
# basic`, `audio/mp3`, `audio/3gpp`. A list of possible audio mime types is
# maintained at http://www.iana.org/assignments/media-types/media-types.xhtml#
# audio
# Corresponds to the JSON property `originalMimeType`
# @return [String]
attr_accessor :original_mime_type
# The device used to make the recording. Examples 'Nexus 5X' or
# 'Polycom SoundStation IP 6000' or 'POTS' or 'VoIP' or
# 'Cardioid Microphone'.
# The device used to make the recording. Examples 'Nexus 5X' or 'Polycom
# SoundStation IP 6000' or 'POTS' or 'VoIP' or 'Cardioid Microphone'.
# Corresponds to the JSON property `recordingDeviceName`
# @return [String]
attr_accessor :recording_device_name
@ -704,9 +660,9 @@ module Google
include Google::Apis::Core::Hashable
# Contains audio data in the encoding specified in the `RecognitionConfig`.
# Either `content` or `uri` must be supplied. Supplying both or neither
# returns google.rpc.Code.INVALID_ARGUMENT. See
# [content limits](https://cloud.google.com/speech-to-text/quotas#content).
# Either `content` or `uri` must be supplied. Supplying both or neither returns
# google.rpc.Code.INVALID_ARGUMENT. See [content limits](https://cloud.google.
# com/speech-to-text/quotas#content).
# Corresponds to the JSON property `audio`
# @return [Google::Apis::SpeechV1p1beta1::RecognitionAudio]
attr_accessor :audio
@ -728,14 +684,13 @@ module Google
end
end
# The only message returned to the client by the `Recognize` method. It
# contains the result as zero or more sequential `SpeechRecognitionResult`
# messages.
# The only message returned to the client by the `Recognize` method. It contains
# the result as zero or more sequential `SpeechRecognitionResult` messages.
class RecognizeResponse
include Google::Apis::Core::Hashable
# Sequential list of transcription results corresponding to
# sequential portions of audio.
# Sequential list of transcription results corresponding to sequential portions
# of audio.
# Corresponds to the JSON property `results`
# @return [Array<Google::Apis::SpeechV1p1beta1::SpeechRecognitionResult>]
attr_accessor :results
@ -754,9 +709,9 @@ module Google
class SpeakerDiarizationConfig
include Google::Apis::Core::Hashable
# If 'true', enables speaker detection for each recognized word in
# the top alternative of the recognition result using a speaker_tag provided
# in the WordInfo.
# If 'true', enables speaker detection for each recognized word in the top
# alternative of the recognition result using a speaker_tag provided in the
# WordInfo.
# Corresponds to the JSON property `enableSpeakerDiarization`
# @return [Boolean]
attr_accessor :enable_speaker_diarization
@ -798,17 +753,17 @@ module Google
class SpeechAdaptation
include Google::Apis::Core::Hashable
# A collection of custom classes. To specify the classes inline, leave the
# class' `name` blank and fill in the rest of its fields, giving it a unique
# `custom_class_id`. Refer to the inline defined class in phrase hints by its
# `custom_class_id`.
# A collection of custom classes. To specify the classes inline, leave the class'
# `name` blank and fill in the rest of its fields, giving it a unique `
# custom_class_id`. Refer to the inline defined class in phrase hints by its `
# custom_class_id`.
# Corresponds to the JSON property `customClasses`
# @return [Array<Google::Apis::SpeechV1p1beta1::CustomClass>]
attr_accessor :custom_classes
# A collection of phrase sets. To specify the hints inline, leave the
# phrase set's `name` blank and fill in the rest of its fields. Any
# phrase set can use any custom class.
# A collection of phrase sets. To specify the hints inline, leave the phrase set'
# s `name` blank and fill in the rest of its fields. Any phrase set can use any
# custom class.
# Corresponds to the JSON property `phraseSets`
# @return [Array<Google::Apis::SpeechV1p1beta1::PhraseSet>]
attr_accessor :phrase_sets
@ -830,28 +785,27 @@ module Google
include Google::Apis::Core::Hashable
# Hint Boost. Positive value will increase the probability that a specific
# phrase will be recognized over other similar sounding phrases. The higher
# the boost, the higher the chance of false positive recognition as well.
# Negative boost values would correspond to anti-biasing. Anti-biasing is not
# enabled, so negative boost will simply be ignored. Though `boost` can
# accept a wide range of positive values, most use cases are best served with
# values between 0 and 20. We recommend using a binary search approach to
# finding the optimal value for your use case.
# phrase will be recognized over other similar sounding phrases. The higher the
# boost, the higher the chance of false positive recognition as well. Negative
# boost values would correspond to anti-biasing. Anti-biasing is not enabled, so
# negative boost will simply be ignored. Though `boost` can accept a wide range
# of positive values, most use cases are best served with values between 0 and
# 20. We recommend using a binary search approach to finding the optimal value
# for your use case.
# Corresponds to the JSON property `boost`
# @return [Float]
attr_accessor :boost
# A list of strings containing words and phrases "hints" so that
# the speech recognition is more likely to recognize them. This can be used
# to improve the accuracy for specific words and phrases, for example, if
# specific commands are typically spoken by the user. This can also be used
# to add additional words to the vocabulary of the recognizer. See
# [usage limits](https://cloud.google.com/speech-to-text/quotas#content).
# List items can also be set to classes for groups of words that represent
# common concepts that occur in natural language. For example, rather than
# providing phrase hints for every month of the year, using the $MONTH class
# improves the likelihood of correctly transcribing audio that includes
# months.
# A list of strings containing words and phrases "hints" so that the speech
# recognition is more likely to recognize them. This can be used to improve the
# accuracy for specific words and phrases, for example, if specific commands are
# typically spoken by the user. This can also be used to add additional words to
# the vocabulary of the recognizer. See [usage limits](https://cloud.google.com/
# speech-to-text/quotas#content). List items can also be set to classes for
# groups of words that represent common concepts that occur in natural language.
# For example, rather than providing phrase hints for every month of the year,
# using the $MONTH class improves the likelihood of correctly transcribing audio
# that includes months.
# Corresponds to the JSON property `phrases`
# @return [Array<String>]
attr_accessor :phrases
@ -871,13 +825,12 @@ module Google
class SpeechRecognitionAlternative
include Google::Apis::Core::Hashable
# The confidence estimate between 0.0 and 1.0. A higher number
# indicates an estimated greater likelihood that the recognized words are
# correct. This field is set only for the top alternative of a non-streaming
# result or, of a streaming result where `is_final=true`.
# This field is not guaranteed to be accurate and users should not rely on it
# to be always provided.
# The default of 0.0 is a sentinel value indicating `confidence` was not set.
# The confidence estimate between 0.0 and 1.0. A higher number indicates an
# estimated greater likelihood that the recognized words are correct. This field
# is set only for the top alternative of a non-streaming result or, of a
# streaming result where `is_final=true`. This field is not guaranteed to be
# accurate and users should not rely on it to be always provided. The default of
# 0.0 is a sentinel value indicating `confidence` was not set.
# Corresponds to the JSON property `confidence`
# @return [Float]
attr_accessor :confidence
@ -887,9 +840,9 @@ module Google
# @return [String]
attr_accessor :transcript
# A list of word-specific information for each recognized word.
# Note: When `enable_speaker_diarization` is true, you will see all the words
# from the beginning of the audio.
# A list of word-specific information for each recognized word. Note: When `
# enable_speaker_diarization` is true, you will see all the words from the
# beginning of the audio.
# Corresponds to the JSON property `words`
# @return [Array<Google::Apis::SpeechV1p1beta1::WordInfo>]
attr_accessor :words
@ -910,25 +863,24 @@ module Google
class SpeechRecognitionResult
include Google::Apis::Core::Hashable
# May contain one or more recognition hypotheses (up to the
# maximum specified in `max_alternatives`).
# These alternatives are ordered in terms of accuracy, with the top (first)
# alternative being the most probable, as ranked by the recognizer.
# May contain one or more recognition hypotheses (up to the maximum specified in
# `max_alternatives`). These alternatives are ordered in terms of accuracy, with
# the top (first) alternative being the most probable, as ranked by the
# recognizer.
# Corresponds to the JSON property `alternatives`
# @return [Array<Google::Apis::SpeechV1p1beta1::SpeechRecognitionAlternative>]
attr_accessor :alternatives
# For multi-channel audio, this is the channel number corresponding to the
# recognized result for the audio from that channel.
# For audio_channel_count = N, its output values can range from '1' to 'N'.
# recognized result for the audio from that channel. For audio_channel_count = N,
# its output values can range from '1' to 'N'.
# Corresponds to the JSON property `channelTag`
# @return [Fixnum]
attr_accessor :channel_tag
# Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt)
# language tag
# of the language in this result. This language code was detected to have
# the most likelihood of being spoken in the audio.
# language tag of the language in this result. This language code was detected
# to have the most likelihood of being spoken in the audio.
# Corresponds to the JSON property `languageCode`
# @return [String]
attr_accessor :language_code
@ -945,12 +897,12 @@ module Google
end
end
# The `Status` type defines a logical error model that is suitable for
# different programming environments, including REST APIs and RPC APIs. It is
# used by [gRPC](https://github.com/grpc). Each `Status` message contains
# three pieces of data: error code, error message, and error details.
# You can find out more about this error model and how to work with it in the
# [API Design Guide](https://cloud.google.com/apis/design/errors).
# The `Status` type defines a logical error model that is suitable for different
# programming environments, including REST APIs and RPC APIs. It is used by [
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
# data: error code, error message, and error details. You can find out more
# about this error model and how to work with it in the [API Design Guide](https:
# //cloud.google.com/apis/design/errors).
class Status
include Google::Apis::Core::Hashable
@ -959,15 +911,15 @@ module Google
# @return [Fixnum]
attr_accessor :code
# A list of messages that carry the error details. There is a common set of
# A list of messages that carry the error details. There is a common set of
# message types for APIs to use.
# Corresponds to the JSON property `details`
# @return [Array<Hash<String,Object>>]
attr_accessor :details
# A developer-facing error message, which should be in English. Any
# user-facing error message should be localized and sent in the
# google.rpc.Status.details field, or localized by the client.
# A developer-facing error message, which should be in English. Any user-facing
# error message should be localized and sent in the google.rpc.Status.details
# field, or localized by the client.
# Corresponds to the JSON property `message`
# @return [String]
attr_accessor :message
@ -988,42 +940,37 @@ module Google
class WordInfo
include Google::Apis::Core::Hashable
# The confidence estimate between 0.0 and 1.0. A higher number
# indicates an estimated greater likelihood that the recognized words are
# correct. This field is set only for the top alternative of a non-streaming
# result or, of a streaming result where `is_final=true`.
# This field is not guaranteed to be accurate and users should not rely on it
# to be always provided.
# The default of 0.0 is a sentinel value indicating `confidence` was not set.
# The confidence estimate between 0.0 and 1.0. A higher number indicates an
# estimated greater likelihood that the recognized words are correct. This field
# is set only for the top alternative of a non-streaming result or, of a
# streaming result where `is_final=true`. This field is not guaranteed to be
# accurate and users should not rely on it to be always provided. The default of
# 0.0 is a sentinel value indicating `confidence` was not set.
# Corresponds to the JSON property `confidence`
# @return [Float]
attr_accessor :confidence
# Time offset relative to the beginning of the audio,
# and corresponding to the end of the spoken word.
# This field is only set if `enable_word_time_offsets=true` and only
# in the top hypothesis.
# This is an experimental feature and the accuracy of the time offset can
# vary.
# Time offset relative to the beginning of the audio, and corresponding to the
# end of the spoken word. This field is only set if `enable_word_time_offsets=
# true` and only in the top hypothesis. This is an experimental feature and the
# accuracy of the time offset can vary.
# Corresponds to the JSON property `endTime`
# @return [String]
attr_accessor :end_time
# Output only. A distinct integer value is assigned for every speaker within
# the audio. This field specifies which one of those speakers was detected to
# have spoken this word. Value ranges from '1' to diarization_speaker_count.
# speaker_tag is set if enable_speaker_diarization = 'true' and only in the
# top alternative.
# Output only. A distinct integer value is assigned for every speaker within the
# audio. This field specifies which one of those speakers was detected to have
# spoken this word. Value ranges from '1' to diarization_speaker_count.
# speaker_tag is set if enable_speaker_diarization = 'true' and only in the top
# alternative.
# Corresponds to the JSON property `speakerTag`
# @return [Fixnum]
attr_accessor :speaker_tag
# Time offset relative to the beginning of the audio,
# and corresponding to the start of the spoken word.
# This field is only set if `enable_word_time_offsets=true` and only
# in the top hypothesis.
# This is an experimental feature and the accuracy of the time offset can
# vary.
# Time offset relative to the beginning of the audio, and corresponding to the
# start of the spoken word. This field is only set if `enable_word_time_offsets=
# true` and only in the top hypothesis. This is an experimental feature and the
# accuracy of the time offset can vary.
# Corresponds to the JSON property `startTime`
# @return [String]
attr_accessor :start_time

View File

@ -47,9 +47,8 @@ module Google
@batch_path = 'batch'
end
# Gets the latest state of a long-running operation. Clients can use this
# method to poll the operation result at intervals as recommended by the API
# service.
# Gets the latest state of a long-running operation. Clients can use this method
# to poll the operation result at intervals as recommended by the API service.
# @param [String] name
# The name of the operation resource.
# @param [String] fields
@ -79,15 +78,14 @@ module Google
execute_or_queue_command(command, &block)
end
# Lists operations that match the specified filter in the request. If the
# server doesn't support this method, it returns `UNIMPLEMENTED`.
# NOTE: the `name` binding allows API services to override the binding
# to use different resource name schemes, such as `users/*/operations`. To
# override the binding, API services can add a binding such as
# `"/v1/`name=users/*`/operations"` to their service configuration.
# For backwards compatibility, the default name includes the operations
# collection id, however overriding users must ensure the name binding
# is the parent resource, without the operations collection id.
# Lists operations that match the specified filter in the request. If the server
# doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
# binding allows API services to override the binding to use different resource
# name schemes, such as `users/*/operations`. To override the binding, API
# services can add a binding such as `"/v1/`name=users/*`/operations"` to their
# service configuration. For backwards compatibility, the default name includes
# the operations collection id, however overriding users must ensure the name
# binding is the parent resource, without the operations collection id.
# @param [String] filter
# The standard list filter.
# @param [String] name
@ -126,9 +124,8 @@ module Google
execute_or_queue_command(command, &block)
end
# Gets the latest state of a long-running operation. Clients can use this
# method to poll the operation result at intervals as recommended by the API
# service.
# Gets the latest state of a long-running operation. Clients can use this method
# to poll the operation result at intervals as recommended by the API service.
# @param [String] name
# The name of the operation resource.
# @param [String] fields
@ -158,15 +155,14 @@ module Google
execute_or_queue_command(command, &block)
end
# Lists operations that match the specified filter in the request. If the
# server doesn't support this method, it returns `UNIMPLEMENTED`.
# NOTE: the `name` binding allows API services to override the binding
# to use different resource name schemes, such as `users/*/operations`. To
# override the binding, API services can add a binding such as
# `"/v1/`name=users/*`/operations"` to their service configuration.
# For backwards compatibility, the default name includes the operations
# collection id, however overriding users must ensure the name binding
# is the parent resource, without the operations collection id.
# Lists operations that match the specified filter in the request. If the server
# doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
# binding allows API services to override the binding to use different resource
# name schemes, such as `users/*/operations`. To override the binding, API
# services can add a binding such as `"/v1/`name=users/*`/operations"` to their
# service configuration. For backwards compatibility, the default name includes
# the operations collection id, however overriding users must ensure the name
# binding is the parent resource, without the operations collection id.
# @param [String] name
# The name of the operation's parent resource.
# @param [String] filter
@ -205,12 +201,11 @@ module Google
execute_or_queue_command(command, &block)
end
# Performs asynchronous speech recognition: receive results via the
# google.longrunning.Operations interface. Returns either an
# `Operation.error` or an `Operation.response` which contains
# a `LongRunningRecognizeResponse` message.
# For more information on asynchronous speech recognition, see the
# [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).
# Performs asynchronous speech recognition: receive results via the google.
# longrunning.Operations interface. Returns either an `Operation.error` or an `
# Operation.response` which contains a `LongRunningRecognizeResponse` message.
# For more information on asynchronous speech recognition, see the [how-to](
# https://cloud.google.com/speech-to-text/docs/async-recognize).
# @param [Google::Apis::SpeechV1p1beta1::LongRunningRecognizeRequest] long_running_recognize_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -240,8 +235,8 @@ module Google
execute_or_queue_command(command, &block)
end
# Performs synchronous speech recognition: receive results after all audio
# has been sent and processed.
# Performs synchronous speech recognition: receive results after all audio has
# been sent and processed.
# @param [Google::Apis::SpeechV1p1beta1::RecognizeRequest] recognize_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/speech-to-text/docs/quickstart-protocol
module SpeechV2beta1
VERSION = 'V2beta1'
REVISION = '20200326'
REVISION = '20200824'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -48,8 +48,8 @@ module Google
end
# Describes the progress of a long-running `LongRunningRecognize` call. It is
# included in the `metadata` field of the `Operation` returned by the
# `GetOperation` call of the `google::longrunning::Operations` service.
# included in the `metadata` field of the `Operation` returned by the `
# GetOperation` call of the `google::longrunning::Operations` service.
class LongRunningRecognizeMetadata
include Google::Apis::Core::Hashable
@ -59,8 +59,7 @@ module Google
attr_accessor :last_update_time
# Output only. Approximate percentage of audio processed thus far. Guaranteed to
# be 100
# when the audio is fully processed and the results are available.
# be 100 when the audio is fully processed and the results are available.
# Corresponds to the JSON property `progressPercent`
# @return [Fixnum]
attr_accessor :progress_percent
@ -70,8 +69,8 @@ module Google
# @return [String]
attr_accessor :start_time
# The URI of the audio file being transcribed. Empty if the audio was sent
# as byte content.
# The URI of the audio file being transcribed. Empty if the audio was sent as
# byte content.
# Corresponds to the JSON property `uri`
# @return [String]
attr_accessor :uri
@ -118,47 +117,45 @@ module Google
class Operation
include Google::Apis::Core::Hashable
# If the value is `false`, it means the operation is still in progress.
# If `true`, the operation is completed, and either `error` or `response` is
# available.
# If the value is `false`, it means the operation is still in progress. If `true`
# , the operation is completed, and either `error` or `response` is available.
# Corresponds to the JSON property `done`
# @return [Boolean]
attr_accessor :done
alias_method :done?, :done
# The `Status` type defines a logical error model that is suitable for
# different programming environments, including REST APIs and RPC APIs. It is
# used by [gRPC](https://github.com/grpc). Each `Status` message contains
# three pieces of data: error code, error message, and error details.
# You can find out more about this error model and how to work with it in the
# [API Design Guide](https://cloud.google.com/apis/design/errors).
# The `Status` type defines a logical error model that is suitable for different
# programming environments, including REST APIs and RPC APIs. It is used by [
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
# data: error code, error message, and error details. You can find out more
# about this error model and how to work with it in the [API Design Guide](https:
# //cloud.google.com/apis/design/errors).
# Corresponds to the JSON property `error`
# @return [Google::Apis::SpeechV2beta1::Status]
attr_accessor :error
# Service-specific metadata associated with the operation. It typically
# contains progress information and common metadata such as create time.
# Some services might not provide such metadata. Any method that returns a
# long-running operation should document the metadata type, if any.
# Service-specific metadata associated with the operation. It typically contains
# progress information and common metadata such as create time. Some services
# might not provide such metadata. Any method that returns a long-running
# operation should document the metadata type, if any.
# Corresponds to the JSON property `metadata`
# @return [Hash<String,Object>]
attr_accessor :metadata
# The server-assigned name, which is only unique within the same service that
# originally returns it. If you use the default HTTP mapping, the
# `name` should be a resource name ending with `operations/`unique_id``.
# originally returns it. If you use the default HTTP mapping, the `name` should
# be a resource name ending with `operations/`unique_id``.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# The normal response of the operation in case of success. If the original
# method returns no data on success, such as `Delete`, the response is
# `google.protobuf.Empty`. If the original method is standard
# `Get`/`Create`/`Update`, the response should be the resource. For other
# methods, the response should have the type `XxxResponse`, where `Xxx`
# is the original method name. For example, if the original method name
# is `TakeSnapshot()`, the inferred response type is
# `TakeSnapshotResponse`.
# The normal response of the operation in case of success. If the original
# method returns no data on success, such as `Delete`, the response is `google.
# protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
# the response should be the resource. For other methods, the response should
# have the type `XxxResponse`, where `Xxx` is the original method name. For
# example, if the original method name is `TakeSnapshot()`, the inferred
# response type is `TakeSnapshotResponse`.
# Corresponds to the JSON property `response`
# @return [Hash<String,Object>]
attr_accessor :response
@ -184,10 +181,10 @@ module Google
# Output only. The confidence estimate between 0.0 and 1.0. A higher number
# indicates an estimated greater likelihood that the recognized words are
# correct. This field is set only for the top alternative of a non-streaming
# result or, of a streaming result where `is_final=true`.
# This field is not guaranteed to be accurate and users should not rely on it
# to be always provided.
# The default of 0.0 is a sentinel value indicating `confidence` was not set.
# result or, of a streaming result where `is_final=true`. This field is not
# guaranteed to be accurate and users should not rely on it to be always
# provided. The default of 0.0 is a sentinel value indicating `confidence` was
# not set.
# Corresponds to the JSON property `confidence`
# @return [Float]
attr_accessor :confidence
@ -220,26 +217,24 @@ module Google
class SpeechRecognitionResult
include Google::Apis::Core::Hashable
# Output only. May contain one or more recognition hypotheses (up to the
# maximum specified in `max_alternatives`).
# These alternatives are ordered in terms of accuracy, with the top (first)
# alternative being the most probable, as ranked by the recognizer.
# Output only. May contain one or more recognition hypotheses (up to the maximum
# specified in `max_alternatives`). These alternatives are ordered in terms of
# accuracy, with the top (first) alternative being the most probable, as ranked
# by the recognizer.
# Corresponds to the JSON property `alternatives`
# @return [Array<Google::Apis::SpeechV2beta1::SpeechRecognitionAlternative>]
attr_accessor :alternatives
# Output only. For multi-channel audio, this is the channel number corresponding
# to the
# recognized result for the audio from that channel.
# For `audio_channel_count` = N, its output values can range from `1` to `N`.
# to the recognized result for the audio from that channel. For `
# audio_channel_count` = N, its output values can range from `1` to `N`.
# Corresponds to the JSON property `channelTag`
# @return [Fixnum]
attr_accessor :channel_tag
# Output only. The
# [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag of the
# language in this result. This language code was detected to have the most
# likelihood of being spoken in the audio.
# Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt)
# language tag of the language in this result. This language code was detected
# to have the most likelihood of being spoken in the audio.
# Corresponds to the JSON property `languageCode`
# @return [String]
attr_accessor :language_code
@ -256,12 +251,12 @@ module Google
end
end
# The `Status` type defines a logical error model that is suitable for
# different programming environments, including REST APIs and RPC APIs. It is
# used by [gRPC](https://github.com/grpc). Each `Status` message contains
# three pieces of data: error code, error message, and error details.
# You can find out more about this error model and how to work with it in the
# [API Design Guide](https://cloud.google.com/apis/design/errors).
# The `Status` type defines a logical error model that is suitable for different
# programming environments, including REST APIs and RPC APIs. It is used by [
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
# data: error code, error message, and error details. You can find out more
# about this error model and how to work with it in the [API Design Guide](https:
# //cloud.google.com/apis/design/errors).
class Status
include Google::Apis::Core::Hashable
@ -270,15 +265,15 @@ module Google
# @return [Fixnum]
attr_accessor :code
# A list of messages that carry the error details. There is a common set of
# A list of messages that carry the error details. There is a common set of
# message types for APIs to use.
# Corresponds to the JSON property `details`
# @return [Array<Hash<String,Object>>]
attr_accessor :details
# A developer-facing error message, which should be in English. Any
# user-facing error message should be localized and sent in the
# google.rpc.Status.details field, or localized by the client.
# A developer-facing error message, which should be in English. Any user-facing
# error message should be localized and sent in the google.rpc.Status.details
# field, or localized by the client.
# Corresponds to the JSON property `message`
# @return [String]
attr_accessor :message
@ -302,40 +297,35 @@ module Google
# Output only. The confidence estimate between 0.0 and 1.0. A higher number
# indicates an estimated greater likelihood that the recognized words are
# correct. This field is set only for the top alternative of a non-streaming
# result or, of a streaming result where `is_final=true`.
# This field is not guaranteed to be accurate and users should not rely on it
# to be always provided.
# The default of 0.0 is a sentinel value indicating `confidence` was not set.
# result or, of a streaming result where `is_final=true`. This field is not
# guaranteed to be accurate and users should not rely on it to be always
# provided. The default of 0.0 is a sentinel value indicating `confidence` was
# not set.
# Corresponds to the JSON property `confidence`
# @return [Float]
attr_accessor :confidence
# Output only. Time offset relative to the beginning of the audio,
# and corresponding to the end of the spoken word.
# This field is only set if `enable_word_time_offsets=true` and only
# in the top hypothesis.
# This is an experimental feature and the accuracy of the time offset can
# vary.
# Output only. Time offset relative to the beginning of the audio, and
# corresponding to the end of the spoken word. This field is only set if `
# enable_word_time_offsets=true` and only in the top hypothesis. This is an
# experimental feature and the accuracy of the time offset can vary.
# Corresponds to the JSON property `endOffset`
# @return [String]
attr_accessor :end_offset
# Output only. A distinct integer value is assigned for every speaker within
# the audio. This field specifies which one of those speakers was detected to
# have spoken this word. Value ranges from `1` to
# `diarization_config.max_speaker_count` . `speaker_tag` is set if
# `diarization_config.enable_speaker_diarization` = `true` and only in the
# top alternative.
# Output only. A distinct integer value is assigned for every speaker within the
# audio. This field specifies which one of those speakers was detected to have
# spoken this word. Value ranges from `1` to `diarization_config.
# max_speaker_count` . `speaker_tag` is set if `diarization_config.
# enable_speaker_diarization` = `true` and only in the top alternative.
# Corresponds to the JSON property `speakerTag`
# @return [Fixnum]
attr_accessor :speaker_tag
# Output only. Time offset relative to the beginning of the audio,
# and corresponding to the start of the spoken word.
# This field is only set if `enable_word_time_offsets=true` and only
# in the top hypothesis.
# This is an experimental feature and the accuracy of the time offset can
# vary.
# Output only. Time offset relative to the beginning of the audio, and
# corresponding to the start of the spoken word. This field is only set if `
# enable_word_time_offsets=true` and only in the top hypothesis. This is an
# experimental feature and the accuracy of the time offset can vary.
# Corresponds to the JSON property `startOffset`
# @return [String]
attr_accessor :start_offset

View File

@ -47,9 +47,8 @@ module Google
@batch_path = 'batch'
end
# Gets the latest state of a long-running operation. Clients can use this
# method to poll the operation result at intervals as recommended by the API
# service.
# Gets the latest state of a long-running operation. Clients can use this method
# to poll the operation result at intervals as recommended by the API service.
# @param [String] name
# The name of the operation resource.
# @param [String] fields
@ -79,15 +78,14 @@ module Google
execute_or_queue_command(command, &block)
end
# Lists operations that match the specified filter in the request. If the
# server doesn't support this method, it returns `UNIMPLEMENTED`.
# NOTE: the `name` binding allows API services to override the binding
# to use different resource name schemes, such as `users/*/operations`. To
# override the binding, API services can add a binding such as
# `"/v1/`name=users/*`/operations"` to their service configuration.
# For backwards compatibility, the default name includes the operations
# collection id, however overriding users must ensure the name binding
# is the parent resource, without the operations collection id.
# Lists operations that match the specified filter in the request. If the server
# doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
# binding allows API services to override the binding to use different resource
# name schemes, such as `users/*/operations`. To override the binding, API
# services can add a binding such as `"/v1/`name=users/*`/operations"` to their
# service configuration. For backwards compatibility, the default name includes
# the operations collection id, however overriding users must ensure the name
# binding is the parent resource, without the operations collection id.
# @param [String] name
# The name of the operation's parent resource.
# @param [String] filter