From cacd313a7b5573dc44677895b5f1937051aa0e20 Mon Sep 17 00:00:00 2001 From: Google APIs Date: Thu, 22 Feb 2018 00:36:19 +0000 Subject: [PATCH] Autogenerated update (2018-02-22) Update: - cloudresourcemanager_v1 - cloudresourcemanager_v1beta1 - cloudresourcemanager_v2beta1 - dialogflow_v2beta1 - dlp_v2beta1 - dlp_v2beta2 - poly_v1 - spanner_v1 --- api_names_out.yaml | 90 +++ .../google/apis/cloudresourcemanager_v1.rb | 4 +- .../apis/cloudresourcemanager_v1/service.rb | 2 +- .../apis/cloudresourcemanager_v1beta1.rb | 4 +- .../cloudresourcemanager_v1beta1/service.rb | 2 +- .../apis/cloudresourcemanager_v2beta1.rb | 4 +- .../cloudresourcemanager_v2beta1/service.rb | 2 +- generated/google/apis/dialogflow_v2beta1.rb | 2 +- .../google/apis/dialogflow_v2beta1/classes.rb | 26 +- .../google/apis/dialogflow_v2beta1/service.rb | 525 +++++++++++++++++- generated/google/apis/dlp_v2beta1.rb | 2 +- generated/google/apis/dlp_v2beta1/classes.rb | 38 ++ .../apis/dlp_v2beta1/representations.rb | 17 + generated/google/apis/dlp_v2beta2.rb | 2 +- generated/google/apis/dlp_v2beta2/classes.rb | 36 ++ .../apis/dlp_v2beta2/representations.rb | 17 + generated/google/apis/poly_v1.rb | 2 +- generated/google/apis/poly_v1/classes.rb | 153 +++++ .../google/apis/poly_v1/representations.rb | 67 +++ generated/google/apis/spanner_v1.rb | 2 +- generated/google/apis/spanner_v1/classes.rb | 236 +++++++- .../google/apis/spanner_v1/representations.rb | 86 +++ generated/google/apis/spanner_v1/service.rb | 80 +++ 23 files changed, 1364 insertions(+), 35 deletions(-) diff --git a/api_names_out.yaml b/api_names_out.yaml index 7111965f2..c8d0b0e10 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -44559,6 +44559,36 @@ "/dialogflow:v2beta1/dialogflow.projects.agent.intents.patch/updateMask": update_mask "/dialogflow:v2beta1/dialogflow.projects.agent.restore": restore_agent "/dialogflow:v2beta1/dialogflow.projects.agent.restore/parent": parent +"/dialogflow:v2beta1/dialogflow.projects.agent.runtimes.sessions.contexts.create": create_project_agent_runtime_session_context +"/dialogflow:v2beta1/dialogflow.projects.agent.runtimes.sessions.contexts.create/parent": parent +"/dialogflow:v2beta1/dialogflow.projects.agent.runtimes.sessions.contexts.delete": delete_project_agent_runtime_session_context +"/dialogflow:v2beta1/dialogflow.projects.agent.runtimes.sessions.contexts.delete/name": name +"/dialogflow:v2beta1/dialogflow.projects.agent.runtimes.sessions.contexts.get": get_project_agent_runtime_session_context +"/dialogflow:v2beta1/dialogflow.projects.agent.runtimes.sessions.contexts.get/name": name +"/dialogflow:v2beta1/dialogflow.projects.agent.runtimes.sessions.contexts.list": list_project_agent_runtime_session_contexts +"/dialogflow:v2beta1/dialogflow.projects.agent.runtimes.sessions.contexts.list/pageSize": page_size +"/dialogflow:v2beta1/dialogflow.projects.agent.runtimes.sessions.contexts.list/pageToken": page_token +"/dialogflow:v2beta1/dialogflow.projects.agent.runtimes.sessions.contexts.list/parent": parent +"/dialogflow:v2beta1/dialogflow.projects.agent.runtimes.sessions.contexts.patch": patch_project_agent_runtime_session_context +"/dialogflow:v2beta1/dialogflow.projects.agent.runtimes.sessions.contexts.patch/name": name +"/dialogflow:v2beta1/dialogflow.projects.agent.runtimes.sessions.contexts.patch/updateMask": update_mask +"/dialogflow:v2beta1/dialogflow.projects.agent.runtimes.sessions.deleteContexts": delete_project_agent_runtime_session_contexts +"/dialogflow:v2beta1/dialogflow.projects.agent.runtimes.sessions.deleteContexts/parent": parent +"/dialogflow:v2beta1/dialogflow.projects.agent.runtimes.sessions.detectIntent": detect_project_agent_runtime_session_intent +"/dialogflow:v2beta1/dialogflow.projects.agent.runtimes.sessions.detectIntent/session": session +"/dialogflow:v2beta1/dialogflow.projects.agent.runtimes.sessions.entityTypes.create": create_project_agent_runtime_session_entity_type +"/dialogflow:v2beta1/dialogflow.projects.agent.runtimes.sessions.entityTypes.create/parent": parent +"/dialogflow:v2beta1/dialogflow.projects.agent.runtimes.sessions.entityTypes.delete": delete_project_agent_runtime_session_entity_type +"/dialogflow:v2beta1/dialogflow.projects.agent.runtimes.sessions.entityTypes.delete/name": name +"/dialogflow:v2beta1/dialogflow.projects.agent.runtimes.sessions.entityTypes.get": get_project_agent_runtime_session_entity_type +"/dialogflow:v2beta1/dialogflow.projects.agent.runtimes.sessions.entityTypes.get/name": name +"/dialogflow:v2beta1/dialogflow.projects.agent.runtimes.sessions.entityTypes.list": list_project_agent_runtime_session_entity_types +"/dialogflow:v2beta1/dialogflow.projects.agent.runtimes.sessions.entityTypes.list/pageSize": page_size +"/dialogflow:v2beta1/dialogflow.projects.agent.runtimes.sessions.entityTypes.list/pageToken": page_token +"/dialogflow:v2beta1/dialogflow.projects.agent.runtimes.sessions.entityTypes.list/parent": parent +"/dialogflow:v2beta1/dialogflow.projects.agent.runtimes.sessions.entityTypes.patch": patch_project_agent_runtime_session_entity_type +"/dialogflow:v2beta1/dialogflow.projects.agent.runtimes.sessions.entityTypes.patch/name": name +"/dialogflow:v2beta1/dialogflow.projects.agent.runtimes.sessions.entityTypes.patch/updateMask": update_mask "/dialogflow:v2beta1/dialogflow.projects.agent.search": search_project_agents "/dialogflow:v2beta1/dialogflow.projects.agent.search/pageSize": page_size "/dialogflow:v2beta1/dialogflow.projects.agent.search/pageToken": page_token @@ -44807,6 +44837,9 @@ "/dlp:v2beta1/GooglePrivacyDlpV2beta1AuxiliaryTable/quasiIds/quasi_id": quasi_id "/dlp:v2beta1/GooglePrivacyDlpV2beta1AuxiliaryTable/relativeFrequency": relative_frequency "/dlp:v2beta1/GooglePrivacyDlpV2beta1AuxiliaryTable/table": table +"/dlp:v2beta1/GooglePrivacyDlpV2beta1BigQueryKey": google_privacy_dlp_v2beta1_big_query_key +"/dlp:v2beta1/GooglePrivacyDlpV2beta1BigQueryKey/rowNumber": row_number +"/dlp:v2beta1/GooglePrivacyDlpV2beta1BigQueryKey/tableReference": table_reference "/dlp:v2beta1/GooglePrivacyDlpV2beta1BigQueryOptions": google_privacy_dlp_v2beta1_big_query_options "/dlp:v2beta1/GooglePrivacyDlpV2beta1BigQueryOptions/identifyingFields": identifying_fields "/dlp:v2beta1/GooglePrivacyDlpV2beta1BigQueryOptions/identifyingFields/identifying_field": identifying_field @@ -45139,6 +45172,7 @@ "/dlp:v2beta1/GooglePrivacyDlpV2beta1RecordCondition": google_privacy_dlp_v2beta1_record_condition "/dlp:v2beta1/GooglePrivacyDlpV2beta1RecordCondition/expressions": expressions "/dlp:v2beta1/GooglePrivacyDlpV2beta1RecordKey": google_privacy_dlp_v2beta1_record_key +"/dlp:v2beta1/GooglePrivacyDlpV2beta1RecordKey/bigQueryKey": big_query_key "/dlp:v2beta1/GooglePrivacyDlpV2beta1RecordKey/cloudStorageKey": cloud_storage_key "/dlp:v2beta1/GooglePrivacyDlpV2beta1RecordKey/datastoreKey": datastore_key "/dlp:v2beta1/GooglePrivacyDlpV2beta1RecordSuppression": google_privacy_dlp_v2beta1_record_suppression @@ -45499,6 +45533,9 @@ "/dlp:v2beta2/GooglePrivacyDlpV2beta2AuxiliaryTable/quasiIds/quasi_id": quasi_id "/dlp:v2beta2/GooglePrivacyDlpV2beta2AuxiliaryTable/relativeFrequency": relative_frequency "/dlp:v2beta2/GooglePrivacyDlpV2beta2AuxiliaryTable/table": table +"/dlp:v2beta2/GooglePrivacyDlpV2beta2BigQueryKey": google_privacy_dlp_v2beta2_big_query_key +"/dlp:v2beta2/GooglePrivacyDlpV2beta2BigQueryKey/rowNumber": row_number +"/dlp:v2beta2/GooglePrivacyDlpV2beta2BigQueryKey/tableReference": table_reference "/dlp:v2beta2/GooglePrivacyDlpV2beta2BigQueryOptions": google_privacy_dlp_v2beta2_big_query_options "/dlp:v2beta2/GooglePrivacyDlpV2beta2BigQueryOptions/identifyingFields": identifying_fields "/dlp:v2beta2/GooglePrivacyDlpV2beta2BigQueryOptions/identifyingFields/identifying_field": identifying_field @@ -45888,6 +45925,7 @@ "/dlp:v2beta2/GooglePrivacyDlpV2beta2RecordCondition": google_privacy_dlp_v2beta2_record_condition "/dlp:v2beta2/GooglePrivacyDlpV2beta2RecordCondition/expressions": expressions "/dlp:v2beta2/GooglePrivacyDlpV2beta2RecordKey": google_privacy_dlp_v2beta2_record_key +"/dlp:v2beta2/GooglePrivacyDlpV2beta2RecordKey/bigQueryKey": big_query_key "/dlp:v2beta2/GooglePrivacyDlpV2beta2RecordKey/cloudStorageKey": cloud_storage_key "/dlp:v2beta2/GooglePrivacyDlpV2beta2RecordKey/datastoreKey": datastore_key "/dlp:v2beta2/GooglePrivacyDlpV2beta2RecordSuppression": google_privacy_dlp_v2beta2_record_suppression @@ -57259,6 +57297,11 @@ "/poly:v1/Asset/thumbnail": thumbnail "/poly:v1/Asset/updateTime": update_time "/poly:v1/Asset/visibility": visibility +"/poly:v1/AssetImportMessage": asset_import_message +"/poly:v1/AssetImportMessage/code": code +"/poly:v1/AssetImportMessage/filePath": file_path +"/poly:v1/AssetImportMessage/imageError": image_error +"/poly:v1/AssetImportMessage/objParseError": obj_parse_error "/poly:v1/File": file "/poly:v1/File/contentType": content_type "/poly:v1/File/relativePath": relative_path @@ -57272,6 +57315,9 @@ "/poly:v1/FormatComplexity": format_complexity "/poly:v1/FormatComplexity/lodHint": lod_hint "/poly:v1/FormatComplexity/triangleCount": triangle_count +"/poly:v1/ImageError": image_error +"/poly:v1/ImageError/code": code +"/poly:v1/ImageError/filePath": file_path "/poly:v1/ListAssetsResponse": list_assets_response "/poly:v1/ListAssetsResponse/assets": assets "/poly:v1/ListAssetsResponse/assets/asset": asset @@ -57287,6 +57333,13 @@ "/poly:v1/ListUserAssetsResponse/totalSize": total_size "/poly:v1/ListUserAssetsResponse/userAssets": user_assets "/poly:v1/ListUserAssetsResponse/userAssets/user_asset": user_asset +"/poly:v1/ObjParseError": obj_parse_error +"/poly:v1/ObjParseError/code": code +"/poly:v1/ObjParseError/endIndex": end_index +"/poly:v1/ObjParseError/filePath": file_path +"/poly:v1/ObjParseError/line": line +"/poly:v1/ObjParseError/lineNumber": line_number +"/poly:v1/ObjParseError/startIndex": start_index "/poly:v1/PresentationParams": presentation_params "/poly:v1/PresentationParams/colorSpace": color_space "/poly:v1/PresentationParams/orientingRotation": orienting_rotation @@ -57295,6 +57348,12 @@ "/poly:v1/Quaternion/x": x "/poly:v1/Quaternion/y": y "/poly:v1/Quaternion/z": z +"/poly:v1/StartAssetImportResponse": start_asset_import_response +"/poly:v1/StartAssetImportResponse/assetId": asset_id +"/poly:v1/StartAssetImportResponse/assetImportId": asset_import_id +"/poly:v1/StartAssetImportResponse/assetImportMessages": asset_import_messages +"/poly:v1/StartAssetImportResponse/assetImportMessages/asset_import_message": asset_import_message +"/poly:v1/StartAssetImportResponse/publishUrl": publish_url "/poly:v1/UserAsset": user_asset "/poly:v1/UserAsset/asset": asset "/poly:v1/fields": fields @@ -63615,6 +63674,7 @@ "/spanner:v1/ExecuteSqlRequest/paramTypes/param_type": param_type "/spanner:v1/ExecuteSqlRequest/params": params "/spanner:v1/ExecuteSqlRequest/params/param": param +"/spanner:v1/ExecuteSqlRequest/partitionToken": partition_token "/spanner:v1/ExecuteSqlRequest/queryMode": query_mode "/spanner:v1/ExecuteSqlRequest/resumeToken": resume_token "/spanner:v1/ExecuteSqlRequest/sql": sql @@ -63703,6 +63763,31 @@ "/spanner:v1/PartialResultSet/stats": stats "/spanner:v1/PartialResultSet/values": values "/spanner:v1/PartialResultSet/values/value": value +"/spanner:v1/Partition": partition +"/spanner:v1/Partition/partitionToken": partition_token +"/spanner:v1/PartitionOptions": partition_options +"/spanner:v1/PartitionOptions/maxPartitions": max_partitions +"/spanner:v1/PartitionOptions/partitionSizeBytes": partition_size_bytes +"/spanner:v1/PartitionQueryRequest": partition_query_request +"/spanner:v1/PartitionQueryRequest/paramTypes": param_types +"/spanner:v1/PartitionQueryRequest/paramTypes/param_type": param_type +"/spanner:v1/PartitionQueryRequest/params": params +"/spanner:v1/PartitionQueryRequest/params/param": param +"/spanner:v1/PartitionQueryRequest/partitionOptions": partition_options +"/spanner:v1/PartitionQueryRequest/sql": sql +"/spanner:v1/PartitionQueryRequest/transaction": transaction +"/spanner:v1/PartitionReadRequest": partition_read_request +"/spanner:v1/PartitionReadRequest/columns": columns +"/spanner:v1/PartitionReadRequest/columns/column": column +"/spanner:v1/PartitionReadRequest/index": index +"/spanner:v1/PartitionReadRequest/keySet": key_set +"/spanner:v1/PartitionReadRequest/partitionOptions": partition_options +"/spanner:v1/PartitionReadRequest/table": table +"/spanner:v1/PartitionReadRequest/transaction": transaction +"/spanner:v1/PartitionResponse": partition_response +"/spanner:v1/PartitionResponse/partitions": partitions +"/spanner:v1/PartitionResponse/partitions/partition": partition +"/spanner:v1/PartitionResponse/transaction": transaction "/spanner:v1/PlanNode": plan_node "/spanner:v1/PlanNode/childLinks": child_links "/spanner:v1/PlanNode/childLinks/child_link": child_link @@ -63740,6 +63825,7 @@ "/spanner:v1/ReadRequest/index": index "/spanner:v1/ReadRequest/keySet": key_set "/spanner:v1/ReadRequest/limit": limit +"/spanner:v1/ReadRequest/partitionToken": partition_token "/spanner:v1/ReadRequest/resumeToken": resume_token "/spanner:v1/ReadRequest/table": table "/spanner:v1/ReadRequest/transaction": transaction @@ -63894,6 +63980,10 @@ "/spanner:v1/spanner.projects.instances.databases.sessions.list/filter": filter "/spanner:v1/spanner.projects.instances.databases.sessions.list/pageSize": page_size "/spanner:v1/spanner.projects.instances.databases.sessions.list/pageToken": page_token +"/spanner:v1/spanner.projects.instances.databases.sessions.partitionQuery": partition_session_query +"/spanner:v1/spanner.projects.instances.databases.sessions.partitionQuery/session": session +"/spanner:v1/spanner.projects.instances.databases.sessions.partitionRead": partition_session_read +"/spanner:v1/spanner.projects.instances.databases.sessions.partitionRead/session": session "/spanner:v1/spanner.projects.instances.databases.sessions.read": read_session "/spanner:v1/spanner.projects.instances.databases.sessions.read/session": session "/spanner:v1/spanner.projects.instances.databases.sessions.rollback": rollback_session diff --git a/generated/google/apis/cloudresourcemanager_v1.rb b/generated/google/apis/cloudresourcemanager_v1.rb index 589921fdf..07eef69c9 100644 --- a/generated/google/apis/cloudresourcemanager_v1.rb +++ b/generated/google/apis/cloudresourcemanager_v1.rb @@ -18,7 +18,7 @@ require 'google/apis/cloudresourcemanager_v1/representations.rb' module Google module Apis - # Google Cloud Resource Manager API + # Cloud Resource Manager API # # The Google Cloud Resource Manager API provides methods for creating, reading, # and updating project metadata. @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/resource-manager module CloudresourcemanagerV1 VERSION = 'V1' - REVISION = '20180214' + REVISION = '20180219' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/cloudresourcemanager_v1/service.rb b/generated/google/apis/cloudresourcemanager_v1/service.rb index a9be68489..25ea13f32 100644 --- a/generated/google/apis/cloudresourcemanager_v1/service.rb +++ b/generated/google/apis/cloudresourcemanager_v1/service.rb @@ -20,7 +20,7 @@ require 'google/apis/errors' module Google module Apis module CloudresourcemanagerV1 - # Google Cloud Resource Manager API + # Cloud Resource Manager API # # The Google Cloud Resource Manager API provides methods for creating, reading, # and updating project metadata. diff --git a/generated/google/apis/cloudresourcemanager_v1beta1.rb b/generated/google/apis/cloudresourcemanager_v1beta1.rb index 65f73a664..a113d58a8 100644 --- a/generated/google/apis/cloudresourcemanager_v1beta1.rb +++ b/generated/google/apis/cloudresourcemanager_v1beta1.rb @@ -18,7 +18,7 @@ require 'google/apis/cloudresourcemanager_v1beta1/representations.rb' module Google module Apis - # Google Cloud Resource Manager API + # Cloud Resource Manager API # # The Google Cloud Resource Manager API provides methods for creating, reading, # and updating project metadata. @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/resource-manager module CloudresourcemanagerV1beta1 VERSION = 'V1beta1' - REVISION = '20180214' + REVISION = '20180219' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/cloudresourcemanager_v1beta1/service.rb b/generated/google/apis/cloudresourcemanager_v1beta1/service.rb index 9b831c4bc..ff641a942 100644 --- a/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +++ b/generated/google/apis/cloudresourcemanager_v1beta1/service.rb @@ -20,7 +20,7 @@ require 'google/apis/errors' module Google module Apis module CloudresourcemanagerV1beta1 - # Google Cloud Resource Manager API + # Cloud Resource Manager API # # The Google Cloud Resource Manager API provides methods for creating, reading, # and updating project metadata. diff --git a/generated/google/apis/cloudresourcemanager_v2beta1.rb b/generated/google/apis/cloudresourcemanager_v2beta1.rb index 29e7b4e87..8265be253 100644 --- a/generated/google/apis/cloudresourcemanager_v2beta1.rb +++ b/generated/google/apis/cloudresourcemanager_v2beta1.rb @@ -18,7 +18,7 @@ require 'google/apis/cloudresourcemanager_v2beta1/representations.rb' module Google module Apis - # Google Cloud Resource Manager API + # Cloud Resource Manager API # # The Google Cloud Resource Manager API provides methods for creating, reading, # and updating project metadata. @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/resource-manager module CloudresourcemanagerV2beta1 VERSION = 'V2beta1' - REVISION = '20180122' + REVISION = '20180219' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/cloudresourcemanager_v2beta1/service.rb b/generated/google/apis/cloudresourcemanager_v2beta1/service.rb index 8a6f4d866..f88cd3d50 100644 --- a/generated/google/apis/cloudresourcemanager_v2beta1/service.rb +++ b/generated/google/apis/cloudresourcemanager_v2beta1/service.rb @@ -20,7 +20,7 @@ require 'google/apis/errors' module Google module Apis module CloudresourcemanagerV2beta1 - # Google Cloud Resource Manager API + # Cloud Resource Manager API # # The Google Cloud Resource Manager API provides methods for creating, reading, # and updating project metadata. diff --git a/generated/google/apis/dialogflow_v2beta1.rb b/generated/google/apis/dialogflow_v2beta1.rb index 0dd7f3a50..000434ab7 100644 --- a/generated/google/apis/dialogflow_v2beta1.rb +++ b/generated/google/apis/dialogflow_v2beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/dialogflow-enterprise/ module DialogflowV2beta1 VERSION = 'V2beta1' - REVISION = '20180212' + REVISION = '20180220' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/dialogflow_v2beta1/classes.rb b/generated/google/apis/dialogflow_v2beta1/classes.rb index c0541c488..f4ac47523 100644 --- a/generated/google/apis/dialogflow_v2beta1/classes.rb +++ b/generated/google/apis/dialogflow_v2beta1/classes.rb @@ -73,8 +73,13 @@ module Google attr_accessor :lifespan_count # Required. The unique identifier of the context. Format: - # `projects//agent/sessions//contexts/`. - # Note: The Context ID is always converted to lowercase. + # `projects//agent/sessions//contexts/`, + # or + # `projects//agent/runtimes//sessions//contexts/`. + # Note: Runtimes are under construction and will be available soon. + # The Context ID is always converted to lowercase. + # If is not specified, we assume default 'sandbox' runtime. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -309,7 +314,7 @@ module Google attr_accessor :messages # Optional. Indicates whether Machine Learning is disabled for the intent. - # Note: If `ml_diabled` setting is set to false, then this intent is not + # Note: If `ml_diabled` setting is set to true, then this intent is not # taken into account during inference in `ML ONLY` match mode. Also, # auto-markup in the UI is turned off. # Corresponds to the JSON property `mlDisabled` @@ -1793,8 +1798,13 @@ module Google attr_accessor :lifespan_count # Required. The unique identifier of the context. Format: - # `projects//agent/sessions//contexts/`. - # Note: The Context ID is always converted to lowercase. + # `projects//agent/sessions//contexts/`, + # or + # `projects//agent/runtimes//sessions//contexts/`. + # Note: Runtimes are under construction and will be available soon. + # The Context ID is always converted to lowercase. + # If is not specified, we assume default 'sandbox' runtime. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -3597,7 +3607,11 @@ module Google # Required. The unique identifier of this session entity type. Format: # `projects//agent/sessions//entityTypes/`. + # Display Name>`, or + # `projects//agent/runtimes/sessions//entityTypes/`. + # Note: Runtimes are under construction and will be available soon. + # If is not specified, we assume default 'sandbox' runtime. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name diff --git a/generated/google/apis/dialogflow_v2beta1/service.rb b/generated/google/apis/dialogflow_v2beta1/service.rb index 46255f98b..011050944 100644 --- a/generated/google/apis/dialogflow_v2beta1/service.rb +++ b/generated/google/apis/dialogflow_v2beta1/service.rb @@ -940,7 +940,468 @@ module Google # Deletes all active contexts in the specified session. # @param [String] parent # Required. The name of the session to delete all contexts from. Format: - # `projects//agent/sessions/`. + # `projects//agent/sessions/` or `projects//agent/runtimes//sessions/`. Note: Runtimes are + # under construction and will be available soon. If 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::DialogflowV2beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2beta1::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, 'v2beta1/{+parent}/contexts', options) + command.response_representation = Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::DialogflowV2beta1::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//agent/sessions/`, or + # `projects//agent/runtimes//sessions/`. + # Note: Runtimes are under construction and will be available soon. + # If 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::DialogflowV2beta1::GoogleCloudDialogflowV2beta1DetectIntentRequest] google_cloud_dialogflow_v2beta1_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::DialogflowV2beta1::GoogleCloudDialogflowV2beta1DetectIntentResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1DetectIntentResponse] + # + # @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_v2beta1_detect_intent_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2beta1/{+session}:detectIntent', options) + command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1DetectIntentRequest::Representation + command.request_object = google_cloud_dialogflow_v2beta1_detect_intent_request_object + command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1DetectIntentResponse::Representation + command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1DetectIntentResponse + 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//agent/sessions/` or + # `projects//agent/runtimes//sessions/`. + # Note: Runtimes are under construction and will be available soon. + # If is not specified, we assume default 'sandbox' runtime. + # @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Context] google_cloud_dialogflow_v2beta1_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::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Context] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Context] + # + # @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_v2beta1_context_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2beta1/{+parent}/contexts', options) + command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Context::Representation + command.request_object = google_cloud_dialogflow_v2beta1_context_object + command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Context::Representation + command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Context + 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//agent/sessions//contexts/` + # or `projects//agent/runtimes//sessions//contexts/`. Note: Runtimes are under construction and will + # be available soon. If 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::DialogflowV2beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2beta1::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, 'v2beta1/{+name}', options) + command.response_representation = Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::DialogflowV2beta1::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//agent/sessions//contexts/` + # or `projects//agent/runtimes//sessions//contexts/`. Note: Runtimes are under construction and will + # be available soon. If 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::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Context] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Context] + # + # @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, 'v2beta1/{+name}', options) + command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Context::Representation + command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Context + 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//agent/sessions/` or + # `projects//agent/runtimes//sessions/`. + # Note: Runtimes are under construction and will be available soon. + # If 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::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListContextsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListContextsResponse] + # + # @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, 'v2beta1/{+parent}/contexts', options) + command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListContextsResponse::Representation + command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListContextsResponse + 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//agent/sessions//contexts/`, + # or + # `projects//agent/runtimes//sessions//contexts/`. + # Note: Runtimes are under construction and will be available soon. + # The Context ID is always converted to lowercase. + # If is not specified, we assume default 'sandbox' runtime. + # @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Context] google_cloud_dialogflow_v2beta1_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::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Context] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Context] + # + # @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_v2beta1_context_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v2beta1/{+name}', options) + command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Context::Representation + command.request_object = google_cloud_dialogflow_v2beta1_context_object + command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Context::Representation + command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Context + 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//agent/sessions/` or + # `projects//agent/runtimes//sessions/`. + # Note: Runtimes are under construction and will be available soon. + # If is not specified, we assume default 'sandbox' runtime. + # @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SessionEntityType] google_cloud_dialogflow_v2beta1_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::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SessionEntityType] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SessionEntityType] + # + # @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_v2beta1_session_entity_type_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2beta1/{+parent}/entityTypes', options) + command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SessionEntityType::Representation + command.request_object = google_cloud_dialogflow_v2beta1_session_entity_type_object + command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SessionEntityType::Representation + command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SessionEntityType + 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//agent/sessions//entityTypes/` or `projects//agent/runtimes//sessions//entityTypes/`. Note: + # Runtimes are under construction and will be available soon. If + # 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::DialogflowV2beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2beta1::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, 'v2beta1/{+name}', options) + command.response_representation = Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::DialogflowV2beta1::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//agent/sessions//entityTypes/` or `projects//agent/runtimes//sessions//entityTypes/`. Note: + # Runtimes are under construction and will be available soon. If + # 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::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SessionEntityType] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SessionEntityType] + # + # @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, 'v2beta1/{+name}', options) + command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SessionEntityType::Representation + command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SessionEntityType + 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//agent/sessions/` or + # `projects//agent/runtimes//sessions/`. + # Note: Runtimes are under construction and will be available soon. + # If 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::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse] + # + # @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, 'v2beta1/{+parent}/entityTypes', options) + command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse::Representation + command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse + 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//agent/sessions//entityTypes/`, or + # `projects//agent/runtimes/sessions//entityTypes/`. + # Note: Runtimes are under construction and will be available soon. + # If is not specified, we assume default 'sandbox' runtime. + # @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SessionEntityType] google_cloud_dialogflow_v2beta1_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::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SessionEntityType] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SessionEntityType] + # + # @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_v2beta1_session_entity_type_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v2beta1/{+name}', options) + command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SessionEntityType::Representation + command.request_object = google_cloud_dialogflow_v2beta1_session_entity_type_object + command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SessionEntityType::Representation + command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SessionEntityType + 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//agent/sessions/` or `projects//agent/runtimes//sessions/`. Note: Runtimes are + # under construction and will be available soon. If 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 @@ -974,7 +1435,10 @@ module Google # results of future queries. # @param [String] session # Required. The name of the session this query is sent to. Format: - # `projects//agent/sessions/`. + # `projects//agent/sessions/`, or + # `projects//agent/runtimes//sessions/`. + # Note: Runtimes are under construction and will be available soon. + # If 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. @@ -1011,7 +1475,10 @@ module Google # Creates a context. # @param [String] parent # Required. The session to create a context for. - # Format: `projects//agent/sessions/`. + # Format: `projects//agent/sessions/` or + # `projects//agent/runtimes//sessions/`. + # Note: Runtimes are under construction and will be available soon. + # If is not specified, we assume default 'sandbox' runtime. # @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Context] google_cloud_dialogflow_v2beta1_context_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -1045,7 +1512,11 @@ module Google # Deletes the specified context. # @param [String] name # Required. The name of the context to delete. Format: - # `projects//agent/sessions//contexts/`. + # `projects//agent/sessions//contexts/` + # or `projects//agent/runtimes//sessions//contexts/`. Note: Runtimes are under construction and will + # be available soon. If 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 @@ -1076,7 +1547,11 @@ module Google # Retrieves the specified context. # @param [String] name # Required. The name of the context. Format: - # `projects//agent/sessions//contexts/`. + # `projects//agent/sessions//contexts/` + # or `projects//agent/runtimes//sessions//contexts/`. Note: Runtimes are under construction and will + # be available soon. If 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 @@ -1107,7 +1582,10 @@ module Google # Returns the list of all contexts in the specified session. # @param [String] parent # Required. The session to list all contexts from. - # Format: `projects//agent/sessions/`. + # Format: `projects//agent/sessions/` or + # `projects//agent/runtimes//sessions/`. + # Note: Runtimes are under construction and will be available soon. + # If 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. @@ -1145,8 +1623,13 @@ module Google # Updates the specified context. # @param [String] name # Required. The unique identifier of the context. Format: - # `projects//agent/sessions//contexts/`. - # Note: The Context ID is always converted to lowercase. + # `projects//agent/sessions//contexts/`, + # or + # `projects//agent/runtimes//sessions//contexts/`. + # Note: Runtimes are under construction and will be available soon. + # The Context ID is always converted to lowercase. + # If is not specified, we assume default 'sandbox' runtime. # @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Context] google_cloud_dialogflow_v2beta1_context_object # @param [String] update_mask # Optional. The mask to control which fields get updated. @@ -1183,7 +1666,10 @@ module Google # Creates a session entity type. # @param [String] parent # Required. The session to create a session entity type for. - # Format: `projects//agent/sessions/`. + # Format: `projects//agent/sessions/` or + # `projects//agent/runtimes//sessions/`. + # Note: Runtimes are under construction and will be available soon. + # If is not specified, we assume default 'sandbox' runtime. # @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SessionEntityType] google_cloud_dialogflow_v2beta1_session_entity_type_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -1218,7 +1704,10 @@ module Google # @param [String] name # Required. The name of the entity type to delete. Format: # `projects//agent/sessions//entityTypes/`. + # Display Name>` or `projects//agent/runtimes//sessions//entityTypes/`. Note: + # Runtimes are under construction and will be available soon. If + # 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 @@ -1250,7 +1739,10 @@ module Google # @param [String] name # Required. The name of the session entity type. Format: # `projects//agent/sessions//entityTypes/`. + # Display Name>` or `projects//agent/runtimes//sessions//entityTypes/`. Note: + # Runtimes are under construction and will be available soon. If + # 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 @@ -1281,7 +1773,10 @@ module Google # 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//agent/sessions/`. + # Format: `projects//agent/sessions/` or + # `projects//agent/runtimes//sessions/`. + # Note: Runtimes are under construction and will be available soon. + # If 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. @@ -1320,7 +1815,11 @@ module Google # @param [String] name # Required. The unique identifier of this session entity type. Format: # `projects//agent/sessions//entityTypes/`. + # Display Name>`, or + # `projects//agent/runtimes/sessions//entityTypes/`. + # Note: Runtimes are under construction and will be available soon. + # If is not specified, we assume default 'sandbox' runtime. # @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SessionEntityType] google_cloud_dialogflow_v2beta1_session_entity_type_object # @param [String] update_mask # Optional. The mask to control which fields get updated. diff --git a/generated/google/apis/dlp_v2beta1.rb b/generated/google/apis/dlp_v2beta1.rb index e65161dd2..4063b0c17 100644 --- a/generated/google/apis/dlp_v2beta1.rb +++ b/generated/google/apis/dlp_v2beta1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/dlp/docs/ module DlpV2beta1 VERSION = 'V2beta1' - REVISION = '20180130' + REVISION = '20180220' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/dlp_v2beta1/classes.rb b/generated/google/apis/dlp_v2beta1/classes.rb index 7e8677156..640a5e4a2 100644 --- a/generated/google/apis/dlp_v2beta1/classes.rb +++ b/generated/google/apis/dlp_v2beta1/classes.rb @@ -220,6 +220,37 @@ module Google end end + # LINT.IfChange + # Row key for identifying a record in BigQuery table. + class GooglePrivacyDlpV2beta1BigQueryKey + include Google::Apis::Core::Hashable + + # Absolute number of the row from the beginning of the table at the time + # of scanning. + # Corresponds to the JSON property `rowNumber` + # @return [Fixnum] + attr_accessor :row_number + + # Message defining the location of a BigQuery table. A table is uniquely + # identified by its project_id, dataset_id, and table_name. Within a query + # a table is often referenced with a string in the format of: + # `:.` or + # `..`. + # Corresponds to the JSON property `tableReference` + # @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1BigQueryTable] + attr_accessor :table_reference + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @row_number = args[:row_number] if args.key?(:row_number) + @table_reference = args[:table_reference] if args.key?(:table_reference) + end + end + # Options defining BigQuery table and row identifiers. class GooglePrivacyDlpV2beta1BigQueryOptions include Google::Apis::Core::Hashable @@ -2876,6 +2907,12 @@ module Google class GooglePrivacyDlpV2beta1RecordKey include Google::Apis::Core::Hashable + # LINT.IfChange + # Row key for identifying a record in BigQuery table. + # Corresponds to the JSON property `bigQueryKey` + # @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1BigQueryKey] + attr_accessor :big_query_key + # Record key for a finding in a Cloud Storage file. # Corresponds to the JSON property `cloudStorageKey` # @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1CloudStorageKey] @@ -2892,6 +2929,7 @@ module Google # Update properties of this object def update!(**args) + @big_query_key = args[:big_query_key] if args.key?(:big_query_key) @cloud_storage_key = args[:cloud_storage_key] if args.key?(:cloud_storage_key) @datastore_key = args[:datastore_key] if args.key?(:datastore_key) end diff --git a/generated/google/apis/dlp_v2beta1/representations.rb b/generated/google/apis/dlp_v2beta1/representations.rb index a24509641..b8cee239f 100644 --- a/generated/google/apis/dlp_v2beta1/representations.rb +++ b/generated/google/apis/dlp_v2beta1/representations.rb @@ -52,6 +52,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GooglePrivacyDlpV2beta1BigQueryKey + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GooglePrivacyDlpV2beta1BigQueryOptions class Representation < Google::Apis::Core::JsonRepresentation; end @@ -767,6 +773,15 @@ module Google end end + class GooglePrivacyDlpV2beta1BigQueryKey + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :row_number, :numeric_string => true, as: 'rowNumber' + property :table_reference, as: 'tableReference', class: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1BigQueryTable, decorator: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1BigQueryTable::Representation + + end + end + class GooglePrivacyDlpV2beta1BigQueryOptions # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1585,6 +1600,8 @@ module Google class GooglePrivacyDlpV2beta1RecordKey # @private class Representation < Google::Apis::Core::JsonRepresentation + property :big_query_key, as: 'bigQueryKey', class: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1BigQueryKey, decorator: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1BigQueryKey::Representation + property :cloud_storage_key, as: 'cloudStorageKey', class: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1CloudStorageKey, decorator: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1CloudStorageKey::Representation property :datastore_key, as: 'datastoreKey', class: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1DatastoreKey, decorator: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1DatastoreKey::Representation diff --git a/generated/google/apis/dlp_v2beta2.rb b/generated/google/apis/dlp_v2beta2.rb index c3aece415..8cadaf92f 100644 --- a/generated/google/apis/dlp_v2beta2.rb +++ b/generated/google/apis/dlp_v2beta2.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/dlp/docs/ module DlpV2beta2 VERSION = 'V2beta2' - REVISION = '20180213' + REVISION = '20180220' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/dlp_v2beta2/classes.rb b/generated/google/apis/dlp_v2beta2/classes.rb index 6d7d4f5e2..71d531c2c 100644 --- a/generated/google/apis/dlp_v2beta2/classes.rb +++ b/generated/google/apis/dlp_v2beta2/classes.rb @@ -1739,6 +1739,36 @@ module Google end end + # Row key for identifying a record in BigQuery table. + class GooglePrivacyDlpV2beta2BigQueryKey + include Google::Apis::Core::Hashable + + # Absolute number of the row from the beginning of the table at the time + # of scanning. + # Corresponds to the JSON property `rowNumber` + # @return [Fixnum] + attr_accessor :row_number + + # Message defining the location of a BigQuery table. A table is uniquely + # identified by its project_id, dataset_id, and table_name. Within a query + # a table is often referenced with a string in the format of: + # `:.` or + # `..`. + # Corresponds to the JSON property `tableReference` + # @return [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2BigQueryTable] + attr_accessor :table_reference + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @row_number = args[:row_number] if args.key?(:row_number) + @table_reference = args[:table_reference] if args.key?(:table_reference) + end + end + # Options defining BigQuery table and row identifiers. class GooglePrivacyDlpV2beta2BigQueryOptions include Google::Apis::Core::Hashable @@ -4949,6 +4979,11 @@ module Google class GooglePrivacyDlpV2beta2RecordKey include Google::Apis::Core::Hashable + # Row key for identifying a record in BigQuery table. + # Corresponds to the JSON property `bigQueryKey` + # @return [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2BigQueryKey] + attr_accessor :big_query_key + # Record key for a finding in a Cloud Storage file. # Corresponds to the JSON property `cloudStorageKey` # @return [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2CloudStorageKey] @@ -4965,6 +5000,7 @@ module Google # Update properties of this object def update!(**args) + @big_query_key = args[:big_query_key] if args.key?(:big_query_key) @cloud_storage_key = args[:cloud_storage_key] if args.key?(:cloud_storage_key) @datastore_key = args[:datastore_key] if args.key?(:datastore_key) end diff --git a/generated/google/apis/dlp_v2beta2/representations.rb b/generated/google/apis/dlp_v2beta2/representations.rb index 665b9f85c..4d3d576e9 100644 --- a/generated/google/apis/dlp_v2beta2/representations.rb +++ b/generated/google/apis/dlp_v2beta2/representations.rb @@ -340,6 +340,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GooglePrivacyDlpV2beta2BigQueryKey + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GooglePrivacyDlpV2beta2BigQueryOptions class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1673,6 +1679,15 @@ module Google end end + class GooglePrivacyDlpV2beta2BigQueryKey + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :row_number, :numeric_string => true, as: 'rowNumber' + property :table_reference, as: 'tableReference', class: Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2BigQueryTable, decorator: Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2BigQueryTable::Representation + + end + end + class GooglePrivacyDlpV2beta2BigQueryOptions # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -2622,6 +2637,8 @@ module Google class GooglePrivacyDlpV2beta2RecordKey # @private class Representation < Google::Apis::Core::JsonRepresentation + property :big_query_key, as: 'bigQueryKey', class: Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2BigQueryKey, decorator: Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2BigQueryKey::Representation + property :cloud_storage_key, as: 'cloudStorageKey', class: Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2CloudStorageKey, decorator: Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2CloudStorageKey::Representation property :datastore_key, as: 'datastoreKey', class: Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DatastoreKey, decorator: Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DatastoreKey::Representation diff --git a/generated/google/apis/poly_v1.rb b/generated/google/apis/poly_v1.rb index 510fb7d0b..da94213d5 100644 --- a/generated/google/apis/poly_v1.rb +++ b/generated/google/apis/poly_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/poly/ module PolyV1 VERSION = 'V1' - REVISION = '20180129' + REVISION = '20180217' end end end diff --git a/generated/google/apis/poly_v1/classes.rb b/generated/google/apis/poly_v1/classes.rb index e63fe8c69..90e7828ba 100644 --- a/generated/google/apis/poly_v1/classes.rb +++ b/generated/google/apis/poly_v1/classes.rb @@ -129,6 +129,43 @@ module Google end end + # A message generated by the asset import process. + class AssetImportMessage + include Google::Apis::Core::Hashable + + # The code associated with this message. + # Corresponds to the JSON property `code` + # @return [String] + attr_accessor :code + + # An optional file path. Only present for those error codes that specify it. + # Corresponds to the JSON property `filePath` + # @return [String] + attr_accessor :file_path + + # A message resulting from reading an image file. + # Corresponds to the JSON property `imageError` + # @return [Google::Apis::PolyV1::ImageError] + attr_accessor :image_error + + # Details of an error resulting from parsing an OBJ file + # Corresponds to the JSON property `objParseError` + # @return [Google::Apis::PolyV1::ObjParseError] + attr_accessor :obj_parse_error + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + @file_path = args[:file_path] if args.key?(:file_path) + @image_error = args[:image_error] if args.key?(:image_error) + @obj_parse_error = args[:obj_parse_error] if args.key?(:obj_parse_error) + end + end + # Represents a file in Poly, which can be a root, # resource, or thumbnail file. class File @@ -239,6 +276,31 @@ module Google end end + # A message resulting from reading an image file. + class ImageError + include Google::Apis::Core::Hashable + + # The type of image error encountered. Optional for older image errors. + # Corresponds to the JSON property `code` + # @return [String] + attr_accessor :code + + # The file path in the import of the image that was rejected. + # Corresponds to the JSON property `filePath` + # @return [String] + attr_accessor :file_path + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + @file_path = args[:file_path] if args.key?(:file_path) + end + end + # A response message from a request to list. class ListAssetsResponse include Google::Apis::Core::Hashable @@ -341,6 +403,56 @@ module Google end end + # Details of an error resulting from parsing an OBJ file + class ObjParseError + include Google::Apis::Core::Hashable + + # The type of problem found (required). + # Corresponds to the JSON property `code` + # @return [String] + attr_accessor :code + + # The ending character index at which the problem was found. + # Corresponds to the JSON property `endIndex` + # @return [Fixnum] + attr_accessor :end_index + + # The file path in which the problem was found. + # Corresponds to the JSON property `filePath` + # @return [String] + attr_accessor :file_path + + # The text of the line. Note that this may be truncated if the line was very + # long. This may not include the error if it occurs after line truncation. + # Corresponds to the JSON property `line` + # @return [String] + attr_accessor :line + + # Line number at which the problem was found. + # Corresponds to the JSON property `lineNumber` + # @return [Fixnum] + attr_accessor :line_number + + # The starting character index at which the problem was found. + # Corresponds to the JSON property `startIndex` + # @return [Fixnum] + attr_accessor :start_index + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + @end_index = args[:end_index] if args.key?(:end_index) + @file_path = args[:file_path] if args.key?(:file_path) + @line = args[:line] if args.key?(:line) + @line_number = args[:line_number] if args.key?(:line_number) + @start_index = args[:start_index] if args.key?(:start_index) + end + end + # Hints for displaying the asset, based on information available when the asset # was uploaded. class PresentationParams @@ -409,6 +521,47 @@ module Google end end + # A response message from a request to list. + # This is returned in the response field of the Operation. + class StartAssetImportResponse + include Google::Apis::Core::Hashable + + # The id of newly created asset. If this is empty when the operation is + # complete it means the import failed. Please refer to the + # asset_import_message field to understand what went wrong. + # Corresponds to the JSON property `assetId` + # @return [String] + attr_accessor :asset_id + + # The id of the asset import. + # Corresponds to the JSON property `assetImportId` + # @return [String] + attr_accessor :asset_import_id + + # The message from the asset import. This will contain any warnings + # (or - in the case of failure - errors) that occurred during import. + # Corresponds to the JSON property `assetImportMessages` + # @return [Array] + attr_accessor :asset_import_messages + + # The publish URL for the asset. + # Corresponds to the JSON property `publishUrl` + # @return [String] + attr_accessor :publish_url + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @asset_id = args[:asset_id] if args.key?(:asset_id) + @asset_import_id = args[:asset_import_id] if args.key?(:asset_import_id) + @asset_import_messages = args[:asset_import_messages] if args.key?(:asset_import_messages) + @publish_url = args[:publish_url] if args.key?(:publish_url) + end + end + # Data about the user's asset. class UserAsset include Google::Apis::Core::Hashable diff --git a/generated/google/apis/poly_v1/representations.rb b/generated/google/apis/poly_v1/representations.rb index 5202e3d67..b16f8ffb4 100644 --- a/generated/google/apis/poly_v1/representations.rb +++ b/generated/google/apis/poly_v1/representations.rb @@ -28,6 +28,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class AssetImportMessage + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class File class Representation < Google::Apis::Core::JsonRepresentation; end @@ -46,6 +52,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ImageError + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ListAssetsResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -64,6 +76,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ObjParseError + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class PresentationParams class Representation < Google::Apis::Core::JsonRepresentation; end @@ -76,6 +94,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class StartAssetImportResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class UserAsset class Representation < Google::Apis::Core::JsonRepresentation; end @@ -104,6 +128,18 @@ module Google end end + class AssetImportMessage + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + property :file_path, as: 'filePath' + property :image_error, as: 'imageError', class: Google::Apis::PolyV1::ImageError, decorator: Google::Apis::PolyV1::ImageError::Representation + + property :obj_parse_error, as: 'objParseError', class: Google::Apis::PolyV1::ObjParseError, decorator: Google::Apis::PolyV1::ObjParseError::Representation + + end + end + class File # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -134,6 +170,14 @@ module Google end end + class ImageError + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + property :file_path, as: 'filePath' + end + end + class ListAssetsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -164,6 +208,18 @@ module Google end end + class ObjParseError + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + property :end_index, as: 'endIndex' + property :file_path, as: 'filePath' + property :line, as: 'line' + property :line_number, as: 'lineNumber' + property :start_index, as: 'startIndex' + end + end + class PresentationParams # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -183,6 +239,17 @@ module Google end end + class StartAssetImportResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :asset_id, as: 'assetId' + property :asset_import_id, as: 'assetImportId' + collection :asset_import_messages, as: 'assetImportMessages', class: Google::Apis::PolyV1::AssetImportMessage, decorator: Google::Apis::PolyV1::AssetImportMessage::Representation + + property :publish_url, as: 'publishUrl' + end + end + class UserAsset # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/spanner_v1.rb b/generated/google/apis/spanner_v1.rb index e57053b24..ad4b89483 100644 --- a/generated/google/apis/spanner_v1.rb +++ b/generated/google/apis/spanner_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/spanner/ module SpannerV1 VERSION = 'V1' - REVISION = '20180207' + REVISION = '20180213' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/spanner_v1/classes.rb b/generated/google/apis/spanner_v1/classes.rb index ca5dd60d3..7df1f9af6 100644 --- a/generated/google/apis/spanner_v1/classes.rb +++ b/generated/google/apis/spanner_v1/classes.rb @@ -759,8 +759,18 @@ module Google # @return [Hash] attr_accessor :params + # If present, results will be restricted to the specified partition + # previously created using PartitionQuery(). There must be an exact + # match for the values of fields common to this message and the + # PartitionQueryRequest message used to create this partition_token. + # Corresponds to the JSON property `partitionToken` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :partition_token + # Used to control the amount of debugging information returned in - # ResultSetStats. + # ResultSetStats. If partition_token is set, query_mode can only + # be set to QueryMode.NORMAL. # Corresponds to the JSON property `queryMode` # @return [String] attr_accessor :query_mode @@ -797,6 +807,7 @@ module Google def update!(**args) @param_types = args[:param_types] if args.key?(:param_types) @params = args[:params] if args.key?(:params) + @partition_token = args[:partition_token] if args.key?(:partition_token) @query_mode = args[:query_mode] if args.key?(:query_mode) @resume_token = args[:resume_token] if args.key?(:resume_token) @sql = args[:sql] if args.key?(:sql) @@ -1510,6 +1521,216 @@ module Google end end + # Information returned for each partition returned in a + # PartitionResponse. + class Partition + include Google::Apis::Core::Hashable + + # This token can be passed to Read, StreamingRead, ExecuteSql, or + # ExecuteStreamingSql requests to restrict the results to those identified by + # this partition token. + # Corresponds to the JSON property `partitionToken` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :partition_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @partition_token = args[:partition_token] if args.key?(:partition_token) + end + end + + # Options for a PartitionQueryRequest and + # PartitionReadRequest. + class PartitionOptions + include Google::Apis::Core::Hashable + + # The desired maximum number of partitions to return. For example, this may + # be set to the number of workers available. The default for this option + # is currently 10,000. The maximum value is currently 200,000. This is only + # a hint. The actual number of partitions returned may be smaller or larger + # than this maximum count request. + # Corresponds to the JSON property `maxPartitions` + # @return [Fixnum] + attr_accessor :max_partitions + + # The desired data size for each partition generated. The default for this + # option is currently 1 GiB. This is only a hint. The actual size of each + # partition may be smaller or larger than this size request. + # Corresponds to the JSON property `partitionSizeBytes` + # @return [Fixnum] + attr_accessor :partition_size_bytes + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @max_partitions = args[:max_partitions] if args.key?(:max_partitions) + @partition_size_bytes = args[:partition_size_bytes] if args.key?(:partition_size_bytes) + end + end + + # The request for PartitionQuery + class PartitionQueryRequest + include Google::Apis::Core::Hashable + + # It is not always possible for Cloud Spanner to infer the right SQL type + # from a JSON value. For example, values of type `BYTES` and values + # of type `STRING` both appear in params as JSON strings. + # In these cases, `param_types` can be used to specify the exact + # SQL type for some or all of the SQL query parameters. See the + # definition of Type for more information + # about SQL types. + # Corresponds to the JSON property `paramTypes` + # @return [Hash] + attr_accessor :param_types + + # The SQL query string can contain parameter placeholders. A parameter + # placeholder consists of `'@'` followed by the parameter + # name. Parameter names consist of any combination of letters, + # numbers, and underscores. + # Parameters can appear anywhere that a literal value is expected. The same + # parameter name can be used more than once, for example: + # `"WHERE id > @msg_id AND id < @msg_id + 100"` + # It is an error to execute an SQL query with unbound parameters. + # Parameter values are specified using `params`, which is a JSON + # object whose keys are parameter names, and whose values are the + # corresponding parameter values. + # Corresponds to the JSON property `params` + # @return [Hash] + attr_accessor :params + + # Options for a PartitionQueryRequest and + # PartitionReadRequest. + # Corresponds to the JSON property `partitionOptions` + # @return [Google::Apis::SpannerV1::PartitionOptions] + attr_accessor :partition_options + + # The query request to generate partitions for. The request will fail if + # the query is not root partitionable. The query plan of a root + # partitionable query has a single distributed union operator. A distributed + # union operator conceptually divides one or more tables into multiple + # splits, remotely evaluates a subquery independently on each split, and + # then unions all results. + # Corresponds to the JSON property `sql` + # @return [String] + attr_accessor :sql + + # This message is used to select the transaction in which a + # Read or + # ExecuteSql call runs. + # See TransactionOptions for more information about transactions. + # Corresponds to the JSON property `transaction` + # @return [Google::Apis::SpannerV1::TransactionSelector] + attr_accessor :transaction + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @param_types = args[:param_types] if args.key?(:param_types) + @params = args[:params] if args.key?(:params) + @partition_options = args[:partition_options] if args.key?(:partition_options) + @sql = args[:sql] if args.key?(:sql) + @transaction = args[:transaction] if args.key?(:transaction) + end + end + + # The request for PartitionRead + class PartitionReadRequest + include Google::Apis::Core::Hashable + + # The columns of table to be returned for each row matching + # this request. + # Corresponds to the JSON property `columns` + # @return [Array] + attr_accessor :columns + + # If non-empty, the name of an index on table. This index is + # used instead of the table primary key when interpreting key_set + # and sorting result rows. See key_set for further information. + # Corresponds to the JSON property `index` + # @return [String] + attr_accessor :index + + # `KeySet` defines a collection of Cloud Spanner keys and/or key ranges. All + # the keys are expected to be in the same table or index. The keys need + # not be sorted in any particular way. + # If the same key is specified multiple times in the set (for example + # if two ranges, two keys, or a key and a range overlap), Cloud Spanner + # behaves as if the key were only specified once. + # Corresponds to the JSON property `keySet` + # @return [Google::Apis::SpannerV1::KeySet] + attr_accessor :key_set + + # Options for a PartitionQueryRequest and + # PartitionReadRequest. + # Corresponds to the JSON property `partitionOptions` + # @return [Google::Apis::SpannerV1::PartitionOptions] + attr_accessor :partition_options + + # Required. The name of the table in the database to be read. + # Corresponds to the JSON property `table` + # @return [String] + attr_accessor :table + + # This message is used to select the transaction in which a + # Read or + # ExecuteSql call runs. + # See TransactionOptions for more information about transactions. + # Corresponds to the JSON property `transaction` + # @return [Google::Apis::SpannerV1::TransactionSelector] + attr_accessor :transaction + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @columns = args[:columns] if args.key?(:columns) + @index = args[:index] if args.key?(:index) + @key_set = args[:key_set] if args.key?(:key_set) + @partition_options = args[:partition_options] if args.key?(:partition_options) + @table = args[:table] if args.key?(:table) + @transaction = args[:transaction] if args.key?(:transaction) + end + end + + # The response for PartitionQuery + # or PartitionRead + class PartitionResponse + include Google::Apis::Core::Hashable + + # Partitions created by this request. + # Corresponds to the JSON property `partitions` + # @return [Array] + attr_accessor :partitions + + # A transaction. + # Corresponds to the JSON property `transaction` + # @return [Google::Apis::SpannerV1::Transaction] + attr_accessor :transaction + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @partitions = args[:partitions] if args.key?(:partitions) + @transaction = args[:transaction] if args.key?(:transaction) + end + end + # Node information for nodes appearing in a QueryPlan.plan_nodes. class PlanNode include Google::Apis::Core::Hashable @@ -1781,11 +2002,21 @@ module Google attr_accessor :key_set # If greater than zero, only the first `limit` rows are yielded. If `limit` - # is zero, the default is no limit. + # is zero, the default is no limit. A limit cannot be specified if + # `partition_token` is set. # Corresponds to the JSON property `limit` # @return [Fixnum] attr_accessor :limit + # If present, results will be restricted to the specified partition + # previously created using PartitionRead(). There must be an exact + # match for the values of fields common to this message and the + # PartitionReadRequest message used to create this partition_token. + # Corresponds to the JSON property `partitionToken` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :partition_token + # If this request is resuming a previously interrupted read, # `resume_token` should be copied from the last # PartialResultSet yielded before the interruption. Doing this @@ -1820,6 +2051,7 @@ module Google @index = args[:index] if args.key?(:index) @key_set = args[:key_set] if args.key?(:key_set) @limit = args[:limit] if args.key?(:limit) + @partition_token = args[:partition_token] if args.key?(:partition_token) @resume_token = args[:resume_token] if args.key?(:resume_token) @table = args[:table] if args.key?(:table) @transaction = args[:transaction] if args.key?(:transaction) diff --git a/generated/google/apis/spanner_v1/representations.rb b/generated/google/apis/spanner_v1/representations.rb index 1bc85c315..accf43199 100644 --- a/generated/google/apis/spanner_v1/representations.rb +++ b/generated/google/apis/spanner_v1/representations.rb @@ -196,6 +196,36 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class Partition + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PartitionOptions + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PartitionQueryRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PartitionReadRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PartitionResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class PlanNode class Representation < Google::Apis::Core::JsonRepresentation; end @@ -467,6 +497,7 @@ module Google hash :param_types, as: 'paramTypes', class: Google::Apis::SpannerV1::Type, decorator: Google::Apis::SpannerV1::Type::Representation hash :params, as: 'params' + property :partition_token, :base64 => true, as: 'partitionToken' property :query_mode, as: 'queryMode' property :resume_token, :base64 => true, as: 'resumeToken' property :sql, as: 'sql' @@ -627,6 +658,60 @@ module Google end end + class Partition + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :partition_token, :base64 => true, as: 'partitionToken' + end + end + + class PartitionOptions + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :max_partitions, :numeric_string => true, as: 'maxPartitions' + property :partition_size_bytes, :numeric_string => true, as: 'partitionSizeBytes' + end + end + + class PartitionQueryRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + hash :param_types, as: 'paramTypes', class: Google::Apis::SpannerV1::Type, decorator: Google::Apis::SpannerV1::Type::Representation + + hash :params, as: 'params' + property :partition_options, as: 'partitionOptions', class: Google::Apis::SpannerV1::PartitionOptions, decorator: Google::Apis::SpannerV1::PartitionOptions::Representation + + property :sql, as: 'sql' + property :transaction, as: 'transaction', class: Google::Apis::SpannerV1::TransactionSelector, decorator: Google::Apis::SpannerV1::TransactionSelector::Representation + + end + end + + class PartitionReadRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :columns, as: 'columns' + property :index, as: 'index' + property :key_set, as: 'keySet', class: Google::Apis::SpannerV1::KeySet, decorator: Google::Apis::SpannerV1::KeySet::Representation + + property :partition_options, as: 'partitionOptions', class: Google::Apis::SpannerV1::PartitionOptions, decorator: Google::Apis::SpannerV1::PartitionOptions::Representation + + property :table, as: 'table' + property :transaction, as: 'transaction', class: Google::Apis::SpannerV1::TransactionSelector, decorator: Google::Apis::SpannerV1::TransactionSelector::Representation + + end + end + + class PartitionResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :partitions, as: 'partitions', class: Google::Apis::SpannerV1::Partition, decorator: Google::Apis::SpannerV1::Partition::Representation + + property :transaction, as: 'transaction', class: Google::Apis::SpannerV1::Transaction, decorator: Google::Apis::SpannerV1::Transaction::Representation + + end + end + class PlanNode # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -680,6 +765,7 @@ module Google property :key_set, as: 'keySet', class: Google::Apis::SpannerV1::KeySet, decorator: Google::Apis::SpannerV1::KeySet::Representation property :limit, :numeric_string => true, as: 'limit' + property :partition_token, :base64 => true, as: 'partitionToken' property :resume_token, :base64 => true, as: 'resumeToken' property :table, as: 'table' property :transaction, as: 'transaction', class: Google::Apis::SpannerV1::TransactionSelector, decorator: Google::Apis::SpannerV1::TransactionSelector::Representation diff --git a/generated/google/apis/spanner_v1/service.rb b/generated/google/apis/spanner_v1/service.rb index 1860e50b4..5a0befc25 100644 --- a/generated/google/apis/spanner_v1/service.rb +++ b/generated/google/apis/spanner_v1/service.rb @@ -1284,6 +1284,86 @@ module Google execute_or_queue_command(command, &block) end + # Creates a set of partition tokens that can be used to execute a query + # operation in parallel. Each of the returned partition tokens can be used + # by ExecuteStreamingSql to specify a subset + # of the query result to read. The same session and read-only transaction + # must be used by the PartitionQueryRequest used to create the + # partition tokens and the ExecuteSqlRequests that use the partition tokens. + # Partition tokens become invalid when the session used to create them + # is deleted or begins a new transaction. + # @param [String] session + # Required. The session used to create the partitions. + # @param [Google::Apis::SpannerV1::PartitionQueryRequest] partition_query_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::SpannerV1::PartitionResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SpannerV1::PartitionResponse] + # + # @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 partition_session_query(session, partition_query_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+session}:partitionQuery', options) + command.request_representation = Google::Apis::SpannerV1::PartitionQueryRequest::Representation + command.request_object = partition_query_request_object + command.response_representation = Google::Apis::SpannerV1::PartitionResponse::Representation + command.response_class = Google::Apis::SpannerV1::PartitionResponse + 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 set of partition tokens that can be used to execute a read + # operation in parallel. Each of the returned partition tokens can be used + # by StreamingRead to specify a subset of the read + # result to read. The same session and read-only transaction must be used by + # the PartitionReadRequest used to create the partition tokens and the + # ReadRequests that use the partition tokens. + # Partition tokens become invalid when the session used to create them + # is deleted or begins a new transaction. + # @param [String] session + # Required. The session used to create the partitions. + # @param [Google::Apis::SpannerV1::PartitionReadRequest] partition_read_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::SpannerV1::PartitionResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SpannerV1::PartitionResponse] + # + # @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 partition_session_read(session, partition_read_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+session}:partitionRead', options) + command.request_representation = Google::Apis::SpannerV1::PartitionReadRequest::Representation + command.request_object = partition_read_request_object + command.response_representation = Google::Apis::SpannerV1::PartitionResponse::Representation + command.response_class = Google::Apis::SpannerV1::PartitionResponse + 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 + # Reads rows from the database using key lookups and scans, as a # simple key/value style alternative to # ExecuteSql. This method cannot be used to