google-apis-dialogflow_v2 0.28.0 → 0.29.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1e8c57c39fbca8c94b1eab2e22aed5962b5f96a8b1c6508387221f79b3f84f87
4
- data.tar.gz: e4d35a42bc3332cac29e7874699c9982bbb3f14490eb3b9b9f247d6a99839562
3
+ metadata.gz: fd35cd62cc2b3ae52e25b3466158f113ba00d830674f1e7a076eba942408b4d4
4
+ data.tar.gz: 98a2801603662c99ba144a8f8b1ad850aa3c6b18da39c15f751a74b4545399ac
5
5
  SHA512:
6
- metadata.gz: 87e59fe7313d16135f38104b6d2d4f7bebcf5c3a57fb4c3c222ea06c2c3e86ce69254ae19c624b041c9ee780d948da95692ef7786db603fba673b35822c6b042
7
- data.tar.gz: 9b111cd27b0d80b1d284d95961fb982575a18688eb2ca06be70a861ce2faa809fd342f647c9ea23c6c9e8bd0a5a131e63237526063ccfa88c2d6d4b18a93f677
6
+ metadata.gz: 3f6b3f5b42a5fdab57a8f77c4d8e4d17b02746feb1242375a445214359cf56a2e6460acee78fa2e853b8caacceb073f6cf090a7aba64675db36dfd836ae66074
7
+ data.tar.gz: a1b5012f3be79e6333d32d060168e49ae425e6eaa56a76b1ebf757cda93268e503c3e2b0abab6adcbb766aba76103c9fb3d4efc256ac21ae40f469831b514404
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-dialogflow_v2
2
2
 
3
+ ### v0.29.0 (2022-01-21)
4
+
5
+ * Regenerated from discovery document revision 20220119
6
+ * Regenerated using generator version 0.4.1
7
+
3
8
  ### v0.28.0 (2022-01-07)
4
9
 
5
10
  * Regenerated from discovery document revision 20211231
@@ -476,7 +476,7 @@ module Google
476
476
  include Google::Apis::Core::Hashable
477
477
 
478
478
  # Whether to run test cases in TestCasesConfig.test_cases periodically. Default
479
- # false. If set to ture, run once a day.
479
+ # false. If set to true, run once a day.
480
480
  # Corresponds to the JSON property `enableContinuousRun`
481
481
  # @return [Boolean]
482
482
  attr_accessor :enable_continuous_run
@@ -7485,6 +7485,27 @@ module Google
7485
7485
  end
7486
7486
  end
7487
7487
 
7488
+ # Google Cloud Storage location for the inputs.
7489
+ class GoogleCloudDialogflowV2GcsSources
7490
+ include Google::Apis::Core::Hashable
7491
+
7492
+ # Required. Google Cloud Storage URIs for the inputs. A URI is of the form: gs://
7493
+ # bucket/object-prefix-or-name Whether a prefix or name is used depends on the
7494
+ # use case.
7495
+ # Corresponds to the JSON property `uris`
7496
+ # @return [Array<String>]
7497
+ attr_accessor :uris
7498
+
7499
+ def initialize(**args)
7500
+ update!(**args)
7501
+ end
7502
+
7503
+ # Update properties of this object
7504
+ def update!(**args)
7505
+ @uris = args[:uris] if args.key?(:uris)
7506
+ end
7507
+ end
7508
+
7488
7509
  # Defines the Human Agent Assist to connect to a conversation.
7489
7510
  class GoogleCloudDialogflowV2HumanAgentAssistantConfig
7490
7511
  include Google::Apis::Core::Hashable
@@ -8025,6 +8046,92 @@ module Google
8025
8046
  end
8026
8047
  end
8027
8048
 
8049
+ # The template used for importing documents.
8050
+ class GoogleCloudDialogflowV2ImportDocumentTemplate
8051
+ include Google::Apis::Core::Hashable
8052
+
8053
+ # Required. The knowledge type of document content.
8054
+ # Corresponds to the JSON property `knowledgeTypes`
8055
+ # @return [Array<String>]
8056
+ attr_accessor :knowledge_types
8057
+
8058
+ # Metadata for the document. The metadata supports arbitrary key-value pairs.
8059
+ # Suggested use cases include storing a document's title, an external URL
8060
+ # distinct from the document's content_uri, etc. The max size of a `key` or a `
8061
+ # value` of the metadata is 1024 bytes.
8062
+ # Corresponds to the JSON property `metadata`
8063
+ # @return [Hash<String,String>]
8064
+ attr_accessor :metadata
8065
+
8066
+ # Required. The MIME type of the document.
8067
+ # Corresponds to the JSON property `mimeType`
8068
+ # @return [String]
8069
+ attr_accessor :mime_type
8070
+
8071
+ def initialize(**args)
8072
+ update!(**args)
8073
+ end
8074
+
8075
+ # Update properties of this object
8076
+ def update!(**args)
8077
+ @knowledge_types = args[:knowledge_types] if args.key?(:knowledge_types)
8078
+ @metadata = args[:metadata] if args.key?(:metadata)
8079
+ @mime_type = args[:mime_type] if args.key?(:mime_type)
8080
+ end
8081
+ end
8082
+
8083
+ # Request message for Documents.ImportDocuments.
8084
+ class GoogleCloudDialogflowV2ImportDocumentsRequest
8085
+ include Google::Apis::Core::Hashable
8086
+
8087
+ # The template used for importing documents.
8088
+ # Corresponds to the JSON property `documentTemplate`
8089
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ImportDocumentTemplate]
8090
+ attr_accessor :document_template
8091
+
8092
+ # Google Cloud Storage location for the inputs.
8093
+ # Corresponds to the JSON property `gcsSource`
8094
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2GcsSources]
8095
+ attr_accessor :gcs_source
8096
+
8097
+ # Whether to import custom metadata from Google Cloud Storage. Only valid when
8098
+ # the document source is Google Cloud Storage URI.
8099
+ # Corresponds to the JSON property `importGcsCustomMetadata`
8100
+ # @return [Boolean]
8101
+ attr_accessor :import_gcs_custom_metadata
8102
+ alias_method :import_gcs_custom_metadata?, :import_gcs_custom_metadata
8103
+
8104
+ def initialize(**args)
8105
+ update!(**args)
8106
+ end
8107
+
8108
+ # Update properties of this object
8109
+ def update!(**args)
8110
+ @document_template = args[:document_template] if args.key?(:document_template)
8111
+ @gcs_source = args[:gcs_source] if args.key?(:gcs_source)
8112
+ @import_gcs_custom_metadata = args[:import_gcs_custom_metadata] if args.key?(:import_gcs_custom_metadata)
8113
+ end
8114
+ end
8115
+
8116
+ # Response message for Documents.ImportDocuments.
8117
+ class GoogleCloudDialogflowV2ImportDocumentsResponse
8118
+ include Google::Apis::Core::Hashable
8119
+
8120
+ # Includes details about skipped documents or any other warnings.
8121
+ # Corresponds to the JSON property `warnings`
8122
+ # @return [Array<Google::Apis::DialogflowV2::GoogleRpcStatus>]
8123
+ attr_accessor :warnings
8124
+
8125
+ def initialize(**args)
8126
+ update!(**args)
8127
+ end
8128
+
8129
+ # Update properties of this object
8130
+ def update!(**args)
8131
+ @warnings = args[:warnings] if args.key?(:warnings)
8132
+ end
8133
+ end
8134
+
8028
8135
  # Instructs the speech recognizer how to process the audio content.
8029
8136
  class GoogleCloudDialogflowV2InputAudioConfig
8030
8137
  include Google::Apis::Core::Hashable
@@ -9448,6 +9555,11 @@ module Google
9448
9555
  class GoogleCloudDialogflowV2KnowledgeOperationMetadata
9449
9556
  include Google::Apis::Core::Hashable
9450
9557
 
9558
+ # The name of the knowledge base interacted with during the operation.
9559
+ # Corresponds to the JSON property `knowledgeBase`
9560
+ # @return [String]
9561
+ attr_accessor :knowledge_base
9562
+
9451
9563
  # Output only. The current state of this operation.
9452
9564
  # Corresponds to the JSON property `state`
9453
9565
  # @return [String]
@@ -9459,6 +9571,7 @@ module Google
9459
9571
 
9460
9572
  # Update properties of this object
9461
9573
  def update!(**args)
9574
+ @knowledge_base = args[:knowledge_base] if args.key?(:knowledge_base)
9462
9575
  @state = args[:state] if args.key?(:state)
9463
9576
  end
9464
9577
  end
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module DialogflowV2
18
18
  # Version of the google-apis-dialogflow_v2 gem
19
- GEM_VERSION = "0.28.0"
19
+ GEM_VERSION = "0.29.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.4.0"
22
+ GENERATOR_VERSION = "0.4.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20211231"
25
+ REVISION = "20220119"
26
26
  end
27
27
  end
28
28
  end
@@ -1252,6 +1252,12 @@ module Google
1252
1252
  include Google::Apis::Core::JsonObjectSupport
1253
1253
  end
1254
1254
 
1255
+ class GoogleCloudDialogflowV2GcsSources
1256
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1257
+
1258
+ include Google::Apis::Core::JsonObjectSupport
1259
+ end
1260
+
1255
1261
  class GoogleCloudDialogflowV2HumanAgentAssistantConfig
1256
1262
  class Representation < Google::Apis::Core::JsonRepresentation; end
1257
1263
 
@@ -1354,6 +1360,24 @@ module Google
1354
1360
  include Google::Apis::Core::JsonObjectSupport
1355
1361
  end
1356
1362
 
1363
+ class GoogleCloudDialogflowV2ImportDocumentTemplate
1364
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1365
+
1366
+ include Google::Apis::Core::JsonObjectSupport
1367
+ end
1368
+
1369
+ class GoogleCloudDialogflowV2ImportDocumentsRequest
1370
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1371
+
1372
+ include Google::Apis::Core::JsonObjectSupport
1373
+ end
1374
+
1375
+ class GoogleCloudDialogflowV2ImportDocumentsResponse
1376
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1377
+
1378
+ include Google::Apis::Core::JsonObjectSupport
1379
+ end
1380
+
1357
1381
  class GoogleCloudDialogflowV2InputAudioConfig
1358
1382
  class Representation < Google::Apis::Core::JsonRepresentation; end
1359
1383
 
@@ -4477,6 +4501,13 @@ module Google
4477
4501
  end
4478
4502
  end
4479
4503
 
4504
+ class GoogleCloudDialogflowV2GcsSources
4505
+ # @private
4506
+ class Representation < Google::Apis::Core::JsonRepresentation
4507
+ collection :uris, as: 'uris'
4508
+ end
4509
+ end
4510
+
4480
4511
  class GoogleCloudDialogflowV2HumanAgentAssistantConfig
4481
4512
  # @private
4482
4513
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -4638,6 +4669,34 @@ module Google
4638
4669
  end
4639
4670
  end
4640
4671
 
4672
+ class GoogleCloudDialogflowV2ImportDocumentTemplate
4673
+ # @private
4674
+ class Representation < Google::Apis::Core::JsonRepresentation
4675
+ collection :knowledge_types, as: 'knowledgeTypes'
4676
+ hash :metadata, as: 'metadata'
4677
+ property :mime_type, as: 'mimeType'
4678
+ end
4679
+ end
4680
+
4681
+ class GoogleCloudDialogflowV2ImportDocumentsRequest
4682
+ # @private
4683
+ class Representation < Google::Apis::Core::JsonRepresentation
4684
+ property :document_template, as: 'documentTemplate', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ImportDocumentTemplate, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ImportDocumentTemplate::Representation
4685
+
4686
+ property :gcs_source, as: 'gcsSource', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2GcsSources, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2GcsSources::Representation
4687
+
4688
+ property :import_gcs_custom_metadata, as: 'importGcsCustomMetadata'
4689
+ end
4690
+ end
4691
+
4692
+ class GoogleCloudDialogflowV2ImportDocumentsResponse
4693
+ # @private
4694
+ class Representation < Google::Apis::Core::JsonRepresentation
4695
+ collection :warnings, as: 'warnings', class: Google::Apis::DialogflowV2::GoogleRpcStatus, decorator: Google::Apis::DialogflowV2::GoogleRpcStatus::Representation
4696
+
4697
+ end
4698
+ end
4699
+
4641
4700
  class GoogleCloudDialogflowV2InputAudioConfig
4642
4701
  # @private
4643
4702
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -5036,6 +5095,7 @@ module Google
5036
5095
  class GoogleCloudDialogflowV2KnowledgeOperationMetadata
5037
5096
  # @private
5038
5097
  class Representation < Google::Apis::Core::JsonRepresentation
5098
+ property :knowledge_base, as: 'knowledgeBase'
5039
5099
  property :state, as: 'state'
5040
5100
  end
5041
5101
  end
@@ -4084,6 +4084,45 @@ module Google
4084
4084
  execute_or_queue_command(command, &block)
4085
4085
  end
4086
4086
 
4087
+ # Creates documents by importing data from external sources. Dialogflow supports
4088
+ # up to 350 documents in each request. If you try to import more, Dialogflow
4089
+ # will return an error. This method is a [long-running operation](https://cloud.
4090
+ # google.com/dialogflow/cx/docs/how/long-running-operation). The returned `
4091
+ # Operation` type has the following method-specific fields: - `metadata`:
4092
+ # KnowledgeOperationMetadata - `response`: ImportDocumentsResponse
4093
+ # @param [String] parent
4094
+ # Required. The knowledge base to import documents into. Format: `projects//
4095
+ # locations//knowledgeBases/`.
4096
+ # @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ImportDocumentsRequest] google_cloud_dialogflow_v2_import_documents_request_object
4097
+ # @param [String] fields
4098
+ # Selector specifying which fields to include in a partial response.
4099
+ # @param [String] quota_user
4100
+ # Available to use for quota purposes for server-side applications. Can be any
4101
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4102
+ # @param [Google::Apis::RequestOptions] options
4103
+ # Request-specific options
4104
+ #
4105
+ # @yield [result, err] Result & error if block supplied
4106
+ # @yieldparam result [Google::Apis::DialogflowV2::GoogleLongrunningOperation] parsed result object
4107
+ # @yieldparam err [StandardError] error object if request failed
4108
+ #
4109
+ # @return [Google::Apis::DialogflowV2::GoogleLongrunningOperation]
4110
+ #
4111
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4112
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4113
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4114
+ def import_project_knowledge_basis_document(parent, google_cloud_dialogflow_v2_import_documents_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
4115
+ command = make_simple_command(:post, 'v2/{+parent}/documents:import', options)
4116
+ command.request_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ImportDocumentsRequest::Representation
4117
+ command.request_object = google_cloud_dialogflow_v2_import_documents_request_object
4118
+ command.response_representation = Google::Apis::DialogflowV2::GoogleLongrunningOperation::Representation
4119
+ command.response_class = Google::Apis::DialogflowV2::GoogleLongrunningOperation
4120
+ command.params['parent'] = parent unless parent.nil?
4121
+ command.query['fields'] = fields unless fields.nil?
4122
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4123
+ execute_or_queue_command(command, &block)
4124
+ end
4125
+
4087
4126
  # Returns the list of all documents of the knowledge base.
4088
4127
  # @param [String] parent
4089
4128
  # Required. The knowledge base to list all documents for. Format: `projects//
@@ -7897,6 +7936,45 @@ module Google
7897
7936
  execute_or_queue_command(command, &block)
7898
7937
  end
7899
7938
 
7939
+ # Creates documents by importing data from external sources. Dialogflow supports
7940
+ # up to 350 documents in each request. If you try to import more, Dialogflow
7941
+ # will return an error. This method is a [long-running operation](https://cloud.
7942
+ # google.com/dialogflow/cx/docs/how/long-running-operation). The returned `
7943
+ # Operation` type has the following method-specific fields: - `metadata`:
7944
+ # KnowledgeOperationMetadata - `response`: ImportDocumentsResponse
7945
+ # @param [String] parent
7946
+ # Required. The knowledge base to import documents into. Format: `projects//
7947
+ # locations//knowledgeBases/`.
7948
+ # @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ImportDocumentsRequest] google_cloud_dialogflow_v2_import_documents_request_object
7949
+ # @param [String] fields
7950
+ # Selector specifying which fields to include in a partial response.
7951
+ # @param [String] quota_user
7952
+ # Available to use for quota purposes for server-side applications. Can be any
7953
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
7954
+ # @param [Google::Apis::RequestOptions] options
7955
+ # Request-specific options
7956
+ #
7957
+ # @yield [result, err] Result & error if block supplied
7958
+ # @yieldparam result [Google::Apis::DialogflowV2::GoogleLongrunningOperation] parsed result object
7959
+ # @yieldparam err [StandardError] error object if request failed
7960
+ #
7961
+ # @return [Google::Apis::DialogflowV2::GoogleLongrunningOperation]
7962
+ #
7963
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
7964
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
7965
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
7966
+ def import_project_location_knowledge_basis_document(parent, google_cloud_dialogflow_v2_import_documents_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
7967
+ command = make_simple_command(:post, 'v2/{+parent}/documents:import', options)
7968
+ command.request_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ImportDocumentsRequest::Representation
7969
+ command.request_object = google_cloud_dialogflow_v2_import_documents_request_object
7970
+ command.response_representation = Google::Apis::DialogflowV2::GoogleLongrunningOperation::Representation
7971
+ command.response_class = Google::Apis::DialogflowV2::GoogleLongrunningOperation
7972
+ command.params['parent'] = parent unless parent.nil?
7973
+ command.query['fields'] = fields unless fields.nil?
7974
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
7975
+ execute_or_queue_command(command, &block)
7976
+ end
7977
+
7900
7978
  # Returns the list of all documents of the knowledge base.
7901
7979
  # @param [String] parent
7902
7980
  # Required. The knowledge base to list all documents for. Format: `projects//
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-dialogflow_v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.28.0
4
+ version: 0.29.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-10 00:00:00.000000000 Z
11
+ date: 2022-01-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-dialogflow_v2/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-dialogflow_v2/v0.28.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-dialogflow_v2/v0.29.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-dialogflow_v2
63
63
  post_install_message:
64
64
  rdoc_options: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.3.4
78
+ rubygems_version: 3.3.5
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Dialogflow API V2