Autogenerated update (2018-01-24)

Update:
- appengine_v1beta
- cloudiot_v1
- cloudtasks_v2beta2
- partners_v2
- vision_v1
This commit is contained in:
Google APIs 2018-01-24 00:35:28 +00:00
parent a64cf30e0a
commit 74d4292732
17 changed files with 559 additions and 515 deletions

View File

@ -7793,6 +7793,8 @@
"/appengine:v1beta/AutomaticScaling": automatic_scaling "/appengine:v1beta/AutomaticScaling": automatic_scaling
"/appengine:v1beta/AutomaticScaling/coolDownPeriod": cool_down_period "/appengine:v1beta/AutomaticScaling/coolDownPeriod": cool_down_period
"/appengine:v1beta/AutomaticScaling/cpuUtilization": cpu_utilization "/appengine:v1beta/AutomaticScaling/cpuUtilization": cpu_utilization
"/appengine:v1beta/AutomaticScaling/customMetrics": custom_metrics
"/appengine:v1beta/AutomaticScaling/customMetrics/custom_metric": custom_metric
"/appengine:v1beta/AutomaticScaling/diskUtilization": disk_utilization "/appengine:v1beta/AutomaticScaling/diskUtilization": disk_utilization
"/appengine:v1beta/AutomaticScaling/maxConcurrentRequests": max_concurrent_requests "/appengine:v1beta/AutomaticScaling/maxConcurrentRequests": max_concurrent_requests
"/appengine:v1beta/AutomaticScaling/maxIdleInstances": max_idle_instances "/appengine:v1beta/AutomaticScaling/maxIdleInstances": max_idle_instances
@ -7830,6 +7832,12 @@
"/appengine:v1beta/CreateVersionMetadataV1Alpha/cloudBuildId": cloud_build_id "/appengine:v1beta/CreateVersionMetadataV1Alpha/cloudBuildId": cloud_build_id
"/appengine:v1beta/CreateVersionMetadataV1Beta": create_version_metadata_v1_beta "/appengine:v1beta/CreateVersionMetadataV1Beta": create_version_metadata_v1_beta
"/appengine:v1beta/CreateVersionMetadataV1Beta/cloudBuildId": cloud_build_id "/appengine:v1beta/CreateVersionMetadataV1Beta/cloudBuildId": cloud_build_id
"/appengine:v1beta/CustomMetric": custom_metric
"/appengine:v1beta/CustomMetric/filter": filter
"/appengine:v1beta/CustomMetric/metricName": metric_name
"/appengine:v1beta/CustomMetric/singleInstanceAssignment": single_instance_assignment
"/appengine:v1beta/CustomMetric/targetType": target_type
"/appengine:v1beta/CustomMetric/targetUtilization": target_utilization
"/appengine:v1beta/DebugInstanceRequest": debug_instance_request "/appengine:v1beta/DebugInstanceRequest": debug_instance_request
"/appengine:v1beta/DebugInstanceRequest/sshKey": ssh_key "/appengine:v1beta/DebugInstanceRequest/sshKey": ssh_key
"/appengine:v1beta/Deployment": deployment "/appengine:v1beta/Deployment": deployment
@ -67614,6 +67622,7 @@
"/vision:v1/Block": block "/vision:v1/Block": block
"/vision:v1/Block/blockType": block_type "/vision:v1/Block/blockType": block_type
"/vision:v1/Block/boundingBox": bounding_box "/vision:v1/Block/boundingBox": bounding_box
"/vision:v1/Block/confidence": confidence
"/vision:v1/Block/paragraphs": paragraphs "/vision:v1/Block/paragraphs": paragraphs
"/vision:v1/Block/paragraphs/paragraph": paragraph "/vision:v1/Block/paragraphs/paragraph": paragraph
"/vision:v1/Block/property": property "/vision:v1/Block/property": property
@ -67679,6 +67688,7 @@
"/vision:v1/FaceAnnotation/underExposedLikelihood": under_exposed_likelihood "/vision:v1/FaceAnnotation/underExposedLikelihood": under_exposed_likelihood
"/vision:v1/Feature": feature "/vision:v1/Feature": feature
"/vision:v1/Feature/maxResults": max_results "/vision:v1/Feature/maxResults": max_results
"/vision:v1/Feature/model": model
"/vision:v1/Feature/type": type "/vision:v1/Feature/type": type
"/vision:v1/GoogleCloudVisionV1AnnotateImageRequest": google_cloud_vision_v1_annotate_image_request "/vision:v1/GoogleCloudVisionV1AnnotateImageRequest": google_cloud_vision_v1_annotate_image_request
"/vision:v1/GoogleCloudVisionV1AnnotateImageRequest/features": features "/vision:v1/GoogleCloudVisionV1AnnotateImageRequest/features": features
@ -67880,6 +67890,7 @@
"/vision:v1/ImageContext/languageHints": language_hints "/vision:v1/ImageContext/languageHints": language_hints
"/vision:v1/ImageContext/languageHints/language_hint": language_hint "/vision:v1/ImageContext/languageHints/language_hint": language_hint
"/vision:v1/ImageContext/latLongRect": lat_long_rect "/vision:v1/ImageContext/latLongRect": lat_long_rect
"/vision:v1/ImageContext/webDetectionParams": web_detection_params
"/vision:v1/ImageProperties": image_properties "/vision:v1/ImageProperties": image_properties
"/vision:v1/ImageProperties/dominantColors": dominant_colors "/vision:v1/ImageProperties/dominantColors": dominant_colors
"/vision:v1/ImageSource": image_source "/vision:v1/ImageSource": image_source
@ -67899,11 +67910,13 @@
"/vision:v1/Page": page "/vision:v1/Page": page
"/vision:v1/Page/blocks": blocks "/vision:v1/Page/blocks": blocks
"/vision:v1/Page/blocks/block": block "/vision:v1/Page/blocks/block": block
"/vision:v1/Page/confidence": confidence
"/vision:v1/Page/height": height "/vision:v1/Page/height": height
"/vision:v1/Page/property": property "/vision:v1/Page/property": property
"/vision:v1/Page/width": width "/vision:v1/Page/width": width
"/vision:v1/Paragraph": paragraph "/vision:v1/Paragraph": paragraph
"/vision:v1/Paragraph/boundingBox": bounding_box "/vision:v1/Paragraph/boundingBox": bounding_box
"/vision:v1/Paragraph/confidence": confidence
"/vision:v1/Paragraph/property": property "/vision:v1/Paragraph/property": property
"/vision:v1/Paragraph/words": words "/vision:v1/Paragraph/words": words
"/vision:v1/Paragraph/words/word": word "/vision:v1/Paragraph/words/word": word
@ -67918,6 +67931,7 @@
"/vision:v1/SafeSearchAnnotation": safe_search_annotation "/vision:v1/SafeSearchAnnotation": safe_search_annotation
"/vision:v1/SafeSearchAnnotation/adult": adult "/vision:v1/SafeSearchAnnotation/adult": adult
"/vision:v1/SafeSearchAnnotation/medical": medical "/vision:v1/SafeSearchAnnotation/medical": medical
"/vision:v1/SafeSearchAnnotation/racy": racy
"/vision:v1/SafeSearchAnnotation/spoof": spoof "/vision:v1/SafeSearchAnnotation/spoof": spoof
"/vision:v1/SafeSearchAnnotation/violence": violence "/vision:v1/SafeSearchAnnotation/violence": violence
"/vision:v1/Status": status "/vision:v1/Status": status
@ -67928,6 +67942,7 @@
"/vision:v1/Status/message": message "/vision:v1/Status/message": message
"/vision:v1/Symbol": symbol "/vision:v1/Symbol": symbol
"/vision:v1/Symbol/boundingBox": bounding_box "/vision:v1/Symbol/boundingBox": bounding_box
"/vision:v1/Symbol/confidence": confidence
"/vision:v1/Symbol/property": property "/vision:v1/Symbol/property": property
"/vision:v1/Symbol/text": text "/vision:v1/Symbol/text": text
"/vision:v1/TextAnnotation": text_annotation "/vision:v1/TextAnnotation": text_annotation
@ -67942,6 +67957,8 @@
"/vision:v1/Vertex/x": x "/vision:v1/Vertex/x": x
"/vision:v1/Vertex/y": y "/vision:v1/Vertex/y": y
"/vision:v1/WebDetection": web_detection "/vision:v1/WebDetection": web_detection
"/vision:v1/WebDetection/bestGuessLabels": best_guess_labels
"/vision:v1/WebDetection/bestGuessLabels/best_guess_label": best_guess_label
"/vision:v1/WebDetection/fullMatchingImages": full_matching_images "/vision:v1/WebDetection/fullMatchingImages": full_matching_images
"/vision:v1/WebDetection/fullMatchingImages/full_matching_image": full_matching_image "/vision:v1/WebDetection/fullMatchingImages/full_matching_image": full_matching_image
"/vision:v1/WebDetection/pagesWithMatchingImages": pages_with_matching_images "/vision:v1/WebDetection/pagesWithMatchingImages": pages_with_matching_images
@ -67952,6 +67969,8 @@
"/vision:v1/WebDetection/visuallySimilarImages/visually_similar_image": visually_similar_image "/vision:v1/WebDetection/visuallySimilarImages/visually_similar_image": visually_similar_image
"/vision:v1/WebDetection/webEntities": web_entities "/vision:v1/WebDetection/webEntities": web_entities
"/vision:v1/WebDetection/webEntities/web_entity": web_entity "/vision:v1/WebDetection/webEntities/web_entity": web_entity
"/vision:v1/WebDetectionParams": web_detection_params
"/vision:v1/WebDetectionParams/includeGeoResults": include_geo_results
"/vision:v1/WebEntity": web_entity "/vision:v1/WebEntity": web_entity
"/vision:v1/WebEntity/description": description "/vision:v1/WebEntity/description": description
"/vision:v1/WebEntity/entityId": entity_id "/vision:v1/WebEntity/entityId": entity_id
@ -67959,11 +67978,20 @@
"/vision:v1/WebImage": web_image "/vision:v1/WebImage": web_image
"/vision:v1/WebImage/score": score "/vision:v1/WebImage/score": score
"/vision:v1/WebImage/url": url "/vision:v1/WebImage/url": url
"/vision:v1/WebLabel": web_label
"/vision:v1/WebLabel/label": label
"/vision:v1/WebLabel/languageCode": language_code
"/vision:v1/WebPage": web_page "/vision:v1/WebPage": web_page
"/vision:v1/WebPage/fullMatchingImages": full_matching_images
"/vision:v1/WebPage/fullMatchingImages/full_matching_image": full_matching_image
"/vision:v1/WebPage/pageTitle": page_title
"/vision:v1/WebPage/partialMatchingImages": partial_matching_images
"/vision:v1/WebPage/partialMatchingImages/partial_matching_image": partial_matching_image
"/vision:v1/WebPage/score": score "/vision:v1/WebPage/score": score
"/vision:v1/WebPage/url": url "/vision:v1/WebPage/url": url
"/vision:v1/Word": word "/vision:v1/Word": word
"/vision:v1/Word/boundingBox": bounding_box "/vision:v1/Word/boundingBox": bounding_box
"/vision:v1/Word/confidence": confidence
"/vision:v1/Word/property": property "/vision:v1/Word/property": property
"/vision:v1/Word/symbols": symbols "/vision:v1/Word/symbols": symbols
"/vision:v1/Word/symbols/symbol": symbol "/vision:v1/Word/symbols/symbol": symbol

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/appengine/docs/admin-api/ # @see https://cloud.google.com/appengine/docs/admin-api/
module AppengineV1beta module AppengineV1beta
VERSION = 'V1beta' VERSION = 'V1beta'
REVISION = '20180112' REVISION = '20180118'
# View and manage your applications deployed on Google App Engine # View and manage your applications deployed on Google App Engine
AUTH_APPENGINE_ADMIN = 'https://www.googleapis.com/auth/appengine.admin' AUTH_APPENGINE_ADMIN = 'https://www.googleapis.com/auth/appengine.admin'

View File

@ -322,6 +322,11 @@ module Google
# @return [Google::Apis::AppengineV1beta::CpuUtilization] # @return [Google::Apis::AppengineV1beta::CpuUtilization]
attr_accessor :cpu_utilization attr_accessor :cpu_utilization
# Target scaling by user-provided metrics.
# Corresponds to the JSON property `customMetrics`
# @return [Array<Google::Apis::AppengineV1beta::CustomMetric>]
attr_accessor :custom_metrics
# Target scaling by disk usage. Only applicable in the App Engine flexible # Target scaling by disk usage. Only applicable in the App Engine flexible
# environment. # environment.
# Corresponds to the JSON property `diskUtilization` # Corresponds to the JSON property `diskUtilization`
@ -392,6 +397,7 @@ module Google
def update!(**args) def update!(**args)
@cool_down_period = args[:cool_down_period] if args.key?(:cool_down_period) @cool_down_period = args[:cool_down_period] if args.key?(:cool_down_period)
@cpu_utilization = args[:cpu_utilization] if args.key?(:cpu_utilization) @cpu_utilization = args[:cpu_utilization] if args.key?(:cpu_utilization)
@custom_metrics = args[:custom_metrics] if args.key?(:custom_metrics)
@disk_utilization = args[:disk_utilization] if args.key?(:disk_utilization) @disk_utilization = args[:disk_utilization] if args.key?(:disk_utilization)
@max_concurrent_requests = args[:max_concurrent_requests] if args.key?(:max_concurrent_requests) @max_concurrent_requests = args[:max_concurrent_requests] if args.key?(:max_concurrent_requests)
@max_idle_instances = args[:max_idle_instances] if args.key?(:max_idle_instances) @max_idle_instances = args[:max_idle_instances] if args.key?(:max_idle_instances)
@ -643,6 +649,53 @@ module Google
end end
end end
# Allows autoscaling based on Stackdriver metrics.
class CustomMetric
include Google::Apis::Core::Hashable
# Allows filtering on the metric's fields.
# Corresponds to the JSON property `filter`
# @return [String]
attr_accessor :filter
# The name of the metric.
# Corresponds to the JSON property `metricName`
# @return [String]
attr_accessor :metric_name
# May be used instead of target_utilization when an instance can handle a
# specific amount of work/resources and the metric value is equal to the current
# amount of work remaining. The autoscaler will try to keep the number of
# instances equal to the metric value divided by single_instance_assignment.
# Corresponds to the JSON property `singleInstanceAssignment`
# @return [Float]
attr_accessor :single_instance_assignment
# The type of the metric. Must be a string representing a Stackdriver metric
# type e.g. GAGUE, DELTA_PER_SECOND, etc.
# Corresponds to the JSON property `targetType`
# @return [String]
attr_accessor :target_type
# The target value for the metric.
# Corresponds to the JSON property `targetUtilization`
# @return [Float]
attr_accessor :target_utilization
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@filter = args[:filter] if args.key?(:filter)
@metric_name = args[:metric_name] if args.key?(:metric_name)
@single_instance_assignment = args[:single_instance_assignment] if args.key?(:single_instance_assignment)
@target_type = args[:target_type] if args.key?(:target_type)
@target_utilization = args[:target_utilization] if args.key?(:target_utilization)
end
end
# Request message for Instances.DebugInstance. # Request message for Instances.DebugInstance.
class DebugInstanceRequest class DebugInstanceRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable

View File

@ -118,6 +118,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class CustomMetric
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DebugInstanceRequest class DebugInstanceRequest
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -507,6 +513,8 @@ module Google
property :cool_down_period, as: 'coolDownPeriod' property :cool_down_period, as: 'coolDownPeriod'
property :cpu_utilization, as: 'cpuUtilization', class: Google::Apis::AppengineV1beta::CpuUtilization, decorator: Google::Apis::AppengineV1beta::CpuUtilization::Representation property :cpu_utilization, as: 'cpuUtilization', class: Google::Apis::AppengineV1beta::CpuUtilization, decorator: Google::Apis::AppengineV1beta::CpuUtilization::Representation
collection :custom_metrics, as: 'customMetrics', class: Google::Apis::AppengineV1beta::CustomMetric, decorator: Google::Apis::AppengineV1beta::CustomMetric::Representation
property :disk_utilization, as: 'diskUtilization', class: Google::Apis::AppengineV1beta::DiskUtilization, decorator: Google::Apis::AppengineV1beta::DiskUtilization::Representation property :disk_utilization, as: 'diskUtilization', class: Google::Apis::AppengineV1beta::DiskUtilization, decorator: Google::Apis::AppengineV1beta::DiskUtilization::Representation
property :max_concurrent_requests, as: 'maxConcurrentRequests' property :max_concurrent_requests, as: 'maxConcurrentRequests'
@ -601,6 +609,17 @@ module Google
end end
end end
class CustomMetric
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :filter, as: 'filter'
property :metric_name, as: 'metricName'
property :single_instance_assignment, as: 'singleInstanceAssignment'
property :target_type, as: 'targetType'
property :target_utilization, as: 'targetUtilization'
end
end
class DebugInstanceRequest class DebugInstanceRequest
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/iot # @see https://cloud.google.com/iot
module CloudiotV1 module CloudiotV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20171227' REVISION = '20180118'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -22,129 +22,6 @@ module Google
module Apis module Apis
module CloudiotV1 module CloudiotV1
# Specifies the audit configuration for a service.
# The configuration determines which permission types are logged, and what
# identities, if any, are exempted from logging.
# An AuditConfig must have one or more AuditLogConfigs.
# If there are AuditConfigs for both `allServices` and a specific service,
# the union of the two AuditConfigs is used for that service: the log_types
# specified in each AuditConfig are enabled, and the exempted_members in each
# AuditConfig are exempted.
# Example Policy with multiple AuditConfigs:
# `
# "audit_configs": [
# `
# "service": "allServices"
# "audit_log_configs": [
# `
# "log_type": "DATA_READ",
# "exempted_members": [
# "user:foo@gmail.com"
# ]
# `,
# `
# "log_type": "DATA_WRITE",
# `,
# `
# "log_type": "ADMIN_READ",
# `
# ]
# `,
# `
# "service": "fooservice.googleapis.com"
# "audit_log_configs": [
# `
# "log_type": "DATA_READ",
# `,
# `
# "log_type": "DATA_WRITE",
# "exempted_members": [
# "user:bar@gmail.com"
# ]
# `
# ]
# `
# ]
# `
# For fooservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
# logging. It also exempts foo@gmail.com from DATA_READ logging, and
# bar@gmail.com from DATA_WRITE logging.
class AuditConfig
include Google::Apis::Core::Hashable
# The configuration for logging of each type of permission.
# Next ID: 4
# Corresponds to the JSON property `auditLogConfigs`
# @return [Array<Google::Apis::CloudiotV1::AuditLogConfig>]
attr_accessor :audit_log_configs
#
# Corresponds to the JSON property `exemptedMembers`
# @return [Array<String>]
attr_accessor :exempted_members
# Specifies a service that will be enabled for audit logging.
# For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
# `allServices` is a special value that covers all services.
# 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)
@audit_log_configs = args[:audit_log_configs] if args.key?(:audit_log_configs)
@exempted_members = args[:exempted_members] if args.key?(:exempted_members)
@service = args[:service] if args.key?(:service)
end
end
# Provides the configuration for logging a type of permissions.
# Example:
# `
# "audit_log_configs": [
# `
# "log_type": "DATA_READ",
# "exempted_members": [
# "user:foo@gmail.com"
# ]
# `,
# `
# "log_type": "DATA_WRITE",
# `
# ]
# `
# This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting
# foo@gmail.com from DATA_READ logging.
class AuditLogConfig
include Google::Apis::Core::Hashable
# Specifies the identities that do not cause logging for this type of
# permission.
# Follows the same format of Binding.members.
# Corresponds to the JSON property `exemptedMembers`
# @return [Array<String>]
attr_accessor :exempted_members
# The log type that this config enables.
# Corresponds to the JSON property `logType`
# @return [String]
attr_accessor :log_type
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@exempted_members = args[:exempted_members] if args.key?(:exempted_members)
@log_type = args[:log_type] if args.key?(:log_type)
end
end
# Associates `members` with a `role`. # Associates `members` with a `role`.
class Binding class Binding
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -835,11 +712,6 @@ module Google
class Policy class Policy
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Specifies cloud audit logging configuration for this policy.
# Corresponds to the JSON property `auditConfigs`
# @return [Array<Google::Apis::CloudiotV1::AuditConfig>]
attr_accessor :audit_configs
# Associates a list of `members` to a `role`. # Associates a list of `members` to a `role`.
# `bindings` with no members will result in an error. # `bindings` with no members will result in an error.
# Corresponds to the JSON property `bindings` # Corresponds to the JSON property `bindings`
@ -860,12 +732,6 @@ module Google
# @return [String] # @return [String]
attr_accessor :etag attr_accessor :etag
#
# Corresponds to the JSON property `iamOwned`
# @return [Boolean]
attr_accessor :iam_owned
alias_method :iam_owned?, :iam_owned
# Deprecated. # Deprecated.
# Corresponds to the JSON property `version` # Corresponds to the JSON property `version`
# @return [Fixnum] # @return [Fixnum]
@ -877,10 +743,8 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@audit_configs = args[:audit_configs] if args.key?(:audit_configs)
@bindings = args[:bindings] if args.key?(:bindings) @bindings = args[:bindings] if args.key?(:bindings)
@etag = args[:etag] if args.key?(:etag) @etag = args[:etag] if args.key?(:etag)
@iam_owned = args[:iam_owned] if args.key?(:iam_owned)
@version = args[:version] if args.key?(:version) @version = args[:version] if args.key?(:version)
end end
end end

View File

