Autogenerated update (2018-03-29)
Update: - androidpublisher_v2 - calendar_v3 - dialogflow_v2 - dialogflow_v2beta1 - dlp_v2 - ml_v1
This commit is contained in:
parent
ec3162c59b
commit
8843aa0d9a
|
@ -21864,6 +21864,8 @@
|
||||||
"/compute:beta/BackendService/cdnPolicy": cdn_policy
|
"/compute:beta/BackendService/cdnPolicy": cdn_policy
|
||||||
"/compute:beta/BackendService/connectionDraining": connection_draining
|
"/compute:beta/BackendService/connectionDraining": connection_draining
|
||||||
"/compute:beta/BackendService/creationTimestamp": creation_timestamp
|
"/compute:beta/BackendService/creationTimestamp": creation_timestamp
|
||||||
|
"/compute:beta/BackendService/customRequestHeaders": custom_request_headers
|
||||||
|
"/compute:beta/BackendService/customRequestHeaders/custom_request_header": custom_request_header
|
||||||
"/compute:beta/BackendService/description": description
|
"/compute:beta/BackendService/description": description
|
||||||
"/compute:beta/BackendService/enableCDN": enable_cdn
|
"/compute:beta/BackendService/enableCDN": enable_cdn
|
||||||
"/compute:beta/BackendService/fingerprint": fingerprint
|
"/compute:beta/BackendService/fingerprint": fingerprint
|
||||||
|
@ -46288,6 +46290,36 @@
|
||||||
"/dialogflow:v2beta1/dialogflow.projects.agent.entityTypes.patch/languageCode": language_code
|
"/dialogflow:v2beta1/dialogflow.projects.agent.entityTypes.patch/languageCode": language_code
|
||||||
"/dialogflow:v2beta1/dialogflow.projects.agent.entityTypes.patch/name": name
|
"/dialogflow:v2beta1/dialogflow.projects.agent.entityTypes.patch/name": name
|
||||||
"/dialogflow:v2beta1/dialogflow.projects.agent.entityTypes.patch/updateMask": update_mask
|
"/dialogflow:v2beta1/dialogflow.projects.agent.entityTypes.patch/updateMask": update_mask
|
||||||
|
"/dialogflow:v2beta1/dialogflow.projects.agent.environments.users.sessions.contexts.create": create_project_agent_environment_user_session_context
|
||||||
|
"/dialogflow:v2beta1/dialogflow.projects.agent.environments.users.sessions.contexts.create/parent": parent
|
||||||
|
"/dialogflow:v2beta1/dialogflow.projects.agent.environments.users.sessions.contexts.delete": delete_project_agent_environment_user_session_context
|
||||||
|
"/dialogflow:v2beta1/dialogflow.projects.agent.environments.users.sessions.contexts.delete/name": name
|
||||||
|
"/dialogflow:v2beta1/dialogflow.projects.agent.environments.users.sessions.contexts.get": get_project_agent_environment_user_session_context
|
||||||
|
"/dialogflow:v2beta1/dialogflow.projects.agent.environments.users.sessions.contexts.get/name": name
|
||||||
|
"/dialogflow:v2beta1/dialogflow.projects.agent.environments.users.sessions.contexts.list": list_project_agent_environment_user_session_contexts
|
||||||
|
"/dialogflow:v2beta1/dialogflow.projects.agent.environments.users.sessions.contexts.list/pageSize": page_size
|
||||||
|
"/dialogflow:v2beta1/dialogflow.projects.agent.environments.users.sessions.contexts.list/pageToken": page_token
|
||||||
|
"/dialogflow:v2beta1/dialogflow.projects.agent.environments.users.sessions.contexts.list/parent": parent
|
||||||
|
"/dialogflow:v2beta1/dialogflow.projects.agent.environments.users.sessions.contexts.patch": patch_project_agent_environment_user_session_context
|
||||||
|
"/dialogflow:v2beta1/dialogflow.projects.agent.environments.users.sessions.contexts.patch/name": name
|
||||||
|
"/dialogflow:v2beta1/dialogflow.projects.agent.environments.users.sessions.contexts.patch/updateMask": update_mask
|
||||||
|
"/dialogflow:v2beta1/dialogflow.projects.agent.environments.users.sessions.deleteContexts": delete_project_agent_environment_user_session_contexts
|
||||||
|
"/dialogflow:v2beta1/dialogflow.projects.agent.environments.users.sessions.deleteContexts/parent": parent
|
||||||
|
"/dialogflow:v2beta1/dialogflow.projects.agent.environments.users.sessions.detectIntent": detect_project_agent_environment_user_session_intent
|
||||||
|
"/dialogflow:v2beta1/dialogflow.projects.agent.environments.users.sessions.detectIntent/session": session
|
||||||
|
"/dialogflow:v2beta1/dialogflow.projects.agent.environments.users.sessions.entityTypes.create": create_project_agent_environment_user_session_entity_type
|
||||||
|
"/dialogflow:v2beta1/dialogflow.projects.agent.environments.users.sessions.entityTypes.create/parent": parent
|
||||||
|
"/dialogflow:v2beta1/dialogflow.projects.agent.environments.users.sessions.entityTypes.delete": delete_project_agent_environment_user_session_entity_type
|
||||||
|
"/dialogflow:v2beta1/dialogflow.projects.agent.environments.users.sessions.entityTypes.delete/name": name
|
||||||
|
"/dialogflow:v2beta1/dialogflow.projects.agent.environments.users.sessions.entityTypes.get": get_project_agent_environment_user_session_entity_type
|
||||||
|
"/dialogflow:v2beta1/dialogflow.projects.agent.environments.users.sessions.entityTypes.get/name": name
|
||||||
|
"/dialogflow:v2beta1/dialogflow.projects.agent.environments.users.sessions.entityTypes.list": list_project_agent_environment_user_session_entity_types
|
||||||
|
"/dialogflow:v2beta1/dialogflow.projects.agent.environments.users.sessions.entityTypes.list/pageSize": page_size
|
||||||
|
"/dialogflow:v2beta1/dialogflow.projects.agent.environments.users.sessions.entityTypes.list/pageToken": page_token
|
||||||
|
"/dialogflow:v2beta1/dialogflow.projects.agent.environments.users.sessions.entityTypes.list/parent": parent
|
||||||
|
"/dialogflow:v2beta1/dialogflow.projects.agent.environments.users.sessions.entityTypes.patch": patch_project_agent_environment_user_session_entity_type
|
||||||
|
"/dialogflow:v2beta1/dialogflow.projects.agent.environments.users.sessions.entityTypes.patch/name": name
|
||||||
|
"/dialogflow:v2beta1/dialogflow.projects.agent.environments.users.sessions.entityTypes.patch/updateMask": update_mask
|
||||||
"/dialogflow:v2beta1/dialogflow.projects.agent.export": export_agent
|
"/dialogflow:v2beta1/dialogflow.projects.agent.export": export_agent
|
||||||
"/dialogflow:v2beta1/dialogflow.projects.agent.export/parent": parent
|
"/dialogflow:v2beta1/dialogflow.projects.agent.export/parent": parent
|
||||||
"/dialogflow:v2beta1/dialogflow.projects.agent.import": import_agent
|
"/dialogflow:v2beta1/dialogflow.projects.agent.import": import_agent
|
||||||
|
@ -46643,6 +46675,8 @@
|
||||||
"/dlp:v2/GooglePrivacyDlpV2CloudStorageOptions": google_privacy_dlp_v2_cloud_storage_options
|
"/dlp:v2/GooglePrivacyDlpV2CloudStorageOptions": google_privacy_dlp_v2_cloud_storage_options
|
||||||
"/dlp:v2/GooglePrivacyDlpV2CloudStorageOptions/bytesLimitPerFile": bytes_limit_per_file
|
"/dlp:v2/GooglePrivacyDlpV2CloudStorageOptions/bytesLimitPerFile": bytes_limit_per_file
|
||||||
"/dlp:v2/GooglePrivacyDlpV2CloudStorageOptions/fileSet": file_set
|
"/dlp:v2/GooglePrivacyDlpV2CloudStorageOptions/fileSet": file_set
|
||||||
|
"/dlp:v2/GooglePrivacyDlpV2CloudStorageOptions/fileTypes": file_types
|
||||||
|
"/dlp:v2/GooglePrivacyDlpV2CloudStorageOptions/fileTypes/file_type": file_type
|
||||||
"/dlp:v2/GooglePrivacyDlpV2Color": google_privacy_dlp_v2_color
|
"/dlp:v2/GooglePrivacyDlpV2Color": google_privacy_dlp_v2_color
|
||||||
"/dlp:v2/GooglePrivacyDlpV2Color/blue": blue
|
"/dlp:v2/GooglePrivacyDlpV2Color/blue": blue
|
||||||
"/dlp:v2/GooglePrivacyDlpV2Color/green": green
|
"/dlp:v2/GooglePrivacyDlpV2Color/green": green
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://developers.google.com/android-publisher
|
# @see https://developers.google.com/android-publisher
|
||||||
module AndroidpublisherV2
|
module AndroidpublisherV2
|
||||||
VERSION = 'V2'
|
VERSION = 'V2'
|
||||||
REVISION = '20180319'
|
REVISION = '20180327'
|
||||||
|
|
||||||
# View and manage your Google Play Developer account
|
# View and manage your Google Play Developer account
|
||||||
AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher'
|
AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher'
|
||||||
|
|
|
@ -426,77 +426,6 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# An Entitlement resource indicates a user's current entitlement to an inapp
|
|
||||||
# item or subscription.
|
|
||||||
class Entitlement
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
# This kind represents an entitlement object in the androidpublisher service.
|
|
||||||
# Corresponds to the JSON property `kind`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :kind
|
|
||||||
|
|
||||||
# The SKU of the product.
|
|
||||||
# Corresponds to the JSON property `productId`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :product_id
|
|
||||||
|
|
||||||
# The type of the inapp product. Possible values are:
|
|
||||||
# - In-app item: "inapp"
|
|
||||||
# - Subscription: "subs"
|
|
||||||
# Corresponds to the JSON property `productType`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :product_type
|
|
||||||
|
|
||||||
# The token which can be verified using the subscriptions or products API.
|
|
||||||
# Corresponds to the JSON property `token`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :token
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
@kind = args[:kind] if args.key?(:kind)
|
|
||||||
@product_id = args[:product_id] if args.key?(:product_id)
|
|
||||||
@product_type = args[:product_type] if args.key?(:product_type)
|
|
||||||
@token = args[:token] if args.key?(:token)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
#
|
|
||||||
class ListEntitlementsResponse
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
#
|
|
||||||
# Corresponds to the JSON property `pageInfo`
|
|
||||||
# @return [Google::Apis::AndroidpublisherV2::PageInfo]
|
|
||||||
attr_accessor :page_info
|
|
||||||
|
|
||||||
#
|
|
||||||
# Corresponds to the JSON property `resources`
|
|
||||||
# @return [Array<Google::Apis::AndroidpublisherV2::Entitlement>]
|
|
||||||
attr_accessor :resources
|
|
||||||
|
|
||||||
#
|
|
||||||
# Corresponds to the JSON property `tokenPagination`
|
|
||||||
# @return [Google::Apis::AndroidpublisherV2::TokenPagination]
|
|
||||||
attr_accessor :token_pagination
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
@page_info = args[:page_info] if args.key?(:page_info)
|
|
||||||
@resources = args[:resources] if args.key?(:resources)
|
|
||||||
@token_pagination = args[:token_pagination] if args.key?(:token_pagination)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
#
|
#
|
||||||
class ExpansionFile
|
class ExpansionFile
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
|
@ -106,18 +106,6 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class Entitlement
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class ListEntitlementsResponse
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class ExpansionFile
|
class ExpansionFile
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -462,28 +450,6 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class Entitlement
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :kind, as: 'kind'
|
|
||||||
property :product_id, as: 'productId'
|
|
||||||
property :product_type, as: 'productType'
|
|
||||||
property :token, as: 'token'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class ListEntitlementsResponse
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :page_info, as: 'pageInfo', class: Google::Apis::AndroidpublisherV2::PageInfo, decorator: Google::Apis::AndroidpublisherV2::PageInfo::Representation
|
|
||||||
|
|
||||||
collection :resources, as: 'resources', class: Google::Apis::AndroidpublisherV2::Entitlement, decorator: Google::Apis::AndroidpublisherV2::Entitlement::Representation
|
|
||||||
|
|
||||||
property :token_pagination, as: 'tokenPagination', class: Google::Apis::AndroidpublisherV2::TokenPagination, decorator: Google::Apis::AndroidpublisherV2::TokenPagination::Representation
|
|
||||||
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class ExpansionFile
|
class ExpansionFile
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
|
|
@ -1802,52 +1802,6 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Lists the user's current inapp item or subscription entitlements
|
|
||||||
# @param [String] package_name
|
|
||||||
# The package name of the application the inapp product was sold in (for example,
|
|
||||||
# 'com.some.thing').
|
|
||||||
# @param [Fixnum] max_results
|
|
||||||
# @param [String] product_id
|
|
||||||
# The product id of the inapp product (for example, 'sku1'). This can be used to
|
|
||||||
# restrict the result set.
|
|
||||||
# @param [Fixnum] start_index
|
|
||||||
# @param [String] 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.
|
|
||||||
# Overrides userIp if both are provided.
|
|
||||||
# @param [String] user_ip
|
|
||||||
# IP address of the site where the request originates. Use this if you want to
|
|
||||||
# enforce per-user limits.
|
|
||||||
# @param [Google::Apis::RequestOptions] options
|
|
||||||
# Request-specific options
|
|
||||||
#
|
|
||||||
# @yield [result, err] Result & error if block supplied
|
|
||||||
# @yieldparam result [Google::Apis::AndroidpublisherV2::ListEntitlementsResponse] parsed result object
|
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
|
||||||
#
|
|
||||||
# @return [Google::Apis::AndroidpublisherV2::ListEntitlementsResponse]
|
|
||||||
#
|
|
||||||
# @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_entitlements(package_name, max_results: nil, product_id: nil, start_index: nil, token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
||||||
command = make_simple_command(:get, '{packageName}/entitlements', options)
|
|
||||||
command.response_representation = Google::Apis::AndroidpublisherV2::ListEntitlementsResponse::Representation
|
|
||||||
command.response_class = Google::Apis::AndroidpublisherV2::ListEntitlementsResponse
|
|
||||||
command.params['packageName'] = package_name unless package_name.nil?
|
|
||||||
command.query['maxResults'] = max_results unless max_results.nil?
|
|
||||||
command.query['productId'] = product_id unless product_id.nil?
|
|
||||||
command.query['startIndex'] = start_index unless start_index.nil?
|
|
||||||
command.query['token'] = token unless token.nil?
|
|
||||||
command.query['fields'] = fields unless fields.nil?
|
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
||||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
||||||
execute_or_queue_command(command, &block)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Delete an in-app product for an app.
|
# Delete an in-app product for an app.
|
||||||
# @param [String] package_name
|
# @param [String] package_name
|
||||||
# Unique identifier for the Android app with the in-app product; for example, "
|
# Unique identifier for the Android app with the in-app product; for example, "
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://developers.google.com/google-apps/calendar/firstapp
|
# @see https://developers.google.com/google-apps/calendar/firstapp
|
||||||
module CalendarV3
|
module CalendarV3
|
||||||
VERSION = 'V3'
|
VERSION = 'V3'
|
||||||
REVISION = '20180130'
|
REVISION = '20180325'
|
||||||
|
|
||||||
# Manage your calendars
|
# Manage your calendars
|
||||||
AUTH_CALENDAR = 'https://www.googleapis.com/auth/calendar'
|
AUTH_CALENDAR = 'https://www.googleapis.com/auth/calendar'
|
||||||
|
|
|
@ -1645,7 +1645,9 @@ module Google
|
||||||
attr_accessor :organizer
|
attr_accessor :organizer
|
||||||
alias_method :organizer?, :organizer
|
alias_method :organizer?, :organizer
|
||||||
|
|
||||||
# Whether the attendee is a resource. Read-only. The default is False.
|
# Whether the attendee is a resource. Can only be set when the attendee is added
|
||||||
|
# to the event for the first time. Subsequent modifications are ignored.
|
||||||
|
# Optional. The default is False.
|
||||||
# Corresponds to the JSON property `resource`
|
# Corresponds to the JSON property `resource`
|
||||||
# @return [Boolean]
|
# @return [Boolean]
|
||||||
attr_accessor :resource
|
attr_accessor :resource
|
||||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
||||||
# @see https://cloud.google.com/dialogflow-enterprise/
|
# @see https://cloud.google.com/dialogflow-enterprise/
|
||||||
module DialogflowV2
|
module DialogflowV2
|
||||||
VERSION = 'V2'
|
VERSION = 'V2'
|
||||||
REVISION = '20180317'
|
REVISION = '20180326'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -27,7 +27,7 @@ module Google
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
# Optional. The URI of the agent's avatar.
|
# Optional. The URI of the agent's avatar.
|
||||||
# Avatars are used throughout API.AI console and in the self-hosted
|
# Avatars are used throughout the Dialogflow console and in the self-hosted
|
||||||
# [Web Demo](https://dialogflow.com/docs/integrations/web-demo) integration.
|
# [Web Demo](https://dialogflow.com/docs/integrations/web-demo) integration.
|
||||||
# Corresponds to the JSON property `avatarUri`
|
# Corresponds to the JSON property `avatarUri`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
|
@ -391,13 +391,7 @@ module Google
|
||||||
attr_accessor :lifespan_count
|
attr_accessor :lifespan_count
|
||||||
|
|
||||||
# Required. The unique identifier of the context. Format:
|
# Required. The unique identifier of the context. Format:
|
||||||
# `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`,
|
# `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`.
|
||||||
# or
|
|
||||||
# `projects/<Project ID>/agent/runtimes/<Runtime ID>/sessions/<Session
|
|
||||||
# ID>/contexts/<Context ID>`.
|
|
||||||
# Note: Runtimes are under construction and will be available soon.
|
|
||||||
# The Context ID is always converted to lowercase.
|
|
||||||
# If <Runtime ID> is not specified, we assume default 'sandbox' runtime.
|
|
||||||
# Corresponds to the JSON property `name`
|
# Corresponds to the JSON property `name`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :name
|
attr_accessor :name
|
||||||
|
@ -858,7 +852,7 @@ module Google
|
||||||
alias_method :is_fallback?, :is_fallback
|
alias_method :is_fallback?, :is_fallback
|
||||||
|
|
||||||
# Optional. The collection of rich messages corresponding to the
|
# Optional. The collection of rich messages corresponding to the
|
||||||
# `Response` field in API.AI console.
|
# `Response` field in the Dialogflow console.
|
||||||
# Corresponds to the JSON property `messages`
|
# Corresponds to the JSON property `messages`
|
||||||
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessage>]
|
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessage>]
|
||||||
attr_accessor :messages
|
attr_accessor :messages
|
||||||
|
@ -1006,7 +1000,7 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# Corresponds to the `Response` field in API.AI console.
|
# Corresponds to the `Response` field in the Dialogflow console.
|
||||||
class GoogleCloudDialogflowV2IntentMessage
|
class GoogleCloudDialogflowV2IntentMessage
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
@ -2197,11 +2191,7 @@ module Google
|
||||||
|
|
||||||
# Required. The unique identifier of this session entity type. Format:
|
# Required. The unique identifier of this session entity type. Format:
|
||||||
# `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
|
# `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
|
||||||
# Display Name>`, or
|
# Display Name>`.
|
||||||
# `projects/<Project ID>/agent/runtimes/<Runtime ID>sessions/<Session
|
|
||||||
# ID>/entityTypes/<Entity Type Display Name>`.
|
|
||||||
# Note: Runtimes are under construction and will be available soon.
|
|
||||||
# If <Runtime ID> is not specified, we assume default 'sandbox' runtime.
|
|
||||||
# Corresponds to the JSON property `name`
|
# Corresponds to the JSON property `name`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :name
|
attr_accessor :name
|
||||||
|
@ -2410,11 +2400,12 @@ module Google
|
||||||
# Required. The unique identifier of the context. Format:
|
# Required. The unique identifier of the context. Format:
|
||||||
# `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`,
|
# `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`,
|
||||||
# or
|
# or
|
||||||
# `projects/<Project ID>/agent/runtimes/<Runtime ID>/sessions/<Session
|
# `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
|
||||||
# ID>/contexts/<Context ID>`.
|
# ID>/sessions/<Session ID>/contexts/<Context ID>`. Note: Environments and
|
||||||
# Note: Runtimes are under construction and will be available soon.
|
# users are under construction and will be available soon. The Context ID is
|
||||||
# The Context ID is always converted to lowercase.
|
# always converted to lowercase. If <Environment ID> is not specified, we
|
||||||
# If <Runtime ID> is not specified, we assume default 'sandbox' runtime.
|
# assume default 'draft' environment. If <User ID> is not specified, we
|
||||||
|
# assume default '-' user.
|
||||||
# Corresponds to the JSON property `name`
|
# Corresponds to the JSON property `name`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :name
|
attr_accessor :name
|
||||||
|
@ -2644,7 +2635,7 @@ module Google
|
||||||
alias_method :is_fallback?, :is_fallback
|
alias_method :is_fallback?, :is_fallback
|
||||||
|
|
||||||
# Optional. The collection of rich messages corresponding to the
|
# Optional. The collection of rich messages corresponding to the
|
||||||
# `Response` field in API.AI console.
|
# `Response` field in the Dialogflow console.
|
||||||
# Corresponds to the JSON property `messages`
|
# Corresponds to the JSON property `messages`
|
||||||
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessage>]
|
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessage>]
|
||||||
attr_accessor :messages
|
attr_accessor :messages
|
||||||
|
@ -2790,7 +2781,7 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# Corresponds to the `Response` field in API.AI console.
|
# Corresponds to the `Response` field in the Dialogflow console.
|
||||||
class GoogleCloudDialogflowV2beta1IntentMessage
|
class GoogleCloudDialogflowV2beta1IntentMessage
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
|
|
@ -940,468 +940,7 @@ module Google
|
||||||
# Deletes all active contexts in the specified session.
|
# Deletes all active contexts in the specified session.
|
||||||
# @param [String] parent
|
# @param [String] parent
|
||||||
# Required. The name of the session to delete all contexts from. Format:
|
# Required. The name of the session to delete all contexts from. Format:
|
||||||
# `projects/<Project ID>/agent/sessions/<Session ID>` or `projects/<Project
|
# `projects/<Project ID>/agent/sessions/<Session ID>`.
|
||||||
# ID>/agent/runtimes/<Runtime ID>/sessions/<Session ID>`. Note: Runtimes are
|
|
||||||
# under construction and will be available soon. If <Runtime ID> is not
|
|
||||||
# specified we assume default 'sandbox' runtime.
|
|
||||||
# @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::GoogleProtobufEmpty] parsed result object
|
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
|
||||||
#
|
|
||||||
# @return [Google::Apis::DialogflowV2::GoogleProtobufEmpty]
|
|
||||||
#
|
|
||||||
# @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 delete_project_agent_runtime_session_contexts(parent, fields: nil, quota_user: nil, options: nil, &block)
|
|
||||||
command = make_simple_command(:delete, 'v2/{+parent}/contexts', options)
|
|
||||||
command.response_representation = Google::Apis::DialogflowV2::GoogleProtobufEmpty::Representation
|
|
||||||
command.response_class = Google::Apis::DialogflowV2::GoogleProtobufEmpty
|
|
||||||
command.params['parent'] = parent unless parent.nil?
|
|
||||||
command.query['fields'] = fields unless fields.nil?
|
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
||||||
execute_or_queue_command(command, &block)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Processes a natural language query and returns structured, actionable data
|
|
||||||
# as a result. This method is not idempotent, because it may cause contexts
|
|
||||||
# and session entity types to be updated, which in turn might affect
|
|
||||||
# results of future queries.
|
|
||||||
# @param [String] session
|
|
||||||
# Required. The name of the session this query is sent to. Format:
|
|
||||||
# `projects/<Project ID>/agent/sessions/<Session ID>`, or
|
|
||||||
# `projects/<Project ID>/agent/runtimes/<Runtime ID>/sessions/<Session ID>`.
|
|
||||||
# Note: Runtimes are under construction and will be available soon.
|
|
||||||
# If <Runtime ID> is not specified, we assume default 'sandbox' runtime.
|
|
||||||
# It's up to the API caller to choose an appropriate session ID. It can be
|
|
||||||
# a random number or some type of user identifier (preferably hashed).
|
|
||||||
# The length of the session ID must not exceed 36 bytes.
|
|
||||||
# @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2DetectIntentRequest] google_cloud_dialogflow_v2_detect_intent_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::DialogflowV2::GoogleCloudDialogflowV2DetectIntentResponse] parsed result object
|
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
|
||||||
#
|
|
||||||
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2DetectIntentResponse]
|
|
||||||
#
|
|
||||||
# @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 detect_project_agent_runtime_session_intent(session, google_cloud_dialogflow_v2_detect_intent_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
||||||
command = make_simple_command(:post, 'v2/{+session}:detectIntent', options)
|
|
||||||
command.request_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2DetectIntentRequest::Representation
|
|
||||||
command.request_object = google_cloud_dialogflow_v2_detect_intent_request_object
|
|
||||||
command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2DetectIntentResponse::Representation
|
|
||||||
command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2DetectIntentResponse
|
|
||||||
command.params['session'] = session unless session.nil?
|
|
||||||
command.query['fields'] = fields unless fields.nil?
|
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
||||||
execute_or_queue_command(command, &block)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Creates a context.
|
|
||||||
# @param [String] parent
|
|
||||||
# Required. The session to create a context for.
|
|
||||||
# Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
|
|
||||||
# `projects/<Project ID>/agent/runtimes/<Runtime ID>/sessions/<Session ID>`.
|
|
||||||
# Note: Runtimes are under construction and will be available soon.
|
|
||||||
# If <Runtime ID> is not specified, we assume default 'sandbox' runtime.
|
|
||||||
# @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Context] google_cloud_dialogflow_v2_context_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::DialogflowV2::GoogleCloudDialogflowV2Context] parsed result object
|
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
|
||||||
#
|
|
||||||
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Context]
|
|
||||||
#
|
|
||||||
# @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 create_project_agent_runtime_session_context(parent, google_cloud_dialogflow_v2_context_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
||||||
command = make_simple_command(:post, 'v2/{+parent}/contexts', options)
|
|
||||||
command.request_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Context::Representation
|
|
||||||
command.request_object = google_cloud_dialogflow_v2_context_object
|
|
||||||
command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Context::Representation
|
|
||||||
command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Context
|
|
||||||
command.params['parent'] = parent unless parent.nil?
|
|
||||||
command.query['fields'] = fields unless fields.nil?
|
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
||||||
execute_or_queue_command(command, &block)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Deletes the specified context.
|
|
||||||
# @param [String] name
|
|
||||||
# Required. The name of the context to delete. Format:
|
|
||||||
# `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`
|
|
||||||
# or `projects/<Project ID>/agent/runtimes/<Runtime ID>/sessions/<Session
|
|
||||||
# ID>/contexts/<Context ID>`. Note: Runtimes are under construction and will
|
|
||||||
# be available soon. If <Runtime ID> is not specified, we assume default
|
|
||||||
# 'sandbox' runtime.
|
|
||||||
# @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::GoogleProtobufEmpty] parsed result object
|
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
|
||||||
#
|
|
||||||
# @return [Google::Apis::DialogflowV2::GoogleProtobufEmpty]
|
|
||||||
#
|
|
||||||
# @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 delete_project_agent_runtime_session_context(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
||||||
command = make_simple_command(:delete, 'v2/{+name}', options)
|
|
||||||
command.response_representation = Google::Apis::DialogflowV2::GoogleProtobufEmpty::Representation
|
|
||||||
command.response_class = Google::Apis::DialogflowV2::GoogleProtobufEmpty
|
|
||||||
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
|
|
||||||
|
|
||||||
# Retrieves the specified context.
|
|
||||||
# @param [String] name
|
|
||||||
# Required. The name of the context. Format:
|
|
||||||
# `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`
|
|
||||||
# or `projects/<Project ID>/agent/runtimes/<Runtime ID>/sessions/<Session
|
|
||||||
# ID>/contexts/<Context ID>`. Note: Runtimes are under construction and will
|
|
||||||
# be available soon. If <Runtime ID> is not specified, we assume default
|
|
||||||
# 'sandbox' runtime.
|
|
||||||
# @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::GoogleCloudDialogflowV2Context] parsed result object
|
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
|
||||||
#
|
|
||||||
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Context]
|
|
||||||
#
|
|
||||||
# @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_agent_runtime_session_context(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
||||||
command = make_simple_command(:get, 'v2/{+name}', options)
|
|
||||||
command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Context::Representation
|
|
||||||
command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Context
|
|
||||||
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
|
|
||||||
|
|
||||||
# Returns the list of all contexts in the specified session.
|
|
||||||
# @param [String] parent
|
|
||||||
# Required. The session to list all contexts from.
|
|
||||||
# Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
|
|
||||||
# `projects/<Project ID>/agent/runtimes/<Runtime ID>/sessions/<Session ID>`.
|
|
||||||
# Note: Runtimes are under construction and will be available soon.
|
|
||||||
# If <Runtime ID> is not specified, we assume default 'sandbox' runtime.
|
|
||||||
# @param [Fixnum] page_size
|
|
||||||
# Optional. The maximum number of items to return in a single page. By
|
|
||||||
# default 100 and at most 1000.
|
|
||||||
# @param [String] page_token
|
|
||||||
# Optional. The next_page_token value returned from a previous list request.
|
|
||||||
# @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::GoogleCloudDialogflowV2ListContextsResponse] parsed result object
|
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
|
||||||
#
|
|
||||||
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ListContextsResponse]
|
|
||||||
#
|
|
||||||
# @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_agent_runtime_session_contexts(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
||||||
command = make_simple_command(:get, 'v2/{+parent}/contexts', options)
|
|
||||||
command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ListContextsResponse::Representation
|
|
||||||
command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ListContextsResponse
|
|
||||||
command.params['parent'] = parent unless parent.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
|
|
||||||
|
|
||||||
# Updates the specified context.
|
|
||||||
# @param [String] name
|
|
||||||
# Required. The unique identifier of the context. Format:
|
|
||||||
# `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`,
|
|
||||||
# or
|
|
||||||
# `projects/<Project ID>/agent/runtimes/<Runtime ID>/sessions/<Session
|
|
||||||
# ID>/contexts/<Context ID>`.
|
|
||||||
# Note: Runtimes are under construction and will be available soon.
|
|
||||||
# The Context ID is always converted to lowercase.
|
|
||||||
# If <Runtime ID> is not specified, we assume default 'sandbox' runtime.
|
|
||||||
# @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Context] google_cloud_dialogflow_v2_context_object
|
|
||||||
# @param [String] update_mask
|
|
||||||
# Optional. The mask to control which fields get updated.
|
|
||||||
# @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::GoogleCloudDialogflowV2Context] parsed result object
|
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
|
||||||
#
|
|
||||||
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Context]
|
|
||||||
#
|
|
||||||
# @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 patch_project_agent_runtime_session_context(name, google_cloud_dialogflow_v2_context_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
||||||
command = make_simple_command(:patch, 'v2/{+name}', options)
|
|
||||||
command.request_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Context::Representation
|
|
||||||
command.request_object = google_cloud_dialogflow_v2_context_object
|
|
||||||
command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Context::Representation
|
|
||||||
command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Context
|
|
||||||
command.params['name'] = name unless name.nil?
|
|
||||||
command.query['updateMask'] = update_mask unless update_mask.nil?
|
|
||||||
command.query['fields'] = fields unless fields.nil?
|
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
||||||
execute_or_queue_command(command, &block)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Creates a session entity type.
|
|
||||||
# @param [String] parent
|
|
||||||
# Required. The session to create a session entity type for.
|
|
||||||
# Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
|
|
||||||
# `projects/<Project ID>/agent/runtimes/<Runtime ID>/sessions/<Session ID>`.
|
|
||||||
# Note: Runtimes are under construction and will be available soon.
|
|
||||||
# If <Runtime ID> is not specified, we assume default 'sandbox' runtime.
|
|
||||||
# @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SessionEntityType] google_cloud_dialogflow_v2_session_entity_type_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::DialogflowV2::GoogleCloudDialogflowV2SessionEntityType] parsed result object
|
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
|
||||||
#
|
|
||||||
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SessionEntityType]
|
|
||||||
#
|
|
||||||
# @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 create_project_agent_runtime_session_entity_type(parent, google_cloud_dialogflow_v2_session_entity_type_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
||||||
command = make_simple_command(:post, 'v2/{+parent}/entityTypes', options)
|
|
||||||
command.request_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SessionEntityType::Representation
|
|
||||||
command.request_object = google_cloud_dialogflow_v2_session_entity_type_object
|
|
||||||
command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SessionEntityType::Representation
|
|
||||||
command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SessionEntityType
|
|
||||||
command.params['parent'] = parent unless parent.nil?
|
|
||||||
command.query['fields'] = fields unless fields.nil?
|
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
||||||
execute_or_queue_command(command, &block)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Deletes the specified session entity type.
|
|
||||||
# @param [String] name
|
|
||||||
# Required. The name of the entity type to delete. Format:
|
|
||||||
# `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
|
|
||||||
# Display Name>` or `projects/<Project ID>/agent/runtimes/<Runtime
|
|
||||||
# ID>/sessions/<Session ID>/entityTypes/<Entity Type Display Name>`. Note:
|
|
||||||
# Runtimes are under construction and will be available soon. If <Runtime ID>
|
|
||||||
# is not specified, we assume default 'sandbox' runtime.
|
|
||||||
# @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::GoogleProtobufEmpty] parsed result object
|
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
|
||||||
#
|
|
||||||
# @return [Google::Apis::DialogflowV2::GoogleProtobufEmpty]
|
|
||||||
#
|
|
||||||
# @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 delete_project_agent_runtime_session_entity_type(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
||||||
command = make_simple_command(:delete, 'v2/{+name}', options)
|
|
||||||
command.response_representation = Google::Apis::DialogflowV2::GoogleProtobufEmpty::Representation
|
|
||||||
command.response_class = Google::Apis::DialogflowV2::GoogleProtobufEmpty
|
|
||||||
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
|
|
||||||
|
|
||||||
# Retrieves the specified session entity type.
|
|
||||||
# @param [String] name
|
|
||||||
# Required. The name of the session entity type. Format:
|
|
||||||
# `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
|
|
||||||
# Display Name>` or `projects/<Project ID>/agent/runtimes/<Runtime
|
|
||||||
# ID>/sessions/<Session ID>/entityTypes/<Entity Type Display Name>`. Note:
|
|
||||||
# Runtimes are under construction and will be available soon. If <Runtime ID>
|
|
||||||
# is not specified, we assume default 'sandbox' runtime.
|
|
||||||
# @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::GoogleCloudDialogflowV2SessionEntityType] parsed result object
|
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
|
||||||
#
|
|
||||||
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SessionEntityType]
|
|
||||||
#
|
|
||||||
# @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_agent_runtime_session_entity_type(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
||||||
command = make_simple_command(:get, 'v2/{+name}', options)
|
|
||||||
command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SessionEntityType::Representation
|
|
||||||
command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SessionEntityType
|
|
||||||
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
|
|
||||||
|
|
||||||
# Returns the list of all session entity types in the specified session.
|
|
||||||
# @param [String] parent
|
|
||||||
# Required. The session to list all session entity types from.
|
|
||||||
# Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
|
|
||||||
# `projects/<Project ID>/agent/runtimes/<Runtime ID>/sessions/<Session ID>`.
|
|
||||||
# Note: Runtimes are under construction and will be available soon.
|
|
||||||
# If <Runtime ID> is not specified, we assume default 'sandbox' runtime.
|
|
||||||
# @param [Fixnum] page_size
|
|
||||||
# Optional. The maximum number of items to return in a single page. By
|
|
||||||
# default 100 and at most 1000.
|
|
||||||
# @param [String] page_token
|
|
||||||
# Optional. The next_page_token value returned from a previous list request.
|
|
||||||
# @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::GoogleCloudDialogflowV2ListSessionEntityTypesResponse] parsed result object
|
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
|
||||||
#
|
|
||||||
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ListSessionEntityTypesResponse]
|
|
||||||
#
|
|
||||||
# @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_agent_runtime_session_entity_types(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
||||||
command = make_simple_command(:get, 'v2/{+parent}/entityTypes', options)
|
|
||||||
command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ListSessionEntityTypesResponse::Representation
|
|
||||||
command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ListSessionEntityTypesResponse
|
|
||||||
command.params['parent'] = parent unless parent.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
|
|
||||||
|
|
||||||
# Updates the specified session entity type.
|
|
||||||
# @param [String] name
|
|
||||||
# Required. The unique identifier of this session entity type. Format:
|
|
||||||
# `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
|
|
||||||
# Display Name>`, or
|
|
||||||
# `projects/<Project ID>/agent/runtimes/<Runtime ID>sessions/<Session
|
|
||||||
# ID>/entityTypes/<Entity Type Display Name>`.
|
|
||||||
# Note: Runtimes are under construction and will be available soon.
|
|
||||||
# If <Runtime ID> is not specified, we assume default 'sandbox' runtime.
|
|
||||||
# @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SessionEntityType] google_cloud_dialogflow_v2_session_entity_type_object
|
|
||||||
# @param [String] update_mask
|
|
||||||
# Optional. The mask to control which fields get updated.
|
|
||||||
# @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::GoogleCloudDialogflowV2SessionEntityType] parsed result object
|
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
|
||||||
#
|
|
||||||
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SessionEntityType]
|
|
||||||
#
|
|
||||||
# @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 patch_project_agent_runtime_session_entity_type(name, google_cloud_dialogflow_v2_session_entity_type_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
||||||
command = make_simple_command(:patch, 'v2/{+name}', options)
|
|
||||||
command.request_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SessionEntityType::Representation
|
|
||||||
command.request_object = google_cloud_dialogflow_v2_session_entity_type_object
|
|
||||||
command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SessionEntityType::Representation
|
|
||||||
command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SessionEntityType
|
|
||||||
command.params['name'] = name unless name.nil?
|
|
||||||
command.query['updateMask'] = update_mask unless update_mask.nil?
|
|
||||||
command.query['fields'] = fields unless fields.nil?
|
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
||||||
execute_or_queue_command(command, &block)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Deletes all active contexts in the specified session.
|
|
||||||
# @param [String] parent
|
|
||||||
# Required. The name of the session to delete all contexts from. Format:
|
|
||||||
# `projects/<Project ID>/agent/sessions/<Session ID>` or `projects/<Project
|
|
||||||
# ID>/agent/runtimes/<Runtime ID>/sessions/<Session ID>`. Note: Runtimes are
|
|
||||||
# under construction and will be available soon. If <Runtime ID> is not
|
|
||||||
# specified we assume default 'sandbox' runtime.
|
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
|
@ -1435,13 +974,10 @@ module Google
|
||||||
# results of future queries.
|
# results of future queries.
|
||||||
# @param [String] session
|
# @param [String] session
|
||||||
# Required. The name of the session this query is sent to. Format:
|
# Required. The name of the session this query is sent to. Format:
|
||||||
# `projects/<Project ID>/agent/sessions/<Session ID>`, or
|
# `projects/<Project ID>/agent/sessions/<Session ID>`. It's up to the API
|
||||||
# `projects/<Project ID>/agent/runtimes/<Runtime ID>/sessions/<Session ID>`.
|
# caller to choose an appropriate session ID. It can be a random number or
|
||||||
# Note: Runtimes are under construction and will be available soon.
|
# some type of user identifier (preferably hashed). The length of the session
|
||||||
# If <Runtime ID> is not specified, we assume default 'sandbox' runtime.
|
# ID must not exceed 36 bytes.
|
||||||
# It's up to the API caller to choose an appropriate session ID. It can be
|
|
||||||
# a random number or some type of user identifier (preferably hashed).
|
|
||||||
# The length of the session ID must not exceed 36 bytes.
|
|
||||||
# @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2DetectIntentRequest] google_cloud_dialogflow_v2_detect_intent_request_object
|
# @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2DetectIntentRequest] google_cloud_dialogflow_v2_detect_intent_request_object
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
@ -1475,10 +1011,7 @@ module Google
|
||||||
# Creates a context.
|
# Creates a context.
|
||||||
# @param [String] parent
|
# @param [String] parent
|
||||||
# Required. The session to create a context for.
|
# Required. The session to create a context for.
|
||||||
# Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
|
# Format: `projects/<Project ID>/agent/sessions/<Session ID>`.
|
||||||
# `projects/<Project ID>/agent/runtimes/<Runtime ID>/sessions/<Session ID>`.
|
|
||||||
# Note: Runtimes are under construction and will be available soon.
|
|
||||||
# If <Runtime ID> is not specified, we assume default 'sandbox' runtime.
|
|
||||||
# @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Context] google_cloud_dialogflow_v2_context_object
|
# @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Context] google_cloud_dialogflow_v2_context_object
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
@ -1512,11 +1045,7 @@ module Google
|
||||||
# Deletes the specified context.
|
# Deletes the specified context.
|
||||||
# @param [String] name
|
# @param [String] name
|
||||||
# Required. The name of the context to delete. Format:
|
# Required. The name of the context to delete. Format:
|
||||||
# `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`
|
# `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`.
|
||||||
# or `projects/<Project ID>/agent/runtimes/<Runtime ID>/sessions/<Session
|
|
||||||
# ID>/contexts/<Context ID>`. Note: Runtimes are under construction and will
|
|
||||||
# be available soon. If <Runtime ID> is not specified, we assume default
|
|
||||||
# 'sandbox' runtime.
|
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
|
@ -1547,11 +1076,7 @@ module Google
|
||||||
# Retrieves the specified context.
|
# Retrieves the specified context.
|
||||||
# @param [String] name
|
# @param [String] name
|
||||||
# Required. The name of the context. Format:
|
# Required. The name of the context. Format:
|
||||||
# `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`
|
# `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`.
|
||||||
# or `projects/<Project ID>/agent/runtimes/<Runtime ID>/sessions/<Session
|
|
||||||
# ID>/contexts/<Context ID>`. Note: Runtimes are under construction and will
|
|
||||||
# be available soon. If <Runtime ID> is not specified, we assume default
|
|
||||||
# 'sandbox' runtime.
|
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
|
@ -1582,10 +1107,7 @@ module Google
|
||||||
# Returns the list of all contexts in the specified session.
|
# Returns the list of all contexts in the specified session.
|
||||||
# @param [String] parent
|
# @param [String] parent
|
||||||
# Required. The session to list all contexts from.
|
# Required. The session to list all contexts from.
|
||||||
# Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
|
# Format: `projects/<Project ID>/agent/sessions/<Session ID>`.
|
||||||
# `projects/<Project ID>/agent/runtimes/<Runtime ID>/sessions/<Session ID>`.
|
|
||||||
# Note: Runtimes are under construction and will be available soon.
|
|
||||||
# If <Runtime ID> is not specified, we assume default 'sandbox' runtime.
|
|
||||||
# @param [Fixnum] page_size
|
# @param [Fixnum] page_size
|
||||||
# Optional. The maximum number of items to return in a single page. By
|
# Optional. The maximum number of items to return in a single page. By
|
||||||
# default 100 and at most 1000.
|
# default 100 and at most 1000.
|
||||||
|
@ -1623,13 +1145,7 @@ module Google
|
||||||
# Updates the specified context.
|
# Updates the specified context.
|
||||||
# @param [String] name
|
# @param [String] name
|
||||||
# Required. The unique identifier of the context. Format:
|
# Required. The unique identifier of the context. Format:
|
||||||
# `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`,
|
# `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`.
|
||||||
# or
|
|
||||||
# `projects/<Project ID>/agent/runtimes/<Runtime ID>/sessions/<Session
|
|
||||||
# ID>/contexts/<Context ID>`.
|
|
||||||
# Note: Runtimes are under construction and will be available soon.
|
|
||||||
# The Context ID is always converted to lowercase.
|
|
||||||
# If <Runtime ID> is not specified, we assume default 'sandbox' runtime.
|
|
||||||
# @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Context] google_cloud_dialogflow_v2_context_object
|
# @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Context] google_cloud_dialogflow_v2_context_object
|
||||||
# @param [String] update_mask
|
# @param [String] update_mask
|
||||||
# Optional. The mask to control which fields get updated.
|
# Optional. The mask to control which fields get updated.
|
||||||
|
@ -1666,10 +1182,7 @@ module Google
|
||||||
# Creates a session entity type.
|
# Creates a session entity type.
|
||||||
# @param [String] parent
|
# @param [String] parent
|
||||||
# Required. The session to create a session entity type for.
|
# Required. The session to create a session entity type for.
|
||||||
# Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
|
# Format: `projects/<Project ID>/agent/sessions/<Session ID>`.
|
||||||
# `projects/<Project ID>/agent/runtimes/<Runtime ID>/sessions/<Session ID>`.
|
|
||||||
# Note: Runtimes are under construction and will be available soon.
|
|
||||||
# If <Runtime ID> is not specified, we assume default 'sandbox' runtime.
|
|
||||||
# @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SessionEntityType] google_cloud_dialogflow_v2_session_entity_type_object
|
# @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SessionEntityType] google_cloud_dialogflow_v2_session_entity_type_object
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
@ -1704,10 +1217,7 @@ module Google
|
||||||
# @param [String] name
|
# @param [String] name
|
||||||
# Required. The name of the entity type to delete. Format:
|
# Required. The name of the entity type to delete. Format:
|
||||||
# `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
|
# `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
|
||||||
# Display Name>` or `projects/<Project ID>/agent/runtimes/<Runtime
|
# Display Name>`.
|
||||||
# ID>/sessions/<Session ID>/entityTypes/<Entity Type Display Name>`. Note:
|
|
||||||
# Runtimes are under construction and will be available soon. If <Runtime ID>
|
|
||||||
# is not specified, we assume default 'sandbox' runtime.
|
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
|
@ -1739,10 +1249,7 @@ module Google
|
||||||
# @param [String] name
|
# @param [String] name
|
||||||
# Required. The name of the session entity type. Format:
|
# Required. The name of the session entity type. Format:
|
||||||
# `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
|
# `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
|
||||||
# Display Name>` or `projects/<Project ID>/agent/runtimes/<Runtime
|
# Display Name>`.
|
||||||
# ID>/sessions/<Session ID>/entityTypes/<Entity Type Display Name>`. Note:
|
|
||||||
# Runtimes are under construction and will be available soon. If <Runtime ID>
|
|
||||||
# is not specified, we assume default 'sandbox' runtime.
|
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
|
@ -1773,10 +1280,7 @@ module Google
|
||||||
# Returns the list of all session entity types in the specified session.
|
# Returns the list of all session entity types in the specified session.
|
||||||
# @param [String] parent
|
# @param [String] parent
|
||||||
# Required. The session to list all session entity types from.
|
# Required. The session to list all session entity types from.
|
||||||
# Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
|
# Format: `projects/<Project ID>/agent/sessions/<Session ID>`.
|
||||||
# `projects/<Project ID>/agent/runtimes/<Runtime ID>/sessions/<Session ID>`.
|
|
||||||
# Note: Runtimes are under construction and will be available soon.
|
|
||||||
# If <Runtime ID> is not specified, we assume default 'sandbox' runtime.
|
|
||||||
# @param [Fixnum] page_size
|
# @param [Fixnum] page_size
|
||||||
# Optional. The maximum number of items to return in a single page. By
|
# Optional. The maximum number of items to return in a single page. By
|
||||||
# default 100 and at most 1000.
|
# default 100 and at most 1000.
|
||||||
|
@ -1815,11 +1319,7 @@ module Google
|
||||||
# @param [String] name
|
# @param [String] name
|
||||||
# Required. The unique identifier of this session entity type. Format:
|
# Required. The unique identifier of this session entity type. Format:
|
||||||
# `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
|
# `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
|
||||||
# Display Name>`, or
|
# Display Name>`.
|
||||||
# `projects/<Project ID>/agent/runtimes/<Runtime ID>sessions/<Session
|
|
||||||
# ID>/entityTypes/<Entity Type Display Name>`.
|
|
||||||
# Note: Runtimes are under construction and will be available soon.
|
|
||||||
# If <Runtime ID> is not specified, we assume default 'sandbox' runtime.
|
|
||||||
# @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SessionEntityType] google_cloud_dialogflow_v2_session_entity_type_object
|
# @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SessionEntityType] google_cloud_dialogflow_v2_session_entity_type_object
|
||||||
# @param [String] update_mask
|
# @param [String] update_mask
|
||||||
# Optional. The mask to control which fields get updated.
|
# Optional. The mask to control which fields get updated.
|
||||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
||||||
# @see https://cloud.google.com/dialogflow-enterprise/
|
# @see https://cloud.google.com/dialogflow-enterprise/
|
||||||
module DialogflowV2beta1
|
module DialogflowV2beta1
|
||||||
VERSION = 'V2beta1'
|
VERSION = 'V2beta1'
|
||||||
REVISION = '20180303'
|
REVISION = '20180326'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -73,13 +73,7 @@ module Google
|
||||||
attr_accessor :lifespan_count
|
attr_accessor :lifespan_count
|
||||||
|
|
||||||
# Required. The unique identifier of the context. Format:
|
# Required. The unique identifier of the context. Format:
|
||||||
# `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`,
|
# `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`.
|
||||||
# or
|
|
||||||
# `projects/<Project ID>/agent/runtimes/<Runtime ID>/sessions/<Session
|
|
||||||
# ID>/contexts/<Context ID>`.
|
|
||||||
# Note: Runtimes are under construction and will be available soon.
|
|
||||||
# The Context ID is always converted to lowercase.
|
|
||||||
# If <Runtime ID> is not specified, we assume default 'sandbox' runtime.
|
|
||||||
# Corresponds to the JSON property `name`
|
# Corresponds to the JSON property `name`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :name
|
attr_accessor :name
|
||||||
|
@ -308,7 +302,7 @@ module Google
|
||||||
alias_method :is_fallback?, :is_fallback
|
alias_method :is_fallback?, :is_fallback
|
||||||
|
|
||||||
# Optional. The collection of rich messages corresponding to the
|
# Optional. The collection of rich messages corresponding to the
|
||||||
# `Response` field in API.AI console.
|
# `Response` field in the Dialogflow console.
|
||||||
# Corresponds to the JSON property `messages`
|
# Corresponds to the JSON property `messages`
|
||||||
# @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2IntentMessage>]
|
# @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2IntentMessage>]
|
||||||
attr_accessor :messages
|
attr_accessor :messages
|
||||||
|
@ -437,7 +431,7 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# Corresponds to the `Response` field in API.AI console.
|
# Corresponds to the `Response` field in the Dialogflow console.
|
||||||
class GoogleCloudDialogflowV2IntentMessage
|
class GoogleCloudDialogflowV2IntentMessage
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
@ -1434,7 +1428,7 @@ module Google
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
# Optional. The URI of the agent's avatar.
|
# Optional. The URI of the agent's avatar.
|
||||||
# Avatars are used throughout API.AI console and in the self-hosted
|
# Avatars are used throughout the Dialogflow console and in the self-hosted
|
||||||
# [Web Demo](https://dialogflow.com/docs/integrations/web-demo) integration.
|
# [Web Demo](https://dialogflow.com/docs/integrations/web-demo) integration.
|
||||||
# Corresponds to the JSON property `avatarUri`
|
# Corresponds to the JSON property `avatarUri`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
|
@ -1800,11 +1794,12 @@ module Google
|
||||||
# Required. The unique identifier of the context. Format:
|
# Required. The unique identifier of the context. Format:
|
||||||
# `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`,
|
# `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`,
|
||||||
# or
|
# or
|
||||||
# `projects/<Project ID>/agent/runtimes/<Runtime ID>/sessions/<Session
|
# `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
|
||||||
# ID>/contexts/<Context ID>`.
|
# ID>/sessions/<Session ID>/contexts/<Context ID>`. Note: Environments and
|
||||||
# Note: Runtimes are under construction and will be available soon.
|
# users are under construction and will be available soon. The Context ID is
|
||||||
# The Context ID is always converted to lowercase.
|
# always converted to lowercase. If <Environment ID> is not specified, we
|
||||||
# If <Runtime ID> is not specified, we assume default 'sandbox' runtime.
|
# assume default 'draft' environment. If <User ID> is not specified, we
|
||||||
|
# assume default '-' user.
|
||||||
# Corresponds to the JSON property `name`
|
# Corresponds to the JSON property `name`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :name
|
attr_accessor :name
|
||||||
|
@ -2267,7 +2262,7 @@ module Google
|
||||||
alias_method :is_fallback?, :is_fallback
|
alias_method :is_fallback?, :is_fallback
|
||||||
|
|
||||||
# Optional. The collection of rich messages corresponding to the
|
# Optional. The collection of rich messages corresponding to the
|
||||||
# `Response` field in API.AI console.
|
# `Response` field in the Dialogflow console.
|
||||||
# Corresponds to the JSON property `messages`
|
# Corresponds to the JSON property `messages`
|
||||||
# @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessage>]
|
# @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessage>]
|
||||||
attr_accessor :messages
|
attr_accessor :messages
|
||||||
|
@ -2432,7 +2427,7 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# Corresponds to the `Response` field in API.AI console.
|
# Corresponds to the `Response` field in the Dialogflow console.
|
||||||
class GoogleCloudDialogflowV2beta1IntentMessage
|
class GoogleCloudDialogflowV2beta1IntentMessage
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
@ -3625,10 +3620,12 @@ module Google
|
||||||
# Required. The unique identifier of this session entity type. Format:
|
# Required. The unique identifier of this session entity type. Format:
|
||||||
# `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
|
# `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
|
||||||
# Display Name>`, or
|
# Display Name>`, or
|
||||||
# `projects/<Project ID>/agent/runtimes/<Runtime ID>sessions/<Session
|
# `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
|
||||||
# ID>/entityTypes/<Entity Type Display Name>`.
|
# ID>/sessions
|
||||||
# Note: Runtimes are under construction and will be available soon.
|
# /<Session ID>/entityTypes/<Entity Type Display Name>`.
|
||||||
# If <Runtime ID> is not specified, we assume default 'sandbox' runtime.
|
# Note: Environments and users are under construction and will be available
|
||||||
|
# soon. If <Environment ID> is not specified, we assume default 'draft'
|
||||||
|
# environment. If <User ID> is not specified, we assume default '-' user.
|
||||||
# Corresponds to the JSON property `name`
|
# Corresponds to the JSON property `name`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :name
|
attr_accessor :name
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -27,7 +27,7 @@ module Google
|
||||||
# @see https://cloud.google.com/dlp/docs/
|
# @see https://cloud.google.com/dlp/docs/
|
||||||
module DlpV2
|
module DlpV2
|
||||||
VERSION = 'V2'
|
VERSION = 'V2'
|
||||||
REVISION = '20180320'
|
REVISION = '20180328'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -572,6 +572,13 @@ module Google
|
||||||
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2FileSet]
|
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2FileSet]
|
||||||
attr_accessor :file_set
|
attr_accessor :file_set
|
||||||
|
|
||||||
|
# List of file type groups to include in the scan.
|
||||||
|
# If empty, all files are scanned and available data format processors
|
||||||
|
# are applied.
|
||||||
|
# Corresponds to the JSON property `fileTypes`
|
||||||
|
# @return [Array<String>]
|
||||||
|
attr_accessor :file_types
|
||||||
|
|
||||||
def initialize(**args)
|
def initialize(**args)
|
||||||
update!(**args)
|
update!(**args)
|
||||||
end
|
end
|
||||||
|
@ -580,6 +587,7 @@ module Google
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
@bytes_limit_per_file = args[:bytes_limit_per_file] if args.key?(:bytes_limit_per_file)
|
@bytes_limit_per_file = args[:bytes_limit_per_file] if args.key?(:bytes_limit_per_file)
|
||||||
@file_set = args[:file_set] if args.key?(:file_set)
|
@file_set = args[:file_set] if args.key?(:file_set)
|
||||||
|
@file_types = args[:file_types] if args.key?(:file_types)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -1081,8 +1089,8 @@ module Google
|
||||||
|
|
||||||
# Message for detecting output from deidentification transformations
|
# Message for detecting output from deidentification transformations
|
||||||
# such as
|
# such as
|
||||||
# [`CryptoReplaceFfxFpeConfig`](/dlp/docs/reference/rest/v2/content/deidentify#
|
# [`CryptoReplaceFfxFpeConfig`](/dlp/docs/reference/rest/v2/organizations.
|
||||||
# CryptoReplaceFfxFpeConfig).
|
# deidentifyTemplates#cryptoreplaceffxfpeconfig).
|
||||||
# These types of transformations are
|
# These types of transformations are
|
||||||
# those that perform pseudonymization, thereby producing a "surrogate" as
|
# those that perform pseudonymization, thereby producing a "surrogate" as
|
||||||
# output. This should be used in conjunction with a field on the
|
# output. This should be used in conjunction with a field on the
|
||||||
|
@ -2144,7 +2152,6 @@ module Google
|
||||||
|
|
||||||
# Restricts what info_types to look for. The values must correspond to
|
# Restricts what info_types to look for. The values must correspond to
|
||||||
# InfoType values returned by ListInfoTypes or found in documentation.
|
# InfoType values returned by ListInfoTypes or found in documentation.
|
||||||
# Empty info_types runs all enabled detectors.
|
|
||||||
# Corresponds to the JSON property `infoTypes`
|
# Corresponds to the JSON property `infoTypes`
|
||||||
# @return [Array<Google::Apis::DlpV2::GooglePrivacyDlpV2InfoType>]
|
# @return [Array<Google::Apis::DlpV2::GooglePrivacyDlpV2InfoType>]
|
||||||
attr_accessor :info_types
|
attr_accessor :info_types
|
||||||
|
@ -4145,8 +4152,8 @@ module Google
|
||||||
|
|
||||||
# Message for detecting output from deidentification transformations
|
# Message for detecting output from deidentification transformations
|
||||||
# such as
|
# such as
|
||||||
# [`CryptoReplaceFfxFpeConfig`](/dlp/docs/reference/rest/v2/content/deidentify#
|
# [`CryptoReplaceFfxFpeConfig`](/dlp/docs/reference/rest/v2/organizations.
|
||||||
# CryptoReplaceFfxFpeConfig).
|
# deidentifyTemplates#cryptoreplaceffxfpeconfig).
|
||||||
# These types of transformations are
|
# These types of transformations are
|
||||||
# those that perform pseudonymization, thereby producing a "surrogate" as
|
# those that perform pseudonymization, thereby producing a "surrogate" as
|
||||||
# output. This should be used in conjunction with a field on the
|
# output. This should be used in conjunction with a field on the
|
||||||
|
|
|
@ -1347,6 +1347,7 @@ module Google
|
||||||
property :bytes_limit_per_file, :numeric_string => true, as: 'bytesLimitPerFile'
|
property :bytes_limit_per_file, :numeric_string => true, as: 'bytesLimitPerFile'
|
||||||
property :file_set, as: 'fileSet', class: Google::Apis::DlpV2::GooglePrivacyDlpV2FileSet, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2FileSet::Representation
|
property :file_set, as: 'fileSet', class: Google::Apis::DlpV2::GooglePrivacyDlpV2FileSet, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2FileSet::Representation
|
||||||
|
|
||||||
|
collection :file_types, as: 'fileTypes'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -49,7 +49,9 @@ module Google
|
||||||
@batch_path = 'batch'
|
@batch_path = 'batch'
|
||||||
end
|
end
|
||||||
|
|
||||||
# Returns sensitive information types DLP supports.
|
# Returns a list of the sensitive information types that the DLP API
|
||||||
|
# supports. For more information, see [Listing supported predefined
|
||||||
|
# infoTypes](/dlp/docs/listing-infotypes).
|
||||||
# @param [String] filter
|
# @param [String] filter
|
||||||
# Optional filter to only return infoTypes supported by certain parts of the
|
# Optional filter to only return infoTypes supported by certain parts of the
|
||||||
# API. Defaults to supported_by=INSPECT.
|
# API. Defaults to supported_by=INSPECT.
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://cloud.google.com/ml/
|
# @see https://cloud.google.com/ml/
|
||||||
module MlV1
|
module MlV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20180320'
|
REVISION = '20180327'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -1259,8 +1259,11 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :error_message
|
attr_accessor :error_message
|
||||||
|
|
||||||
# The ML framework used to train this version of the model. If not specified,
|
# Optional. The machine learning framework Cloud ML Engine uses to train
|
||||||
# defaults to `TENSORFLOW`
|
# this version of the model. Valid values are `TENSORFLOW`, `SCIKIT_LEARN`,
|
||||||
|
# and `XGBOOST`. If you do not specify a framework, Cloud ML Engine uses
|
||||||
|
# TensorFlow. If you choose `SCIKIT_LEARN` or `XGBOOST`, you must also set
|
||||||
|
# the runtime version of the model to 1.4 or greater.
|
||||||
# Corresponds to the JSON property `framework`
|
# Corresponds to the JSON property `framework`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :framework
|
attr_accessor :framework
|
||||||
|
|
Loading…
Reference in New Issue