google-cloud-dialogflow-v2 1.11.0 → 1.12.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/dialogflow/v2/agents/client.rb +20 -3
  3. data/lib/google/cloud/dialogflow/v2/agents/operations.rb +32 -4
  4. data/lib/google/cloud/dialogflow/v2/agents/rest/operations.rb +12 -1
  5. data/lib/google/cloud/dialogflow/v2/answer_records/client.rb +20 -3
  6. data/lib/google/cloud/dialogflow/v2/contexts/client.rb +20 -3
  7. data/lib/google/cloud/dialogflow/v2/conversation_datasets/client.rb +20 -3
  8. data/lib/google/cloud/dialogflow/v2/conversation_datasets/operations.rb +32 -4
  9. data/lib/google/cloud/dialogflow/v2/conversation_datasets/rest/operations.rb +12 -1
  10. data/lib/google/cloud/dialogflow/v2/conversation_models/client.rb +20 -3
  11. data/lib/google/cloud/dialogflow/v2/conversation_models/operations.rb +32 -4
  12. data/lib/google/cloud/dialogflow/v2/conversation_models/rest/operations.rb +12 -1
  13. data/lib/google/cloud/dialogflow/v2/conversation_profiles/client.rb +20 -3
  14. data/lib/google/cloud/dialogflow/v2/conversation_profiles/operations.rb +32 -4
  15. data/lib/google/cloud/dialogflow/v2/conversation_profiles/rest/operations.rb +12 -1
  16. data/lib/google/cloud/dialogflow/v2/conversations/client.rb +20 -3
  17. data/lib/google/cloud/dialogflow/v2/documents/client.rb +20 -3
  18. data/lib/google/cloud/dialogflow/v2/documents/operations.rb +32 -4
  19. data/lib/google/cloud/dialogflow/v2/documents/rest/operations.rb +12 -1
  20. data/lib/google/cloud/dialogflow/v2/encryption_spec_service/client.rb +20 -3
  21. data/lib/google/cloud/dialogflow/v2/encryption_spec_service/operations.rb +32 -4
  22. data/lib/google/cloud/dialogflow/v2/encryption_spec_service/rest/operations.rb +12 -1
  23. data/lib/google/cloud/dialogflow/v2/entity_types/client.rb +20 -3
  24. data/lib/google/cloud/dialogflow/v2/entity_types/operations.rb +32 -4
  25. data/lib/google/cloud/dialogflow/v2/entity_types/rest/operations.rb +12 -1
  26. data/lib/google/cloud/dialogflow/v2/environments/client.rb +20 -3
  27. data/lib/google/cloud/dialogflow/v2/fulfillments/client.rb +20 -3
  28. data/lib/google/cloud/dialogflow/v2/generators/client.rb +20 -3
  29. data/lib/google/cloud/dialogflow/v2/intents/client.rb +20 -3
  30. data/lib/google/cloud/dialogflow/v2/intents/operations.rb +32 -4
  31. data/lib/google/cloud/dialogflow/v2/intents/rest/operations.rb +12 -1
  32. data/lib/google/cloud/dialogflow/v2/knowledge_bases/client.rb +20 -3
  33. data/lib/google/cloud/dialogflow/v2/participants/client.rb +20 -3
  34. data/lib/google/cloud/dialogflow/v2/session_entity_types/client.rb +20 -3
  35. data/lib/google/cloud/dialogflow/v2/sessions/client.rb +20 -3
  36. data/lib/google/cloud/dialogflow/v2/version.rb +1 -1
  37. data/lib/google/cloud/dialogflow/v2/versions/client.rb +20 -3
  38. data/proto_docs/google/longrunning/operations.rb +18 -0
  39. metadata +1 -1
@@ -134,7 +134,7 @@ module Google
134
134
  # @param options [::Gapic::CallOptions, ::Hash]
135
135
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
136
136
  #
137
- # @overload list_operations(name: nil, filter: nil, page_size: nil, page_token: nil)
137
+ # @overload list_operations(name: nil, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil)
138
138
  # Pass arguments to `list_operations` via keyword arguments. Note that at
139
139
  # least one keyword argument is required. To specify no parameters, or to keep all