@ -22,18 +22,6 @@ module Google
module Apis module Apis
module CloudiotV1 module CloudiotV1
class AuditConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AuditLogConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Binding class Binding
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -196,24 +184,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class AuditConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::CloudiotV1::AuditLogConfig, decorator: Google::Apis::CloudiotV1::AuditLogConfig::Representation
collection :exempted_members, as: 'exemptedMembers'
property :service, as: 'service'
end
end
class AuditLogConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :exempted_members, as: 'exemptedMembers'
property :log_type, as: 'logType'
end
end
class Binding class Binding
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -382,12 +352,9 @@ module Google
class Policy class Policy
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
collection :audit_configs, as: 'auditConfigs', class: Google::Apis::CloudiotV1::AuditConfig, decorator: Google::Apis::CloudiotV1::AuditConfig::Representation
collection :bindings, as: 'bindings', class: Google::Apis::CloudiotV1::Binding, decorator: Google::Apis::CloudiotV1::Binding::Representation collection :bindings, as: 'bindings', class: Google::Apis::CloudiotV1::Binding, decorator: Google::Apis::CloudiotV1::Binding::Representation
property :etag, :base64 => true, as: 'etag' property :etag, :base64 => true, as: 'etag'
property :iam_owned, as: 'iamOwned'
property :version, as: 'version' property :version, as: 'version'
end end
end end

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/cloud-tasks/ # @see https://cloud.google.com/cloud-tasks/
module CloudtasksV2beta2 module CloudtasksV2beta2
VERSION = 'V2beta2' VERSION = 'V2beta2'
REVISION = '20180120' REVISION = '20180123'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -23,15 +23,16 @@ module Google
module CloudtasksV2beta2 module CloudtasksV2beta2
# Request message for acknowledging a task using # Request message for acknowledging a task using
# CloudTasks.AcknowledgeTask. # AcknowledgeTask.
class AcknowledgeTaskRequest class AcknowledgeTaskRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Required. # Required.
# The task's current schedule time, available in the Task.schedule_time # The task's current schedule time, available in the
# returned in LeaseTasksResponse.tasks or # schedule_time returned by
# CloudTasks.RenewLease. This restriction is to ensure that your # LeaseTasks response or
# worker currently holds the lease. # RenewLease response. This restriction is
# to ensure that your worker currently holds the lease.
# Corresponds to the JSON property `scheduleTime` # Corresponds to the JSON property `scheduleTime`
# @return [String] # @return [String]
attr_accessor :schedule_time attr_accessor :schedule_time
@ -50,7 +51,7 @@ module Google
# The message defines the HTTP request that is sent to an App Engine app when # The message defines the HTTP request that is sent to an App Engine app when
# the task is dispatched. # the task is dispatched.
# This proto can only be used for tasks in a queue which has # This proto can only be used for tasks in a queue which has
# Queue.app_engine_http_target set. # app_engine_http_target set.
# Using AppEngineHttpRequest requires # Using AppEngineHttpRequest requires
# [`appengine.applications.get`](/appengine/docs/admin-api/access-control) # [`appengine.applications.get`](/appengine/docs/admin-api/access-control)
# Google IAM permission for the project # Google IAM permission for the project
@ -64,11 +65,14 @@ module Google
# [dispatch files](/appengine/docs/python/config/dispatchref). # [dispatch files](/appengine/docs/python/config/dispatchref).
# The AppEngineRouting used to construct the URL that the task is # The AppEngineRouting used to construct the URL that the task is
# delivered to can be set at the queue-level or task-level: # delivered to can be set at the queue-level or task-level:
# * If set, AppEngineHttpTarget.app_engine_routing_override is used for # * If set,
# all tasks in the queue, no matter what the setting is for the # app_engine_routing_override
# is used for all tasks in the queue, no matter what the setting
# is for the
# task-level app_engine_routing. # task-level app_engine_routing.
# The `url` that the task will be sent to is: # The `url` that the task will be sent to is:
# * `url =` AppEngineRouting.host `+` AppEngineHttpRequest.relative_url # * `url =` host `+`
# relative_url
# The task attempt has succeeded if the app's request handler returns # The task attempt has succeeded if the app's request handler returns
# an HTTP response code in the range [`200` - `299`]. `503` is # an HTTP response code in the range [`200` - `299`]. `503` is
# considered an App Engine system error instead of an application # considered an App Engine system error instead of an application
@ -103,15 +107,15 @@ module Google
# This header can be modified, but Cloud Tasks will append # This header can be modified, but Cloud Tasks will append
# `"AppEngine-Google; (+http://code.google.com/appengine)"` to the # `"AppEngine-Google; (+http://code.google.com/appengine)"` to the
# modified `User-Agent`. # modified `User-Agent`.
# If the task has an AppEngineHttpRequest.payload, Cloud Tasks sets the # If the task has a payload, Cloud
# following headers: # Tasks sets the following headers:
# * `Content-Type`: By default, the `Content-Type` header is set to # * `Content-Type`: By default, the `Content-Type` header is set to
# `"application/octet-stream"`. The default can be overridden by explictly # `"application/octet-stream"`. The default can be overridden by explicitly
# setting `Content-Type` to a particular media type when the # setting `Content-Type` to a particular media type when the
# [task is created](google.cloud.tasks.v2beta2.CloudTasks.CreateTask). # [task is created](google.cloud.tasks.v2beta2.CloudTasks.CreateTask).
# For example, `Content-Type` can be set to `"application/json"`. # For example, `Content-Type` can be set to `"application/json"`.
# * `Content-Length`: This is computed by Cloud Tasks. This value is # * `Content-Length`: This is computed by Cloud Tasks. This value is
# output only. It cannot be changed. # output only. It cannot be changed.
# The headers below cannot be set or overridden: # The headers below cannot be set or overridden:
# * `Host` # * `Host`
# * `X-Google-*` # * `X-Google-*`
@ -124,7 +128,7 @@ module Google
# visible when the task is returned in a Cloud Tasks response. # visible when the task is returned in a Cloud Tasks response.
# Although there is no specific limit for the maximum number of headers or # Although there is no specific limit for the maximum number of headers or
# the size, there is a limit on the maximum size of the Task. For more # the size, there is a limit on the maximum size of the Task. For more
# information, see the CloudTasks.CreateTask documentation. # information, see the CreateTask documentation.
# Corresponds to the JSON property `headers` # Corresponds to the JSON property `headers`
# @return [Hash<String,String>] # @return [Hash<String,String>]
attr_accessor :headers attr_accessor :headers
@ -241,31 +245,39 @@ module Google
# example <app-id>.appspot.com, which is associated with the # example <app-id>.appspot.com, which is associated with the
# queue's project ID. Some tasks which were created using the App Engine # queue's project ID. Some tasks which were created using the App Engine
# SDK use a custom domain name. # SDK use a custom domain name.
# * `service =` AppEngineRouting.service # * `service =` service
# * `version =` AppEngineRouting.version # * `version =` version
# * `version_dot_service =` # * `version_dot_service =`
# AppEngineRouting.version `+ '.' +` AppEngineRouting.service # version `+ '.' +`
# * `instance =` AppEngineRouting.instance # service
# * `instance =` instance
# * `instance_dot_service =` # * `instance_dot_service =`
# AppEngineRouting.instance `+ '.' +` AppEngineRouting.service # instance `+ '.' +`
# service
# * `instance_dot_version =` # * `instance_dot_version =`
# AppEngineRouting.instance `+ '.' +` AppEngineRouting.version # instance `+ '.' +`
# version
# * `instance_dot_version_dot_service =` # * `instance_dot_version_dot_service =`
# AppEngineRouting.instance `+ '.' +` # instance `+ '.' +`
# AppEngineRouting.version `+ '.' +` AppEngineRouting.service # version `+ '.' +`
# If AppEngineRouting.service is empty, then the task will be sent # service
# If service is empty, then the task will be sent
# to the service which is the default service when the task is attempted. # to the service which is the default service when the task is attempted.
# If AppEngineRouting.version is empty, then the task will be sent # If version is empty, then the task will be sent
# to the version which is the default version when the task is attempted. # to the version which is the default version when the task is attempted.
# If AppEngineRouting.instance is empty, then the task will be sent # If instance is empty, then the task
# to an instance which is available when the task is attempted. # will be sent to an instance which is available when the task is
# When AppEngineRouting.service is "default", # attempted.
# AppEngineRouting.version is "default", and # When service is "default",
# AppEngineRouting.instance is empty, AppEngineRouting.host is # version is "default", and
# shortened to just the `application_domain_name`. # instance is empty,
# If AppEngineRouting.service, AppEngineRouting.version, or # host is shortened to just the
# AppEngineRouting.instance is invalid, then the task will be sent # `application_domain_name`.
# to the default version of the default service when the task is attempted. # If service,
# version, or
# instance is invalid, then the task
# will be sent to the default version of the default service when
# the task is attempted.
# Corresponds to the JSON property `host` # Corresponds to the JSON property `host`
# @return [String] # @return [String]
attr_accessor :host attr_accessor :host
@ -288,14 +300,17 @@ module Google
# App service. # App service.
# By default, the task is sent to the service which is the default # By default, the task is sent to the service which is the default
# service when the task is attempted ("default"). # service when the task is attempted ("default").
# For some queues or tasks which were created using the App Engine Task Queue # For some queues or tasks which were created using the App Engine
# API, AppEngineRouting.host is not parsable into # Task Queue API, host is not parsable
# AppEngineRouting.service, AppEngineRouting.version, and # into service,
# AppEngineRouting.instance. For example, some tasks which were created # version, and
# using the App Engine SDK use a custom domain name; custom domains are not # instance. For example, some tasks
# parsed by Cloud Tasks. If AppEngineRouting.host is not parsable, then # which were created using the App Engine SDK use a custom domain
# AppEngineRouting.service, AppEngineRouting.version, and # name; custom domains are not parsed by Cloud Tasks. If
# AppEngineRouting.instance are the empty string. # host is not parsable, then
# service,
# version, and
# instance are the empty string.
# Corresponds to the JSON property `service` # Corresponds to the JSON property `service`
# @return [String] # @return [String]
attr_accessor :service attr_accessor :service
@ -303,14 +318,17 @@ module Google
# App version. # App version.
# By default, the task is sent to the version which is the default # By default, the task is sent to the version which is the default
# version when the task is attempted ("default"). # version when the task is attempted ("default").
# For some queues or tasks which were created using the App Engine Task Queue # For some queues or tasks which were created using the App Engine
# API, AppEngineRouting.host is not parsable into # Task Queue API, host is not parsable
# AppEngineRouting.service, AppEngineRouting.version, and # into service,
# AppEngineRouting.instance. For example, some tasks which were created # version, and
# using the App Engine SDK use a custom domain name; custom domains are not # instance. For example, some tasks
# parsed by Cloud Tasks. If AppEngineRouting.host is not parsable, then # which were created using the App Engine SDK use a custom domain
# AppEngineRouting.service, AppEngineRouting.version, and # name; custom domains are not parsed by Cloud Tasks. If
# AppEngineRouting.instance are the empty string. # host is not parsable, then
# service,
# version, and
# instance are the empty string.
# Corresponds to the JSON property `version` # Corresponds to the JSON property `version`
# @return [String] # @return [String]
attr_accessor :version attr_accessor :version
@ -447,29 +465,30 @@ module Google
end end
# Request message for canceling a lease using # Request message for canceling a lease using
# CloudTasks.CancelLease. # CancelLease.
class CancelLeaseRequest class CancelLeaseRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The response_view specifies which subset of the Task will be # The response_view specifies which subset of the Task will be
# returned. # returned.
# By default response_view is Task.View.BASIC; not all # By default response_view is BASIC; not all
# information is retrieved by default because some data, such as # information is retrieved by default because some data, such as
# payloads, might be desirable to return only when needed because # payloads, might be desirable to return only when needed because
# of its large size or because of the sensitivity of data that it # of its large size or because of the sensitivity of data that it
# contains. # contains.
# Authorization for Task.View.FULL requires `cloudtasks.tasks.fullView` # Authorization for FULL requires
# [Google IAM](/iam/) permission on the # `cloudtasks.tasks.fullView` [Google IAM](/iam/) permission on the
# Task.name resource. # Task resource.
# Corresponds to the JSON property `responseView` # Corresponds to the JSON property `responseView`
# @return [String] # @return [String]
attr_accessor :response_view attr_accessor :response_view
# Required. # Required.
# The task's current schedule time, available in the Task.schedule_time # The task's current schedule time, available in the
# returned in LeaseTasksResponse.tasks or # schedule_time returned by
# CloudTasks.RenewLease. This restriction is to ensure that your # LeaseTasks response or
# worker currently holds the lease. # RenewLease response. This restriction is
# to ensure that your worker currently holds the lease.
# Corresponds to the JSON property `scheduleTime` # Corresponds to the JSON property `scheduleTime`
# @return [String] # @return [String]
attr_accessor :schedule_time attr_accessor :schedule_time
@ -485,20 +504,20 @@ module Google
end end
end end
# Request message for CloudTasks.CreateTask. # Request message for CreateTask.
class CreateTaskRequest class CreateTaskRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The response_view specifies which subset of the Task will be # The response_view specifies which subset of the Task will be
# returned. # returned.
# By default response_view is Task.View.BASIC; not all # By default response_view is BASIC; not all
# information is retrieved by default because some data, such as # information is retrieved by default because some data, such as
# payloads, might be desirable to return only when needed because # payloads, might be desirable to return only when needed because
# of its large size or because of the sensitivity of data that it # of its large size or because of the sensitivity of data that it
# contains. # contains.
# Authorization for Task.View.FULL requires `cloudtasks.tasks.fullView` # Authorization for FULL requires
# [Google IAM](/iam/) permission on the # `cloudtasks.tasks.fullView` [Google IAM](/iam/) permission on the
# Task.name resource. # Task resource.
# Corresponds to the JSON property `responseView` # Corresponds to the JSON property `responseView`
# @return [String] # @return [String]
attr_accessor :response_view attr_accessor :response_view
@ -551,14 +570,14 @@ module Google
end end
end end
# Request message for leasing tasks using CloudTasks.LeaseTasks. # Request message for leasing tasks using LeaseTasks.
class LeaseTasksRequest class LeaseTasksRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# `filter` can be used to specify a subset of tasks to lease. # `filter` can be used to specify a subset of tasks to lease.
# When `filter` is set to `tag=<my-tag>` then the # When `filter` is set to `tag=<my-tag>` then the
# LeaseTasksResponse will contain only tasks whose # response will contain only tasks whose
# PullMessage.tag is equal to `<my-tag>`. `<my-tag>` must be # tag is equal to `<my-tag>`. `<my-tag>` must be
# less than 500 characters. # less than 500 characters.
# When `filter` is set to `tag_function=oldest_tag()`, only tasks which have # When `filter` is set to `tag_function=oldest_tag()`, only tasks which have
# the same tag as the task with the oldest schedule_time will be returned. # the same tag as the task with the oldest schedule_time will be returned.
@ -569,29 +588,23 @@ module Google
# The `oldest_tag()` function returns tasks which have the same tag as the # The `oldest_tag()` function returns tasks which have the same tag as the
# oldest task (ordered by schedule time). # oldest task (ordered by schedule time).
# SDK compatibility: Although the SDK allows tags to be either # SDK compatibility: Although the SDK allows tags to be either
# string or [bytes](/appengine/docs/standard/java/javadoc/com/google/appengine/ # string or
# api/taskqueue/TaskOptions.html#tag-byte:A-), # [bytes](/appengine/docs/standard/java/javadoc/com/google/appengine/api/
# only UTF-8 encoded tags can be used in Cloud Tasks. Tag which aren't UTF-8 # taskqueue/TaskOptions.html#tag-byte:A-),
# encoded can't be used in LeaseTasksRequest.filter and won't display in # only UTF-8 encoded tags can be used in Cloud Tasks. Tag which
# PullMessage.tag. # aren't UTF-8 encoded can't be used in the
# filter and the task's
# tag will be displayed as empty in Cloud Tasks.
# Corresponds to the JSON property `filter` # Corresponds to the JSON property `filter`
# @return [String] # @return [String]
attr_accessor :filter attr_accessor :filter
# The duration of the lease. # After the worker has successfully finished the work associated
# Each task returned in the LeaseTasksResponse will have its # with the task, the worker must call via
# Task.schedule_time set to the current time plus the # AcknowledgeTask before the
# `lease_duration`. A task that has been returned in a # schedule_time. Otherwise the task will be
# LeaseTasksResponse is leased -- that task will not be # returned to a later LeaseTasks call so
# returned in a different LeaseTasksResponse before the # that another worker can retry it.
# Task.schedule_time.
# After the worker has successfully finished the work
# associated with the task, the worker must call
# CloudTasks.AcknowledgeTask. If the task is not acknowledged
# via CloudTasks.AcknowledgeTask before the
# Task.schedule_time then it will be returned in a later
# LeaseTasksResponse so that another worker can process
# it.
# The maximum lease duration is 1 week. # The maximum lease duration is 1 week.
# `lease_duration` will be truncated to the nearest second. # `lease_duration` will be truncated to the nearest second.
# Corresponds to the JSON property `leaseDuration` # Corresponds to the JSON property `leaseDuration`
@ -606,13 +619,14 @@ module Google
# The response_view specifies which subset of the Task will be # The response_view specifies which subset of the Task will be
# returned. # returned.
# By default response_view is Task.View.BASIC; not all # By default response_view is BASIC; not all
# information is retrieved by default because some data, such as # information is retrieved by default because some data, such as
# payloads, might be desirable to return only when needed because # payloads, might be desirable to return only when needed because
# of its large size or because of the sensitivity of data that it # of its large size or because of the sensitivity of data that it
# contains. # contains.
# Authorization for Task.View.FULL requires `cloudtasks.tasks.fullView` # Authorization for FULL requires
# [Google IAM](/iam/) permission on the Task.name resource. # `cloudtasks.tasks.fullView` [Google IAM](/iam/) permission on the
# Task resource.
# Corresponds to the JSON property `responseView` # Corresponds to the JSON property `responseView`
# @return [String] # @return [String]
attr_accessor :response_view attr_accessor :response_view
@ -630,7 +644,7 @@ module Google
end end
end end
# Response message for leasing tasks using CloudTasks.LeaseTasks. # Response message for leasing tasks using LeaseTasks.
class LeaseTasksResponse class LeaseTasksResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -674,14 +688,14 @@ module Google
end end
end end
# Response message for CloudTasks.ListQueues. # Response message for ListQueues.
class ListQueuesResponse class ListQueuesResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# A token to retrieve next page of results. # A token to retrieve next page of results.
# To return the next page of results, call # To return the next page of results, call
# CloudTasks.ListQueues with this value as the # ListQueues with this value as the
# ListQueuesRequest.page_token. # page_token.
# If the next_page_token is empty, there are no more results. # If the next_page_token is empty, there are no more results.
# The page token is valid for only 2 hours. # The page token is valid for only 2 hours.
# Corresponds to the JSON property `nextPageToken` # Corresponds to the JSON property `nextPageToken`
@ -704,14 +718,14 @@ module Google
end end
end end
# Response message for listing tasks using CloudTasks.ListTasks. # Response message for listing tasks using ListTasks.
class ListTasksResponse class ListTasksResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# A token to retrieve next page of results. # A token to retrieve next page of results.
# To return the next page of results, call # To return the next page of results, call
# CloudTasks.ListTasks with this value as the # ListTasks with this value as the
# ListTasksRequest.page_token. # page_token.
# If the next_page_token is empty, there are no more results. # If the next_page_token is empty, there are no more results.
# Corresponds to the JSON property `nextPageToken` # Corresponds to the JSON property `nextPageToken`
# @return [String] # @return [String]
@ -773,7 +787,7 @@ module Google
end end
end end
# Request message for CloudTasks.PauseQueue. # Request message for PauseQueue.
class PauseQueueRequest class PauseQueueRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -853,9 +867,9 @@ module Google
end end
# The pull message contains data that can be used by the caller of # The pull message contains data that can be used by the caller of
# CloudTasks.LeaseTasks to process the task. # LeaseTasks to process the task.
# This proto can only be used for tasks in a queue which has # This proto can only be used for tasks in a queue which has
# Queue.pull_target set. # pull_target set.
class PullMessage class PullMessage
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -867,10 +881,11 @@ module Google
# The task's tag. # The task's tag.
# Tags allow similar tasks to be processed in a batch. If you label # Tags allow similar tasks to be processed in a batch. If you label
# tasks with a tag, your worker can lease tasks # tasks with a tag, your worker can
# with the same tag using LeaseTasksRequest.filter. For example, # lease tasks with the same tag using
# if you want to aggregate the events associated with a specific # filter. For example, if you want to
# user once a day, you could tag tasks with the user ID. # aggregate the events associated with a specific user once a day,
# you could tag tasks with the user ID.
# The task's tag can only be set when the # The task's tag can only be set when the
# task is created. # task is created.
# The tag must be less than 500 characters. # The tag must be less than 500 characters.
@ -907,7 +922,7 @@ module Google
end end
end end
# Request message for CloudTasks.PurgeQueue. # Request message for PurgeQueue.
class PurgeQueueRequest class PurgeQueueRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -950,12 +965,12 @@ module Google
# identifying_projects) # identifying_projects)
# * `LOCATION_ID` is the canonical ID for the queue's location. # * `LOCATION_ID` is the canonical ID for the queue's location.
# The list of available locations can be obtained by calling # The list of available locations can be obtained by calling
# google.cloud.location.Locations.ListLocations. # ListLocations.
# For more information, see https://cloud.google.com/about/locations/. # For more information, see https://cloud.google.com/about/locations/.
# * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or # * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or
# hyphens (-). The maximum length is 100 characters. # hyphens (-). The maximum length is 100 characters.
# Caller-specified and required in CreateQueueRequest, after which # Caller-specified and required in CreateQueue,
# it becomes output only. # after which it becomes output only.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
@ -968,7 +983,7 @@ module Google
# Output only. The last time this queue was purged. # Output only. The last time this queue was purged.
# All tasks that were created before this time # All tasks that were created before this time
# were purged. # were purged.
# A queue can be purged using CloudTasks.PurgeQueue, the # A queue can be purged using PurgeQueue, the
# [App Engine Task Queue SDK, or the Cloud Console](/appengine/docs/standard/ # [App Engine Task Queue SDK, or the Cloud Console](/appengine/docs/standard/
# python/taskqueue/push/deleting-tasks-and-queues#purging_all_tasks_from_a_queue) # python/taskqueue/push/deleting-tasks-and-queues#purging_all_tasks_from_a_queue)
# . # .
@ -993,9 +1008,10 @@ module Google
# Output only. The state of the queue. # Output only. The state of the queue.
# `state` can only be changed by called # `state` can only be changed by called
# CloudTasks.PauseQueue, CloudTasks.ResumeQueue, or uploading # PauseQueue,
# ResumeQueue, or uploading
# [queue.yaml/xml](/appengine/docs/python/config/queueref). # [queue.yaml/xml](/appengine/docs/python/config/queueref).
# CloudTasks.UpdateQueue cannot be used to change `state`. # UpdateQueue cannot be used to change `state`.
# Corresponds to the JSON property `state` # Corresponds to the JSON property `state`
# @return [String] # @return [String]
attr_accessor :state attr_accessor :state
@ -1035,17 +1051,21 @@ module Google
# token is removed from the bucket. Tasks will be dispatched until # token is removed from the bucket. Tasks will be dispatched until
# the queue's bucket runs out of tokens. The bucket will be # the queue's bucket runs out of tokens. The bucket will be
# continuously refilled with new tokens based on # continuously refilled with new tokens based on
# RateLimits.max_tasks_dispatched_per_second. # max_tasks_dispatched_per_second.
# Cloud Tasks will pick the value of `max_burst_size` based on the value of # Cloud Tasks will pick the value of `max_burst_size` based on the
# RateLimits.max_tasks_dispatched_per_second. # value of
# max_tasks_dispatched_per_second.
# For App Engine queues that were created or updated using # For App Engine queues that were created or updated using
# `queue.yaml/xml`, `max_burst_size` is equal to # `queue.yaml/xml`, `max_burst_size` is equal to
# [bucket_size](/appengine/docs/standard/python/config/queueref#bucket_size). # [bucket_size](/appengine/docs/standard/python/config/queueref#bucket_size).
# Since `max_burst_size` is output only, if CloudTasks.UpdateQueue is # Since `max_burst_size` is output only, if
# called on a queue created by `queue.yaml/xml`, `max_burst_size` will be # UpdateQueue is called on a queue
# reset based on the value of RateLimits.max_tasks_dispatched_per_second, # created by `queue.yaml/xml`, `max_burst_size` will be reset based
# regardless of whether RateLimits.max_tasks_dispatched_per_second is # on the value of
# updated. # max_tasks_dispatched_per_second,
# regardless of whether
# max_tasks_dispatched_per_second
# is updated.
# Corresponds to the JSON property `maxBurstSize` # Corresponds to the JSON property `maxBurstSize`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :max_burst_size attr_accessor :max_burst_size
@ -1071,9 +1091,10 @@ module Google
# default. # default.
# * For App Engine queues, the maximum allowed value is 500. # * For App Engine queues, the maximum allowed value is 500.
# * This field is output only for [pull queues](google.cloud.tasks.v2beta2. # * This field is output only for [pull queues](google.cloud.tasks.v2beta2.
# PullTarget). # PullTarget). In
# In addition to the `max_tasks_dispatched_per_second` limit, a maximum of # addition to the `max_tasks_dispatched_per_second` limit, a
# 10 QPS of CloudTasks.LeaseTasks requests are allowed per pull queue. # maximum of 10 QPS of LeaseTasks
# requests are allowed per pull queue.
# This field has the same meaning as # This field has the same meaning as
# [rate in queue.yaml/xml](/appengine/docs/standard/python/config/queueref#rate). # [rate in queue.yaml/xml](/appengine/docs/standard/python/config/queueref#rate).
# Corresponds to the JSON property `maxTasksDispatchedPerSecond` # Corresponds to the JSON property `maxTasksDispatchedPerSecond`
@ -1092,7 +1113,8 @@ module Google
end end
end end
# Request message for renewing a lease using CloudTasks.RenewLease. # Request message for renewing a lease using
# RenewLease.
class RenewLeaseRequest class RenewLeaseRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -1106,23 +1128,24 @@ module Google
# The response_view specifies which subset of the Task will be # The response_view specifies which subset of the Task will be
# returned. # returned.
# By default response_view is Task.View.BASIC; not all # By default response_view is BASIC; not all
# information is retrieved by default because some data, such as # information is retrieved by default because some data, such as
# payloads, might be desirable to return only when needed because # payloads, might be desirable to return only when needed because
# of its large size or because of the sensitivity of data that it # of its large size or because of the sensitivity of data that it
# contains. # contains.
# Authorization for Task.View.FULL requires `cloudtasks.tasks.fullView` # Authorization for FULL requires
# [Google IAM](/iam/) permission on the # `cloudtasks.tasks.fullView` [Google IAM](/iam/) permission on the
# Task.name resource. # Task resource.
# Corresponds to the JSON property `responseView` # Corresponds to the JSON property `responseView`
# @return [String] # @return [String]
attr_accessor :response_view attr_accessor :response_view
# Required. # Required.
# The task's current schedule time, available in the Task.schedule_time # The task's current schedule time, available in the
# returned in LeaseTasksResponse.tasks or # schedule_time returned by
# CloudTasks.RenewLease. This restriction is to ensure that your # LeaseTasks response or
# worker currently holds the lease. # RenewLease response. This restriction is
# to ensure that your worker currently holds the lease.
# Corresponds to the JSON property `scheduleTime` # Corresponds to the JSON property `scheduleTime`
# @return [String] # @return [String]
attr_accessor :schedule_time attr_accessor :schedule_time
@ -1139,7 +1162,7 @@ module Google
end end
end end
# Request message for CloudTasks.ResumeQueue. # Request message for ResumeQueue.
class ResumeQueueRequest class ResumeQueueRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -1166,8 +1189,9 @@ module Google
attr_accessor :max_attempts attr_accessor :max_attempts
# A task will be [scheduled](Task.schedule_time) for retry between # A task will be [scheduled](Task.schedule_time) for retry between
# RetryConfig.min_backoff and RetryConfig.max_backoff duration after # min_backoff and
# it fails, if the queue's RetryConfig specifies that the task should be # max_backoff duration after it fails,
# if the queue's RetryConfig specifies that the task should be
# retried. # retried.
# If unspecified when the queue is created, Cloud Tasks will pick the # If unspecified when the queue is created, Cloud Tasks will pick the
# default. # default.
@ -1182,18 +1206,21 @@ module Google
attr_accessor :max_backoff attr_accessor :max_backoff
# The time between retries will double `max_doublings` times. # The time between retries will double `max_doublings` times.
# A task's retry interval starts at RetryConfig.min_backoff, # A task's retry interval starts at
# then doubles `max_doublings` times, then increases linearly, and # min_backoff, then doubles
# finally retries retries at intervals of # `max_doublings` times, then increases linearly, and finally
# RetryConfig.max_backoff up to max_attempts times. # retries retries at intervals of
# For example, if RetryConfig.min_backoff is 10s, # max_backoff up to
# RetryConfig.max_backoff is 300s, and `max_doublings` is 3, # max_attempts times.
# then the a task will first be retried in 10s. The retry interval # For example, if min_backoff is 10s,
# will double three times, and then increase linearly by 2^3 * 10s. # max_backoff is 300s, and
# Finally, the task will retry at intervals of # `max_doublings` is 3, then the a task will first be retried in
# RetryConfig.max_backoff until the task has been attempted # 10s. The retry interval will double three times, and then
# `max_attempts` times. Thus, the requests will retry at 10s, 20s, # increase linearly by 2^3 * 10s. Finally, the task will retry at
# 40s, 80s, 160s, 240s, 300s, 300s, .... # intervals of max_backoff until the
# task has been attempted max_attempts
# times. Thus, the requests will retry at 10s, 20s, 40s, 80s, 160s,
# 240s, 300s, 300s, ....
# If unspecified when the queue is created, Cloud Tasks will pick the # If unspecified when the queue is created, Cloud Tasks will pick the
# default. # default.
# This field is output only for # This field is output only for
@ -1205,11 +1232,12 @@ module Google
# @return [Fixnum] # @return [Fixnum]
attr_accessor :max_doublings attr_accessor :max_doublings
# If positive, `max_retry_duration` specifies the time limit for retrying a # If positive, `max_retry_duration` specifies the time limit for
# failed task, measured from when the task was first attempted. Once # retrying a failed task, measured from when the task was first
# `max_retry_duration` time has passed *and* the task has been attempted # attempted. Once `max_retry_duration` time has passed *and* the
# RetryConfig.max_attempts times, no further attempts will be made and # task has been attempted max_attempts
# the task will be deleted. # times, no further attempts will be made and the task will be
# deleted.
# If zero, then the task age is unlimited. # If zero, then the task age is unlimited.
# If unspecified when the queue is created, Cloud Tasks will pick the # If unspecified when the queue is created, Cloud Tasks will pick the
# default. # default.
@ -1224,8 +1252,9 @@ module Google
attr_accessor :max_retry_duration attr_accessor :max_retry_duration
# A task will be [scheduled](Task.schedule_time) for retry between # A task will be [scheduled](Task.schedule_time) for retry between
# RetryConfig.min_backoff and RetryConfig.max_backoff duration after # min_backoff and
# it fails, if the queue's RetryConfig specifies that the task should be # max_backoff duration after it fails,
# if the queue's RetryConfig specifies that the task should be
# retried. # retried.
# If unspecified when the queue is created, Cloud Tasks will pick the # If unspecified when the queue is created, Cloud Tasks will pick the
# default. # default.
@ -1261,20 +1290,20 @@ module Google
end end
# Request message for forcing a task to run now using # Request message for forcing a task to run now using
# CloudTasks.RunTask. # RunTask.
class RunTaskRequest class RunTaskRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The response_view specifies which subset of the Task will be # The response_view specifies which subset of the Task will be
# returned. # returned.
# By default response_view is Task.View.BASIC; not all # By default response_view is BASIC; not all
# information is retrieved by default because some data, such as # information is retrieved by default because some data, such as
# payloads, might be desirable to return only when needed because # payloads, might be desirable to return only when needed because
# of its large size or because of the sensitivity of data that it # of its large size or because of the sensitivity of data that it
# contains. # contains.
# Authorization for Task.View.FULL requires `cloudtasks.tasks.fullView` # Authorization for FULL requires
# [Google IAM](/iam/) permission on the # `cloudtasks.tasks.fullView` [Google IAM](/iam/) permission on the
# Task.name resource. # Task resource.
# Corresponds to the JSON property `responseView` # Corresponds to the JSON property `responseView`
# @return [String] # @return [String]
attr_accessor :response_view attr_accessor :response_view
@ -1413,7 +1442,7 @@ module Google
# The message defines the HTTP request that is sent to an App Engine app when # The message defines the HTTP request that is sent to an App Engine app when
# the task is dispatched. # the task is dispatched.
# This proto can only be used for tasks in a queue which has # This proto can only be used for tasks in a queue which has
# Queue.app_engine_http_target set. # app_engine_http_target set.
# Using AppEngineHttpRequest requires # Using AppEngineHttpRequest requires
# [`appengine.applications.get`](/appengine/docs/admin-api/access-control) # [`appengine.applications.get`](/appengine/docs/admin-api/access-control)
# Google IAM permission for the project # Google IAM permission for the project
@ -1427,11 +1456,14 @@ module Google
# [dispatch files](/appengine/docs/python/config/dispatchref). # [dispatch files](/appengine/docs/python/config/dispatchref).
# The AppEngineRouting used to construct the URL that the task is # The AppEngineRouting used to construct the URL that the task is
# delivered to can be set at the queue-level or task-level: # delivered to can be set at the queue-level or task-level:
# * If set, AppEngineHttpTarget.app_engine_routing_override is used for # * If set,
# all tasks in the queue, no matter what the setting is for the # app_engine_routing_override
# is used for all tasks in the queue, no matter what the setting
# is for the
# task-level app_engine_routing. # task-level app_engine_routing.
# The `url` that the task will be sent to is: # The `url` that the task will be sent to is:
# * `url =` AppEngineRouting.host `+` AppEngineHttpRequest.relative_url # * `url =` host `+`
# relative_url
# The task attempt has succeeded if the app's request handler returns # The task attempt has succeeded if the app's request handler returns
# an HTTP response code in the range [`200` - `299`]. `503` is # an HTTP response code in the range [`200` - `299`]. `503` is
# considered an App Engine system error instead of an application # considered an App Engine system error instead of an application
@ -1459,21 +1491,21 @@ module Google
# identifying_projects) # identifying_projects)
# * `LOCATION_ID` is the canonical ID for the task's location. # * `LOCATION_ID` is the canonical ID for the task's location.
# The list of available locations can be obtained by calling # The list of available locations can be obtained by calling
# google.cloud.location.Locations.ListLocations. # ListLocations.
# For more information, see https://cloud.google.com/about/locations/. # For more information, see https://cloud.google.com/about/locations/.
# * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or # * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or
# hyphens (-). The maximum length is 100 characters. # hyphens (-). The maximum length is 100 characters.
# * `TASK_ID` can contain only letters ([A-Za-z]), numbers ([0-9]), # * `TASK_ID` can contain only letters ([A-Za-z]), numbers ([0-9]),
# hyphens (-), or underscores (_). The maximum length is 500 characters. # hyphens (-), or underscores (_). The maximum length is 500 characters.
# Optionally caller-specified in CreateTaskRequest. # Optionally caller-specified in CreateTask.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
# The pull message contains data that can be used by the caller of # The pull message contains data that can be used by the caller of
# CloudTasks.LeaseTasks to process the task. # LeaseTasks to process the task.
# This proto can only be used for tasks in a queue which has # This proto can only be used for tasks in a queue which has
# Queue.pull_target set. # pull_target set.
# Corresponds to the JSON property `pullMessage` # Corresponds to the JSON property `pullMessage`
# @return [Google::Apis::CloudtasksV2beta2::PullMessage] # @return [Google::Apis::CloudtasksV2beta2::PullMessage]
attr_accessor :pull_message attr_accessor :pull_message
@ -1483,7 +1515,7 @@ module Google
# For pull queues, this is the time when the task is available to # For pull queues, this is the time when the task is available to
# be leased; if a task is currently leased, this is the time when # be leased; if a task is currently leased, this is the time when
# the current lease expires, that is, the time that the task was # the current lease expires, that is, the time that the task was
# leased plus the LeaseTasksRequest.lease_duration. # leased plus the lease_duration.
# `schedule_time` will be truncated to the nearest microsecond. # `schedule_time` will be truncated to the nearest microsecond.
# Corresponds to the JSON property `scheduleTime` # Corresponds to the JSON property `scheduleTime`
# @return [String] # @return [String]

View File

@ -126,14 +126,14 @@ module Google
# using an App Engine `queue.yaml` or `queue.xml` file to manage your queues. # using an App Engine `queue.yaml` or `queue.xml` file to manage your queues.
# Read # Read
# [Overview of Queue Management and queue.yaml](/cloud-tasks/docs/queue-yaml) # [Overview of Queue Management and queue.yaml](/cloud-tasks/docs/queue-yaml)
# carefully before using this method. # before using this method.
# @param [String] parent # @param [String] parent
# Required. # Required.
# The location name in which the queue will be created. # The location name in which the queue will be created.
# For example: `projects/PROJECT_ID/locations/LOCATION_ID` # For example: `projects/PROJECT_ID/locations/LOCATION_ID`
# The list of allowed locations can be obtained by calling Cloud # The list of allowed locations can be obtained by calling Cloud
# Tasks' implementation of # Tasks' implementation of
# google.cloud.location.Locations.ListLocations. # ListLocations.
# @param [Google::Apis::CloudtasksV2beta2::Queue] queue_object # @param [Google::Apis::CloudtasksV2beta2::Queue] queue_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -172,7 +172,7 @@ module Google
# using an App Engine `queue.yaml` or `queue.xml` file to manage your queues. # using an App Engine `queue.yaml` or `queue.xml` file to manage your queues.
# Read # Read
# [Overview of Queue Management and queue.yaml](/cloud-tasks/docs/queue-yaml) # [Overview of Queue Management and queue.yaml](/cloud-tasks/docs/queue-yaml)
# carefully before using this method. # before using this method.
# @param [String] name # @param [String] name
# Required. # Required.
# The queue name. For example: # The queue name. For example:
@ -294,17 +294,17 @@ module Google
# Requested page size. # Requested page size.
# The maximum page size is 9800. If unspecified, the page size will # The maximum page size is 9800. If unspecified, the page size will
# be the maximum. Fewer queues than requested might be returned, # be the maximum. Fewer queues than requested might be returned,
# even if more queues exist; use # even if more queues exist; use the
# ListQueuesResponse.next_page_token to determine if more # next_page_token in the
# queues exist. # response to determine if more queues exist.
# @param [String] page_token # @param [String] page_token
# A token identifying the page of results to return. # A token identifying the page of results to return.
# To request the first page results, page_token must be empty. To # To request the first page results, page_token must be empty. To
# request the next page of results, page_token must be the value of # request the next page of results, page_token must be the value of
# ListQueuesResponse.next_page_token returned from the previous # next_page_token returned
# call to CloudTasks.ListQueues method. It is an error to # from the previous call to ListQueues
# switch the value of ListQueuesRequest.filter while iterating # method. It is an error to switch the value of the
# through pages. # filter while iterating through pages.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -346,7 +346,7 @@ module Google
# using an App Engine `queue.yaml` or `queue.xml` file to manage your queues. # using an App Engine `queue.yaml` or `queue.xml` file to manage your queues.
# Read # Read
# [Overview of Queue Management and queue.yaml](/cloud-tasks/docs/queue-yaml) # [Overview of Queue Management and queue.yaml](/cloud-tasks/docs/queue-yaml)
# carefully before using this method. # before using this method.
# @param [String] name # @param [String] name
# The queue name. # The queue name.
# The queue name must have the following format: # The queue name must have the following format:
@ -358,12 +358,12 @@ module Google
# identifying_projects) # identifying_projects)
# * `LOCATION_ID` is the canonical ID for the queue's location. # * `LOCATION_ID` is the canonical ID for the queue's location.
# The list of available locations can be obtained by calling # The list of available locations can be obtained by calling
# google.cloud.location.Locations.ListLocations. # ListLocations.
# For more information, see https://cloud.google.com/about/locations/. # For more information, see https://cloud.google.com/about/locations/.
# * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or # * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or
# hyphens (-). The maximum length is 100 characters. # hyphens (-). The maximum length is 100 characters.
# Caller-specified and required in CreateQueueRequest, after which # Caller-specified and required in CreateQueue,
# it becomes output only. # after which it becomes output only.
# @param [Google::Apis::CloudtasksV2beta2::Queue] queue_object # @param [Google::Apis::CloudtasksV2beta2::Queue] queue_object
# @param [String] update_mask # @param [String] update_mask
# A mask used to specify which fields of the queue are being updated. # A mask used to specify which fields of the queue are being updated.
@ -399,12 +399,11 @@ module Google
end end
# Pauses the queue. # Pauses the queue.
# If a queue is paused then the system will stop executing the # If a queue is paused then the system will stop dispatching tasks
# tasks in the queue until it is resumed via # until the queue is resumed via
# CloudTasks.ResumeQueue. Tasks can still be added when the # ResumeQueue. Tasks can still be added
# queue is paused. The state of the queue is stored in # when the queue is paused. A queue is paused if its
# Queue.state; if paused it will be set to # state is PAUSED.
# Queue.State.PAUSED.
# @param [String] name # @param [String] name
# Required. # Required.
# The queue name. For example: # The queue name. For example:
@ -479,9 +478,10 @@ module Google
# Resume a queue. # Resume a queue.
# This method resumes a queue after it has been # This method resumes a queue after it has been
# Queue.State.PAUSED or Queue.State.DISABLED. The state of # PAUSED or
# a queue is stored in Queue.state; after calling this method it # DISABLED. The state of a queue is stored
# will be set to Queue.State.RUNNING. # in the queue's state; after calling this method it
# will be set to RUNNING.
# WARNING: Resuming many high-QPS queues at the same time can # WARNING: Resuming many high-QPS queues at the same time can
# lead to target overloading. If you are resuming high-QPS # lead to target overloading. If you are resuming high-QPS
# queues, follow the 500/50/5 pattern described in # queues, follow the 500/50/5 pattern described in
@ -563,7 +563,7 @@ module Google
# Returns permissions that a caller has on a Queue. # Returns permissions that a caller has on a Queue.
# If the resource does not exist, this will return an empty set of # If the resource does not exist, this will return an empty set of
# permissions, not a google.rpc.Code.NOT_FOUND error. # permissions, not a NOT_FOUND error.
# Note: This operation is designed to be used for building permission-aware # Note: This operation is designed to be used for building permission-aware
# UIs and command-line tools, not for authorization checking. This operation # UIs and command-line tools, not for authorization checking. This operation
# may "fail open" without warning. # may "fail open" without warning.
@ -601,15 +601,16 @@ module Google
end end
# Acknowledges a pull task. # Acknowledges a pull task.
# The worker, that is, the entity that received this task in # The worker, that is, the entity that
# a LeaseTasksResponse, must call this method to indicate that # leased this task must call this method
# the work associated with the task has finished. # to indicate that the work associated with the task has finished.
# The worker must acknowledge a task within the # The worker must acknowledge a task within the
# LeaseTasksRequest.lease_duration or the lease will expire and # lease_duration or the lease
# the task will become ready to be returned in a different # will expire and the task will become available to be leased
# LeaseTasksResponse. After the task is acknowledged, it will # again. After the task is acknowledged, it will not be returned
# not be returned by a later CloudTasks.LeaseTasks, # by a later LeaseTasks,
# CloudTasks.GetTask, or CloudTasks.ListTasks. # GetTask, or
# ListTasks.
# To acknowledge multiple tasks at the same time, use # To acknowledge multiple tasks at the same time, use
# [HTTP batching](/storage/docs/json_api/v1/how-tos/batch) # [HTTP batching](/storage/docs/json_api/v1/how-tos/batch)
# or the batching documentation for your client library, for example # or the batching documentation for your client library, for example
@ -649,9 +650,10 @@ module Google
end end
# Cancel a pull task's lease. # Cancel a pull task's lease.
# The worker can use this method to cancel a task's lease # The worker can use this method to cancel a task's lease by
# by setting Task.schedule_time to now. This will make the task # setting its schedule_time to now. This will
# available to be leased to the next caller of CloudTasks.LeaseTasks. # make the task available to be leased to the next caller of
# LeaseTasks.
# @param [String] name # @param [String] name
# Required. # Required.
# The task name. For example: # The task name. For example:
@ -774,14 +776,14 @@ module Google
# @param [String] response_view # @param [String] response_view
# The response_view specifies which subset of the Task will be # The response_view specifies which subset of the Task will be
# returned. # returned.
# By default response_view is Task.View.BASIC; not all # By default response_view is BASIC; not all
# information is retrieved by default because some data, such as # information is retrieved by default because some data, such as
# payloads, might be desirable to return only when needed because # payloads, might be desirable to return only when needed because
# of its large size or because of the sensitivity of data that it # of its large size or because of the sensitivity of data that it
# contains. # contains.
# Authorization for Task.View.FULL requires `cloudtasks.tasks.fullView` # Authorization for FULL requires
# [Google IAM](/iam/) permission on the # `cloudtasks.tasks.fullView` [Google IAM](/iam/) permission on the
# Task.name resource. # Task resource.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -810,19 +812,25 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Leases tasks from a pull queue for LeaseTasksRequest.lease_duration. # Leases tasks from a pull queue for
# This method is invoked by the worker to obtain a # lease_duration.
# lease. The worker must acknowledge the task via # This method is invoked by the worker to obtain a lease. The
# CloudTasks.AcknowledgeTask after they have performed the work # worker must acknowledge the task via
# associated with the task. # AcknowledgeTask after they have
# The payload is intended to store data that the worker needs # performed the work associated with the task.
# to perform the work associated with the task. To return the # The payload is intended to store data that
# payloads in the LeaseTasksResponse, set # the worker needs to perform the work associated with the task. To
# LeaseTasksRequest.response_view to Task.View.FULL. # return the payloads in the response, set
# A maximum of 10 qps of CloudTasks.LeaseTasks requests are allowed per # response_view to
# queue. google.rpc.Code.RESOURCE_EXHAUSTED is returned when this limit # FULL.
# is exceeded. google.rpc.Code.RESOURCE_EXHAUSTED is also returned when # A maximum of 10 qps of LeaseTasks
# RateLimits.max_tasks_dispatched_per_second is exceeded. # requests are allowed per
# queue. RESOURCE_EXHAUSTED
# is returned when this limit is
# exceeded. RESOURCE_EXHAUSTED
# is also returned when
# max_tasks_dispatched_per_second
# is exceeded.
# @param [String] parent # @param [String] parent
# Required. # Required.
# The queue name. For example: # The queue name. For example:
@ -858,9 +866,9 @@ module Google
end end
# Lists the tasks in a queue. # Lists the tasks in a queue.
# By default response_view is Task.View.BASIC; not all # By default, only the BASIC view is retrieved
# information is retrieved by default due to performance # due to performance considerations;
# considerations; ListTasksRequest.response_view controls the # response_view controls the
# subset of information which is returned. # subset of information which is returned.
# @param [String] parent # @param [String] parent
# Required. # Required.
@ -876,26 +884,27 @@ module Google
# The maximum page size is 1000. If unspecified, the page size will # The maximum page size is 1000. If unspecified, the page size will
# be the maximum. Fewer tasks than requested might be returned, # be the maximum. Fewer tasks than requested might be returned,
# even if more tasks exist; use # even if more tasks exist; use
# ListTasksResponse.next_page_token to determine if more tasks # next_page_token in the
# exist. # response to determine if more tasks exist.
# @param [String] page_token # @param [String] page_token
# A token identifying the page of results to return. # A token identifying the page of results to return.
# To request the first page results, page_token must be empty. To # To request the first page results, page_token must be empty. To
# request the next page of results, page_token must be the value of # request the next page of results, page_token must be the value of
# ListTasksResponse.next_page_token returned from the previous # next_page_token returned
# call to CloudTasks.ListTasks method. # from the previous call to ListTasks
# method.
# The page token is valid for only 2 hours. # The page token is valid for only 2 hours.
# @param [String] response_view # @param [String] response_view
# The response_view specifies which subset of the Task will be # The response_view specifies which subset of the Task will be
# returned. # returned.
# By default response_view is Task.View.BASIC; not all # By default response_view is BASIC; not all
# information is retrieved by default because some data, such as # information is retrieved by default because some data, such as
# payloads, might be desirable to return only when needed because # payloads, might be desirable to return only when needed because
# of its large size or because of the sensitivity of data that it # of its large size or because of the sensitivity of data that it
# contains. # contains.
# Authorization for Task.View.FULL requires `cloudtasks.tasks.fullView` # Authorization for FULL requires
# [Google IAM](/iam/) permission on the # `cloudtasks.tasks.fullView` [Google IAM](/iam/) permission on the
# Task.name resource. # Task resource.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -930,7 +939,7 @@ module Google
# Renew the current lease of a pull task. # Renew the current lease of a pull task.
# The worker can use this method to extend the lease by a new # The worker can use this method to extend the lease by a new
# duration, starting from now. The new task lease will be # duration, starting from now. The new task lease will be
# returned in Task.schedule_time. # returned in the task's schedule_time.
# @param [String] name # @param [String] name
# Required. # Required.
# The task name. For example: # The task name. For example:
@ -967,25 +976,27 @@ module Google
# Forces a task to run now. # Forces a task to run now.
# This command is meant to be used for manual debugging. For # This command is meant to be used for manual debugging. For
# example, CloudTasks.RunTask can be used to retry a failed # example, RunTask can be used to retry a failed
# task after a fix has been made or to manually force a task to be # task after a fix has been made or to manually force a task to be
# dispatched now. # dispatched now.
# When this method is called, Cloud Tasks will dispatch the task to its # When this method is called, Cloud Tasks will dispatch the task to its
# target, even if the queue is Queue.State.PAUSED. # target, even if the queue is PAUSED.
# The dispatched task is returned. That is, the task that is returned # The dispatched task is returned. That is, the task that is returned
# contains the Task.status after the task is dispatched but # contains the status after the task is dispatched but
# before the task is received by its target. # before the task is received by its target.
# If Cloud Tasks receives a successful response from the task's # If Cloud Tasks receives a successful response from the task's
# handler, then the task will be deleted; otherwise the task's # handler, then the task will be deleted; otherwise the task's
# Task.schedule_time will be reset to the time that # schedule_time will be reset to the time that
# CloudTasks.RunTask was called plus the retry delay specified # RunTask was called plus the retry delay specified
# in the queue and task's RetryConfig. # in the queue and task's RetryConfig.
# CloudTasks.RunTask returns google.rpc.Code.NOT_FOUND when # RunTask returns
# it is called on a task that has already succeeded or permanently # NOT_FOUND when it is called on a
# failed. google.rpc.Code.FAILED_PRECONDITION is returned when # task that has already succeeded or permanently
# CloudTasks.RunTask is called on task that is dispatched or # failed. FAILED_PRECONDITION
# already running. # is returned when RunTask is called on task
# CloudTasks.RunTask cannot be called on pull tasks. # that is dispatched or already running.
# RunTask cannot be called on
# pull tasks.
# @param [String] name # @param [String] name
# Required. # Required.
# The task name. For example: # The task name. For example:

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/partners/ # @see https://developers.google.com/partners/
module PartnersV2 module PartnersV2
VERSION = 'V2' VERSION = 'V2'
REVISION = '20171031' REVISION = '20180122'
end end
end end
end end

View File

@ -897,37 +897,6 @@ module Google
end end
end end
# A token that allows a user to take an exam.
class ExamToken
include Google::Apis::Core::Hashable
# The id of the exam the token is for.
# Corresponds to the JSON property `examId`
# @return [Fixnum]
attr_accessor :exam_id
# The type of the exam the token belongs to.
# Corresponds to the JSON property `examType`
# @return [String]
attr_accessor :exam_type
# The token, only present if the user has access to the exam.
# Corresponds to the JSON property `token`
# @return [String]
attr_accessor :token
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@exam_id = args[:exam_id] if args.key?(:exam_id)
@exam_type = args[:exam_type] if args.key?(:exam_type)
@token = args[:token] if args.key?(:token)
end
end
# Response message for GetCompany. # Response message for GetCompany.
class GetCompanyResponse class GetCompanyResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable

View File

@ -130,12 +130,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class ExamToken
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GetCompanyResponse class GetCompanyResponse
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -546,15 +540,6 @@ module Google
end end
end end
class ExamToken
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :exam_id, :numeric_string => true, as: 'examId'
property :exam_type, as: 'examType'
property :token, as: 'token'
end
end
class GetCompanyResponse class GetCompanyResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -393,61 +393,6 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Gets an Exam Token for a Partner's user to take an exam in the Exams System
# @param [String] exam_type
# The exam type we are requesting a token for.
# @param [Array<String>, String] request_metadata_experiment_ids
# Experiment IDs the current request belongs to.
# @param [String] request_metadata_locale
# Locale to use for the current request.
# @param [String] request_metadata_partners_session_id
# Google Partners session ID.
# @param [String] request_metadata_traffic_source_traffic_source_id
# Identifier to indicate where the traffic comes from.
# An identifier has multiple letters created by a team which redirected the
# traffic to us.
# @param [String] request_metadata_traffic_source_traffic_sub_id
# Second level identifier to indicate where the traffic comes from.
# An identifier has multiple letters created by a team which redirected the
# traffic to us.
# @param [String] request_metadata_user_overrides_ip_address
# IP address to use instead of the user's geo-located IP address.
# @param [String] request_metadata_user_overrides_user_id
# Logged-in user ID to impersonate instead of the user's ID.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::PartnersV2::ExamToken] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::PartnersV2::ExamToken]
#
# @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_exam_token(exam_type, request_metadata_experiment_ids: nil, request_metadata_locale: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_user_overrides_user_id: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v2/exams/{examType}/token', options)
command.response_representation = Google::Apis::PartnersV2::ExamToken::Representation
command.response_class = Google::Apis::PartnersV2::ExamToken
command.params['examType'] = exam_type unless exam_type.nil?
command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Lists advertiser leads for a user's associated company. # Lists advertiser leads for a user's associated company.
# Should only be called within the context of an authorized logged in user. # Should only be called within the context of an authorized logged in user.
# @param [String] order_by # @param [String] order_by

View File

@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/vision/ # @see https://cloud.google.com/vision/
module VisionV1 module VisionV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20180103' REVISION = '20180122'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -231,6 +231,11 @@ module Google
# @return [Google::Apis::VisionV1::BoundingPoly] # @return [Google::Apis::VisionV1::BoundingPoly]
attr_accessor :bounding_box attr_accessor :bounding_box
# Confidence of the OCR results on the block. Range [0, 1].
# Corresponds to the JSON property `confidence`
# @return [Float]
attr_accessor :confidence
# List of paragraphs in this block (if this blocks is of type text). # List of paragraphs in this block (if this blocks is of type text).
# Corresponds to the JSON property `paragraphs` # Corresponds to the JSON property `paragraphs`
# @return [Array<Google::Apis::VisionV1::Paragraph>] # @return [Array<Google::Apis::VisionV1::Paragraph>]
@ -249,6 +254,7 @@ module Google
def update!(**args) def update!(**args)
@block_type = args[:block_type] if args.key?(:block_type) @block_type = args[:block_type] if args.key?(:block_type)
@bounding_box = args[:bounding_box] if args.key?(:bounding_box) @bounding_box = args[:bounding_box] if args.key?(:bounding_box)
@confidence = args[:confidence] if args.key?(:confidence)
@paragraphs = args[:paragraphs] if args.key?(:paragraphs) @paragraphs = args[:paragraphs] if args.key?(:paragraphs)
@property = args[:property] if args.key?(:property) @property = args[:property] if args.key?(:property)
end end
@ -897,6 +903,13 @@ module Google
# @return [Fixnum] # @return [Fixnum]
attr_accessor :max_results attr_accessor :max_results
# Model to use for the feature.
# Supported values: "builtin/stable" (the default if unset) and
# "builtin/latest".
# Corresponds to the JSON property `model`
# @return [String]
attr_accessor :model
# The feature type. # The feature type.
# Corresponds to the JSON property `type` # Corresponds to the JSON property `type`
# @return [String] # @return [String]
@ -909,6 +922,7 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@max_results = args[:max_results] if args.key?(:max_results) @max_results = args[:max_results] if args.key?(:max_results)
@model = args[:model] if args.key?(:model)
@type = args[:type] if args.key?(:type) @type = args[:type] if args.key?(:type)
end end
end end
@ -967,6 +981,11 @@ module Google
# @return [Google::Apis::VisionV1::LatLongRect] # @return [Google::Apis::VisionV1::LatLongRect]
attr_accessor :lat_long_rect attr_accessor :lat_long_rect
# Parameters for web detection request.
# Corresponds to the JSON property `webDetectionParams`
# @return [Google::Apis::VisionV1::WebDetectionParams]
attr_accessor :web_detection_params
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
@ -976,6 +995,7 @@ module Google
@crop_hints_params = args[:crop_hints_params] if args.key?(:crop_hints_params) @crop_hints_params = args[:crop_hints_params] if args.key?(:crop_hints_params)
@language_hints = args[:language_hints] if args.key?(:language_hints) @language_hints = args[:language_hints] if args.key?(:language_hints)
@lat_long_rect = args[:lat_long_rect] if args.key?(:lat_long_rect) @lat_long_rect = args[:lat_long_rect] if args.key?(:lat_long_rect)
@web_detection_params = args[:web_detection_params] if args.key?(:web_detection_params)
end end
end end
@ -1161,6 +1181,11 @@ module Google
# @return [Array<Google::Apis::VisionV1::Block>] # @return [Array<Google::Apis::VisionV1::Block>]
attr_accessor :blocks attr_accessor :blocks
# Confidence of the OCR results on the page. Range [0, 1].
# Corresponds to the JSON property `confidence`
# @return [Float]
attr_accessor :confidence
# Page height in pixels. # Page height in pixels.
# Corresponds to the JSON property `height` # Corresponds to the JSON property `height`
# @return [Fixnum] # @return [Fixnum]
@ -1183,6 +1208,7 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@blocks = args[:blocks] if args.key?(:blocks) @blocks = args[:blocks] if args.key?(:blocks)
@confidence = args[:confidence] if args.key?(:confidence)
@height = args[:height] if args.key?(:height) @height = args[:height] if args.key?(:height)
@property = args[:property] if args.key?(:property) @property = args[:property] if args.key?(:property)
@width = args[:width] if args.key?(:width) @width = args[:width] if args.key?(:width)
@ -1198,6 +1224,11 @@ module Google
# @return [Google::Apis::VisionV1::BoundingPoly] # @return [Google::Apis::VisionV1::BoundingPoly]
attr_accessor :bounding_box attr_accessor :bounding_box
# Confidence of the OCR results for the paragraph. Range [0, 1].
# Corresponds to the JSON property `confidence`
# @return [Float]
attr_accessor :confidence
# Additional information detected on the structural component. # Additional information detected on the structural component.
# Corresponds to the JSON property `property` # Corresponds to the JSON property `property`
# @return [Google::Apis::VisionV1::TextProperty] # @return [Google::Apis::VisionV1::TextProperty]
@ -1215,6 +1246,7 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@bounding_box = args[:bounding_box] if args.key?(:bounding_box) @bounding_box = args[:bounding_box] if args.key?(:bounding_box)
@confidence = args[:confidence] if args.key?(:confidence)
@property = args[:property] if args.key?(:property) @property = args[:property] if args.key?(:property)
@words = args[:words] if args.key?(:words) @words = args[:words] if args.key?(:words)
end end
@ -1302,6 +1334,14 @@ module Google
# @return [String] # @return [String]
attr_accessor :medical attr_accessor :medical
# Likelihood that the request image contains racy content. Racy content may
# include (but is not limited to) skimpy or sheer clothing, strategically
# covered nudity, lewd or provocative poses, or close-ups of sensitive
# body areas.
# Corresponds to the JSON property `racy`
# @return [String]
attr_accessor :racy
# Spoof likelihood. The likelihood that an modification # Spoof likelihood. The likelihood that an modification
# was made to the image's canonical version to make it appear # was made to the image's canonical version to make it appear
# funny or offensive. # funny or offensive.
@ -1322,6 +1362,7 @@ module Google
def update!(**args) def update!(**args)
@adult = args[:adult] if args.key?(:adult) @adult = args[:adult] if args.key?(:adult)
@medical = args[:medical] if args.key?(:medical) @medical = args[:medical] if args.key?(:medical)
@racy = args[:racy] if args.key?(:racy)
@spoof = args[:spoof] if args.key?(:spoof) @spoof = args[:spoof] if args.key?(:spoof)
@violence = args[:violence] if args.key?(:violence) @violence = args[:violence] if args.key?(:violence)
end end
@ -1408,6 +1449,11 @@ module Google
# @return [Google::Apis::VisionV1::BoundingPoly] # @return [Google::Apis::VisionV1::BoundingPoly]
attr_accessor :bounding_box attr_accessor :bounding_box
# Confidence of the OCR results for the symbol. Range [0, 1].
# Corresponds to the JSON property `confidence`
# @return [Float]
attr_accessor :confidence
# Additional information detected on the structural component. # Additional information detected on the structural component.
# Corresponds to the JSON property `property` # Corresponds to the JSON property `property`
# @return [Google::Apis::VisionV1::TextProperty] # @return [Google::Apis::VisionV1::TextProperty]
@ -1425,6 +1471,7 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@bounding_box = args[:bounding_box] if args.key?(:bounding_box) @bounding_box = args[:bounding_box] if args.key?(:bounding_box)
@confidence = args[:confidence] if args.key?(:confidence)
@property = args[:property] if args.key?(:property) @property = args[:property] if args.key?(:property)
@text = args[:text] if args.key?(:text) @text = args[:text] if args.key?(:text)
end end
@ -1516,6 +1563,11 @@ module Google
class WebDetection class WebDetection
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Best guess text labels for the request image.
# Corresponds to the JSON property `bestGuessLabels`
# @return [Array<Google::Apis::VisionV1::WebLabel>]
attr_accessor :best_guess_labels
# Fully matching images from the Internet. # Fully matching images from the Internet.
# Can include resized copies of the query image. # Can include resized copies of the query image.
# Corresponds to the JSON property `fullMatchingImages` # Corresponds to the JSON property `fullMatchingImages`
@ -1550,6 +1602,7 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@best_guess_labels = args[:best_guess_labels] if args.key?(:best_guess_labels)
@full_matching_images = args[:full_matching_images] if args.key?(:full_matching_images) @full_matching_images = args[:full_matching_images] if args.key?(:full_matching_images)
@pages_with_matching_images = args[:pages_with_matching_images] if args.key?(:pages_with_matching_images) @pages_with_matching_images = args[:pages_with_matching_images] if args.key?(:pages_with_matching_images)
@partial_matching_images = args[:partial_matching_images] if args.key?(:partial_matching_images) @partial_matching_images = args[:partial_matching_images] if args.key?(:partial_matching_images)
@ -1558,6 +1611,26 @@ module Google
end end
end end
# Parameters for web detection request.
class WebDetectionParams
include Google::Apis::Core::Hashable
# Whether to include results derived from the geo information in the image.
# Corresponds to the JSON property `includeGeoResults`
# @return [Boolean]
attr_accessor :include_geo_results
alias_method :include_geo_results?, :include_geo_results
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@include_geo_results = args[:include_geo_results] if args.key?(:include_geo_results)
end
end
# Entity deduced from similar images on the Internet. # Entity deduced from similar images on the Internet.
class WebEntity class WebEntity
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -1615,10 +1688,56 @@ module Google
end end
end end
# Label to provide extra metadata for the web detection.
class WebLabel
include Google::Apis::Core::Hashable
# Label for extra metadata.
# Corresponds to the JSON property `label`
# @return [String]
attr_accessor :label
# The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
# For more information, see
# http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
# Corresponds to the JSON property `languageCode`
# @return [String]
attr_accessor :language_code
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@label = args[:label] if args.key?(:label)
@language_code = args[:language_code] if args.key?(:language_code)
end
end
# Metadata for web pages. # Metadata for web pages.
class WebPage class WebPage
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Fully matching images on the page.
# Can include resized copies of the query image.
# Corresponds to the JSON property `fullMatchingImages`
# @return [Array<Google::Apis::VisionV1::WebImage>]
attr_accessor :full_matching_images
# Title for the web page, may contain HTML markups.
# Corresponds to the JSON property `pageTitle`
# @return [String]
attr_accessor :page_title
# Partial matching images on the page.
# Those images are similar enough to share some key-point features. For
# example an original image will likely have partial matching for its
# crops.
# Corresponds to the JSON property `partialMatchingImages`
# @return [Array<Google::Apis::VisionV1::WebImage>]
attr_accessor :partial_matching_images
# (Deprecated) Overall relevancy score for the web page. # (Deprecated) Overall relevancy score for the web page.
# Corresponds to the JSON property `score` # Corresponds to the JSON property `score`
# @return [Float] # @return [Float]
@ -1635,6 +1754,9 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@full_matching_images = args[:full_matching_images] if args.key?(:full_matching_images)
@page_title = args[:page_title] if args.key?(:page_title)
@partial_matching_images = args[:partial_matching_images] if args.key?(:partial_matching_images)
@score = args[:score] if args.key?(:score) @score = args[:score] if args.key?(:score)
@url = args[:url] if args.key?(:url) @url = args[:url] if args.key?(:url)
end end
@ -1649,6 +1771,11 @@ module Google
# @return [Google::Apis::VisionV1::BoundingPoly] # @return [Google::Apis::VisionV1::BoundingPoly]
attr_accessor :bounding_box attr_accessor :bounding_box
# Confidence of the OCR results for the word. Range [0, 1].
# Corresponds to the JSON property `confidence`
# @return [Float]
attr_accessor :confidence
# Additional information detected on the structural component. # Additional information detected on the structural component.
# Corresponds to the JSON property `property` # Corresponds to the JSON property `property`
# @return [Google::Apis::VisionV1::TextProperty] # @return [Google::Apis::VisionV1::TextProperty]
@ -1667,6 +1794,7 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@bounding_box = args[:bounding_box] if args.key?(:bounding_box) @bounding_box = args[:bounding_box] if args.key?(:bounding_box)
@confidence = args[:confidence] if args.key?(:confidence)
@property = args[:property] if args.key?(:property) @property = args[:property] if args.key?(:property)
@symbols = args[:symbols] if args.key?(:symbols) @symbols = args[:symbols] if args.key?(:symbols)
end end

View File

@ -238,6 +238,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class WebDetectionParams
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class WebEntity class WebEntity
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -250,6 +256,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class WebLabel
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class WebPage class WebPage
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -324,6 +336,7 @@ module Google
property :block_type, as: 'blockType' property :block_type, as: 'blockType'
property :bounding_box, as: 'boundingBox', class: Google::Apis::VisionV1::BoundingPoly, decorator: Google::Apis::VisionV1::BoundingPoly::Representation property :bounding_box, as: 'boundingBox', class: Google::Apis::VisionV1::BoundingPoly, decorator: Google::Apis::VisionV1::BoundingPoly::Representation
property :confidence, as: 'confidence'
collection :paragraphs, as: 'paragraphs', class: Google::Apis::VisionV1::Paragraph, decorator: Google::Apis::VisionV1::Paragraph::Representation collection :paragraphs, as: 'paragraphs', class: Google::Apis::VisionV1::Paragraph, decorator: Google::Apis::VisionV1::Paragraph::Representation
property :property, as: 'property', class: Google::Apis::VisionV1::TextProperty, decorator: Google::Apis::VisionV1::TextProperty::Representation property :property, as: 'property', class: Google::Apis::VisionV1::TextProperty, decorator: Google::Apis::VisionV1::TextProperty::Representation
@ -454,6 +467,7 @@ module Google
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :max_results, as: 'maxResults' property :max_results, as: 'maxResults'
property :model, as: 'model'
property :type, as: 'type' property :type, as: 'type'
end end
end end
@ -475,6 +489,8 @@ module Google
collection :language_hints, as: 'languageHints' collection :language_hints, as: 'languageHints'
property :lat_long_rect, as: 'latLongRect', class: Google::Apis::VisionV1::LatLongRect, decorator: Google::Apis::VisionV1::LatLongRect::Representation property :lat_long_rect, as: 'latLongRect', class: Google::Apis::VisionV1::LatLongRect, decorator: Google::Apis::VisionV1::LatLongRect::Representation
property :web_detection_params, as: 'webDetectionParams', class: Google::Apis::VisionV1::WebDetectionParams, decorator: Google::Apis::VisionV1::WebDetectionParams::Representation
end end
end end
@ -534,6 +550,7 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
collection :blocks, as: 'blocks', class: Google::Apis::VisionV1::Block, decorator: Google::Apis::VisionV1::Block::Representation collection :blocks, as: 'blocks', class: Google::Apis::VisionV1::Block, decorator: Google::Apis::VisionV1::Block::Representation
property :confidence, as: 'confidence'
property :height, as: 'height' property :height, as: 'height'
property :property, as: 'property', class: Google::Apis::VisionV1::TextProperty, decorator: Google::Apis::VisionV1::TextProperty::Representation property :property, as: 'property', class: Google::Apis::VisionV1::TextProperty, decorator: Google::Apis::VisionV1::TextProperty::Representation
@ -546,6 +563,7 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :bounding_box, as: 'boundingBox', class: Google::Apis::VisionV1::BoundingPoly, decorator: Google::Apis::VisionV1::BoundingPoly::Representation property :bounding_box, as: 'boundingBox', class: Google::Apis::VisionV1::BoundingPoly, decorator: Google::Apis::VisionV1::BoundingPoly::Representation
property :confidence, as: 'confidence'
property :property, as: 'property', class: Google::Apis::VisionV1::TextProperty, decorator: Google::Apis::VisionV1::TextProperty::Representation property :property, as: 'property', class: Google::Apis::VisionV1::TextProperty, decorator: Google::Apis::VisionV1::TextProperty::Representation
collection :words, as: 'words', class: Google::Apis::VisionV1::Word, decorator: Google::Apis::VisionV1::Word::Representation collection :words, as: 'words', class: Google::Apis::VisionV1::Word, decorator: Google::Apis::VisionV1::Word::Representation
@ -576,6 +594,7 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :adult, as: 'adult' property :adult, as: 'adult'
property :medical, as: 'medical' property :medical, as: 'medical'
property :racy, as: 'racy'
property :spoof, as: 'spoof' property :spoof, as: 'spoof'
property :violence, as: 'violence' property :violence, as: 'violence'
end end
@ -595,6 +614,7 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :bounding_box, as: 'boundingBox', class: Google::Apis::VisionV1::BoundingPoly, decorator: Google::Apis::VisionV1::BoundingPoly::Representation property :bounding_box, as: 'boundingBox', class: Google::Apis::VisionV1::BoundingPoly, decorator: Google::Apis::VisionV1::BoundingPoly::Representation
property :confidence, as: 'confidence'
property :property, as: 'property', class: Google::Apis::VisionV1::TextProperty, decorator: Google::Apis::VisionV1::TextProperty::Representation property :property, as: 'property', class: Google::Apis::VisionV1::TextProperty, decorator: Google::Apis::VisionV1::TextProperty::Representation
property :text, as: 'text' property :text, as: 'text'
@ -631,6 +651,8 @@ module Google
class WebDetection class WebDetection
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
collection :best_guess_labels, as: 'bestGuessLabels', class: Google::Apis::VisionV1::WebLabel, decorator: Google::Apis::VisionV1::WebLabel::Representation
collection :full_matching_images, as: 'fullMatchingImages', class: Google::Apis::VisionV1::WebImage, decorator: Google::Apis::VisionV1::WebImage::Representation collection :full_matching_images, as: 'fullMatchingImages', class: Google::Apis::VisionV1::WebImage, decorator: Google::Apis::VisionV1::WebImage::Representation
collection :pages_with_matching_images, as: 'pagesWithMatchingImages', class: Google::Apis::VisionV1::WebPage, decorator: Google::Apis::VisionV1::WebPage::Representation collection :pages_with_matching_images, as: 'pagesWithMatchingImages', class: Google::Apis::VisionV1::WebPage, decorator: Google::Apis::VisionV1::WebPage::Representation
@ -644,6 +666,13 @@ module Google
end end
end end
class WebDetectionParams
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :include_geo_results, as: 'includeGeoResults'
end
end
class WebEntity class WebEntity
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -661,9 +690,22 @@ module Google
end end
end end
class WebLabel
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :label, as: 'label'
property :language_code, as: 'languageCode'
end
end
class WebPage class WebPage
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
collection :full_matching_images, as: 'fullMatchingImages', class: Google::Apis::VisionV1::WebImage, decorator: Google::Apis::VisionV1::WebImage::Representation
property :page_title, as: 'pageTitle'
collection :partial_matching_images, as: 'partialMatchingImages', class: Google::Apis::VisionV1::WebImage, decorator: Google::Apis::VisionV1::WebImage::Representation
property :score, as: 'score' property :score, as: 'score'
property :url, as: 'url' property :url, as: 'url'
end end
@ -674,6 +716,7 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :bounding_box, as: 'boundingBox', class: Google::Apis::VisionV1::BoundingPoly, decorator: Google::Apis::VisionV1::BoundingPoly::Representation property :bounding_box, as: 'boundingBox', class: Google::Apis::VisionV1::BoundingPoly, decorator: Google::Apis::VisionV1::BoundingPoly::Representation
property :confidence, as: 'confidence'
property :property, as: 'property', class: Google::Apis::VisionV1::TextProperty, decorator: Google::Apis::VisionV1::TextProperty::Representation property :property, as: 'property', class: Google::Apis::VisionV1::TextProperty, decorator: Google::Apis::VisionV1::TextProperty::Representation
collection :symbols, as: 'symbols', class: Google::Apis::VisionV1::Symbol, decorator: Google::Apis::VisionV1::Symbol::Representation collection :symbols, as: 'symbols', class: Google::Apis::VisionV1::Symbol, decorator: Google::Apis::VisionV1::Symbol::Representation