google-cloud-resource_manager 1.0.4 → 1.1.0

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: f14a035a15057ae83cb218c1591891b5ddae89147c00f4ac8bb92906bec9ff5f
4
- data.tar.gz: 46b909f749689867ac6cd443eee663559658013707ac7999efaa1c372a870112
3
+ metadata.gz: 02b0cacff7e9b373c9be7ac10759dbeaa590774c5eedbea879d896ad9562e963
4
+ data.tar.gz: ca71d5ab36b48d35347dd6f340602478228a7ce956fad63ed9f190400b01f64f
5
5
  SHA512:
6
- metadata.gz: 16b0c6b1c7aef44e24a482ec95218f2ec7ffea858ce6fa033d61625c5536df4c8c407d25ccfb31899241fedea7fda3fdd9f22a0e35d11e03cafb0f4b9e3e13a2
7
- data.tar.gz: 484a1a0c44dacbb68fccee363cd3826e096c448ce333c00fd3864a1ddec716806d5e410778fabb1b8eac07a32dbf862bb75ede3fe932d5037671904b0f3b3518
6
+ metadata.gz: 2a587d6f55be775558e8d1ae3459941d1780a2eb5ddd91d685c54d1f54c523c345242e51ba753865c878192bc4f5e6609dfce4e06574a605b4a26c24c4f0b4fe
7
+ data.tar.gz: 1df0acdc9e180ee09608aade69e6ddc67ad55e771e53018e7800d09f9f5789601429d732b9e03c8a50860b62adc8bd544a548202e0af1c3ec9bde0cb70c92ea1
data/AUTHENTICATION.md CHANGED
@@ -33,12 +33,6 @@ credentials, there are several methods available to you.
33
33
 
34
34
  Credentials are accepted in the following ways, in the following order or precedence:
35
35
 
36
- > [!WARNING]
37
- > If you accept a credential configuration (JSON file or Hash) from an
38
- > external source for authentication to Google Cloud, you must validate it before
39
- > providing it to a Google API client library. Providing an unvalidated credential
40
- > configuration to Google APIs can compromise the security of your systems and data.
41
-
42
36
  1. Credentials specified in method arguments
43
37
  2. Credentials specified in configuration
44
38
  3. Credentials pointed to or included in environment variables
@@ -60,30 +54,20 @@ whenever possible.
60
54
  To configure a credentials file for an individual client initialization:
61
55
 
62
56
  ```ruby
63
- require "googleauth"
64
57
  require "google/cloud/resource_manager"
65
58
 
66
- credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
67
- json_key_io: ::File.open("/path/to/keyfile.json")
68
- )
69
-
70
59
  client = Google::Cloud::ResourceManager.folders do |config|
71
- config.credentials = credentials
60
+ config.credentials = "path/to/credentialfile.json"
72
61
  end
73
62
  ```
74
63
 
75
64
  To configure a credentials file globally for all clients:
76
65
 
77
66
  ```ruby
78
- require "googleauth"
79
67
  require "google/cloud/resource_manager"
80
68
 
81
- credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
82
- json_key_io: ::File.open("/path/to/keyfile.json")
83
- )
84
-
85
69
  Google::Cloud::ResourceManager.configure do |config|
86
- config.credentials = credentials
70
+ config.credentials = "path/to/credentialfile.json"
87
71
  end
88
72
 
89
73
  client = Google::Cloud::ResourceManager.folders
@@ -20,7 +20,7 @@
20
20
  module Google
21
21
  module Cloud
22
22
  module ResourceManager
23
- VERSION = "1.0.4"
23
+ VERSION = "1.1.0"
24
24
  end
25
25
  end
26
26
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-resource_manager
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -63,7 +63,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
63
63
  requirements:
64
64
  - - ">="
65
65
  - !ruby/object:Gem::Version
66
- version: '3.0'
66
+ version: '3.2'
67
67
  required_rubygems_version: !ruby/object:Gem::Requirement
68
68
  requirements:
69
69
  - - ">="