140
140
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -147,6 +147,17 @@ module Google
147
147
  # The standard list page size.
148
148
  # @param page_token [::String]
149
149
  # The standard list page token.
150
+ # @param return_partial_success [::Boolean]
151
+ # When set to `true`, operations that are reachable are returned as normal,
152
+ # and those that are unreachable are returned in the
153
+ # [ListOperationsResponse.unreachable] field.
154
+ #
155
+ # This can only be `true` when reading across collections e.g. when `parent`
156
+ # is set to `"projects/example/locations/-"`.
157
+ #
158
+ # This field is not by default supported and will result in an
159
+ # `UNIMPLEMENTED` error if set unless explicitly documented otherwise in
160
+ # service or product specific documentation.
150
161
  #
151
162
  # @yield [response, operation] Access the result along with the RPC operation
152
163
  # @yieldparam response [::Gapic::PagedEnumerable<::Gapic::Operation>]
@@ -631,8 +642,6 @@ module Google
631
642
  # @return [::String,nil]
632
643
  # @!attribute [rw] credentials
633
644
  # Credentials to send with calls. You may provide any of the following types:
634
- # * (`String`) The path to a service account key file in JSON format
635
- # * (`Hash`) A service account key as a Hash
636
645
  # * (`Google::Auth::Credentials`) A googleauth credentials object
637
646
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
638
647
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -641,7 +650,26 @@ module Google
641
650
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
642
651
  # * (`nil`) indicating no credentials
643
652
  #
644
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
653
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
654
+ # is deprecated. Providing an unvalidated credential configuration to
655
+ # Google APIs can compromise the security of your systems and data.
656
+ #
657
+ # @example
658
+ #
659
+ # # The recommended way to provide credentials is to use the `make_creds` method
660
+ # # on the appropriate credentials class for your environment.
661
+ #
662
+ # require "googleauth"
663
+ #
664
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
665
+ # json_key_io: ::File.open("/path/to/keyfile.json")
666
+ # )
667
+ #
668
+ # client = ::Google::Longrunning::Operations::Client.new do |config|
669
+ # config.credentials = credentials
670
+ # end
671
+ #
672
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
645
673
  # external source for authentication to Google Cloud, you must validate it before
646
674
  # providing it to a Google API client library. Providing an unvalidated credential
647
675
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -125,7 +125,7 @@ module Google
125
125
  # @param options [::Gapic::CallOptions, ::Hash]
126
126
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
127
127
  #
128
- # @overload list_operations(name: nil, filter: nil, page_size: nil, page_token: nil)
128
+ # @overload list_operations(name: nil, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil)
129
129
  # Pass arguments to `list_operations` via keyword arguments. Note that at
130
130
  # least one keyword argument is required. To specify no parameters, or to keep all
131
131
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -138,6 +138,17 @@ module Google
138
138
  # The standard list page size.
139
139
  # @param page_token [::String]
140
140
  # The standard list page token.
141
+ # @param return_partial_success [::Boolean]
142
+ # When set to `true`, operations that are reachable are returned as normal,
143
+ # and those that are unreachable are returned in the
144
+ # [ListOperationsResponse.unreachable] field.
145
+ #
146
+ # This can only be `true` when reading across collections e.g. when `parent`
147
+ # is set to `"projects/example/locations/-"`.
148
+ #
149
+ # This field is not by default supported and will result in an
150
+ # `UNIMPLEMENTED` error if set unless explicitly documented otherwise in
151
+ # service or product specific documentation.
141
152
  # @yield [result, operation] Access the result along with the TransportOperation object
142
153
  # @yieldparam result [::Gapic::Operation]
143
154
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -718,8 +718,6 @@ module Google
718
718
  # @return [::String,nil]
719
719
  # @!attribute [rw] credentials
720
720
  # Credentials to send with calls. You may provide any of the following types:
721
- # * (`String`) The path to a service account key file in JSON format
722
- # * (`Hash`) A service account key as a Hash
723
721
  # * (`Google::Auth::Credentials`) A googleauth credentials object
724
722
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
725
723
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -728,7 +726,26 @@ module Google
728
726
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
729
727
  # * (`nil`) indicating no credentials
730
728
  #
