google-cloud-spanner-admin-instance-v1 2.2.0 → 2.3.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 18489c4194fcfa2273d6353c35bf0eebca1d2937cba2e2a7b0da0a5365bb9a3e
4
- data.tar.gz: b72a05fc7fe949f68359467040494d51383b9c17a6c134f298085884ebedced5
3
+ metadata.gz: ef292935a88b699b97eacbceff0f7b4c563e24c917b59da0de9fcd9568c5bf0a
4
+ data.tar.gz: 59b317d338d1071b284ead4a1de20ccee5c011851ecec550b6bb0fa8fdc6ab1b
5
5
  SHA512:
6
- metadata.gz: 57dc1c15f07d95573a40f7a8227091ec4e87c9ff5eb213662fc774b755fe6c2419576b1baf98b7da3d1ba63054345c5a9452d84d8ebbbe32761f208f9fea9197
7
- data.tar.gz: 44db536abd0c174371b663cd5b0adcd4664ce3b7b950a7b92da981fd13bea0d561a1be20963cfe7371356a8c666dee99547026d7bc3fa8b828f28a30a105ec00
6
+ metadata.gz: 5ebab0e2585b4e0d0d445c5c04adf92ecd6a65318beb8bd1394feb380ee25852f6dd0ed8cea1a2b9832f4d7a49c57d74b4ac55cd0c77f695db82ab0ee75d727b
7
+ data.tar.gz: e4743e21407b77fc4efb69417a650275c918dd942434133794ea7213cfc1551fae1902a2bcf3c09999785979a6edea98cb22a06ff8590dc053b57f5891eadd63
@@ -2827,8 +2827,6 @@ module Google
2827
2827
  # @return [::String,nil]
2828
2828
  # @!attribute [rw] credentials
2829
2829
  # Credentials to send with calls. You may provide any of the following types:
2830
- # * (`String`) The path to a service account key file in JSON format
2831
- # * (`Hash`) A service account key as a Hash
2832
2830
  # * (`Google::Auth::Credentials`) A googleauth credentials object
2833
2831
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
2834
2832
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -2837,7 +2835,26 @@ module Google
2837
2835
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
2838
2836
  # * (`nil`) indicating no credentials
2839
2837
  #
2840
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
2838
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
2839
+ # is deprecated. Providing an unvalidated credential configuration to
2840
+ # Google APIs can compromise the security of your systems and data.
2841
+ #
2842
+ # @example
2843
+ #
2844
+ # # The recommended way to provide credentials is to use the `make_creds` method
2845
+ # # on the appropriate credentials class for your environment.
2846
+ #
2847
+ # require "googleauth"
2848
+ #
2849
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
2850
+ # json_key_io: ::File.open("/path/to/keyfile.json")
2851
+ # )
2852
+ #
2853
+ # client = ::Google::Cloud::Spanner::Admin::Instance::V1::InstanceAdmin::Client.new do |config|
2854
+ # config.credentials = credentials
2855
+ # end
2856
+ #
2857
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
2841
2858
  # external source for authentication to Google Cloud, you must validate it before
2842
2859
  # providing it to a Google API client library. Providing an unvalidated credential
2843
2860
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -136,7 +136,7 @@ module Google
136
136
  # @param options [::Gapic::CallOptions, ::Hash]
137
137
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
138
138
  #
139
- # @overload list_operations(name: nil, filter: nil, page_size: nil, page_token: nil)
139
+ # @overload list_operations(name: nil, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil)
140
140
  # Pass arguments to `list_operations` via keyword arguments. Note that at
141
141
  # least one keyword argument is required. To specify no parameters, or to keep all
142
142
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -149,6 +149,17 @@ module Google
149
149
  # The standard list page size.
150
150
  # @param page_token [::String]
151
151
  # The standard list page token.
152
+ # @param return_partial_success [::Boolean]
153
+ # When set to `true`, operations that are reachable are returned as normal,
154
+ # and those that are unreachable are returned in the
155
+ # [ListOperationsResponse.unreachable] field.
156
+ #
157
+ # This can only be `true` when reading across collections e.g. when `parent`
158
+ # is set to `"projects/example/locations/-"`.
159
+ #
160
+ # This field is not by default supported and will result in an
161
+ # `UNIMPLEMENTED` error if set unless explicitly documented otherwise in
162
+ # service or product specific documentation.
152
163
  #
153
164
  # @yield [response, operation] Access the result along with the RPC operation
154
165
  # @yieldparam response [::Gapic::PagedEnumerable<::Gapic::Operation>]
@@ -633,8 +644,6 @@ module Google
633
644
  # @return [::String,nil]
634
645
  # @!attribute [rw] credentials
635
646
  # Credentials to send with calls. You may provide any of the following types:
636
- # * (`String`) The path to a service account key file in JSON format
637
- # * (`Hash`) A service account key as a Hash
638
647
  # * (`Google::Auth::Credentials`) A googleauth credentials object
639
648
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
640
649
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -643,7 +652,26 @@ module Google
643
652
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
644
653
  # * (`nil`) indicating no credentials
645
654
  #
646
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
655
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
656
+ # is deprecated. Providing an unvalidated credential configuration to
657
+ # Google APIs can compromise the security of your systems and data.
658
+ #
659
+ # @example
660
+ #
661
+ # # The recommended way to provide credentials is to use the `make_creds` method
662
+ # # on the appropriate credentials class for your environment.
663
+ #
664
+ # require "googleauth"
665
+ #
666
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
667
+ # json_key_io: ::File.open("/path/to/keyfile.json")
668
+ # )
669
+ #
670
+ # client = ::Google::Longrunning::Operations::Client.new do |config|
671
+ # config.credentials = credentials
672
+ # end
673
+ #
674
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
647
675
  # external source for authentication to Google Cloud, you must validate it before
648
676
  # providing it to a Google API client library. Providing an unvalidated credential
649
677
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -127,7 +127,7 @@ module Google
127
127
  # @param options [::Gapic::CallOptions, ::Hash]
128
128
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
129
129
  #
130
- # @overload list_operations(name: nil, filter: nil, page_size: nil, page_token: nil)
130
+ # @overload list_operations(name: nil, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil)
131
131
  # Pass arguments to `list_operations` via keyword arguments. Note that at
132
132
  # least one keyword argument is required. To specify no parameters, or to keep all
133
133
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -140,6 +140,17 @@ module Google
140
140
  # The standard list page size.
141
141
  # @param page_token [::String]
142
142
  # The standard list page token.
143
+ # @param return_partial_success [::Boolean]
144
+ # When set to `true`, operations that are reachable are returned as normal,
145
+ # and those that are unreachable are returned in the
146
+ # [ListOperationsResponse.unreachable] field.
147
+ #
148
+ # This can only be `true` when reading across collections e.g. when `parent`
149
+ # is set to `"projects/example/locations/-"`.
150
+ #
151
+ # This field is not by default supported and will result in an
152
+ # `UNIMPLEMENTED` error if set unless explicitly documented otherwise in
153
+ # service or product specific documentation.
143
154
  # @yield [result, operation] Access the result along with the TransportOperation object
144
155
  # @yieldparam result [::Gapic::Operation]
145
156
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -23,7 +23,7 @@ module Google
23
23
  module Admin
24
24
  module Instance
25
25
  module V1
26
- VERSION = "2.2.0"
26
+ VERSION = "2.3.1"
27
27
  end
28
28
  end
29
29
  end
@@ -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-spanner-admin-instance-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC