Autogenerated update (2018-01-24)
Update: - appengine_v1beta - cloudiot_v1 - cloudtasks_v2beta2 - partners_v2 - vision_v1
This commit is contained in:
parent
a64cf30e0a
commit
74d4292732
|
@ -7793,6 +7793,8 @@
|
|||
"/appengine:v1beta/AutomaticScaling": automatic_scaling
|
||||
"/appengine:v1beta/AutomaticScaling/coolDownPeriod": cool_down_period
|
||||
"/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/maxConcurrentRequests": max_concurrent_requests
|
||||
"/appengine:v1beta/AutomaticScaling/maxIdleInstances": max_idle_instances
|
||||
|
@ -7830,6 +7832,12 @@
|
|||
"/appengine:v1beta/CreateVersionMetadataV1Alpha/cloudBuildId": cloud_build_id
|
||||
"/appengine:v1beta/CreateVersionMetadataV1Beta": create_version_metadata_v1_beta
|
||||
"/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/sshKey": ssh_key
|
||||
"/appengine:v1beta/Deployment": deployment
|
||||
|
@ -67614,6 +67622,7 @@
|
|||
"/vision:v1/Block": block
|
||||
"/vision:v1/Block/blockType": block_type
|
||||
"/vision:v1/Block/boundingBox": bounding_box
|
||||
"/vision:v1/Block/confidence": confidence
|
||||
"/vision:v1/Block/paragraphs": paragraphs
|
||||
"/vision:v1/Block/paragraphs/paragraph": paragraph
|
||||
"/vision:v1/Block/property": property
|
||||
|
@ -67679,6 +67688,7 @@
|
|||
"/vision:v1/FaceAnnotation/underExposedLikelihood": under_exposed_likelihood
|
||||
"/vision:v1/Feature": feature
|
||||
"/vision:v1/Feature/maxResults": max_results
|
||||
"/vision:v1/Feature/model": model
|
||||
"/vision:v1/Feature/type": type
|
||||
"/vision:v1/GoogleCloudVisionV1AnnotateImageRequest": google_cloud_vision_v1_annotate_image_request
|
||||
"/vision:v1/GoogleCloudVisionV1AnnotateImageRequest/features": features
|
||||
|
@ -67880,6 +67890,7 @@
|
|||
"/vision:v1/ImageContext/languageHints": language_hints
|
||||
"/vision:v1/ImageContext/languageHints/language_hint": language_hint
|
||||
"/vision:v1/ImageContext/latLongRect": lat_long_rect
|
||||
"/vision:v1/ImageContext/webDetectionParams": web_detection_params
|
||||
"/vision:v1/ImageProperties": image_properties
|
||||
"/vision:v1/ImageProperties/dominantColors": dominant_colors
|
||||
"/vision:v1/ImageSource": image_source
|
||||
|
@ -67899,11 +67910,13 @@
|
|||
"/vision:v1/Page": page
|
||||
"/vision:v1/Page/blocks": blocks
|
||||
"/vision:v1/Page/blocks/block": block
|
||||
"/vision:v1/Page/confidence": confidence
|
||||
"/vision:v1/Page/height": height
|
||||
"/vision:v1/Page/property": property
|
||||
"/vision:v1/Page/width": width
|
||||
"/vision:v1/Paragraph": paragraph
|
||||
"/vision:v1/Paragraph/boundingBox": bounding_box
|
||||
"/vision:v1/Paragraph/confidence": confidence
|
||||
"/vision:v1/Paragraph/property": property
|
||||
"/vision:v1/Paragraph/words": words
|
||||
"/vision:v1/Paragraph/words/word": word
|
||||
|
@ -67918,6 +67931,7 @@
|
|||
"/vision:v1/SafeSearchAnnotation": safe_search_annotation
|
||||
"/vision:v1/SafeSearchAnnotation/adult": adult
|
||||
"/vision:v1/SafeSearchAnnotation/medical": medical
|
||||
"/vision:v1/SafeSearchAnnotation/racy": racy
|
||||
"/vision:v1/SafeSearchAnnotation/spoof": spoof
|
||||
"/vision:v1/SafeSearchAnnotation/violence": violence
|
||||
"/vision:v1/Status": status
|
||||
|
@ -67928,6 +67942,7 @@
|
|||
"/vision:v1/Status/message": message
|
||||
"/vision:v1/Symbol": symbol
|
||||
"/vision:v1/Symbol/boundingBox": bounding_box
|
||||
"/vision:v1/Symbol/confidence": confidence
|
||||
"/vision:v1/Symbol/property": property
|
||||
"/vision:v1/Symbol/text": text
|
||||
"/vision:v1/TextAnnotation": text_annotation
|
||||
|
@ -67942,6 +67957,8 @@
|
|||
"/vision:v1/Vertex/x": x
|
||||
"/vision:v1/Vertex/y": y
|
||||
"/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_image": full_matching_image
|
||||
"/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/webEntities": web_entities
|
||||
"/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/description": description
|
||||
"/vision:v1/WebEntity/entityId": entity_id
|
||||
|
@ -67959,11 +67978,20 @@
|
|||
"/vision:v1/WebImage": web_image
|
||||
"/vision:v1/WebImage/score": score
|
||||
"/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/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/url": url
|
||||
"/vision:v1/Word": word
|
||||
"/vision:v1/Word/boundingBox": bounding_box
|
||||
"/vision:v1/Word/confidence": confidence
|
||||
"/vision:v1/Word/property": property
|
||||
"/vision:v1/Word/symbols": symbols
|
||||
"/vision:v1/Word/symbols/symbol": symbol
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://cloud.google.com/appengine/docs/admin-api/
|
||||
module AppengineV1beta
|
||||
VERSION = 'V1beta'
|
||||
REVISION = '20180112'
|
||||
REVISION = '20180118'
|
||||
|
||||
# View and manage your applications deployed on Google App Engine
|
||||
AUTH_APPENGINE_ADMIN = 'https://www.googleapis.com/auth/appengine.admin'
|
||||
|
|
|
@ -322,6 +322,11 @@ module Google
|
|||
# @return [Google::Apis::AppengineV1beta::CpuUtilization]
|
||||
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
|
||||
# environment.
|
||||
# Corresponds to the JSON property `diskUtilization`
|
||||
|
@ -392,6 +397,7 @@ module Google
|
|||
def update!(**args)
|
||||
@cool_down_period = args[:cool_down_period] if args.key?(:cool_down_period)
|
||||
@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)
|
||||
@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)
|
||||
|
@ -643,6 +649,53 @@ module Google
|
|||
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.
|
||||
class DebugInstanceRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
|
|
@ -118,6 +118,12 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class CustomMetric
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class DebugInstanceRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -507,6 +513,8 @@ module Google
|
|||
property :cool_down_period, as: 'coolDownPeriod'
|
||||
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 :max_concurrent_requests, as: 'maxConcurrentRequests'
|
||||
|
@ -601,6 +609,17 @@ module Google
|
|||
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
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://cloud.google.com/iot
|
||||
module CloudiotV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20171227'
|
||||
REVISION = '20180118'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -22,129 +22,6 @@ module Google
|
|||
module Apis
|
||||
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`.
|
||||
class Binding
|
||||
include Google::Apis::Core::Hashable
|
||||
|
@ -835,11 +712,6 @@ module Google
|
|||
class Policy
|
||||
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`.
|
||||
# `bindings` with no members will result in an error.
|
||||
# Corresponds to the JSON property `bindings`
|
||||
|
@ -860,12 +732,6 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :etag
|
||||
|
||||
#
|
||||
# Corresponds to the JSON property `iamOwned`
|
||||
# @return [Boolean]
|
||||
attr_accessor :iam_owned
|
||||
alias_method :iam_owned?, :iam_owned
|
||||
|
||||
# Deprecated.
|
||||
# Corresponds to the JSON property `version`
|
||||
# @return [Fixnum]
|
||||
|
@ -877,10 +743,8 @@ module Google
|
|||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@audit_configs = args[:audit_configs] if args.key?(:audit_configs)
|
||||
@bindings = args[:bindings] if args.key?(:bindings)
|
||||
@etag = args[:etag] if args.key?(:etag)
|
||||
@iam_owned = args[:iam_owned] if args.key?(:iam_owned)
|
||||
@version = args[:version] if args.key?(:version)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -22,18 +22,6 @@ module Google
|
|||
module Apis
|
||||
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 Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -196,24 +184,6 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
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
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -382,12 +352,9 @@ module Google
|
|||
class Policy
|
||||
# @private
|
||||
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
|
||||
|
||||
property :etag, :base64 => true, as: 'etag'
|
||||
property :iam_owned, as: 'iamOwned'
|
||||
property :version, as: 'version'
|
||||
end
|
||||
end
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://cloud.google.com/cloud-tasks/
|
||||
module CloudtasksV2beta2
|
||||
VERSION = 'V2beta2'
|
||||
REVISION = '20180120'
|
||||
REVISION = '20180123'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -23,15 +23,16 @@ module Google
|
|||
module CloudtasksV2beta2
|
||||
|
||||
# Request message for acknowledging a task using
|
||||
# CloudTasks.AcknowledgeTask.
|
||||
# AcknowledgeTask.
|
||||
class AcknowledgeTaskRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Required.
|
||||
# The task's current schedule time, available in the Task.schedule_time
|
||||
# returned in LeaseTasksResponse.tasks or
|
||||
# CloudTasks.RenewLease. This restriction is to ensure that your
|
||||
# worker currently holds the lease.
|
||||
# The task's current schedule time, available in the
|
||||
# schedule_time returned by
|
||||
# LeaseTasks response or
|
||||
# RenewLease response. This restriction is
|
||||
# to ensure that your worker currently holds the lease.
|
||||
# Corresponds to the JSON property `scheduleTime`
|
||||
# @return [String]
|
||||
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 task is dispatched.
|
||||
# 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
|
||||
# [`appengine.applications.get`](/appengine/docs/admin-api/access-control)
|
||||
# Google IAM permission for the project
|
||||
|
@ -64,11 +65,14 @@ module Google
|
|||
# [dispatch files](/appengine/docs/python/config/dispatchref).
|
||||
# The AppEngineRouting used to construct the URL that the task is
|
||||
# delivered to can be set at the queue-level or task-level:
|
||||
# * If set, AppEngineHttpTarget.app_engine_routing_override is used for
|
||||
# all tasks in the queue, no matter what the setting is for the
|
||||
# * If set,
|
||||
# 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.
|
||||
# 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
|
||||
# an HTTP response code in the range [`200` - `299`]. `503` is
|
||||
# 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
|
||||
# `"AppEngine-Google; (+http://code.google.com/appengine)"` to the
|
||||
# modified `User-Agent`.
|
||||
# If the task has an AppEngineHttpRequest.payload, Cloud Tasks sets the
|
||||
# following headers:
|
||||
# If the task has a payload, Cloud
|
||||
# Tasks sets the following headers:
|
||||
# * `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
|
||||
# [task is created](google.cloud.tasks.v2beta2.CloudTasks.CreateTask).
|
||||
# For example, `Content-Type` can be set to `"application/json"`.
|
||||
# * `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:
|
||||
# * `Host`
|
||||
# * `X-Google-*`
|
||||
|
@ -124,7 +128,7 @@ module Google
|
|||
# visible when the task is returned in a Cloud Tasks response.
|
||||
# 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
|
||||
# information, see the CloudTasks.CreateTask documentation.
|
||||
# information, see the CreateTask documentation.
|
||||
# Corresponds to the JSON property `headers`
|
||||
# @return [Hash<String,String>]
|
||||
attr_accessor :headers
|
||||
|
@ -241,31 +245,39 @@ module Google
|
|||
# example <app-id>.appspot.com, which is associated with the
|
||||
# queue's project ID. Some tasks which were created using the App Engine
|
||||
# SDK use a custom domain name.
|
||||
# * `service =` AppEngineRouting.service
|
||||
# * `version =` AppEngineRouting.version
|
||||
# * `service =` service
|
||||
# * `version =` version
|
||||
# * `version_dot_service =`
|
||||
# AppEngineRouting.version `+ '.' +` AppEngineRouting.service
|
||||
# * `instance =` AppEngineRouting.instance
|
||||
# version `+ '.' +`
|
||||
# service
|
||||
# * `instance =` instance
|
||||
# * `instance_dot_service =`
|
||||
# AppEngineRouting.instance `+ '.' +` AppEngineRouting.service
|
||||
# instance `+ '.' +`
|
||||
# service
|
||||
# * `instance_dot_version =`
|
||||
# AppEngineRouting.instance `+ '.' +` AppEngineRouting.version
|
||||
# instance `+ '.' +`
|
||||
# version
|
||||
# * `instance_dot_version_dot_service =`
|
||||
# AppEngineRouting.instance `+ '.' +`
|
||||
# AppEngineRouting.version `+ '.' +` AppEngineRouting.service
|
||||
# If AppEngineRouting.service is empty, then the task will be sent
|
||||
# instance `+ '.' +`
|
||||
# version `+ '.' +`
|
||||
# service
|
||||
# If service is empty, then the task will be sent
|
||||
# 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.
|
||||
# If AppEngineRouting.instance is empty, then the task will be sent
|
||||
# to an instance which is available when the task is attempted.
|
||||
# When AppEngineRouting.service is "default",
|
||||
# AppEngineRouting.version is "default", and
|
||||
# AppEngineRouting.instance is empty, AppEngineRouting.host is
|
||||
# shortened to just the `application_domain_name`.
|
||||
# If AppEngineRouting.service, AppEngineRouting.version, or
|
||||
# AppEngineRouting.instance is invalid, then the task will be sent
|
||||
# to the default version of the default service when the task is attempted.
|
||||
# If instance is empty, then the task
|
||||
# will be sent to an instance which is available when the task is
|
||||
# attempted.
|
||||
# When service is "default",
|
||||
# version is "default", and
|
||||
# instance is empty,
|
||||
# host is shortened to just the
|
||||
# `application_domain_name`.
|
||||
# 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`
|
||||
# @return [String]
|
||||
attr_accessor :host
|
||||
|
@ -288,14 +300,17 @@ module Google
|
|||
# App service.
|
||||
# By default, the task is sent to the service which is the default
|
||||
# service when the task is attempted ("default").
|
||||
# For some queues or tasks which were created using the App Engine Task Queue
|
||||
# API, AppEngineRouting.host is not parsable into
|
||||
# AppEngineRouting.service, AppEngineRouting.version, and
|
||||
# AppEngineRouting.instance. For example, some tasks which were created
|
||||
# using the App Engine SDK use a custom domain name; custom domains are not
|
||||
# parsed by Cloud Tasks. If AppEngineRouting.host is not parsable, then
|
||||
# AppEngineRouting.service, AppEngineRouting.version, and
|
||||
# AppEngineRouting.instance are the empty string.
|
||||
# For some queues or tasks which were created using the App Engine
|
||||
# Task Queue API, host is not parsable
|
||||
# into service,
|
||||
# version, and
|
||||
# instance. For example, some tasks
|
||||
# which were created using the App Engine SDK use a custom domain
|
||||
# name; custom domains are not parsed by Cloud Tasks. If
|
||||
# host is not parsable, then
|
||||
# service,
|
||||
# version, and
|
||||
# instance are the empty string.
|
||||
# Corresponds to the JSON property `service`
|
||||
# @return [String]
|
||||
attr_accessor :service
|
||||
|
@ -303,14 +318,17 @@ module Google
|
|||
# App version.
|
||||
# By default, the task is sent to the version which is the default
|
||||
# version when the task is attempted ("default").
|
||||
# For some queues or tasks which were created using the App Engine Task Queue
|
||||
# API, AppEngineRouting.host is not parsable into
|
||||
# AppEngineRouting.service, AppEngineRouting.version, and
|
||||
# AppEngineRouting.instance. For example, some tasks which were created
|
||||
# using the App Engine SDK use a custom domain name; custom domains are not
|
||||
# parsed by Cloud Tasks. If AppEngineRouting.host is not parsable, then
|
||||
# AppEngineRouting.service, AppEngineRouting.version, and
|
||||
# AppEngineRouting.instance are the empty string.
|
||||
# For some queues or tasks which were created using the App Engine
|
||||
# Task Queue API, host is not parsable
|
||||
# into service,
|
||||
# version, and
|
||||
# instance. For example, some tasks
|
||||
# which were created using the App Engine SDK use a custom domain
|
||||
# name; custom domains are not parsed by Cloud Tasks. If
|
||||
# host is not parsable, then
|
||||
# service,
|
||||
# version, and
|
||||
# instance are the empty string.
|
||||
# Corresponds to the JSON property `version`
|
||||
# @return [String]
|
||||
attr_accessor :version
|
||||
|
@ -447,29 +465,30 @@ module Google
|
|||
end
|
||||
|
||||
# Request message for canceling a lease using
|
||||
# CloudTasks.CancelLease.
|
||||
# CancelLease.
|
||||
class CancelLeaseRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The response_view specifies which subset of the Task will be
|
||||
# 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
|
||||
# payloads, might be desirable to return only when needed because
|
||||
# of its large size or because of the sensitivity of data that it
|
||||
# contains.
|
||||
# Authorization for Task.View.FULL requires `cloudtasks.tasks.fullView`
|
||||
# [Google IAM](/iam/) permission on the
|
||||
# Task.name resource.
|
||||
# Authorization for FULL requires
|
||||
# `cloudtasks.tasks.fullView` [Google IAM](/iam/) permission on the
|
||||
# Task resource.
|
||||
# Corresponds to the JSON property `responseView`
|
||||
# @return [String]
|
||||
attr_accessor :response_view
|
||||
|
||||
# Required.
|
||||
# The task's current schedule time, available in the Task.schedule_time
|
||||
# returned in LeaseTasksResponse.tasks or
|
||||
# CloudTasks.RenewLease. This restriction is to ensure that your
|
||||
# worker currently holds the lease.
|
||||
# The task's current schedule time, available in the
|
||||
# schedule_time returned by
|
||||
# LeaseTasks response or
|
||||
# RenewLease response. This restriction is
|
||||
# to ensure that your worker currently holds the lease.
|
||||
# Corresponds to the JSON property `scheduleTime`
|
||||
# @return [String]
|
||||
attr_accessor :schedule_time
|
||||
|
@ -485,20 +504,20 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# Request message for CloudTasks.CreateTask.
|
||||
# Request message for CreateTask.
|
||||
class CreateTaskRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The response_view specifies which subset of the Task will be
|
||||
# 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
|
||||
# payloads, might be desirable to return only when needed because
|
||||
# of its large size or because of the sensitivity of data that it
|
||||
# contains.
|
||||
# Authorization for Task.View.FULL requires `cloudtasks.tasks.fullView`
|
||||
# [Google IAM](/iam/) permission on the
|
||||
# Task.name resource.
|
||||
# Authorization for FULL requires
|
||||
# `cloudtasks.tasks.fullView` [Google IAM](/iam/) permission on the
|
||||
# Task resource.
|
||||
# Corresponds to the JSON property `responseView`
|
||||
# @return [String]
|
||||
attr_accessor :response_view
|
||||
|
@ -551,14 +570,14 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# Request message for leasing tasks using CloudTasks.LeaseTasks.
|
||||
# Request message for leasing tasks using LeaseTasks.
|
||||
class LeaseTasksRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# `filter` can be used to specify a subset of tasks to lease.
|
||||
# When `filter` is set to `tag=<my-tag>` then the
|
||||
# LeaseTasksResponse will contain only tasks whose
|
||||
# PullMessage.tag is equal to `<my-tag>`. `<my-tag>` must be
|
||||
# response will contain only tasks whose
|
||||
# tag is equal to `<my-tag>`. `<my-tag>` must be
|
||||
# less than 500 characters.
|
||||
# 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.
|
||||
|
@ -569,29 +588,23 @@ module Google
|
|||
# The `oldest_tag()` function returns tasks which have the same tag as the
|
||||
# oldest task (ordered by schedule time).
|
||||
# SDK compatibility: Although the SDK allows tags to be either
|
||||
# string or [bytes](/appengine/docs/standard/java/javadoc/com/google/appengine/
|
||||
# api/taskqueue/TaskOptions.html#tag-byte:A-),
|
||||
# only UTF-8 encoded tags can be used in Cloud Tasks. Tag which aren't UTF-8
|
||||
# encoded can't be used in LeaseTasksRequest.filter and won't display in
|
||||
# PullMessage.tag.
|
||||
# string or
|
||||
# [bytes](/appengine/docs/standard/java/javadoc/com/google/appengine/api/
|
||||
# taskqueue/TaskOptions.html#tag-byte:A-),
|
||||
# only UTF-8 encoded tags can be used in Cloud Tasks. Tag which
|
||||
# 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`
|
||||
# @return [String]
|
||||
attr_accessor :filter
|
||||
|
||||
# The duration of the lease.
|
||||
# Each task returned in the LeaseTasksResponse will have its
|
||||
# Task.schedule_time set to the current time plus the
|
||||
# `lease_duration`. A task that has been returned in a
|
||||
# LeaseTasksResponse is leased -- that task will not be
|
||||
# returned in a different LeaseTasksResponse before the
|
||||
# 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.
|
||||
# After the worker has successfully finished the work associated
|
||||
# with the task, the worker must call via
|
||||
# AcknowledgeTask before the
|
||||
# schedule_time. Otherwise the task will be
|
||||
# returned to a later LeaseTasks call so
|
||||
# that another worker can retry it.
|
||||
# The maximum lease duration is 1 week.
|
||||
# `lease_duration` will be truncated to the nearest second.
|
||||
# Corresponds to the JSON property `leaseDuration`
|
||||
|
@ -606,13 +619,14 @@ module Google
|
|||
|
||||
# The response_view specifies which subset of the Task will be
|
||||
# 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
|
||||
# payloads, might be desirable to return only when needed because
|
||||
# of its large size or because of the sensitivity of data that it
|
||||
# contains.
|
||||
# Authorization for Task.View.FULL requires `cloudtasks.tasks.fullView`
|
||||
# [Google IAM](/iam/) permission on the Task.name resource.
|
||||
# Authorization for FULL requires
|
||||
# `cloudtasks.tasks.fullView` [Google IAM](/iam/) permission on the
|
||||
# Task resource.
|
||||
# Corresponds to the JSON property `responseView`
|
||||
# @return [String]
|
||||
attr_accessor :response_view
|
||||
|
@ -630,7 +644,7 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# Response message for leasing tasks using CloudTasks.LeaseTasks.
|
||||
# Response message for leasing tasks using LeaseTasks.
|
||||
class LeaseTasksResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
|
@ -674,14 +688,14 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# Response message for CloudTasks.ListQueues.
|
||||
# Response message for ListQueues.
|
||||
class ListQueuesResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# A token to retrieve next page of results.
|
||||
# To return the next page of results, call
|
||||
# CloudTasks.ListQueues with this value as the
|
||||
# ListQueuesRequest.page_token.
|
||||
# ListQueues with this value as the
|
||||
# page_token.
|
||||
# If the next_page_token is empty, there are no more results.
|
||||
# The page token is valid for only 2 hours.
|
||||
# Corresponds to the JSON property `nextPageToken`
|
||||
|
@ -704,14 +718,14 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# Response message for listing tasks using CloudTasks.ListTasks.
|
||||
# Response message for listing tasks using ListTasks.
|
||||
class ListTasksResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# A token to retrieve next page of results.
|
||||
# To return the next page of results, call
|
||||
# CloudTasks.ListTasks with this value as the
|
||||
# ListTasksRequest.page_token.
|
||||
# ListTasks with this value as the
|
||||
# page_token.
|
||||
# If the next_page_token is empty, there are no more results.
|
||||
# Corresponds to the JSON property `nextPageToken`
|
||||
# @return [String]
|
||||
|
@ -773,7 +787,7 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# Request message for CloudTasks.PauseQueue.
|
||||
# Request message for PauseQueue.
|
||||
class PauseQueueRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
|
@ -853,9 +867,9 @@ module Google
|
|||
end
|
||||
|
||||
# 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
|
||||
# Queue.pull_target set.
|
||||
# pull_target set.
|
||||
class PullMessage
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
|
@ -867,10 +881,11 @@ module Google
|
|||
|
||||
# The task's tag.
|
||||
# Tags allow similar tasks to be processed in a batch. If you label
|
||||
# tasks with a tag, your worker can lease tasks
|
||||
# with the same tag using LeaseTasksRequest.filter. For example,
|
||||
# if you want to aggregate the events associated with a specific
|
||||
# user once a day, you could tag tasks with the user ID.
|
||||
# tasks with a tag, your worker can
|
||||
# lease tasks with the same tag using
|
||||
# filter. For example, if you want to
|
||||
# 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
|
||||
# task is created.
|
||||
# The tag must be less than 500 characters.
|
||||
|
@ -907,7 +922,7 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# Request message for CloudTasks.PurgeQueue.
|
||||
# Request message for PurgeQueue.
|
||||
class PurgeQueueRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
|
@ -950,12 +965,12 @@ module Google
|
|||
# identifying_projects)
|
||||
# * `LOCATION_ID` is the canonical ID for the queue's location.
|
||||
# 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/.
|
||||
# * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or
|
||||
# hyphens (-). The maximum length is 100 characters.
|
||||
# Caller-specified and required in CreateQueueRequest, after which
|
||||
# it becomes output only.
|
||||
# Caller-specified and required in CreateQueue,
|
||||
# after which it becomes output only.
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
@ -968,7 +983,7 @@ module Google
|
|||
# Output only. The last time this queue was purged.
|
||||
# All tasks that were created before this time
|
||||
# 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/
|
||||
# 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.
|
||||
# `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).
|
||||
# CloudTasks.UpdateQueue cannot be used to change `state`.
|
||||
# UpdateQueue cannot be used to change `state`.
|
||||
# Corresponds to the JSON property `state`
|
||||
# @return [String]
|
||||
attr_accessor :state
|
||||
|
@ -1035,17 +1051,21 @@ module Google
|
|||
# token is removed from the bucket. Tasks will be dispatched until
|
||||
# the queue's bucket runs out of tokens. The bucket will be
|
||||
# continuously refilled with new tokens based on
|
||||
# RateLimits.max_tasks_dispatched_per_second.
|
||||
# Cloud Tasks will pick the value of `max_burst_size` based on the value of
|
||||
# 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
|
||||
# max_tasks_dispatched_per_second.
|
||||
# For App Engine queues that were created or updated using
|
||||
# `queue.yaml/xml`, `max_burst_size` is equal to
|
||||
# [bucket_size](/appengine/docs/standard/python/config/queueref#bucket_size).
|
||||
# Since `max_burst_size` is output only, if CloudTasks.UpdateQueue is
|
||||
# called on a queue created by `queue.yaml/xml`, `max_burst_size` will be
|
||||
# reset based on the value of RateLimits.max_tasks_dispatched_per_second,
|
||||
# regardless of whether RateLimits.max_tasks_dispatched_per_second is
|
||||
# updated.
|
||||
# Since `max_burst_size` is output only, if
|
||||
# UpdateQueue is called on a queue
|
||||
# created by `queue.yaml/xml`, `max_burst_size` will be reset based
|
||||
# on the value of
|
||||
# max_tasks_dispatched_per_second,
|
||||
# regardless of whether
|
||||
# max_tasks_dispatched_per_second
|
||||
# is updated.
|
||||
# Corresponds to the JSON property `maxBurstSize`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :max_burst_size
|
||||
|
@ -1071,9 +1091,10 @@ module Google
|
|||
# default.
|
||||
# * For App Engine queues, the maximum allowed value is 500.
|
||||
# * This field is output only for [pull queues](google.cloud.tasks.v2beta2.
|
||||
# PullTarget).
|
||||
# In addition to the `max_tasks_dispatched_per_second` limit, a maximum of
|
||||
# 10 QPS of CloudTasks.LeaseTasks requests are allowed per pull queue.
|
||||
# PullTarget). In
|
||||
# addition to the `max_tasks_dispatched_per_second` limit, a
|
||||
# maximum of 10 QPS of LeaseTasks
|
||||
# requests are allowed per pull queue.
|
||||
# This field has the same meaning as
|
||||
# [rate in queue.yaml/xml](/appengine/docs/standard/python/config/queueref#rate).
|
||||
# Corresponds to the JSON property `maxTasksDispatchedPerSecond`
|
||||
|
@ -1092,7 +1113,8 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# Request message for renewing a lease using CloudTasks.RenewLease.
|
||||
# Request message for renewing a lease using
|
||||
# RenewLease.
|
||||
class RenewLeaseRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
|
@ -1106,23 +1128,24 @@ module Google
|
|||
|
||||
# The response_view specifies which subset of the Task will be
|
||||
# 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
|
||||
# payloads, might be desirable to return only when needed because
|
||||
# of its large size or because of the sensitivity of data that it
|
||||
# contains.
|
||||
# Authorization for Task.View.FULL requires `cloudtasks.tasks.fullView`
|
||||
# [Google IAM](/iam/) permission on the
|
||||
# Task.name resource.
|
||||
# Authorization for FULL requires
|
||||
# `cloudtasks.tasks.fullView` [Google IAM](/iam/) permission on the
|
||||
# Task resource.
|
||||
# Corresponds to the JSON property `responseView`
|
||||
# @return [String]
|
||||
attr_accessor :response_view
|
||||
|
||||
# Required.
|
||||
# The task's current schedule time, available in the Task.schedule_time
|
||||
# returned in LeaseTasksResponse.tasks or
|
||||
# CloudTasks.RenewLease. This restriction is to ensure that your
|
||||
# worker currently holds the lease.
|
||||
# The task's current schedule time, available in the
|
||||
# schedule_time returned by
|
||||
# LeaseTasks response or
|
||||
# RenewLease response. This restriction is
|
||||
# to ensure that your worker currently holds the lease.
|
||||
# Corresponds to the JSON property `scheduleTime`
|
||||
# @return [String]
|
||||
attr_accessor :schedule_time
|
||||
|
@ -1139,7 +1162,7 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# Request message for CloudTasks.ResumeQueue.
|
||||
# Request message for ResumeQueue.
|
||||
class ResumeQueueRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
|
@ -1166,8 +1189,9 @@ module Google
|
|||
attr_accessor :max_attempts
|
||||
|
||||
# A task will be [scheduled](Task.schedule_time) for retry between
|
||||
# RetryConfig.min_backoff and RetryConfig.max_backoff duration after
|
||||
# it fails, if the queue's RetryConfig specifies that the task should be
|
||||
# min_backoff and
|
||||
# max_backoff duration after it fails,
|
||||
# if the queue's RetryConfig specifies that the task should be
|
||||
# retried.
|
||||
# If unspecified when the queue is created, Cloud Tasks will pick the
|
||||
# default.
|
||||
|
@ -1182,18 +1206,21 @@ module Google
|
|||
attr_accessor :max_backoff
|
||||
|
||||
# The time between retries will double `max_doublings` times.
|
||||
# A task's retry interval starts at RetryConfig.min_backoff,
|
||||
# then doubles `max_doublings` times, then increases linearly, and
|
||||
# finally retries retries at intervals of
|
||||
# RetryConfig.max_backoff up to max_attempts times.
|
||||
# For example, if RetryConfig.min_backoff is 10s,
|
||||
# RetryConfig.max_backoff is 300s, and `max_doublings` is 3,
|
||||
# then the a task will first be retried in 10s. The retry interval
|
||||
# will double three times, and then increase linearly by 2^3 * 10s.
|
||||
# Finally, the task will retry at intervals of
|
||||
# RetryConfig.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, ....
|
||||
# A task's retry interval starts at
|
||||
# min_backoff, then doubles
|
||||
# `max_doublings` times, then increases linearly, and finally
|
||||
# retries retries at intervals of
|
||||
# max_backoff up to
|
||||
# max_attempts times.
|
||||
# For example, if min_backoff is 10s,
|
||||
# max_backoff is 300s, and
|
||||
# `max_doublings` is 3, then the a task will first be retried in
|
||||
# 10s. The retry interval will double three times, and then
|
||||
# increase linearly by 2^3 * 10s. Finally, the task will retry at
|
||||
# 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
|
||||
# default.
|
||||
# This field is output only for
|
||||
|
@ -1205,11 +1232,12 @@ module Google
|
|||
# @return [Fixnum]
|
||||
attr_accessor :max_doublings
|
||||
|
||||
# If positive, `max_retry_duration` specifies the time limit for retrying a
|
||||
# failed task, measured from when the task was first attempted. Once
|
||||
# `max_retry_duration` time has passed *and* the task has been attempted
|
||||
# RetryConfig.max_attempts times, no further attempts will be made and
|
||||
# the task will be deleted.
|
||||
# If positive, `max_retry_duration` specifies the time limit for
|
||||
# retrying a failed task, measured from when the task was first
|
||||
# attempted. Once `max_retry_duration` time has passed *and* the
|
||||
# task has been attempted max_attempts
|
||||
# times, no further attempts will be made and the task will be
|
||||
# deleted.
|
||||
# If zero, then the task age is unlimited.
|
||||
# If unspecified when the queue is created, Cloud Tasks will pick the
|
||||
# default.
|
||||
|
@ -1224,8 +1252,9 @@ module Google
|
|||
attr_accessor :max_retry_duration
|
||||
|
||||
# A task will be [scheduled](Task.schedule_time) for retry between
|
||||
# RetryConfig.min_backoff and RetryConfig.max_backoff duration after
|
||||
# it fails, if the queue's RetryConfig specifies that the task should be
|
||||
# min_backoff and
|
||||
# max_backoff duration after it fails,
|
||||
# if the queue's RetryConfig specifies that the task should be
|
||||
# retried.
|
||||
# If unspecified when the queue is created, Cloud Tasks will pick the
|
||||
# default.
|
||||
|
@ -1261,20 +1290,20 @@ module Google
|
|||
end
|
||||
|
||||
# Request message for forcing a task to run now using
|
||||
# CloudTasks.RunTask.
|
||||
# RunTask.
|
||||
class RunTaskRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The response_view specifies which subset of the Task will be
|
||||
# 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
|
||||
# payloads, might be desirable to return only when needed because
|
||||
# of its large size or because of the sensitivity of data that it
|
||||
# contains.
|
||||
# Authorization for Task.View.FULL requires `cloudtasks.tasks.fullView`
|
||||
# [Google IAM](/iam/) permission on the
|
||||
# Task.name resource.
|
||||
# Authorization for FULL requires
|
||||
# `cloudtasks.tasks.fullView` [Google IAM](/iam/) permission on the
|
||||
# Task resource.
|
||||
# Corresponds to the JSON property `responseView`
|
||||
# @return [String]
|
||||
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 task is dispatched.
|
||||
# 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
|
||||
# [`appengine.applications.get`](/appengine/docs/admin-api/access-control)
|
||||
# Google IAM permission for the project
|
||||
|
@ -1427,11 +1456,14 @@ module Google
|
|||
# [dispatch files](/appengine/docs/python/config/dispatchref).
|
||||
# The AppEngineRouting used to construct the URL that the task is
|
||||
# delivered to can be set at the queue-level or task-level:
|
||||
# * If set, AppEngineHttpTarget.app_engine_routing_override is used for
|
||||
# all tasks in the queue, no matter what the setting is for the
|
||||
# * If set,
|
||||
# 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.
|
||||
# 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
|
||||
# an HTTP response code in the range [`200` - `299`]. `503` is
|
||||
# considered an App Engine system error instead of an application
|
||||
|
@ -1459,21 +1491,21 @@ module Google
|
|||
# identifying_projects)
|
||||
# * `LOCATION_ID` is the canonical ID for the task's location.
|
||||
# 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/.
|
||||
# * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or
|
||||
# hyphens (-). The maximum length is 100 characters.
|
||||
# * `TASK_ID` can contain only letters ([A-Za-z]), numbers ([0-9]),
|
||||
# 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`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# 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
|
||||
# Queue.pull_target set.
|
||||
# pull_target set.
|
||||
# Corresponds to the JSON property `pullMessage`
|
||||
# @return [Google::Apis::CloudtasksV2beta2::PullMessage]
|
||||
attr_accessor :pull_message
|
||||
|
@ -1483,7 +1515,7 @@ module Google
|
|||
# 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
|
||||
# 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.
|
||||
# Corresponds to the JSON property `scheduleTime`
|
||||
# @return [String]
|
||||
|
|
|
@ -126,14 +126,14 @@ module Google
|
|||
# using an App Engine `queue.yaml` or `queue.xml` file to manage your queues.
|
||||
# Read
|
||||
# [Overview of Queue Management and queue.yaml](/cloud-tasks/docs/queue-yaml)
|
||||
# carefully before using this method.
|
||||
# before using this method.
|
||||
# @param [String] parent
|
||||
# Required.
|
||||
# The location name in which the queue will be created.
|
||||
# For example: `projects/PROJECT_ID/locations/LOCATION_ID`
|
||||
# The list of allowed locations can be obtained by calling Cloud
|
||||
# Tasks' implementation of
|
||||
# google.cloud.location.Locations.ListLocations.
|
||||
# ListLocations.
|
||||
# @param [Google::Apis::CloudtasksV2beta2::Queue] queue_object
|
||||
# @param [String] fields
|
||||
# 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.
|
||||
# Read
|
||||
# [Overview of Queue Management and queue.yaml](/cloud-tasks/docs/queue-yaml)
|
||||
# carefully before using this method.
|
||||
# before using this method.
|
||||
# @param [String] name
|
||||
# Required.
|
||||
# The queue name. For example:
|
||||
|
@ -294,17 +294,17 @@ module Google
|
|||
# Requested page size.
|
||||
# The maximum page size is 9800. If unspecified, the page size will
|
||||
# be the maximum. Fewer queues than requested might be returned,
|
||||
# even if more queues exist; use
|
||||
# ListQueuesResponse.next_page_token to determine if more
|
||||
# queues exist.
|
||||
# even if more queues exist; use the
|
||||
# next_page_token in the
|
||||
# response to determine if more queues exist.
|
||||
# @param [String] page_token
|
||||
# A token identifying the page of results to return.
|
||||
# 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
|
||||
# ListQueuesResponse.next_page_token returned from the previous
|
||||
# call to CloudTasks.ListQueues method. It is an error to
|
||||
# switch the value of ListQueuesRequest.filter while iterating
|
||||
# through pages.
|
||||
# next_page_token returned
|
||||
# from the previous call to ListQueues
|
||||
# method. It is an error to switch the value of the
|
||||
# filter while iterating through pages.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
|
@ -346,7 +346,7 @@ module Google
|
|||
# using an App Engine `queue.yaml` or `queue.xml` file to manage your queues.
|
||||
# Read
|
||||
# [Overview of Queue Management and queue.yaml](/cloud-tasks/docs/queue-yaml)
|
||||
# carefully before using this method.
|
||||
# before using this method.
|
||||
# @param [String] name
|
||||
# The queue name.
|
||||
# The queue name must have the following format:
|
||||
|
@ -358,12 +358,12 @@ module Google
|
|||
# identifying_projects)
|
||||
# * `LOCATION_ID` is the canonical ID for the queue's location.
|
||||
# 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/.
|
||||
# * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or
|
||||
# hyphens (-). The maximum length is 100 characters.
|
||||
# Caller-specified and required in CreateQueueRequest, after which
|
||||
# it becomes output only.
|
||||
# Caller-specified and required in CreateQueue,
|
||||
# after which it becomes output only.
|
||||
# @param [Google::Apis::CloudtasksV2beta2::Queue] queue_object
|
||||
# @param [String] update_mask
|
||||
# A mask used to specify which fields of the queue are being updated.
|
||||
|
@ -399,12 +399,11 @@ module Google
|
|||
end
|
||||
|
||||
# Pauses the queue.
|
||||
# If a queue is paused then the system will stop executing the
|
||||
# tasks in the queue until it is resumed via
|
||||
# CloudTasks.ResumeQueue. Tasks can still be added when the
|
||||
# queue is paused. The state of the queue is stored in
|
||||
# Queue.state; if paused it will be set to
|
||||
# Queue.State.PAUSED.
|
||||
# If a queue is paused then the system will stop dispatching tasks
|
||||
# until the queue is resumed via
|
||||
# ResumeQueue. Tasks can still be added
|
||||
# when the queue is paused. A queue is paused if its
|
||||
# state is PAUSED.
|
||||
# @param [String] name
|
||||
# Required.
|
||||
# The queue name. For example:
|
||||
|
@ -479,9 +478,10 @@ module Google
|
|||
|
||||
# Resume a queue.
|
||||
# This method resumes a queue after it has been
|
||||
# Queue.State.PAUSED or Queue.State.DISABLED. The state of
|
||||
# a queue is stored in Queue.state; after calling this method it
|
||||
# will be set to Queue.State.RUNNING.
|
||||
# PAUSED or
|
||||
# DISABLED. The state of a queue is stored
|
||||
# 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
|
||||
# lead to target overloading. If you are resuming high-QPS
|
||||
# queues, follow the 500/50/5 pattern described in
|
||||
|
@ -563,7 +563,7 @@ module Google
|
|||
|
||||
# Returns permissions that a caller has on a Queue.
|
||||
# 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
|
||||
# UIs and command-line tools, not for authorization checking. This operation
|
||||
# may "fail open" without warning.
|
||||
|
@ -601,15 +601,16 @@ module Google
|
|||
end
|
||||
|
||||
# Acknowledges a pull task.
|
||||
# The worker, that is, the entity that received this task in
|
||||
# a LeaseTasksResponse, must call this method to indicate that
|
||||
# the work associated with the task has finished.
|
||||
# The worker, that is, the entity that
|
||||
# leased this task must call this method
|
||||
# to indicate that the work associated with the task has finished.
|
||||
# The worker must acknowledge a task within the
|
||||
# LeaseTasksRequest.lease_duration or the lease will expire and
|
||||
# the task will become ready to be returned in a different
|
||||
# LeaseTasksResponse. After the task is acknowledged, it will
|
||||
# not be returned by a later CloudTasks.LeaseTasks,
|
||||
# CloudTasks.GetTask, or CloudTasks.ListTasks.
|
||||
# lease_duration or the lease
|
||||
# will expire and the task will become available to be leased
|
||||
# again. After the task is acknowledged, it will not be returned
|
||||
# by a later LeaseTasks,
|
||||
# GetTask, or
|
||||
# ListTasks.
|
||||
# To acknowledge multiple tasks at the same time, use
|
||||
# [HTTP batching](/storage/docs/json_api/v1/how-tos/batch)
|
||||
# or the batching documentation for your client library, for example
|
||||
|
@ -649,9 +650,10 @@ module Google
|
|||
end
|
||||
|
||||
# Cancel a pull task's lease.
|
||||
# The worker can use this method to cancel a task's lease
|
||||
# by setting Task.schedule_time to now. This will make the task
|
||||
# available to be leased to the next caller of CloudTasks.LeaseTasks.
|
||||
# The worker can use this method to cancel a task's lease by
|
||||
# setting its schedule_time to now. This will
|
||||
# make the task available to be leased to the next caller of
|
||||
# LeaseTasks.
|
||||
# @param [String] name
|
||||
# Required.
|
||||
# The task name. For example:
|
||||
|
@ -774,14 +776,14 @@ module Google
|
|||
# @param [String] response_view
|
||||
# The response_view specifies which subset of the Task will be
|
||||
# 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
|
||||
# payloads, might be desirable to return only when needed because
|
||||
# of its large size or because of the sensitivity of data that it
|
||||
# contains.
|
||||
# Authorization for Task.View.FULL requires `cloudtasks.tasks.fullView`
|
||||
# [Google IAM](/iam/) permission on the
|
||||
# Task.name resource.
|
||||
# Authorization for FULL requires
|
||||
# `cloudtasks.tasks.fullView` [Google IAM](/iam/) permission on the
|
||||
# Task resource.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
|
@ -810,19 +812,25 @@ module Google
|
|||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Leases tasks from a pull queue for LeaseTasksRequest.lease_duration.
|
||||
# This method is invoked by the worker to obtain a
|
||||
# lease. The worker must acknowledge the task via
|
||||
# CloudTasks.AcknowledgeTask after they have performed the work
|
||||
# associated with the task.
|
||||
# The payload is intended to store data that the worker needs
|
||||
# to perform the work associated with the task. To return the
|
||||
# payloads in the LeaseTasksResponse, set
|
||||
# LeaseTasksRequest.response_view to Task.View.FULL.
|
||||
# A maximum of 10 qps of CloudTasks.LeaseTasks requests are allowed per
|
||||
# queue. google.rpc.Code.RESOURCE_EXHAUSTED is returned when this limit
|
||||
# is exceeded. google.rpc.Code.RESOURCE_EXHAUSTED is also returned when
|
||||
# RateLimits.max_tasks_dispatched_per_second is exceeded.
|
||||
# Leases tasks from a pull queue for
|
||||
# lease_duration.
|
||||
# This method is invoked by the worker to obtain a lease. The
|
||||
# worker must acknowledge the task via
|
||||
# AcknowledgeTask after they have
|
||||
# performed the work associated with the task.
|
||||
# The payload is intended to store data that
|
||||
# the worker needs to perform the work associated with the task. To
|
||||
# return the payloads in the response, set
|
||||
# response_view to
|
||||
# FULL.
|
||||
# A maximum of 10 qps of LeaseTasks
|
||||
# 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
|
||||
# Required.
|
||||
# The queue name. For example:
|
||||
|
@ -858,9 +866,9 @@ module Google
|
|||
end
|
||||
|
||||
# Lists the tasks in a queue.
|
||||
# By default response_view is Task.View.BASIC; not all
|
||||
# information is retrieved by default due to performance
|
||||
# considerations; ListTasksRequest.response_view controls the
|
||||
# By default, only the BASIC view is retrieved
|
||||
# due to performance considerations;
|
||||
# response_view controls the
|
||||
# subset of information which is returned.
|
||||
# @param [String] parent
|
||||
# Required.
|
||||
|
@ -876,26 +884,27 @@ module Google
|
|||
# The maximum page size is 1000. If unspecified, the page size will
|
||||
# be the maximum. Fewer tasks than requested might be returned,
|
||||
# even if more tasks exist; use
|
||||
# ListTasksResponse.next_page_token to determine if more tasks
|
||||
# exist.
|
||||
# next_page_token in the
|
||||
# response to determine if more tasks exist.
|
||||
# @param [String] page_token
|
||||
# A token identifying the page of results to return.
|
||||
# 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
|
||||
# ListTasksResponse.next_page_token returned from the previous
|
||||
# call to CloudTasks.ListTasks method.
|
||||
# next_page_token returned
|
||||
# from the previous call to ListTasks
|
||||
# method.
|
||||
# The page token is valid for only 2 hours.
|
||||
# @param [String] response_view
|
||||
# The response_view specifies which subset of the Task will be
|
||||
# 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
|
||||
# payloads, might be desirable to return only when needed because
|
||||
# of its large size or because of the sensitivity of data that it
|
||||
# contains.
|
||||
# Authorization for Task.View.FULL requires `cloudtasks.tasks.fullView`
|
||||
# [Google IAM](/iam/) permission on the
|
||||
# Task.name resource.
|
||||
# Authorization for FULL requires
|
||||
# `cloudtasks.tasks.fullView` [Google IAM](/iam/) permission on the
|
||||
# Task resource.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
|
@ -930,7 +939,7 @@ module Google
|
|||
# Renew the current lease of a pull task.
|
||||
# The worker can use this method to extend the lease by a new
|
||||
# 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
|
||||
# Required.
|
||||
# The task name. For example:
|
||||
|
@ -967,25 +976,27 @@ module Google
|
|||
|
||||
# Forces a task to run now.
|
||||
# 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
|
||||
# dispatched now.
|
||||
# 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
|
||||
# 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.
|
||||
# If Cloud Tasks receives a successful response from the task's
|
||||
# handler, then the task will be deleted; otherwise the task's
|
||||
# Task.schedule_time will be reset to the time that
|
||||
# CloudTasks.RunTask was called plus the retry delay specified
|
||||
# schedule_time will be reset to the time that
|
||||
# RunTask was called plus the retry delay specified
|
||||
# in the queue and task's RetryConfig.
|
||||
# CloudTasks.RunTask returns google.rpc.Code.NOT_FOUND when
|
||||
# it is called on a task that has already succeeded or permanently
|
||||
# failed. google.rpc.Code.FAILED_PRECONDITION is returned when
|
||||
# CloudTasks.RunTask is called on task that is dispatched or
|
||||
# already running.
|
||||
# CloudTasks.RunTask cannot be called on pull tasks.
|
||||
# RunTask returns
|
||||
# NOT_FOUND when it is called on a
|
||||
# task that has already succeeded or permanently
|
||||
# failed. FAILED_PRECONDITION
|
||||
# is returned when RunTask is called on task
|
||||
# that is dispatched or already running.
|
||||
# RunTask cannot be called on
|
||||
# pull tasks.
|
||||
# @param [String] name
|
||||
# Required.
|
||||
# The task name. For example:
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://developers.google.com/partners/
|
||||
module PartnersV2
|
||||
VERSION = 'V2'
|
||||
REVISION = '20171031'
|
||||
REVISION = '20180122'
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -897,37 +897,6 @@ module Google
|
|||
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.
|
||||
class GetCompanyResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
|
|
@ -130,12 +130,6 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ExamToken
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GetCompanyResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -546,15 +540,6 @@ module Google
|
|||
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
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
|
|
@ -393,61 +393,6 @@ module Google
|
|||
execute_or_queue_command(command, &block)
|
||||
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.
|
||||
# Should only be called within the context of an authorized logged in user.
|
||||
# @param [String] order_by
|
||||
|
|
|
@ -27,7 +27,7 @@ module Google
|
|||
# @see https://cloud.google.com/vision/
|
||||
module VisionV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20180103'
|
||||
REVISION = '20180122'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -231,6 +231,11 @@ module Google
|
|||
# @return [Google::Apis::VisionV1::BoundingPoly]
|
||||
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).
|
||||
# Corresponds to the JSON property `paragraphs`
|
||||
# @return [Array<Google::Apis::VisionV1::Paragraph>]
|
||||
|
@ -249,6 +254,7 @@ module Google
|
|||
def update!(**args)
|
||||
@block_type = args[:block_type] if args.key?(:block_type)
|
||||
@bounding_box = args[:bounding_box] if args.key?(:bounding_box)
|
||||
@confidence = args[:confidence] if args.key?(:confidence)
|
||||
@paragraphs = args[:paragraphs] if args.key?(:paragraphs)
|
||||
@property = args[:property] if args.key?(:property)
|
||||
end
|
||||
|
@ -897,6 +903,13 @@ module Google
|
|||
# @return [Fixnum]
|
||||
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.
|
||||
# Corresponds to the JSON property `type`
|
||||
# @return [String]
|
||||
|
@ -909,6 +922,7 @@ module Google
|
|||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@max_results = args[:max_results] if args.key?(:max_results)
|
||||
@model = args[:model] if args.key?(:model)
|
||||
@type = args[:type] if args.key?(:type)
|
||||
end
|
||||
end
|
||||
|
@ -967,6 +981,11 @@ module Google
|
|||
# @return [Google::Apis::VisionV1::LatLongRect]
|
||||
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)
|
||||
update!(**args)
|
||||
end
|
||||
|
@ -976,6 +995,7 @@ module Google
|
|||
@crop_hints_params = args[:crop_hints_params] if args.key?(:crop_hints_params)
|
||||
@language_hints = args[:language_hints] if args.key?(:language_hints)
|
||||
@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
|
||||
|
||||
|
@ -1161,6 +1181,11 @@ module Google
|
|||
# @return [Array<Google::Apis::VisionV1::Block>]
|
||||
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.
|
||||
# Corresponds to the JSON property `height`
|
||||
# @return [Fixnum]
|
||||
|
@ -1183,6 +1208,7 @@ module Google
|
|||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@blocks = args[:blocks] if args.key?(:blocks)
|
||||
@confidence = args[:confidence] if args.key?(:confidence)
|
||||
@height = args[:height] if args.key?(:height)
|
||||
@property = args[:property] if args.key?(:property)
|
||||
@width = args[:width] if args.key?(:width)
|
||||
|
@ -1198,6 +1224,11 @@ module Google
|
|||
# @return [Google::Apis::VisionV1::BoundingPoly]
|
||||
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.
|
||||
# Corresponds to the JSON property `property`
|
||||
# @return [Google::Apis::VisionV1::TextProperty]
|
||||
|
@ -1215,6 +1246,7 @@ module Google
|
|||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@bounding_box = args[:bounding_box] if args.key?(:bounding_box)
|
||||
@confidence = args[:confidence] if args.key?(:confidence)
|
||||
@property = args[:property] if args.key?(:property)
|
||||
@words = args[:words] if args.key?(:words)
|
||||
end
|
||||
|
@ -1302,6 +1334,14 @@ module Google
|
|||
# @return [String]
|
||||
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
|
||||
# was made to the image's canonical version to make it appear
|
||||
# funny or offensive.
|
||||
|
@ -1322,6 +1362,7 @@ module Google
|
|||
def update!(**args)
|
||||
@adult = args[:adult] if args.key?(:adult)
|
||||
@medical = args[:medical] if args.key?(:medical)
|
||||
@racy = args[:racy] if args.key?(:racy)
|
||||
@spoof = args[:spoof] if args.key?(:spoof)
|
||||
@violence = args[:violence] if args.key?(:violence)
|
||||
end
|
||||
|
@ -1408,6 +1449,11 @@ module Google
|
|||
# @return [Google::Apis::VisionV1::BoundingPoly]
|
||||
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.
|
||||
# Corresponds to the JSON property `property`
|
||||
# @return [Google::Apis::VisionV1::TextProperty]
|
||||
|
@ -1425,6 +1471,7 @@ module Google
|
|||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@bounding_box = args[:bounding_box] if args.key?(:bounding_box)
|
||||
@confidence = args[:confidence] if args.key?(:confidence)
|
||||
@property = args[:property] if args.key?(:property)
|
||||
@text = args[:text] if args.key?(:text)
|
||||
end
|
||||
|
@ -1516,6 +1563,11 @@ module Google
|
|||
class WebDetection
|
||||
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.
|
||||
# Can include resized copies of the query image.
|
||||
# Corresponds to the JSON property `fullMatchingImages`
|
||||
|
@ -1550,6 +1602,7 @@ module Google
|
|||
|
||||
# Update properties of this object
|
||||
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)
|
||||
@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)
|
||||
|
@ -1558,6 +1611,26 @@ module Google
|
|||
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.
|
||||
class WebEntity
|
||||
include Google::Apis::Core::Hashable
|
||||
|
@ -1615,10 +1688,56 @@ module Google
|
|||
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.
|
||||
class WebPage
|
||||
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.
|
||||
# Corresponds to the JSON property `score`
|
||||
# @return [Float]
|
||||
|
@ -1635,6 +1754,9 @@ module Google
|
|||
|
||||
# Update properties of this object
|
||||
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)
|
||||
@url = args[:url] if args.key?(:url)
|
||||
end
|
||||
|
@ -1649,6 +1771,11 @@ module Google
|
|||
# @return [Google::Apis::VisionV1::BoundingPoly]
|
||||
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.
|
||||
# Corresponds to the JSON property `property`
|
||||
# @return [Google::Apis::VisionV1::TextProperty]
|
||||
|
@ -1667,6 +1794,7 @@ module Google
|
|||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@bounding_box = args[:bounding_box] if args.key?(:bounding_box)
|
||||
@confidence = args[:confidence] if args.key?(:confidence)
|
||||
@property = args[:property] if args.key?(:property)
|
||||
@symbols = args[:symbols] if args.key?(:symbols)
|
||||
end
|
||||
|
|
|
@ -238,6 +238,12 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class WebDetectionParams
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class WebEntity
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -250,6 +256,12 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class WebLabel
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class WebPage
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -324,6 +336,7 @@ module Google
|
|||
property :block_type, as: 'blockType'
|
||||
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
|
||||
|
||||
property :property, as: 'property', class: Google::Apis::VisionV1::TextProperty, decorator: Google::Apis::VisionV1::TextProperty::Representation
|
||||
|
@ -454,6 +467,7 @@ module Google
|
|||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :max_results, as: 'maxResults'
|
||||
property :model, as: 'model'
|
||||
property :type, as: 'type'
|
||||
end
|
||||
end
|
||||
|
@ -475,6 +489,8 @@ module Google
|
|||
collection :language_hints, as: 'languageHints'
|
||||
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
|
||||
|
||||
|
@ -534,6 +550,7 @@ module Google
|
|||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :blocks, as: 'blocks', class: Google::Apis::VisionV1::Block, decorator: Google::Apis::VisionV1::Block::Representation
|
||||
|
||||
property :confidence, as: 'confidence'
|
||||
property :height, as: 'height'
|
||||
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
|
||||
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
|
||||
|
||||
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
|
||||
property :adult, as: 'adult'
|
||||
property :medical, as: 'medical'
|
||||
property :racy, as: 'racy'
|
||||
property :spoof, as: 'spoof'
|
||||
property :violence, as: 'violence'
|
||||
end
|
||||
|
@ -595,6 +614,7 @@ module Google
|
|||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
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 :text, as: 'text'
|
||||
|
@ -631,6 +651,8 @@ module Google
|
|||
class WebDetection
|
||||
# @private
|
||||
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 :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
|
||||
|
||||
class WebDetectionParams
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :include_geo_results, as: 'includeGeoResults'
|
||||
end
|
||||
end
|
||||
|
||||
class WebEntity
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -661,9 +690,22 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class WebLabel
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :label, as: 'label'
|
||||
property :language_code, as: 'languageCode'
|
||||
end
|
||||
end
|
||||
|
||||
class WebPage
|
||||
# @private
|
||||
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 :url, as: 'url'
|
||||
end
|
||||
|
@ -674,6 +716,7 @@ module Google
|
|||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
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
|
||||
|
||||
collection :symbols, as: 'symbols', class: Google::Apis::VisionV1::Symbol, decorator: Google::Apis::VisionV1::Symbol::Representation
|
||||
|
|
Loading…
Reference in New Issue