grafeas-v1 1.5.0 → 1.5.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/grafeas/v1/grafeas/client.rb +20 -3
- data/lib/grafeas/v1/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: 9c5ce9659a7247af30e46c632f30f94506ede734b02cc2bb6e5f0589a1eeced2
|
|
4
|
+
data.tar.gz: ce0784b351f09ba1de7dcc5b0b6c388aa1edaee6a6a438aac15ee203d74c6d1c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 506960e6d6c156afc276c9020701b698cf8c8cf40f1a1695181f3b48a0324aaae106a5aef7398ade9752be2318ed9b291c97ae454680bc9392dd3801ed57e276
|
|
7
|
+
data.tar.gz: 54910ace8a24eaabae11c48badf3e0180730d0a13c42dc93e12088f51225c5be787f32994a6cd93d2ed54f197326cefe693dcfbc4a9bd16606bc058b614eee65
|
|
@@ -1536,8 +1536,6 @@ module Grafeas
|
|
|
1536
1536
|
# @return [::String,nil]
|
|
1537
1537
|
# @!attribute [rw] credentials
|
|
1538
1538
|
# Credentials to send with calls. You may provide any of the following types:
|
|
1539
|
-
# * (`String`) The path to a service account key file in JSON format
|
|
1540
|
-
# * (`Hash`) A service account key as a Hash
|
|
1541
1539
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
|
1542
1540
|
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
|
1543
1541
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
|
@@ -1546,7 +1544,26 @@ module Grafeas
|
|
|
1546
1544
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
|
1547
1545
|
# * (`nil`) indicating no credentials
|
|
1548
1546
|
#
|
|
1549
|
-
# Warning:
|
|
1547
|
+
# @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
|
|
1548
|
+
# is deprecated. Providing an unvalidated credential configuration to
|
|
1549
|
+
# Google APIs can compromise the security of your systems and data.
|
|
1550
|
+
#
|
|
1551
|
+
# @example
|
|
1552
|
+
#
|
|
1553
|
+
# # The recommended way to provide credentials is to use the `make_creds` method
|
|
1554
|
+
# # on the appropriate credentials class for your environment.
|
|
1555
|
+
#
|
|
1556
|
+
# require "googleauth"
|
|
1557
|
+
#
|
|
1558
|
+
# credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
|
|
1559
|
+
# json_key_io: ::File.open("/path/to/keyfile.json")
|
|
1560
|
+
# )
|
|
1561
|
+
#
|
|
1562
|
+
# client = ::Grafeas::V1::Grafeas::Client.new do |config|
|
|
1563
|
+
# config.credentials = credentials
|
|
1564
|
+
# end
|
|
1565
|
+
#
|
|
1566
|
+
# @note Warning: If you accept a credential configuration (JSON file or Hash) from an
|
|
1550
1567
|
# external source for authentication to Google Cloud, you must validate it before
|
|
1551
1568
|
# providing it to a Google API client library. Providing an unvalidated credential
|
|
1552
1569
|
# configuration to Google APIs can compromise the security of your systems and data.
|
data/lib/grafeas/v1/version.rb
CHANGED