731
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
729
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
730
+ # is deprecated. Providing an unvalidated credential configuration to
731
+ # Google APIs can compromise the security of your systems and data.
732
+ #
733
+ # @example
734
+ #
735
+ # # The recommended way to provide credentials is to use the `make_creds` method
736
+ # # on the appropriate credentials class for your environment.
737
+ #
738
+ # require "googleauth"
739
+ #
740
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
741
+ # json_key_io: ::File.open("/path/to/keyfile.json")
742
+ # )
743
+ #
744
+ # client = ::Google::Cloud::Dialogflow::V2::KnowledgeBases::Client.new do |config|
745
+ # config.credentials = credentials
746
+ # end
747
+ #
748
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
732
749
  # external source for authentication to Google Cloud, you must validate it before
733
750
  # providing it to a Google API client library. Providing an unvalidated credential
734
751
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -1233,8 +1233,6 @@ module Google
1233
1233
  # @return [::String,nil]
1234
1234
  # @!attribute [rw] credentials
1235
1235
  # Credentials to send with calls. You may provide any of the following types:
1236
- # * (`String`) The path to a service account key file in JSON format
1237
- # * (`Hash`) A service account key as a Hash
1238
1236
  # * (`Google::Auth::Credentials`) A googleauth credentials object
1239
1237
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1240
1238
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -1243,7 +1241,26 @@ module Google
1243
1241
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1244
1242
  # * (`nil`) indicating no credentials
1245
1243
  #
1246
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
1244
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
1245
+ # is deprecated. Providing an unvalidated credential configuration to
1246
+ # Google APIs can compromise the security of your systems and data.
1247
+ #
1248
+ # @example
1249
+ #
1250
+ # # The recommended way to provide credentials is to use the `make_creds` method
1251
+ # # on the appropriate credentials class for your environment.
1252
+ #
1253
+ # require "googleauth"
1254
+ #
1255
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
1256
+ # json_key_io: ::File.open("/path/to/keyfile.json")
1257
+ # )
1258
+ #
1259
+ # client = ::Google::Cloud::Dialogflow::V2::Participants::Client.new do |config|
1260
+ # config.credentials = credentials
1261
+ # end
1262
+ #
1263
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
1247
1264
  # external source for authentication to Google Cloud, you must validate it before
1248
1265
  # providing it to a Google API client library. Providing an unvalidated credential
1249
1266
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -725,8 +725,6 @@ module Google
725
725
  # @return [::String,nil]
726
726
  # @!attribute [rw] credentials
727
727
  # Credentials to send with calls. You may provide any of the following types:
728
- # * (`String`) The path to a service account key file in JSON format
729
- # * (`Hash`) A service account key as a Hash
730
728
  # * (`Google::Auth::Credentials`) A googleauth credentials object
731
729
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
732
730
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -735,7 +733,26 @@ module Google
735
733
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
736
734
  # * (`nil`) indicating no credentials
737
735
  #
738
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
736
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
737
+ # is deprecated. Providing an unvalidated credential configuration to
738
+ # Google APIs can compromise the security of your systems and data.
739
+ #
740
+ # @example
741
+ #
742
+ # # The recommended way to provide credentials is to use the `make_creds` method
743
+ # # on the appropriate credentials class for your environment.
744
+ #
745
+ # require "googleauth"
746
+ #
747
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
748
+ # json_key_io: ::File.open("/path/to/keyfile.json")
749
+ # )
750
+ #
751
+ # client = ::Google::Cloud::Dialogflow::V2::SessionEntityTypes::Client.new do |config|
752
+ # config.credentials = credentials
753
+ # end
754
+ #
755
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
739
756
  # external source for authentication to Google Cloud, you must validate it before
740
757
  # providing it to a Google API client library. Providing an unvalidated credential
741
758
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -483,8 +483,6 @@ module Google
483
483
  # @return [::String,nil]
484
484
  # @!attribute [rw] credentials
485
485
  # Credentials to send with calls. You may provide any of the following types:
486
- # * (`String`) The path to a service account key file in JSON format
487
- # * (`Hash`) A service account key as a Hash
488
486
  # * (`Google::Auth::Credentials`) A googleauth credentials object
489
487
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
490
488
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -493,7 +491,26 @@ module Google
493
491
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
494
492
  # * (`nil`) indicating no credentials
495
493
  #
496
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
494
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
495
+ # is deprecated. Providing an unvalidated credential configuration to
496
+ # Google APIs can compromise the security of your systems and data.
497
+ #
498
+ # @example
499
+ #
500
+ # # The recommended way to provide credentials is to use the `make_creds` method
501
+ # # on the appropriate credentials class for your environment.
502
+ #
503
+ # require "googleauth"
504
+ #
505
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
506
+ # json_key_io: ::File.open("/path/to/keyfile.json")
507
+ # )
508
+ #
509
+ # client = ::Google::Cloud::Dialogflow::V2::Sessions::Client.new do |config|
510
+ # config.credentials = credentials
511
+ # end
512
+ #
513
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
497
514
  # external source for authentication to Google Cloud, you must validate it before
498
515
  # providing it to a Google API client library. Providing an unvalidated credential
499
516
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Dialogflow
23
23
  module V2
24
- VERSION = "1.11.0"
24
+ VERSION = "1.12.1"
25
25
  end
26
26
  end
27
27
  end
@@ -708,8 +708,6 @@ module Google
708
708
  # @return [::String,nil]
709
709
  # @!attribute [rw] credentials
710
710
  # Credentials to send with calls. You may provide any of the following types:
711
- # * (`String`) The path to a service account key file in JSON format
712
- # * (`Hash`) A service account key as a Hash
713
711
  # * (`Google::Auth::Credentials`) A googleauth credentials object
714
712
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
715
713
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -718,7 +716,26 @@ module Google
718
716
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
719
717
  # * (`nil`) indicating no credentials
720
718
  #
721
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
719
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
720
+ # is deprecated. Providing an unvalidated credential configuration to
721
+ # Google APIs can compromise the security of your systems and data.
722
+ #
723
+ # @example
724
+ #
725
+ # # The recommended way to provide credentials is to use the `make_creds` method
726
+ # # on the appropriate credentials class for your environment.
727
+ #
728
+ # require "googleauth"
729
+ #
730
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
731
+ # json_key_io: ::File.open("/path/to/keyfile.json")
732
+ # )
733
+ #
734
+ # client = ::Google::Cloud::Dialogflow::V2::Versions::Client.new do |config|
735
+ # config.credentials = credentials
736
+ # end
737
+ #
738
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
722
739
  # external source for authentication to Google Cloud, you must validate it before
723
740
  # providing it to a Google API client library. Providing an unvalidated credential
724
741
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -83,6 +83,18 @@ module Google
83
83
  # @!attribute [rw] page_token
84
84
  # @return [::String]
85
85
  # The standard list page token.
86
+ # @!attribute [rw] return_partial_success
87
+ # @return [::Boolean]
88
+ # When set to `true`, operations that are reachable are returned as normal,
89
+ # and those that are unreachable are returned in the
90
+ # [ListOperationsResponse.unreachable] field.
91
+ #
92
+ # This can only be `true` when reading across collections e.g. when `parent`
93
+ # is set to `"projects/example/locations/-"`.
94
+ #
95
+ # This field is not by default supported and will result in an
96
+ # `UNIMPLEMENTED` error if set unless explicitly documented otherwise in
97
+ # service or product specific documentation.
86
98
  class ListOperationsRequest
87
99
  include ::Google::Protobuf::MessageExts
88
100
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -96,6 +108,12 @@ module Google
96
108
  # @!attribute [rw] next_page_token
97
109
  # @return [::String]
98
110
  # The standard List next-page token.
111
+ # @!attribute [rw] unreachable
112
+ # @return [::Array<::String>]
113
+ # Unordered list. Unreachable resources. Populated when the request sets
114
+ # `ListOperationsRequest.return_partial_success` and reads across
115
+ # collections e.g. when attempting to list all resources across all supported
116
+ # locations.
99
117
  class ListOperationsResponse
100
118
  include ::Google::Protobuf::MessageExts
101
119
  extend ::Google::Protobuf::MessageExts::ClassMethods
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-dialogflow-v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.11.0
4
+ version: 1.12.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC