google-cloud-run-v2 0.27.0 → 0.28.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: feae4580f9a75e3d915c7b9a4074e2c4e15d51a8fb70fe9bd45986ecfe01d369
4
- data.tar.gz: f139e043b00eb3e05bc0f796369f741e3d79d0a40a872c9521cc7f85f723d6c9
3
+ metadata.gz: 428b8ee4b73d2f2d561097adb9ee6a06169e59294d35a3f1abce5db53da94350
4
+ data.tar.gz: 2dcc93906e608d77dbfd517060c89ae1aad40391e182c9514441bc744b9ce417
5
5
  SHA512:
6
- metadata.gz: 7c81bae7ec2e3b3ba484aefcfaba0032c5617794324c280810e1716204fa0b2efbb237a99463cb50e3a1317d2ea476a336436eb08e93348cd456067f47eb5f52
7
- data.tar.gz: 47b60466d427337b2b29a14005ba728de120911ae333df995e23f57e03b72c633c64943fd15101834689f1cb2be0522f4b525d5e678d208ce1ca70a66e11c9b7
6
+ metadata.gz: e35c0a3b0598cdc52017f22c9c9385422ec91cc16ff0f5797027438532596dcbe069d03a6fb5500a230bef94a650917418f0044e969b734c270a44d57b0a6c35
7
+ data.tar.gz: 5786a35b93bd2a27ee39096ffdbca6095864fe9cbd9ac7fa8cf2b7a6f6f510a02ecf33ecfd3f2faf1513bfbd70f4fa1da061170b3982b9182b774254c983e502
@@ -346,8 +346,6 @@ module Google
346
346
  # @return [::String,nil]
347
347
  # @!attribute [rw] credentials
348
348
  # Credentials to send with calls. You may provide any of the following types:
349
- # * (`String`) The path to a service account key file in JSON format
350
- # * (`Hash`) A service account key as a Hash
351
349
  # * (`Google::Auth::Credentials`) A googleauth credentials object
352
350
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
353
351
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -356,7 +354,26 @@ module Google
356
354
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
357
355
  # * (`nil`) indicating no credentials
358
356
  #
359
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
357
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
358
+ # is deprecated. Providing an unvalidated credential configuration to
359
+ # Google APIs can compromise the security of your systems and data.
360
+ #
361
+ # @example
362
+ #
363
+ # # The recommended way to provide credentials is to use the `make_creds` method
364
+ # # on the appropriate credentials class for your environment.
365
+ #
366
+ # require "googleauth"
367
+ #
368
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
369
+ # json_key_io: ::File.open("/path/to/keyfile.json")
370
+ # )
371
+ #
372
+ # client = ::Google::Cloud::Run::V2::Builds::Client.new do |config|
373
+ # config.credentials = credentials
374
+ # end
375
+ #
376
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
360
377
  # external source for authentication to Google Cloud, you must validate it before
361
378
  # providing it to a Google API client library. Providing an unvalidated credential
362
379
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -644,8 +644,6 @@ module Google
644
644
  # @return [::String,nil]
645
645
  # @!attribute [rw] credentials
646
646
  # Credentials to send with calls. You may provide any of the following types:
647
- # * (`String`) The path to a service account key file in JSON format
648
- # * (`Hash`) A service account key as a Hash
649
647
  # * (`Google::Auth::Credentials`) A googleauth credentials object
650
648
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
651
649
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -654,7 +652,26 @@ module Google
654
652
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
655
653
  # * (`nil`) indicating no credentials
656
654
  #
657
- # 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::Cloud::Run::V2::Executions::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
658
675
  # external source for authentication to Google Cloud, you must validate it before
659
676
  # providing it to a Google API client library. Providing an unvalidated credential
660
677
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -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>]
@@ -639,8 +650,6 @@ module Google
639
650
  # @return [::String,nil]
640
651
  # @!attribute [rw] credentials
641
652
  # Credentials to send with calls. You may provide any of the following types:
642
- # * (`String`) The path to a service account key file in JSON format
643
- # * (`Hash`) A service account key as a Hash
644
653
  # * (`Google::Auth::Credentials`) A googleauth credentials object
645
654
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
646
655
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -649,7 +658,26 @@ module Google
649
658
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
650
659
  # * (`nil`) indicating no credentials
651
660
  #
652
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
661
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
662
+ # is deprecated. Providing an unvalidated credential configuration to
663
+ # Google APIs can compromise the security of your systems and data.
664
+ #
665
+ # @example
666
+ #
667
+ # # The recommended way to provide credentials is to use the `make_creds` method
668
+ # # on the appropriate credentials class for your environment.
669
+ #
670
+ # require "googleauth"
671
+ #
672
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
673
+ # json_key_io: ::File.open("/path/to/keyfile.json")
674
+ # )
675
+ #
676
+ # client = ::Google::Longrunning::Operations::Client.new do |config|
677
+ # config.credentials = credentials
678
+ # end
679
+ #
680
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
653
681
  # external source for authentication to Google Cloud, you must validate it before
654
682
  # providing it to a Google API client library. Providing an unvalidated credential
655
683
  # 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]
@@ -1146,8 +1146,6 @@ module Google
1146
1146
  # @return [::String,nil]
1147
1147
  # @!attribute [rw] credentials
1148
1148
  # Credentials to send with calls. You may provide any of the following types:
1149
- # * (`String`) The path to a service account key file in JSON format
1150
- # * (`Hash`) A service account key as a Hash
1151
1149
  # * (`Google::Auth::Credentials`) A googleauth credentials object
1152
1150
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1153
1151
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -1156,7 +1154,26 @@ module Google
1156
1154
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1157
1155
  # * (`nil`) indicating no credentials
1158
1156
  #
1159
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
1157
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
1158
+ # is deprecated. Providing an unvalidated credential configuration to
1159
+ # Google APIs can compromise the security of your systems and data.
1160
+ #
1161
+ # @example
1162
+ #
1163
+ # # The recommended way to provide credentials is to use the `make_creds` method
1164
+ # # on the appropriate credentials class for your environment.
1165
+ #
1166
+ # require "googleauth"
1167
+ #
1168
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
1169
+ # json_key_io: ::File.open("/path/to/keyfile.json")
1170
+ # )
1171
+ #
1172
+ # client = ::Google::Cloud::Run::V2::Jobs::Client.new do |config|
1173
+ # config.credentials = credentials
1174
+ # end
1175
+ #
1176
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
1160
1177
  # external source for authentication to Google Cloud, you must validate it before
1161
1178
  # providing it to a Google API client library. Providing an unvalidated credential
1162
1179
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -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>]
@@ -639,8 +650,6 @@ module Google
639
650
  # @return [::String,nil]
640
651
  # @!attribute [rw] credentials
641
652
  # Credentials to send with calls. You may provide any of the following types:
642
- # * (`String`) The path to a service account key file in JSON format
643
- # * (`Hash`) A service account key as a Hash
644
653
  # * (`Google::Auth::Credentials`) A googleauth credentials object
645
654
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
646
655
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -649,7 +658,26 @@ module Google
649
658
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
650
659
  # * (`nil`) indicating no credentials
651
660
  #
652
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
661
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
662
+ # is deprecated. Providing an unvalidated credential configuration to
663
+ # Google APIs can compromise the security of your systems and data.
664
+ #
665
+ # @example
666
+ #
667
+ # # The recommended way to provide credentials is to use the `make_creds` method
668
+ # # on the appropriate credentials class for your environment.
669
+ #
670
+ # require "googleauth"
671
+ #
672
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
673
+ # json_key_io: ::File.open("/path/to/keyfile.json")
674
+ # )
675
+ #
676
+ # client = ::Google::Longrunning::Operations::Client.new do |config|
677
+ # config.credentials = credentials
678
+ # end
679
+ #
680
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
653
681
  # external source for authentication to Google Cloud, you must validate it before
654
682
  # providing it to a Google API client library. Providing an unvalidated credential
655
683
  # 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]
@@ -548,8 +548,6 @@ module Google
548
548
  # @return [::String,nil]
549
549
  # @!attribute [rw] credentials
550
550
  # Credentials to send with calls. You may provide any of the following types:
551
- # * (`String`) The path to a service account key file in JSON format
552
- # * (`Hash`) A service account key as a Hash
553
551
  # * (`Google::Auth::Credentials`) A googleauth credentials object
554
552
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
555
553
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -558,7 +556,26 @@ module Google
558
556
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
559
557
  # * (`nil`) indicating no credentials
560
558
  #
561
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
559
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
560
+ # is deprecated. Providing an unvalidated credential configuration to
561
+ # Google APIs can compromise the security of your systems and data.
562
+ #
563
+ # @example
564
+ #
565
+ # # The recommended way to provide credentials is to use the `make_creds` method
566
+ # # on the appropriate credentials class for your environment.
567
+ #
568
+ # require "googleauth"
569
+ #
570
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
571
+ # json_key_io: ::File.open("/path/to/keyfile.json")
572
+ # )
573
+ #
574
+ # client = ::Google::Cloud::Run::V2::Revisions::Client.new do |config|
575
+ # config.credentials = credentials
576
+ # end
577
+ #
578
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
562
579
  # external source for authentication to Google Cloud, you must validate it before
563
580
  # providing it to a Google API client library. Providing an unvalidated credential
564
581
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -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>]
@@ -639,8 +650,6 @@ module Google
639
650
  # @return [::String,nil]
640
651
  # @!attribute [rw] credentials
641
652
  # Credentials to send with calls. You may provide any of the following types:
642
- # * (`String`) The path to a service account key file in JSON format
643
- # * (`Hash`) A service account key as a Hash
644
653
  # * (`Google::Auth::Credentials`) A googleauth credentials object
645
654
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
646
655
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -649,7 +658,26 @@ module Google
649
658
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
650
659
  # * (`nil`) indicating no credentials
651
660
  #
652
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
661
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
662
+ # is deprecated. Providing an unvalidated credential configuration to
663
+ # Google APIs can compromise the security of your systems and data.
664
+ #
665
+ # @example
666
+ #
667
+ # # The recommended way to provide credentials is to use the `make_creds` method
668
+ # # on the appropriate credentials class for your environment.
669
+ #
670
+ # require "googleauth"
671
+ #
672
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
673
+ # json_key_io: ::File.open("/path/to/keyfile.json")
674
+ # )
675
+ #
676
+ # client = ::Google::Longrunning::Operations::Client.new do |config|
677
+ # config.credentials = credentials
678
+ # end
679
+ #
680
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
653
681
  # external source for authentication to Google Cloud, you must validate it before
654
682
  # providing it to a Google API client library. Providing an unvalidated credential
655
683
  # 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]
@@ -1060,8 +1060,6 @@ module Google
1060
1060
  # @return [::String,nil]
1061
1061
  # @!attribute [rw] credentials
1062
1062
  # Credentials to send with calls. You may provide any of the following types:
1063
- # * (`String`) The path to a service account key file in JSON format
1064
- # * (`Hash`) A service account key as a Hash
1065
1063
  # * (`Google::Auth::Credentials`) A googleauth credentials object
1066
1064
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1067
1065
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -1070,7 +1068,26 @@ module Google
1070
1068
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1071
1069
  # * (`nil`) indicating no credentials
1072
1070
  #
1073
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
1071
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
1072
+ # is deprecated. Providing an unvalidated credential configuration to
1073
+ # Google APIs can compromise the security of your systems and data.
1074
+ #
1075
+ # @example
1076
+ #
1077
+ # # The recommended way to provide credentials is to use the `make_creds` method
1078
+ # # on the appropriate credentials class for your environment.
1079
+ #
1080
+ # require "googleauth"
1081
+ #
1082
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
1083
+ # json_key_io: ::File.open("/path/to/keyfile.json")
1084
+ # )
1085
+ #
1086
+ # client = ::Google::Cloud::Run::V2::Services::Client.new do |config|
1087
+ # config.credentials = credentials
1088
+ # end
1089
+ #
1090
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
1074
1091
  # external source for authentication to Google Cloud, you must validate it before
1075
1092
  # providing it to a Google API client library. Providing an unvalidated credential
1076
1093
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -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>]
@@ -639,8 +650,6 @@ module Google
639
650
  # @return [::String,nil]
640
651
  # @!attribute [rw] credentials
641
652
  # Credentials to send with calls. You may provide any of the following types:
642
- # * (`String`) The path to a service account key file in JSON format
643
- # * (`Hash`) A service account key as a Hash
644
653
  # * (`Google::Auth::Credentials`) A googleauth credentials object
645
654
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
646
655
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -649,7 +658,26 @@ module Google
649
658
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
650
659
  # * (`nil`) indicating no credentials
651
660
  #
652
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
661
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
662
+ # is deprecated. Providing an unvalidated credential configuration to
663
+ # Google APIs can compromise the security of your systems and data.
664
+ #
665
+ # @example
666
+ #
667
+ # # The recommended way to provide credentials is to use the `make_creds` method
668
+ # # on the appropriate credentials class for your environment.
669
+ #
670
+ # require "googleauth"
671
+ #
672
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
673
+ # json_key_io: ::File.open("/path/to/keyfile.json")
674
+ # )
675
+ #
676
+ # client = ::Google::Longrunning::Operations::Client.new do |config|
677
+ # config.credentials = credentials
678
+ # end
679
+ #
680
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
653
681
  # external source for authentication to Google Cloud, you must validate it before
654
682
  # providing it to a Google API client library. Providing an unvalidated credential
655
683
  # 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]
@@ -422,8 +422,6 @@ module Google
422
422
  # @return [::String,nil]
423
423
  # @!attribute [rw] credentials
424
424
  # Credentials to send with calls. You may provide any of the following types:
425
- # * (`String`) The path to a service account key file in JSON format
426
- # * (`Hash`) A service account key as a Hash
427
425
  # * (`Google::Auth::Credentials`) A googleauth credentials object
428
426
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
429
427
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -432,7 +430,26 @@ module Google
432
430
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
433
431
  # * (`nil`) indicating no credentials
434
432
  #
435
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
433
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
434
+ # is deprecated. Providing an unvalidated credential configuration to
435
+ # Google APIs can compromise the security of your systems and data.
436
+ #
437
+ # @example
438
+ #
439
+ # # The recommended way to provide credentials is to use the `make_creds` method
440
+ # # on the appropriate credentials class for your environment.
441
+ #
442
+ # require "googleauth"
443
+ #
444
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
445
+ # json_key_io: ::File.open("/path/to/keyfile.json")
446
+ # )
447
+ #
448
+ # client = ::Google::Cloud::Run::V2::Tasks::Client.new do |config|
449
+ # config.credentials = credentials
450
+ # end
451
+ #
452
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
436
453
  # external source for authentication to Google Cloud, you must validate it before
437
454
  # providing it to a Google API client library. Providing an unvalidated credential
438
455
  # 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 Run
23
23
  module V2
24
- VERSION = "0.27.0"
24
+ VERSION = "0.28.1"
25
25
  end
26
26
  end
27
27
  end
@@ -1055,8 +1055,6 @@ module Google
1055
1055
  # @return [::String,nil]
1056
1056
  # @!attribute [rw] credentials
1057
1057
  # Credentials to send with calls. You may provide any of the following types:
1058
- # * (`String`) The path to a service account key file in JSON format
1059
- # * (`Hash`) A service account key as a Hash
1060
1058
  # * (`Google::Auth::Credentials`) A googleauth credentials object
1061
1059
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1062
1060
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -1065,7 +1063,26 @@ module Google
1065
1063
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1066
1064
  # * (`nil`) indicating no credentials
1067
1065
  #
1068
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
1066
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
1067
+ # is deprecated. Providing an unvalidated credential configuration to
1068
+ # Google APIs can compromise the security of your systems and data.
1069
+ #
1070
+ # @example
1071
+ #
1072
+ # # The recommended way to provide credentials is to use the `make_creds` method
1073
+ # # on the appropriate credentials class for your environment.
1074
+ #
1075
+ # require "googleauth"
1076
+ #
1077
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
1078
+ # json_key_io: ::File.open("/path/to/keyfile.json")
1079
+ # )
1080
+ #
1081
+ # client = ::Google::Cloud::Run::V2::WorkerPools::Client.new do |config|
1082
+ # config.credentials = credentials
1083
+ # end
1084
+ #
1085
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
1069
1086
  # external source for authentication to Google Cloud, you must validate it before
1070
1087
  # providing it to a Google API client library. Providing an unvalidated credential
1071
1088
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -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>]
@@ -639,8 +650,6 @@ module Google
639
650
  # @return [::String,nil]
640
651
  # @!attribute [rw] credentials
641
652
  # Credentials to send with calls. You may provide any of the following types:
642
- # * (`String`) The path to a service account key file in JSON format
643
- # * (`Hash`) A service account key as a Hash
644
653
  # * (`Google::Auth::Credentials`) A googleauth credentials object
645
654
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
646
655
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -649,7 +658,26 @@ module Google
649
658
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
650
659
  # * (`nil`) indicating no credentials
651
660
  #
652
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
661
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
662
+ # is deprecated. Providing an unvalidated credential configuration to
663
+ # Google APIs can compromise the security of your systems and data.
664
+ #
665
+ # @example
666
+ #
667
+ # # The recommended way to provide credentials is to use the `make_creds` method
668
+ # # on the appropriate credentials class for your environment.
669
+ #
670
+ # require "googleauth"
671
+ #
672
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
673
+ # json_key_io: ::File.open("/path/to/keyfile.json")
674
+ # )
675
+ #
676
+ # client = ::Google::Longrunning::Operations::Client.new do |config|
677
+ # config.credentials = credentials
678
+ # end
679
+ #
680
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
653
681
  # external source for authentication to Google Cloud, you must validate it before
654
682
  # providing it to a Google API client library. Providing an unvalidated credential
655
683
  # 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]
@@ -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-run-v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.27.0
4
+ version: 0.28.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC