google-cloud-cloud_controls_partner-v1beta 0.7.0 → 0.7.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 +4 -4
- data/lib/google/cloud/cloud_controls_partner/v1beta/cloud_controls_partner_core/client.rb +20 -3
- data/lib/google/cloud/cloud_controls_partner/v1beta/cloud_controls_partner_monitoring/client.rb +20 -3
- data/lib/google/cloud/cloud_controls_partner/v1beta/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: eb362fa66236b659aa1da52e98f12d422043e3947d0ef884319443298cc6c820
|
|
4
|
+
data.tar.gz: d1683b275decab004df3c7dd8eaa403330041719ed99084b233b33e665d56ceb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 49396897746e231177ad9c666061ef5103e32b41789ee72c92a5b134e5fa0106f6f8febda927006806605f8db06571c1223c6631d399269683065e6d52ed6e09
|
|
7
|
+
data.tar.gz: 16733ed3804ffbea82bc9fba2b5eecdb49c4b7a99b8969ee060bb844675979f85037b8d640d8916ba906092bb92cb72954cc4eef6152ef27078a68635c0a3d6d
|
|
@@ -1263,8 +1263,6 @@ module Google
|
|
|
1263
1263
|
# @return [::String,nil]
|
|
1264
1264
|
# @!attribute [rw] credentials
|
|
1265
1265
|
# Credentials to send with calls. You may provide any of the following types:
|
|
1266
|
-
# * (`String`) The path to a service account key file in JSON format
|
|
1267
|
-
# * (`Hash`) A service account key as a Hash
|
|
1268
1266
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
|
1269
1267
|
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
|
1270
1268
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
|
@@ -1273,7 +1271,26 @@ module Google
|
|
|
1273
1271
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
|
1274
1272
|
# * (`nil`) indicating no credentials
|
|
1275
1273
|
#
|
|
1276
|
-
# Warning:
|
|
1274
|
+
# @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
|
|
1275
|
+
# is deprecated. Providing an unvalidated credential configuration to
|
|
1276
|
+
# Google APIs can compromise the security of your systems and data.
|
|
1277
|
+
#
|
|
1278
|
+
# @example
|
|
1279
|
+
#
|
|
1280
|
+
# # The recommended way to provide credentials is to use the `make_creds` method
|
|
1281
|
+
# # on the appropriate credentials class for your environment.
|
|
1282
|
+
#
|
|
1283
|
+
# require "googleauth"
|
|
1284
|
+
#
|
|
1285
|
+
# credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
|
|
1286
|
+
# json_key_io: ::File.open("/path/to/keyfile.json")
|
|
1287
|
+
# )
|
|
1288
|
+
#
|
|
1289
|
+
# client = ::Google::Cloud::CloudControlsPartner::V1beta::CloudControlsPartnerCore::Client.new do |config|
|
|
1290
|
+
# config.credentials = credentials
|
|
1291
|
+
# end
|
|
1292
|
+
#
|
|
1293
|
+
# @note Warning: If you accept a credential configuration (JSON file or Hash) from an
|
|
1277
1294
|
# external source for authentication to Google Cloud, you must validate it before
|
|
1278
1295
|
# providing it to a Google API client library. Providing an unvalidated credential
|
|
1279
1296
|
# configuration to Google APIs can compromise the security of your systems and data.
|
data/lib/google/cloud/cloud_controls_partner/v1beta/cloud_controls_partner_monitoring/client.rb
CHANGED
|
@@ -427,8 +427,6 @@ module Google
|
|
|
427
427
|
# @return [::String,nil]
|
|
428
428
|
# @!attribute [rw] credentials
|
|
429
429
|
# Credentials to send with calls. You may provide any of the following types:
|
|
430
|
-
# * (`String`) The path to a service account key file in JSON format
|
|
431
|
-
# * (`Hash`) A service account key as a Hash
|
|
432
430
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
|
433
431
|
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
|
434
432
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
|
@@ -437,7 +435,26 @@ module Google
|
|
|
437
435
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
|
438
436
|
# * (`nil`) indicating no credentials
|
|
439
437
|
#
|
|
440
|
-
# Warning:
|
|
438
|
+
# @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
|
|
439
|
+
# is deprecated. Providing an unvalidated credential configuration to
|
|
440
|
+
# Google APIs can compromise the security of your systems and data.
|
|
441
|
+
#
|
|
442
|
+
# @example
|
|
443
|
+
#
|
|
444
|
+
# # The recommended way to provide credentials is to use the `make_creds` method
|
|
445
|
+
# # on the appropriate credentials class for your environment.
|
|
446
|
+
#
|
|
447
|
+
# require "googleauth"
|
|
448
|
+
#
|
|
449
|
+
# credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
|
|
450
|
+
# json_key_io: ::File.open("/path/to/keyfile.json")
|
|
451
|
+
# )
|
|
452
|
+
#
|
|
453
|
+
# client = ::Google::Cloud::CloudControlsPartner::V1beta::CloudControlsPartnerMonitoring::Client.new do |config|
|
|
454
|
+
# config.credentials = credentials
|
|
455
|
+
# end
|
|
456
|
+
#
|
|
457
|
+
# @note Warning: If you accept a credential configuration (JSON file or Hash) from an
|
|
441
458
|
# external source for authentication to Google Cloud, you must validate it before
|
|
442
459
|
# providing it to a Google API client library. Providing an unvalidated credential
|
|
443
460
|
# configuration to Google APIs can compromise the security of your systems and data.
|