Autogenerated update (2019-08-24)
Update: - alertcenter_v1beta1 - cloudtasks_v2beta2 - cloudtasks_v2beta3 - containeranalysis_v1alpha1 - containeranalysis_v1beta1 - dialogflow_v2 - dialogflow_v2beta1 - jobs_v3 - jobs_v3p1beta1 - people_v1 - toolresults_v1beta3 - translate_v3beta1
This commit is contained in:
parent
8f7374dc00
commit
46bdba97bf
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://developers.google.com/admin-sdk/alertcenter/
|
||||
module AlertcenterV1beta1
|
||||
VERSION = 'V1beta1'
|
||||
REVISION = '20190725'
|
||||
REVISION = '20190821'
|
||||
|
||||
# See and delete your domain's G Suite alerts, and send alert feedback
|
||||
AUTH_APPS_ALERTS = 'https://www.googleapis.com/auth/apps.alerts'
|
||||
|
|
|
@ -177,6 +177,24 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :end_time
|
||||
|
||||
# Optional. `etag` is used for optimistic concurrency control as a way to help
|
||||
# prevent simultaneous updates of an alert from overwriting each other.
|
||||
# It is strongly suggested that systems make use of the `etag` in the
|
||||
# read-modify-write cycle to perform alert updates in order to avoid race
|
||||
# conditions: An `etag` is returned in the response which contains alerts,
|
||||
# and systems are expected to put that etag in the request to update alert to
|
||||
# ensure that their change will be applied to the same version of the alert.
|
||||
# If no `etag` is provided in the call to update alert, then the existing
|
||||
# alert is overwritten blindly.
|
||||
# Corresponds to the JSON property `etag`
|
||||
# @return [String]
|
||||
attr_accessor :etag
|
||||
|
||||
# An alert metadata.
|
||||
# Corresponds to the JSON property `metadata`
|
||||
# @return [Google::Apis::AlertcenterV1beta1::AlertMetadata]
|
||||
attr_accessor :metadata
|
||||
|
||||
# Output only. An optional
|
||||
# [Security Investigation Tool](https://support.google.com/a/answer/7575955)
|
||||
# query for this alert.
|
||||
|
@ -228,6 +246,8 @@ module Google
|
|||
@data = args[:data] if args.key?(:data)
|
||||
@deleted = args[:deleted] if args.key?(:deleted)
|
||||
@end_time = args[:end_time] if args.key?(:end_time)
|
||||
@etag = args[:etag] if args.key?(:etag)
|
||||
@metadata = args[:metadata] if args.key?(:metadata)
|
||||
@security_investigation_tool_link = args[:security_investigation_tool_link] if args.key?(:security_investigation_tool_link)
|
||||
@source = args[:source] if args.key?(:source)
|
||||
@start_time = args[:start_time] if args.key?(:start_time)
|
||||
|
@ -285,6 +305,80 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# An alert metadata.
|
||||
class AlertMetadata
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Output only. The alert identifier.
|
||||
# Corresponds to the JSON property `alertId`
|
||||
# @return [String]
|
||||
attr_accessor :alert_id
|
||||
|
||||
# The email address of the user assigned to the alert.
|
||||
# Corresponds to the JSON property `assignee`
|
||||
# @return [String]
|
||||
attr_accessor :assignee
|
||||
|
||||
# Output only. The unique identifier of the Google account of the customer.
|
||||
# Corresponds to the JSON property `customerId`
|
||||
# @return [String]
|
||||
attr_accessor :customer_id
|
||||
|
||||
# Optional. `etag` is used for optimistic concurrency control as a way to
|
||||
# help prevent simultaneous updates of an alert metadata from overwriting
|
||||
# each other. It is strongly suggested that systems make use of the `etag` in
|
||||
# the read-modify-write cycle to perform metatdata updates in order to avoid
|
||||
# race conditions: An `etag` is returned in the response which contains alert
|
||||
# metadata, and systems are expected to put that etag in the request to
|
||||
# update alert metadata to ensure that their change will be applied to the
|
||||
# same version of the alert metadata.
|
||||
# If no `etag` is provided in the call to update alert metadata, then the
|
||||
# existing alert metadata is overwritten blindly.
|
||||
# Corresponds to the JSON property `etag`
|
||||
# @return [String]
|
||||
attr_accessor :etag
|
||||
|
||||
# The severity value of the alert. Alert Center will set this field at alert
|
||||
# creation time, default's to an empty string when it could not be
|
||||
# determined.
|
||||
# The supported values for update actions on this field are the following:
|
||||
# * HIGH
|
||||
# * MEDIUM
|
||||
# * LOW
|
||||
# Corresponds to the JSON property `severity`
|
||||
# @return [String]
|
||||
attr_accessor :severity
|
||||
|
||||
# The current status of the alert.
|
||||
# The supported values are the following:
|
||||
# * NOT_STARTED
|
||||
# * IN_PROGRESS
|
||||
# * CLOSED
|
||||
# Corresponds to the JSON property `status`
|
||||
# @return [String]
|
||||
attr_accessor :status
|
||||
|
||||
# Output only. The time this metadata was last updated.
|
||||
# Corresponds to the JSON property `updateTime`
|
||||
# @return [String]
|
||||
attr_accessor :update_time
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@alert_id = args[:alert_id] if args.key?(:alert_id)
|
||||
@assignee = args[:assignee] if args.key?(:assignee)
|
||||
@customer_id = args[:customer_id] if args.key?(:customer_id)
|
||||
@etag = args[:etag] if args.key?(:etag)
|
||||
@severity = args[:severity] if args.key?(:severity)
|
||||
@status = args[:status] if args.key?(:status)
|
||||
@update_time = args[:update_time] if args.key?(:update_time)
|
||||
end
|
||||
end
|
||||
|
||||
# Attachment with application-specific information about an alert.
|
||||
class Attachment
|
||||
include Google::Apis::Core::Hashable
|
||||
|
@ -344,6 +438,108 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# A request to perform batch delete on alerts.
|
||||
class BatchDeleteAlertsRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Required. list of alert ids.
|
||||
# Corresponds to the JSON property `alertId`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :alert_id
|
||||
|
||||
# Optional. The unique identifier of the G Suite organization account of the
|
||||
# customer the alerts are associated with.
|
||||
# Corresponds to the JSON property `customerId`
|
||||
# @return [String]
|
||||
attr_accessor :customer_id
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@alert_id = args[:alert_id] if args.key?(:alert_id)
|
||||
@customer_id = args[:customer_id] if args.key?(:customer_id)
|
||||
end
|
||||
end
|
||||
|
||||
# Response to batch delete operation on alerts.
|
||||
class BatchDeleteAlertsResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The status details for each failed alert_id.
|
||||
# Corresponds to the JSON property `failedAlertStatus`
|
||||
# @return [Hash<String,Google::Apis::AlertcenterV1beta1::Status>]
|
||||
attr_accessor :failed_alert_status
|
||||
|
||||
# The successful list of alert ids.
|
||||
# Corresponds to the JSON property `successAlertIds`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :success_alert_ids
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@failed_alert_status = args[:failed_alert_status] if args.key?(:failed_alert_status)
|
||||
@success_alert_ids = args[:success_alert_ids] if args.key?(:success_alert_ids)
|
||||
end
|
||||
end
|
||||
|
||||
# A request to perform batch undelete on alerts.
|
||||
class BatchUndeleteAlertsRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Required. list of alert ids.
|
||||
# Corresponds to the JSON property `alertId`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :alert_id
|
||||
|
||||
# Optional. The unique identifier of the G Suite organization account of the
|
||||
# customer the alerts are associated with.
|
||||
# Corresponds to the JSON property `customerId`
|
||||
# @return [String]
|
||||
attr_accessor :customer_id
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@alert_id = args[:alert_id] if args.key?(:alert_id)
|
||||
@customer_id = args[:customer_id] if args.key?(:customer_id)
|
||||
end
|
||||
end
|
||||
|
||||
# Response to batch undelete operation on alerts.
|
||||
class BatchUndeleteAlertsResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The status details for each failed alert_id.
|
||||
# Corresponds to the JSON property `failedAlertStatus`
|
||||
# @return [Hash<String,Google::Apis::AlertcenterV1beta1::Status>]
|
||||
attr_accessor :failed_alert_status
|
||||
|
||||
# The successful list of alert ids.
|
||||
# Corresponds to the JSON property `successAlertIds`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :success_alert_ids
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@failed_alert_status = args[:failed_alert_status] if args.key?(:failed_alert_status)
|
||||
@success_alert_ids = args[:success_alert_ids] if args.key?(:success_alert_ids)
|
||||
end
|
||||
end
|
||||
|
||||
# A reference to a Cloud Pubsub topic.
|
||||
# To register for notifications, the owner of the topic must grant
|
||||
# `alerts-api-push-notifications@system.gserviceaccount.com` the
|
||||
|
@ -912,6 +1108,45 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# The `Status` type defines a logical error model that is suitable for
|
||||
# different programming environments, including REST APIs and RPC APIs. It is
|
||||
# used by [gRPC](https://github.com/grpc). Each `Status` message contains
|
||||
# three pieces of data: error code, error message, and error details.
|
||||
# You can find out more about this error model and how to work with it in the
|
||||
# [API Design Guide](https://cloud.google.com/apis/design/errors).
|
||||
class Status
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The status code, which should be an enum value of google.rpc.Code.
|
||||
# Corresponds to the JSON property `code`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :code
|
||||
|
||||
# A list of messages that carry the error details. There is a common set of
|
||||
# message types for APIs to use.
|
||||
# Corresponds to the JSON property `details`
|
||||
# @return [Array<Hash<String,Object>>]
|
||||
attr_accessor :details
|
||||
|
||||
# A developer-facing error message, which should be in English. Any
|
||||
# user-facing error message should be localized and sent in the
|
||||
# google.rpc.Status.details field, or localized by the client.
|
||||
# Corresponds to the JSON property `message`
|
||||
# @return [String]
|
||||
attr_accessor :message
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@code = args[:code] if args.key?(:code)
|
||||
@details = args[:details] if args.key?(:details)
|
||||
@message = args[:message] if args.key?(:message)
|
||||
end
|
||||
end
|
||||
|
||||
# A mobile suspicious activity alert. Derived from audit logs.
|
||||
class SuspiciousActivity
|
||||
include Google::Apis::Core::Hashable
|
||||
|
|
|
@ -46,6 +46,12 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class AlertMetadata
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Attachment
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -58,6 +64,30 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class BatchDeleteAlertsRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class BatchDeleteAlertsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class BatchUndeleteAlertsRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class BatchUndeleteAlertsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class CloudPubsubTopic
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -172,6 +202,12 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Status
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SuspiciousActivity
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -226,6 +262,9 @@ module Google
|
|||
hash :data, as: 'data'
|
||||
property :deleted, as: 'deleted'
|
||||
property :end_time, as: 'endTime'
|
||||
property :etag, as: 'etag'
|
||||
property :metadata, as: 'metadata', class: Google::Apis::AlertcenterV1beta1::AlertMetadata, decorator: Google::Apis::AlertcenterV1beta1::AlertMetadata::Representation
|
||||
|
||||
property :security_investigation_tool_link, as: 'securityInvestigationToolLink'
|
||||
property :source, as: 'source'
|
||||
property :start_time, as: 'startTime'
|
||||
|
@ -246,6 +285,19 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class AlertMetadata
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :alert_id, as: 'alertId'
|
||||
property :assignee, as: 'assignee'
|
||||
property :customer_id, as: 'customerId'
|
||||
property :etag, as: 'etag'
|
||||
property :severity, as: 'severity'
|
||||
property :status, as: 'status'
|
||||
property :update_time, as: 'updateTime'
|
||||
end
|
||||
end
|
||||
|
||||
class Attachment
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -267,6 +319,40 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class BatchDeleteAlertsRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :alert_id, as: 'alertId'
|
||||
property :customer_id, as: 'customerId'
|
||||
end
|
||||
end
|
||||
|
||||
class BatchDeleteAlertsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
hash :failed_alert_status, as: 'failedAlertStatus', class: Google::Apis::AlertcenterV1beta1::Status, decorator: Google::Apis::AlertcenterV1beta1::Status::Representation
|
||||
|
||||
collection :success_alert_ids, as: 'successAlertIds'
|
||||
end
|
||||
end
|
||||
|
||||
class BatchUndeleteAlertsRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :alert_id, as: 'alertId'
|
||||
property :customer_id, as: 'customerId'
|
||||
end
|
||||
end
|
||||
|
||||
class BatchUndeleteAlertsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
hash :failed_alert_status, as: 'failedAlertStatus', class: Google::Apis::AlertcenterV1beta1::Status, decorator: Google::Apis::AlertcenterV1beta1::Status::Representation
|
||||
|
||||
collection :success_alert_ids, as: 'successAlertIds'
|
||||
end
|
||||
end
|
||||
|
||||
class CloudPubsubTopic
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -441,6 +527,15 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class Status
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :code, as: 'code'
|
||||
collection :details, as: 'details'
|
||||
property :message, as: 'message'
|
||||
end
|
||||
end
|
||||
|
||||
class SuspiciousActivity
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
|
|
@ -47,6 +47,66 @@ module Google
|
|||
@batch_path = 'batch'
|
||||
end
|
||||
|
||||
# Performs batch delete operation on alerts.
|
||||
# @param [Google::Apis::AlertcenterV1beta1::BatchDeleteAlertsRequest] batch_delete_alerts_request_object
|
||||
# @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::AlertcenterV1beta1::BatchDeleteAlertsResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::AlertcenterV1beta1::BatchDeleteAlertsResponse]
|
||||
#
|
||||
# @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 batch_delete_alerts(batch_delete_alerts_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1beta1/alerts:batchDelete', options)
|
||||
command.request_representation = Google::Apis::AlertcenterV1beta1::BatchDeleteAlertsRequest::Representation
|
||||
command.request_object = batch_delete_alerts_request_object
|
||||
command.response_representation = Google::Apis::AlertcenterV1beta1::BatchDeleteAlertsResponse::Representation
|
||||
command.response_class = Google::Apis::AlertcenterV1beta1::BatchDeleteAlertsResponse
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Performs batch undelete operation on alerts.
|
||||
# @param [Google::Apis::AlertcenterV1beta1::BatchUndeleteAlertsRequest] batch_undelete_alerts_request_object
|
||||
# @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::AlertcenterV1beta1::BatchUndeleteAlertsResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::AlertcenterV1beta1::BatchUndeleteAlertsResponse]
|
||||
#
|
||||
# @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 batch_undelete_alerts(batch_undelete_alerts_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1beta1/alerts:batchUndelete', options)
|
||||
command.request_representation = Google::Apis::AlertcenterV1beta1::BatchUndeleteAlertsRequest::Representation
|
||||
command.request_object = batch_undelete_alerts_request_object
|
||||
command.response_representation = Google::Apis::AlertcenterV1beta1::BatchUndeleteAlertsResponse::Representation
|
||||
command.response_class = Google::Apis::AlertcenterV1beta1::BatchUndeleteAlertsResponse
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Marks the specified alert for deletion. An alert that has been marked for
|
||||
# deletion is removed from Alert Center after 30 days.
|
||||
# Marking an alert for deletion has no effect on an alert which has
|
||||
|
@ -122,6 +182,42 @@ module Google
|
|||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Returns the metadata of an alert. Attempting to get metadata for
|
||||
# a non-existent alert returns `NOT_FOUND` error.
|
||||
# @param [String] alert_id
|
||||
# Required. The identifier of the alert this metadata belongs to.
|
||||
# @param [String] customer_id
|
||||
# Optional. The unique identifier of the G Suite organization account of the
|
||||
# customer the alert metadata is associated with.
|
||||
# Inferred from the caller identity if not provided.
|
||||
# @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::AlertcenterV1beta1::AlertMetadata] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::AlertcenterV1beta1::AlertMetadata]
|
||||
#
|
||||
# @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_alert_metadata(alert_id, customer_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1beta1/alerts/{alertId}/metadata', options)
|
||||
command.response_representation = Google::Apis::AlertcenterV1beta1::AlertMetadata::Representation
|
||||
command.response_class = Google::Apis::AlertcenterV1beta1::AlertMetadata
|
||||
command.params['alertId'] = alert_id unless alert_id.nil?
|
||||
command.query['customerId'] = customer_id unless customer_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 the alerts.
|
||||
# @param [String] customer_id
|
||||
# Optional. The unique identifier of the G Suite organization account of the
|
||||
|
@ -217,7 +313,9 @@ module Google
|
|||
end
|
||||
|
||||
# Creates new feedback for an alert. Attempting to create a feedback for
|
||||
# a non-existent alert returns `NOT_FOUND` error.
|
||||
# a non-existent alert returns `NOT_FOUND` error. Attempting to create a
|
||||
# feedback for an alert that is marked for deletion returns
|
||||
# `FAILED_PRECONDITION' error.
|
||||
# @param [String] alert_id
|
||||
# Required. The identifier of the alert this feedback belongs to.
|
||||
# @param [Google::Apis::AlertcenterV1beta1::AlertFeedback] alert_feedback_object
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/tasks/
|
||||
module CloudtasksV2beta2
|
||||
VERSION = 'V2beta2'
|
||||
REVISION = '20190618'
|
||||
REVISION = '20190813'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -27,8 +27,7 @@ module Google
|
|||
class AcknowledgeTaskRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Required.
|
||||
# The task's current schedule time, available in the
|
||||
# Required. The task's current schedule time, available in the
|
||||
# schedule_time returned by
|
||||
# LeaseTasks response or
|
||||
# RenewLease response. This restriction is
|
||||
|
@ -456,7 +455,7 @@ module Google
|
|||
# * `allAuthenticatedUsers`: A special identifier that represents anyone
|
||||
# who is authenticated with a Google account or a service account.
|
||||
# * `user:`emailid``: An email address that represents a specific Google
|
||||
# account. For example, `alice@gmail.com` .
|
||||
# account. For example, `alice@example.com` .
|
||||
# * `serviceAccount:`emailid``: An email address that represents a service
|
||||
# account. For example, `my-other-app@appspot.gserviceaccount.com`.
|
||||
# * `group:`emailid``: An email address that represents a Google group.
|
||||
|
@ -504,8 +503,7 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :response_view
|
||||
|
||||
# Required.
|
||||
# The task's current schedule time, available in the
|
||||
# Required. The task's current schedule time, available in the
|
||||
# schedule_time returned by
|
||||
# LeaseTasks response or
|
||||
# RenewLease response. This restriction is
|
||||
|
@ -629,12 +627,40 @@ module Google
|
|||
class GetIamPolicyRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Encapsulates settings provided to GetIamPolicy.
|
||||
# Corresponds to the JSON property `options`
|
||||
# @return [Google::Apis::CloudtasksV2beta2::GetPolicyOptions]
|
||||
attr_accessor :options
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@options = args[:options] if args.key?(:options)
|
||||
end
|
||||
end
|
||||
|
||||
# Encapsulates settings provided to GetIamPolicy.
|
||||
class GetPolicyOptions
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Optional. The policy format version to be returned.
|
||||
# Acceptable values are 0, 1, and 3.
|
||||
# If the value is 0, or the field is omitted, policy format version 1 will be
|
||||
# returned.
|
||||
# Corresponds to the JSON property `requestedPolicyVersion`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :requested_policy_version
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@requested_policy_version = args[:requested_policy_version] if args.key?(:requested_policy_version)
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -668,8 +694,7 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :filter
|
||||
|
||||
# Required.
|
||||
# The duration of the lease.
|
||||
# Required. The duration of the lease.
|
||||
# Each task returned in the response will
|
||||
# have its schedule_time set to the current
|
||||
# time plus the `lease_duration`. The task is leased until its
|
||||
|
@ -943,7 +968,7 @@ module Google
|
|||
# systems are expected to put that etag in the request to `setIamPolicy` to
|
||||
# ensure that their change will be applied to the same version of the policy.
|
||||
# If no `etag` is provided in the call to `setIamPolicy`, then the existing
|
||||
# policy is overwritten blindly.
|
||||
# policy is overwritten.
|
||||
# Corresponds to the JSON property `etag`
|
||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||
# @return [String]
|
||||
|
@ -1230,8 +1255,7 @@ module Google
|
|||
class RenewLeaseRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Required.
|
||||
# The desired new lease duration, starting from now.
|
||||
# Required. The desired new lease duration, starting from now.
|
||||
# The maximum lease duration is 1 week.
|
||||
# `lease_duration` will be truncated to the nearest second.
|
||||
# Corresponds to the JSON property `leaseDuration`
|
||||
|
@ -1252,8 +1276,7 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :response_view
|
||||
|
||||
# Required.
|
||||
# The task's current schedule time, available in the
|
||||
# Required. The task's current schedule time, available in the
|
||||
# schedule_time returned by
|
||||
# LeaseTasks response or
|
||||
# RenewLease response. This restriction is
|
||||
|
|
|
@ -88,6 +88,12 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GetPolicyOptions
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class LeaseTasksRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -320,6 +326,15 @@ module Google
|
|||
class GetIamPolicyRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :options, as: 'options', class: Google::Apis::CloudtasksV2beta2::GetPolicyOptions, decorator: Google::Apis::CloudtasksV2beta2::GetPolicyOptions::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class GetPolicyOptions
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :requested_policy_version, as: 'requestedPolicyVersion'
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -128,8 +128,7 @@ module Google
|
|||
# queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using
|
||||
# this method.
|
||||
# @param [String] parent
|
||||
# Required.
|
||||
# The location name in which the queue will be created.
|
||||
# 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
|
||||
|
@ -175,8 +174,7 @@ module Google
|
|||
# queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using
|
||||
# this method.
|
||||
# @param [String] name
|
||||
# Required.
|
||||
# The queue name. For example:
|
||||
# Required. The queue name. For example:
|
||||
# `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
|
@ -207,8 +205,7 @@ module Google
|
|||
|
||||
# Gets a queue.
|
||||
# @param [String] name
|
||||
# Required.
|
||||
# The resource name of the queue. For example:
|
||||
# Required. The resource name of the queue. For example:
|
||||
# `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
|
@ -280,8 +277,7 @@ module Google
|
|||
# Lists queues.
|
||||
# Queues are returned in lexicographical order.
|
||||
# @param [String] parent
|
||||
# Required.
|
||||
# The location name.
|
||||
# Required. The location name.
|
||||
# For example: `projects/PROJECT_ID/locations/LOCATION_ID`
|
||||
# @param [String] filter
|
||||
# `filter` can be used to specify a subset of queues. Any Queue
|
||||
|
@ -410,8 +406,7 @@ module Google
|
|||
# when the queue is paused. A queue is paused if its
|
||||
# state is PAUSED.
|
||||
# @param [String] name
|
||||
# Required.
|
||||
# The queue name. For example:
|
||||
# Required. The queue name. For example:
|
||||
# `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
|
||||
# @param [Google::Apis::CloudtasksV2beta2::PauseQueueRequest] pause_queue_request_object
|
||||
# @param [String] fields
|
||||
|
@ -448,8 +443,7 @@ module Google
|
|||
# Purge operations can take up to one minute to take effect. Tasks
|
||||
# might be dispatched before the purge takes effect. A purge is irreversible.
|
||||
# @param [String] name
|
||||
# Required.
|
||||
# The queue name. For example:
|
||||
# Required. The queue name. For example:
|
||||
# `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
|
||||
# @param [Google::Apis::CloudtasksV2beta2::PurgeQueueRequest] purge_queue_request_object
|
||||
# @param [String] fields
|
||||
|
@ -493,8 +487,7 @@ module Google
|
|||
# [Managing Cloud Tasks Scaling
|
||||
# Risks](https://cloud.google.com/tasks/docs/manage-cloud-task-scaling).
|
||||
# @param [String] name
|
||||
# Required.
|
||||
# The queue name. For example:
|
||||
# Required. The queue name. For example:
|
||||
# `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
|
||||
# @param [Google::Apis::CloudtasksV2beta2::ResumeQueueRequest] resume_queue_request_object
|
||||
# @param [String] fields
|
||||
|
@ -618,8 +611,7 @@ module Google
|
|||
# GetTask, or
|
||||
# ListTasks.
|
||||
# @param [String] name
|
||||
# Required.
|
||||
# The task name. For example:
|
||||
# Required. The task name. For example:
|
||||
# `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
|
||||
# @param [Google::Apis::CloudtasksV2beta2::AcknowledgeTaskRequest] acknowledge_task_request_object
|
||||
# @param [String] fields
|
||||
|
@ -657,8 +649,7 @@ module Google
|
|||
# make the task available to be leased to the next caller of
|
||||
# LeaseTasks.
|
||||
# @param [String] name
|
||||
# Required.
|
||||
# The task name. For example:
|
||||
# Required. The task name. For example:
|
||||
# `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
|
||||
# @param [Google::Apis::CloudtasksV2beta2::CancelLeaseRequest] cancel_lease_request_object
|
||||
# @param [String] fields
|
||||
|
@ -696,8 +687,7 @@ module Google
|
|||
# 100KB.
|
||||
# * For pull queues, the maximum task size is 1MB.
|
||||
# @param [String] parent
|
||||
# Required.
|
||||
# The queue name. For example:
|
||||
# Required. The queue name. For example:
|
||||
# `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
|
||||
# The queue must already exist.
|
||||
# @param [Google::Apis::CloudtasksV2beta2::CreateTaskRequest] create_task_request_object
|
||||
|
@ -735,8 +725,7 @@ module Google
|
|||
# cannot be deleted if it has completed successfully or permanently
|
||||
# failed.
|
||||
# @param [String] name
|
||||
# Required.
|
||||
# The task name. For example:
|
||||
# Required. The task name. For example:
|
||||
# `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
|
@ -767,8 +756,7 @@ module Google
|
|||
|
||||
# Gets a task.
|
||||
# @param [String] name
|
||||
# Required.
|
||||
# The task name. For example:
|
||||
# Required. The task name. For example:
|
||||
# `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
|
||||
# @param [String] response_view
|
||||
# The response_view specifies which subset of the Task will be
|
||||
|
@ -829,8 +817,7 @@ module Google
|
|||
# max_tasks_dispatched_per_second
|
||||
# is exceeded.
|
||||
# @param [String] parent
|
||||
# Required.
|
||||
# The queue name. For example:
|
||||
# Required. The queue name. For example:
|
||||
# `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
|
||||
# @param [Google::Apis::CloudtasksV2beta2::LeaseTasksRequest] lease_tasks_request_object
|
||||
# @param [String] fields
|
||||
|
@ -870,8 +857,7 @@ module Google
|
|||
# The tasks may be returned in any order. The ordering may change at any
|
||||
# time.
|
||||
# @param [String] parent
|
||||
# Required.
|
||||
# The queue name. For example:
|
||||
# Required. The queue name. For example:
|
||||
# `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
|
||||
# @param [Fixnum] page_size
|
||||
# Maximum page size.
|
||||
|
@ -934,8 +920,7 @@ module Google
|
|||
# duration, starting from now. The new task lease will be
|
||||
# returned in the task's schedule_time.
|
||||
# @param [String] name
|
||||
# Required.
|
||||
# The task name. For example:
|
||||
# Required. The task name. For example:
|
||||
# `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
|
||||
# @param [Google::Apis::CloudtasksV2beta2::RenewLeaseRequest] renew_lease_request_object
|
||||
# @param [String] fields
|
||||
|
@ -989,8 +974,7 @@ module Google
|
|||
# RunTask cannot be called on a
|
||||
# pull task.
|
||||
# @param [String] name
|
||||
# Required.
|
||||
# The task name. For example:
|
||||
# Required. The task name. For example:
|
||||
# `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
|
||||
# @param [Google::Apis::CloudtasksV2beta2::RunTaskRequest] run_task_request_object
|
||||
# @param [String] fields
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/tasks/
|
||||
module CloudtasksV2beta3
|
||||
VERSION = 'V2beta3'
|
||||
REVISION = '20190531'
|
||||
REVISION = '20190813'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -391,7 +391,7 @@ module Google
|
|||
# * `allAuthenticatedUsers`: A special identifier that represents anyone
|
||||
# who is authenticated with a Google account or a service account.
|
||||
# * `user:`emailid``: An email address that represents a specific Google
|
||||
# account. For example, `alice@gmail.com` .
|
||||
# account. For example, `alice@example.com` .
|
||||
# * `serviceAccount:`emailid``: An email address that represents a service
|
||||
# account. For example, `my-other-app@appspot.gserviceaccount.com`.
|
||||
# * `group:`emailid``: An email address that represents a Google group.
|
||||
|
@ -524,12 +524,40 @@ module Google
|
|||
class GetIamPolicyRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Encapsulates settings provided to GetIamPolicy.
|
||||
# Corresponds to the JSON property `options`
|
||||
# @return [Google::Apis::CloudtasksV2beta3::GetPolicyOptions]
|
||||
attr_accessor :options
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@options = args[:options] if args.key?(:options)
|
||||
end
|
||||
end
|
||||
|
||||
# Encapsulates settings provided to GetIamPolicy.
|
||||
class GetPolicyOptions
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Optional. The policy format version to be returned.
|
||||
# Acceptable values are 0, 1, and 3.
|
||||
# If the value is 0, or the field is omitted, policy format version 1 will be
|
||||
# returned.
|
||||
# Corresponds to the JSON property `requestedPolicyVersion`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :requested_policy_version
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@requested_policy_version = args[:requested_policy_version] if args.key?(:requested_policy_version)
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -908,7 +936,7 @@ module Google
|
|||
# systems are expected to put that etag in the request to `setIamPolicy` to
|
||||
# ensure that their change will be applied to the same version of the policy.
|
||||
# If no `etag` is provided in the call to `setIamPolicy`, then the existing
|
||||
# policy is overwritten blindly.
|
||||
# policy is overwritten.
|
||||
# Corresponds to the JSON property `etag`
|
||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||
# @return [String]
|
||||
|
|
|
@ -76,6 +76,12 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GetPolicyOptions
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class HttpRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -281,6 +287,15 @@ module Google
|
|||
class GetIamPolicyRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :options, as: 'options', class: Google::Apis::CloudtasksV2beta3::GetPolicyOptions, decorator: Google::Apis::CloudtasksV2beta3::GetPolicyOptions::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class GetPolicyOptions
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :requested_policy_version, as: 'requestedPolicyVersion'
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -128,8 +128,7 @@ module Google
|
|||
# queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using
|
||||
# this method.
|
||||
# @param [String] parent
|
||||
# Required.
|
||||
# The location name in which the queue will be created.
|
||||
# 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
|
||||
|
@ -175,8 +174,7 @@ module Google
|
|||
# queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using
|
||||
# this method.
|
||||
# @param [String] name
|
||||
# Required.
|
||||
# The queue name. For example:
|
||||
# Required. The queue name. For example:
|
||||
# `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
|
@ -207,8 +205,7 @@ module Google
|
|||
|
||||
# Gets a queue.
|
||||
# @param [String] name
|
||||
# Required.
|
||||
# The resource name of the queue. For example:
|
||||
# Required. The resource name of the queue. For example:
|
||||
# `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
|
@ -280,8 +277,7 @@ module Google
|
|||
# Lists queues.
|
||||
# Queues are returned in lexicographical order.
|
||||
# @param [String] parent
|
||||
# Required.
|
||||
# The location name.
|
||||
# Required. The location name.
|
||||
# For example: `projects/PROJECT_ID/locations/LOCATION_ID`
|
||||
# @param [String] filter
|
||||
# `filter` can be used to specify a subset of queues. Any Queue
|
||||
|
@ -410,8 +406,7 @@ module Google
|
|||
# when the queue is paused. A queue is paused if its
|
||||
# state is PAUSED.
|
||||
# @param [String] name
|
||||
# Required.
|
||||
# The queue name. For example:
|
||||
# Required. The queue name. For example:
|
||||
# `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
|
||||
# @param [Google::Apis::CloudtasksV2beta3::PauseQueueRequest] pause_queue_request_object
|
||||
# @param [String] fields
|
||||
|
@ -448,8 +443,7 @@ module Google
|
|||
# Purge operations can take up to one minute to take effect. Tasks
|
||||
# might be dispatched before the purge takes effect. A purge is irreversible.
|
||||
# @param [String] name
|
||||
# Required.
|
||||
# The queue name. For example:
|
||||
# Required. The queue name. For example:
|
||||
# `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
|
||||
# @param [Google::Apis::CloudtasksV2beta3::PurgeQueueRequest] purge_queue_request_object
|
||||
# @param [String] fields
|
||||
|
@ -493,8 +487,7 @@ module Google
|
|||
# [Managing Cloud Tasks Scaling
|
||||
# Risks](https://cloud.google.com/tasks/docs/manage-cloud-task-scaling).
|
||||
# @param [String] name
|
||||
# Required.
|
||||
# The queue name. For example:
|
||||
# Required. The queue name. For example:
|
||||
# `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
|
||||
# @param [Google::Apis::CloudtasksV2beta3::ResumeQueueRequest] resume_queue_request_object
|
||||
# @param [String] fields
|
||||
|
@ -610,8 +603,7 @@ module Google
|
|||
# Tasks cannot be updated after creation; there is no UpdateTask command.
|
||||
# * The maximum task size is 100KB.
|
||||
# @param [String] parent
|
||||
# Required.
|
||||
# The queue name. For example:
|
||||
# Required. The queue name. For example:
|
||||
# `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
|
||||
# The queue must already exist.
|
||||
# @param [Google::Apis::CloudtasksV2beta3::CreateTaskRequest] create_task_request_object
|
||||
|
@ -649,8 +641,7 @@ module Google
|
|||
# cannot be deleted if it has executed successfully or permanently
|
||||
# failed.
|
||||
# @param [String] name
|
||||
# Required.
|
||||
# The task name. For example:
|
||||
# Required. The task name. For example:
|
||||
# `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
|
@ -681,8 +672,7 @@ module Google
|
|||
|
||||
# Gets a task.
|
||||
# @param [String] name
|
||||
# Required.
|
||||
# The task name. For example:
|
||||
# Required. The task name. For example:
|
||||
# `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
|
||||
# @param [String] response_view
|
||||
# The response_view specifies which subset of the Task will be
|
||||
|
@ -731,8 +721,7 @@ module Google
|
|||
# The tasks may be returned in any order. The ordering may change at any
|
||||
# time.
|
||||
# @param [String] parent
|
||||
# Required.
|
||||
# The queue name. For example:
|
||||
# Required. The queue name. For example:
|
||||
# `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
|
||||
# @param [Fixnum] page_size
|
||||
# Maximum page size.
|
||||
|
@ -810,8 +799,7 @@ module Google
|
|||
# NOT_FOUND when it is called on a
|
||||
# task that has already succeeded or permanently failed.
|
||||
# @param [String] name
|
||||
# Required.
|
||||
# The task name. For example:
|
||||
# Required. The task name. For example:
|
||||
# `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
|
||||
# @param [Google::Apis::CloudtasksV2beta3::RunTaskRequest] run_task_request_object
|
||||
# @param [String] fields
|
||||
|
|
|
@ -47,7 +47,7 @@ module Google
|
|||
attr_accessor :user_ip
|
||||
|
||||
def initialize
|
||||
super('https://www.googleapis.com/', 'compute/v1/projects/')
|
||||
super('https://compute.googleapis.com/', 'compute/v1/projects/')
|
||||
@batch_path = 'batch/compute/v1'
|
||||
end
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://cloud.google.com/container-analysis/api/reference/rest/
|
||||
module ContaineranalysisV1alpha1
|
||||
VERSION = 'V1alpha1'
|
||||
REVISION = '20190809'
|
||||
REVISION = '20190820'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -156,122 +156,6 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# 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
|
||||
# AuditLogConfig are exempted.
|
||||
# Example Policy with multiple AuditConfigs:
|
||||
# `
|
||||
# "audit_configs": [
|
||||
# `
|
||||
# "service": "allServices"
|
||||
# "audit_log_configs": [
|
||||
# `
|
||||
# "log_type": "DATA_READ",
|
||||
# "exempted_members": [
|
||||
# "user:jose@example.com"
|
||||
# ]
|
||||
# `,
|
||||
# `
|
||||
# "log_type": "DATA_WRITE",
|
||||
# `,
|
||||
# `
|
||||
# "log_type": "ADMIN_READ",
|
||||
# `
|
||||
# ]
|
||||
# `,
|
||||
# `
|
||||
# "service": "sampleservice.googleapis.com"
|
||||
# "audit_log_configs": [
|
||||
# `
|
||||
# "log_type": "DATA_READ",
|
||||
# `,
|
||||
# `
|
||||
# "log_type": "DATA_WRITE",
|
||||
# "exempted_members": [
|
||||
# "user:aliya@example.com"
|
||||
# ]
|
||||
# `
|
||||
# ]
|
||||
# `
|
||||
# ]
|
||||
# `
|
||||
# For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
|
||||
# logging. It also exempts jose@example.com from DATA_READ logging, and
|
||||
# aliya@example.com from DATA_WRITE logging.
|
||||
class AuditConfig
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The configuration for logging of each type of permission.
|
||||
# Corresponds to the JSON property `auditLogConfigs`
|
||||
# @return [Array<Google::Apis::ContaineranalysisV1alpha1::AuditLogConfig>]
|
||||
attr_accessor :audit_log_configs
|
||||
|
||||
# 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)
|
||||
@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:jose@example.com"
|
||||
# ]
|
||||
# `,
|
||||
# `
|
||||
# "log_type": "DATA_WRITE",
|
||||
# `
|
||||
# ]
|
||||
# `
|
||||
# This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting
|
||||
# jose@example.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
|
||||
|
||||
# Basis describes the base image portion (Note) of the DockerImage
|
||||
# relationship. Linked occurrences are derived from this or an
|
||||
# equivalent image via:
|
||||
|
@ -2085,11 +1969,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::ContaineranalysisV1alpha1::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`
|
||||
|
@ -2121,7 +2000,6 @@ 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)
|
||||
@version = args[:version] if args.key?(:version)
|
||||
|
@ -2319,15 +2197,6 @@ module Google
|
|||
# @return [Google::Apis::ContaineranalysisV1alpha1::Policy]
|
||||
attr_accessor :policy
|
||||
|
||||
# OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
|
||||
# the fields in the mask will be modified. If no mask is provided, the
|
||||
# following default mask is used:
|
||||
# paths: "bindings, etag"
|
||||
# This field is only used by Cloud IAM.
|
||||
# Corresponds to the JSON property `updateMask`
|
||||
# @return [String]
|
||||
attr_accessor :update_mask
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
@ -2335,7 +2204,6 @@ module Google
|
|||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@policy = args[:policy] if args.key?(:policy)
|
||||
@update_mask = args[:update_mask] if args.key?(:update_mask)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -46,18 +46,6 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
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 Basis
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -475,23 +463,6 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class AuditConfig
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::ContaineranalysisV1alpha1::AuditLogConfig, decorator: Google::Apis::ContaineranalysisV1alpha1::AuditLogConfig::Representation
|
||||
|
||||
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 Basis
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -973,8 +944,6 @@ module Google
|
|||
class Policy
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :audit_configs, as: 'auditConfigs', class: Google::Apis::ContaineranalysisV1alpha1::AuditConfig, decorator: Google::Apis::ContaineranalysisV1alpha1::AuditConfig::Representation
|
||||
|
||||
collection :bindings, as: 'bindings', class: Google::Apis::ContaineranalysisV1alpha1::Binding, decorator: Google::Apis::ContaineranalysisV1alpha1::Binding::Representation
|
||||
|
||||
property :etag, :base64 => true, as: 'etag'
|
||||
|
@ -1027,7 +996,6 @@ module Google
|
|||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :policy, as: 'policy', class: Google::Apis::ContaineranalysisV1alpha1::Policy, decorator: Google::Apis::ContaineranalysisV1alpha1::Policy::Representation
|
||||
|
||||
property :update_mask, as: 'updateMask'
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://cloud.google.com/container-analysis/api/reference/rest/
|
||||
module ContaineranalysisV1beta1
|
||||
VERSION = 'V1beta1'
|
||||
REVISION = '20190809'
|
||||
REVISION = '20190820'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -121,122 +121,6 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# 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
|
||||
# AuditLogConfig are exempted.
|
||||
# Example Policy with multiple AuditConfigs:
|
||||
# `
|
||||
# "audit_configs": [
|
||||
# `
|
||||
# "service": "allServices"
|
||||
# "audit_log_configs": [
|
||||
# `
|
||||
# "log_type": "DATA_READ",
|
||||
# "exempted_members": [
|
||||
# "user:jose@example.com"
|
||||
# ]
|
||||
# `,
|
||||
# `
|
||||
# "log_type": "DATA_WRITE",
|
||||
# `,
|
||||
# `
|
||||
# "log_type": "ADMIN_READ",
|
||||
# `
|
||||
# ]
|
||||
# `,
|
||||
# `
|
||||
# "service": "sampleservice.googleapis.com"
|
||||
# "audit_log_configs": [
|
||||
# `
|
||||
# "log_type": "DATA_READ",
|
||||
# `,
|
||||
# `
|
||||
# "log_type": "DATA_WRITE",
|
||||
# "exempted_members": [
|
||||
# "user:aliya@example.com"
|
||||
# ]
|
||||
# `
|
||||
# ]
|
||||
# `
|
||||
# ]
|
||||
# `
|
||||
# For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
|
||||
# logging. It also exempts jose@example.com from DATA_READ logging, and
|
||||
# aliya@example.com from DATA_WRITE logging.
|
||||
class AuditConfig
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The configuration for logging of each type of permission.
|
||||
# Corresponds to the JSON property `auditLogConfigs`
|
||||
# @return [Array<Google::Apis::ContaineranalysisV1beta1::AuditLogConfig>]
|
||||
attr_accessor :audit_log_configs
|
||||
|
||||
# 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)
|
||||
@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:jose@example.com"
|
||||
# ]
|
||||
# `,
|
||||
# `
|
||||
# "log_type": "DATA_WRITE",
|
||||
# `
|
||||
# ]
|
||||
# `
|
||||
# This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting
|
||||
# jose@example.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
|
||||
|
||||
# Note kind that represents a logical attestation "role" or "authority". For
|
||||
# example, an organization might have one `Authority` for "QA" and one for
|
||||
# "build". This note is intended to act strictly as a grouping mechanism for
|
||||
|
@ -2279,11 +2163,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::ContaineranalysisV1beta1::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`
|
||||
|
@ -2315,7 +2194,6 @@ 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)
|
||||
@version = args[:version] if args.key?(:version)
|
||||
|
@ -2526,15 +2404,6 @@ module Google
|
|||
# @return [Google::Apis::ContaineranalysisV1beta1::Policy]
|
||||
attr_accessor :policy
|
||||
|
||||
# OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
|
||||
# the fields in the mask will be modified. If no mask is provided, the
|
||||
# following default mask is used:
|
||||
# paths: "bindings, etag"
|
||||
# This field is only used by Cloud IAM.
|
||||
# Corresponds to the JSON property `updateMask`
|
||||
# @return [String]
|
||||
attr_accessor :update_mask
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
@ -2542,7 +2411,6 @@ module Google
|
|||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@policy = args[:policy] if args.key?(:policy)
|
||||
@update_mask = args[:update_mask] if args.key?(:update_mask)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -40,18 +40,6 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
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 Authority
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -505,23 +493,6 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class AuditConfig
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::ContaineranalysisV1beta1::AuditLogConfig, decorator: Google::Apis::ContaineranalysisV1beta1::AuditLogConfig::Representation
|
||||
|
||||
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 Authority
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -1081,8 +1052,6 @@ module Google
|
|||
class Policy
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :audit_configs, as: 'auditConfigs', class: Google::Apis::ContaineranalysisV1beta1::AuditConfig, decorator: Google::Apis::ContaineranalysisV1beta1::AuditConfig::Representation
|
||||
|
||||
collection :bindings, as: 'bindings', class: Google::Apis::ContaineranalysisV1beta1::Binding, decorator: Google::Apis::ContaineranalysisV1beta1::Binding::Representation
|
||||
|
||||
property :etag, :base64 => true, as: 'etag'
|
||||
|
@ -1141,7 +1110,6 @@ module Google
|
|||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :policy, as: 'policy', class: Google::Apis::ContaineranalysisV1beta1::Policy, decorator: Google::Apis::ContaineranalysisV1beta1::Policy::Representation
|
||||
|
||||
property :update_mask, as: 'updateMask'
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://cloud.google.com/dialogflow/
|
||||
module DialogflowV2
|
||||
VERSION = 'V2'
|
||||
REVISION = '20190810'
|
||||
REVISION = '20190822'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -1254,6 +1254,9 @@ module Google
|
|||
# Creates a session entity type.
|
||||
# If the specified session entity type already exists, overrides the session
|
||||
# entity type.
|
||||
# This method doesn't work with Google Assistant integration.
|
||||
# Contact Dialogflow support if you need to use session entities
|
||||
# with Google Assistant integration.
|
||||
# @param [String] parent
|
||||
# Required. The session to create a session entity type for.
|
||||
# Format: `projects/<Project ID>/agent/sessions/<Session ID>`.
|
||||
|
@ -1288,6 +1291,9 @@ module Google
|
|||
end
|
||||
|
||||
# Deletes the specified session entity type.
|
||||
# This method doesn't work with Google Assistant integration.
|
||||
# Contact Dialogflow support if you need to use session entities
|
||||
# with Google Assistant integration.
|
||||
# @param [String] name
|
||||
# Required. The name of the entity type to delete. Format:
|
||||
# `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
|
||||
|
@ -1320,6 +1326,9 @@ module Google
|
|||
end
|
||||
|
||||
# Retrieves the specified session entity type.
|
||||
# This method doesn't work with Google Assistant integration.
|
||||
# Contact Dialogflow support if you need to use session entities
|
||||
# with Google Assistant integration.
|
||||
# @param [String] name
|
||||
# Required. The name of the session entity type. Format:
|
||||
# `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
|
||||
|
@ -1352,6 +1361,9 @@ module Google
|
|||
end
|
||||
|
||||
# Returns the list of all session entity types in the specified session.
|
||||
# This method doesn't work with Google Assistant integration.
|
||||
# Contact Dialogflow support if you need to use session entities
|
||||
# with Google Assistant integration.
|
||||
# @param [String] parent
|
||||
# Required. The session to list all session entity types from.
|
||||
# Format: `projects/<Project ID>/agent/sessions/<Session ID>`.
|
||||
|
@ -1390,6 +1402,9 @@ module Google
|
|||
end
|
||||
|
||||
# Updates the specified session entity type.
|
||||
# This method doesn't work with Google Assistant integration.
|
||||
# Contact Dialogflow support if you need to use session entities
|
||||
# with Google Assistant integration.
|
||||
# @param [String] name
|
||||
# Required. The unique identifier of this session entity type. Format:
|
||||
# `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
|
||||
|
@ -1429,6 +1444,85 @@ module Google
|
|||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Gets the latest state of a long-running operation. Clients can use this
|
||||
# method to poll the operation result at intervals as recommended by the API
|
||||
# service.
|
||||
# @param [String] name
|
||||
# The name of the operation resource.
|
||||
# @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::DialogflowV2::GoogleLongrunningOperation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::DialogflowV2::GoogleLongrunningOperation]
|
||||
#
|
||||
# @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_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v2/{+name}', options)
|
||||
command.response_representation = Google::Apis::DialogflowV2::GoogleLongrunningOperation::Representation
|
||||
command.response_class = Google::Apis::DialogflowV2::GoogleLongrunningOperation
|
||||
command.params['name'] = name unless name.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 operations that match the specified filter in the request. If the
|
||||
# server doesn't support this method, it returns `UNIMPLEMENTED`.
|
||||
# NOTE: the `name` binding allows API services to override the binding
|
||||
# to use different resource name schemes, such as `users/*/operations`. To
|
||||
# override the binding, API services can add a binding such as
|
||||
# `"/v1/`name=users/*`/operations"` to their service configuration.
|
||||
# For backwards compatibility, the default name includes the operations
|
||||
# collection id, however overriding users must ensure the name binding
|
||||
# is the parent resource, without the operations collection id.
|
||||
# @param [String] name
|
||||
# The name of the operation's parent resource.
|
||||
# @param [String] filter
|
||||
# The standard list filter.
|
||||
# @param [Fixnum] page_size
|
||||
# The standard list page size.
|
||||
# @param [String] page_token
|
||||
# The standard list page token.
|
||||
# @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::DialogflowV2::GoogleLongrunningListOperationsResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::DialogflowV2::GoogleLongrunningListOperationsResponse]
|
||||
#
|
||||
# @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 list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v2/{+name}/operations', options)
|
||||
command.response_representation = Google::Apis::DialogflowV2::GoogleLongrunningListOperationsResponse::Representation
|
||||
command.response_class = Google::Apis::DialogflowV2::GoogleLongrunningListOperationsResponse
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['filter'] = filter unless filter.nil?
|
||||
command.query['pageSize'] = page_size unless page_size.nil?
|
||||
command.query['pageToken'] = page_token unless page_token.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Gets the latest state of a long-running operation. Clients can use this
|
||||
# method to poll the operation result at intervals as recommended by the API
|
||||
# service.
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://cloud.google.com/dialogflow/
|
||||
module DialogflowV2beta1
|
||||
VERSION = 'V2beta1'
|
||||
REVISION = '20190810'
|
||||
REVISION = '20190822'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -993,6 +993,9 @@ module Google
|
|||
# Creates a session entity type.
|
||||
# If the specified session entity type already exists, overrides the
|
||||
# session entity type.
|
||||
# This method doesn't work with Google Assistant integration.
|
||||
# Contact Dialogflow support if you need to use session entities
|
||||
# with Google Assistant integration.
|
||||
# @param [String] parent
|
||||
# Required. The session to create a session entity type for.
|
||||
# Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
|
||||
|
@ -1031,6 +1034,9 @@ module Google
|
|||
end
|
||||
|
||||
# Deletes the specified session entity type.
|
||||
# This method doesn't work with Google Assistant integration.
|
||||
# Contact Dialogflow support if you need to use session entities
|
||||
# with Google Assistant integration.
|
||||
# @param [String] name
|
||||
# Required. The name of the entity type to delete. Format:
|
||||
# `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
|
||||
|
@ -1066,6 +1072,9 @@ module Google
|
|||
end
|
||||
|
||||
# Retrieves the specified session entity type.
|
||||
# This method doesn't work with Google Assistant integration.
|
||||
# Contact Dialogflow support if you need to use session entities
|
||||
# with Google Assistant integration.
|
||||
# @param [String] name
|
||||
# Required. The name of the session entity type. Format:
|
||||
# `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
|
||||
|
@ -1101,6 +1110,9 @@ module Google
|
|||
end
|
||||
|
||||
# Returns the list of all session entity types in the specified session.
|
||||
# This method doesn't work with Google Assistant integration.
|
||||
# Contact Dialogflow support if you need to use session entities
|
||||
# with Google Assistant integration.
|
||||
# @param [String] parent
|
||||
# Required. The session to list all session entity types from.
|
||||
# Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
|
||||
|
@ -1143,6 +1155,9 @@ module Google
|
|||
end
|
||||
|
||||
# Updates the specified session entity type.
|
||||
# This method doesn't work with Google Assistant integration.
|
||||
# Contact Dialogflow support if you need to use session entities
|
||||
# with Google Assistant integration.
|
||||
# @param [String] name
|
||||
# Required. The unique identifier of this session entity type. Format:
|
||||
# `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
|
||||
|
@ -2172,6 +2187,9 @@ module Google
|
|||
# Creates a session entity type.
|
||||
# If the specified session entity type already exists, overrides the
|
||||
# session entity type.
|
||||
# This method doesn't work with Google Assistant integration.
|
||||
# Contact Dialogflow support if you need to use session entities
|
||||
# with Google Assistant integration.
|
||||
# @param [String] parent
|
||||
# Required. The session to create a session entity type for.
|
||||
# Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
|
||||
|
@ -2210,6 +2228,9 @@ module Google
|
|||
end
|
||||
|
||||
# Deletes the specified session entity type.
|
||||
# This method doesn't work with Google Assistant integration.
|
||||
# Contact Dialogflow support if you need to use session entities
|
||||
# with Google Assistant integration.
|
||||
# @param [String] name
|
||||
# Required. The name of the entity type to delete. Format:
|
||||
# `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
|
||||
|
@ -2245,6 +2266,9 @@ module Google
|
|||
end
|
||||
|
||||
# Retrieves the specified session entity type.
|
||||
# This method doesn't work with Google Assistant integration.
|
||||
# Contact Dialogflow support if you need to use session entities
|
||||
# with Google Assistant integration.
|
||||
# @param [String] name
|
||||
# Required. The name of the session entity type. Format:
|
||||
# `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
|
||||
|
@ -2280,6 +2304,9 @@ module Google
|
|||
end
|
||||
|
||||
# Returns the list of all session entity types in the specified session.
|
||||
# This method doesn't work with Google Assistant integration.
|
||||
# Contact Dialogflow support if you need to use session entities
|
||||
# with Google Assistant integration.
|
||||
# @param [String] parent
|
||||
# Required. The session to list all session entity types from.
|
||||
# Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
|
||||
|
@ -2322,6 +2349,9 @@ module Google
|
|||
end
|
||||
|
||||
# Updates the specified session entity type.
|
||||
# This method doesn't work with Google Assistant integration.
|
||||
# Contact Dialogflow support if you need to use session entities
|
||||
# with Google Assistant integration.
|
||||
# @param [String] name
|
||||
# Required. The unique identifier of this session entity type. Format:
|
||||
# `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
|
||||
|
@ -3689,6 +3719,9 @@ module Google
|
|||
# Creates a session entity type.
|
||||
# If the specified session entity type already exists, overrides the
|
||||
# session entity type.
|
||||
# This method doesn't work with Google Assistant integration.
|
||||
# Contact Dialogflow support if you need to use session entities
|
||||
# with Google Assistant integration.
|
||||
# @param [String] parent
|
||||
# Required. The session to create a session entity type for.
|
||||
# Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
|
||||
|
@ -3727,6 +3760,9 @@ module Google
|
|||
end
|
||||
|
||||
# Deletes the specified session entity type.
|
||||
# This method doesn't work with Google Assistant integration.
|
||||
# Contact Dialogflow support if you need to use session entities
|
||||
# with Google Assistant integration.
|
||||
# @param [String] name
|
||||
# Required. The name of the entity type to delete. Format:
|
||||
# `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
|
||||
|
@ -3762,6 +3798,9 @@ module Google
|
|||
end
|
||||
|
||||
# Retrieves the specified session entity type.
|
||||
# This method doesn't work with Google Assistant integration.
|
||||
# Contact Dialogflow support if you need to use session entities
|
||||
# with Google Assistant integration.
|
||||
# @param [String] name
|
||||
# Required. The name of the session entity type. Format:
|
||||
# `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
|
||||
|
@ -3797,6 +3836,9 @@ module Google
|
|||
end
|
||||
|
||||
# Returns the list of all session entity types in the specified session.
|
||||
# This method doesn't work with Google Assistant integration.
|
||||
# Contact Dialogflow support if you need to use session entities
|
||||
# with Google Assistant integration.
|
||||
# @param [String] parent
|
||||
# Required. The session to list all session entity types from.
|
||||
# Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
|
||||
|
@ -3839,6 +3881,9 @@ module Google
|
|||
end
|
||||
|
||||
# Updates the specified session entity type.
|
||||
# This method doesn't work with Google Assistant integration.
|
||||
# Contact Dialogflow support if you need to use session entities
|
||||
# with Google Assistant integration.
|
||||
# @param [String] name
|
||||
# Required. The unique identifier of this session entity type. Format:
|
||||
# `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
|
||||
|
@ -4445,6 +4490,9 @@ module Google
|
|||
# Creates a session entity type.
|
||||
# If the specified session entity type already exists, overrides the
|
||||
# session entity type.
|
||||
# This method doesn't work with Google Assistant integration.
|
||||
# Contact Dialogflow support if you need to use session entities
|
||||
# with Google Assistant integration.
|
||||
# @param [String] parent
|
||||
# Required. The session to create a session entity type for.
|
||||
# Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
|
||||
|
@ -4483,6 +4531,9 @@ module Google
|
|||
end
|
||||
|
||||
# Deletes the specified session entity type.
|
||||
# This method doesn't work with Google Assistant integration.
|
||||
# Contact Dialogflow support if you need to use session entities
|
||||
# with Google Assistant integration.
|
||||
# @param [String] name
|
||||
# Required. The name of the entity type to delete. Format:
|
||||
# `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
|
||||
|
@ -4518,6 +4569,9 @@ module Google
|
|||
end
|
||||
|
||||
# Retrieves the specified session entity type.
|
||||
# This method doesn't work with Google Assistant integration.
|
||||
# Contact Dialogflow support if you need to use session entities
|
||||
# with Google Assistant integration.
|
||||
# @param [String] name
|
||||
# Required. The name of the session entity type. Format:
|
||||
# `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
|
||||
|
@ -4553,6 +4607,9 @@ module Google
|
|||
end
|
||||
|
||||
# Returns the list of all session entity types in the specified session.
|
||||
# This method doesn't work with Google Assistant integration.
|
||||
# Contact Dialogflow support if you need to use session entities
|
||||
# with Google Assistant integration.
|
||||
# @param [String] parent
|
||||
# Required. The session to list all session entity types from.
|
||||
# Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
|
||||
|
@ -4595,6 +4652,9 @@ module Google
|
|||
end
|
||||
|
||||
# Updates the specified session entity type.
|
||||
# This method doesn't work with Google Assistant integration.
|
||||
# Contact Dialogflow support if you need to use session entities
|
||||
# with Google Assistant integration.
|
||||
# @param [String] name
|
||||
# Required. The unique identifier of this session entity type. Format:
|
||||
# `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
|
||||
|
@ -4638,6 +4698,85 @@ module Google
|
|||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Gets the latest state of a long-running operation. Clients can use this
|
||||
# method to poll the operation result at intervals as recommended by the API
|
||||
# service.
|
||||
# @param [String] name
|
||||
# The name of the operation resource.
|
||||
# @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::DialogflowV2beta1::GoogleLongrunningOperation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation]
|
||||
#
|
||||
# @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_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v2beta1/{+name}', options)
|
||||
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation::Representation
|
||||
command.response_class = Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation
|
||||
command.params['name'] = name unless name.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 operations that match the specified filter in the request. If the
|
||||
# server doesn't support this method, it returns `UNIMPLEMENTED`.
|
||||
# NOTE: the `name` binding allows API services to override the binding
|
||||
# to use different resource name schemes, such as `users/*/operations`. To
|
||||
# override the binding, API services can add a binding such as
|
||||
# `"/v1/`name=users/*`/operations"` to their service configuration.
|
||||
# For backwards compatibility, the default name includes the operations
|
||||
# collection id, however overriding users must ensure the name binding
|
||||
# is the parent resource, without the operations collection id.
|
||||
# @param [String] name
|
||||
# The name of the operation's parent resource.
|
||||
# @param [String] filter
|
||||
# The standard list filter.
|
||||
# @param [Fixnum] page_size
|
||||
# The standard list page size.
|
||||
# @param [String] page_token
|
||||
# The standard list page token.
|
||||
# @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::DialogflowV2beta1::GoogleLongrunningListOperationsResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::DialogflowV2beta1::GoogleLongrunningListOperationsResponse]
|
||||
#
|
||||
# @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 list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v2beta1/{+name}/operations', options)
|
||||
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleLongrunningListOperationsResponse::Representation
|
||||
command.response_class = Google::Apis::DialogflowV2beta1::GoogleLongrunningListOperationsResponse
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['filter'] = filter unless filter.nil?
|
||||
command.query['pageSize'] = page_size unless page_size.nil?
|
||||
command.query['pageToken'] = page_token unless page_token.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Gets the latest state of a long-running operation. Clients can use this
|
||||
# method to poll the operation result at intervals as recommended by the API
|
||||
# service.
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://cloud.google.com/talent-solution/job-search/docs/
|
||||
module JobsV3
|
||||
VERSION = 'V3'
|
||||
REVISION = '20190727'
|
||||
REVISION = '20190820'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -1341,7 +1341,8 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :title
|
||||
|
||||
# Optional. The visibility of the job.
|
||||
# Deprecated. The job is only visible to the owner.
|
||||
# The visibility of the job.
|
||||
# Defaults to Visibility.ACCOUNT_ONLY if not specified.
|
||||
# Corresponds to the JSON property `visibility`
|
||||
# @return [String]
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://cloud.google.com/talent-solution/job-search/docs/
|
||||
module JobsV3p1beta1
|
||||
VERSION = 'V3p1beta1'
|
||||
REVISION = '20190722'
|
||||
REVISION = '20190820'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -1511,7 +1511,8 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :title
|
||||
|
||||
# Optional. The visibility of the job.
|
||||
# Deprecated. The job is only visible to the owner.
|
||||
# The visibility of the job.
|
||||
# Defaults to Visibility.ACCOUNT_ONLY if not specified.
|
||||
# Corresponds to the JSON property `visibility`
|
||||
# @return [String]
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://developers.google.com/people/
|
||||
module PeopleV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20190727'
|
||||
REVISION = '20190822'
|
||||
|
||||
# See, edit, download, and permanently delete your contacts
|
||||
AUTH_CONTACTS = 'https://www.googleapis.com/auth/contacts'
|
||||
|
|
|
@ -584,10 +584,11 @@ module Google
|
|||
# The request throws a 400 error if `person.metadata.sources` is not
|
||||
# specified for the contact to be updated.
|
||||
# <br>
|
||||
# The request throws a 412 error if `person.metadata.sources.etag` is
|
||||
# different than the contact's etag, which indicates the contact has changed
|
||||
# since its data was read. Clients should get the latest person and re-apply
|
||||
# their updates to the latest person.
|
||||
# The request throws a 400 error with an error with reason
|
||||
# `"failedPrecondition"` if `person.metadata.sources.etag` is different than
|
||||
# the contact's etag, which indicates the contact has changed since its data
|
||||
# was read. Clients should get the latest person and re-apply their updates
|
||||
# to the latest person.
|
||||
# @param [String] resource_name
|
||||
# The resource name for the person, assigned by the server. An ASCII string
|
||||
# with a max length of 27 characters, in the form of
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://firebase.google.com/docs/test-lab/
|
||||
module ToolresultsV1beta3
|
||||
VERSION = 'V1beta3'
|
||||
REVISION = '20190820'
|
||||
REVISION = '20190822'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/translate/docs/quickstarts
|
||||
module TranslateV3beta1
|
||||
VERSION = 'V3beta1'
|
||||
REVISION = '20190810'
|
||||
REVISION = '20190822'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -49,7 +49,8 @@ module Google
|
|||
|
||||
# Detects the language of text within a request.
|
||||
# @param [String] parent
|
||||
# Required. Target project or location to make a call.
|
||||
# Required. Project or location to make a call. Must refer to a caller's
|
||||
# project.
|
||||
# Format: `projects/`project-id`/locations/`location-id`` or
|
||||
# `projects/`project-id``.
|
||||
# For global calls, use `projects/`project-id`/locations/global` or
|
||||
|
@ -88,7 +89,8 @@ module Google
|
|||
|
||||
# Returns a list of supported languages for translation.
|
||||
# @param [String] parent
|
||||
# Required. Target project or location to make a call.
|
||||
# Required. Project or location to make a call. Must refer to a caller's
|
||||
# project.
|
||||
# Format: `projects/`project-id`` or
|
||||
# `projects/`project-id`/locations/`location-id``.
|
||||
# For global calls, use `projects/`project-id`/locations/global` or
|
||||
|
@ -141,7 +143,8 @@ module Google
|
|||
|
||||
# Translates input text and returns translated text.
|
||||
# @param [String] parent
|
||||
# Required. Target project or location to make a call.
|
||||
# Required. Project or location to make a call. Must refer to a caller's
|
||||
# project.
|
||||
# Format: `projects/`project-id`` or
|
||||
# `projects/`project-id`/locations/`location-id``.
|
||||
# For global calls, use `projects/`project-id`/locations/global` or
|
||||
|
@ -187,7 +190,7 @@ module Google
|
|||
# This call returns immediately and you can
|
||||
# use google.longrunning.Operation.name to poll the status of the call.
|
||||
# @param [String] parent
|
||||
# Required. Location to make a regional call.
|
||||
# Required. Location to make a call. Must refer to a caller's project.
|
||||
# Format: `projects/`project-id`/locations/`location-id``.
|
||||
# The `global` location is not supported for batch translation.
|
||||
# Only AutoML Translation models or glossaries within the same region (have
|
||||
|
@ -225,7 +228,8 @@ module Google
|
|||
|
||||
# Detects the language of text within a request.
|
||||
# @param [String] parent
|
||||
# Required. Target project or location to make a call.
|
||||
# Required. Project or location to make a call. Must refer to a caller's
|
||||
# project.
|
||||
# Format: `projects/`project-id`/locations/`location-id`` or
|
||||
# `projects/`project-id``.
|
||||
# For global calls, use `projects/`project-id`/locations/global` or
|
||||
|
@ -294,7 +298,8 @@ module Google
|
|||
|
||||
# Returns a list of supported languages for translation.
|
||||
# @param [String] parent
|
||||
# Required. Target project or location to make a call.
|
||||
# Required. Project or location to make a call. Must refer to a caller's
|
||||
# project.
|
||||
# Format: `projects/`project-id`` or
|
||||
# `projects/`project-id`/locations/`location-id``.
|
||||
# For global calls, use `projects/`project-id`/locations/global` or
|
||||
|
@ -386,7 +391,8 @@ module Google
|
|||
|
||||
# Translates input text and returns translated text.
|
||||
# @param [String] parent
|
||||
# Required. Target project or location to make a call.
|
||||
# Required. Project or location to make a call. Must refer to a caller's
|
||||
# project.
|
||||
# Format: `projects/`project-id`` or
|
||||
# `projects/`project-id`/locations/`location-id``.
|
||||
# For global calls, use `projects/`project-id`/locations/global` or
|
||||
|
|
Loading…
Reference in New Issue