google-cloud-resource_manager 0.32.0 → 0.34.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 862e52635d9374cd728c916945cdd28e9019f55540391fb826982cd84c4dd477
4
- data.tar.gz: dbcda55b6ba84c95521a9958c1ba1f70e2a3ef3e122ffcd61b76d4d1218ef028
3
+ metadata.gz: c4b9c3bb322fdb1c921545da8c4954e590c0173bec1b540602b10113c47e2971
4
+ data.tar.gz: a26d185bf6f7d1960826c4fedfdac8aea0996c66e794a2d8dc7f22d48e32f93c
5
5
  SHA512:
6
- metadata.gz: cf7c943d5219ff866320f8981b37ffc62c7d374625ae1bef0c2944b2dc5e168a0f207121d6485156ccf43b58a6ab8537eda7a1c95a85330a4aabb5ac9930aced
7
- data.tar.gz: a61ee1455f28ed60a4568281172eb0efca3063c7be628cdea1f40b0e5f80085b007706012759a85467e73411d739355c2fd6b5316cd93b5aad03551ae96772b0
6
+ metadata.gz: c6cdae2bbb42fe40ebe2655a735ffebc0d9ab4197f622c7e82de947145606159f5641dccdd1c33478fe55c8fb1edbb088f3ae6bd13a264cfa1c8b7759f74dd23
7
+ data.tar.gz: 10f072fb29ac026d4e144130bdeb2d30dadf833af91895faf55847d3151f1e8d1583474da0617c8439d83aa1d0756ea1fba547e48d425422b6214067ebf75581
@@ -2,7 +2,9 @@
2
2
 
3
3
  In general, the google-cloud-resource_manager library uses [Service
4
4
  Account](https://cloud.google.com/iam/docs/creating-managing-service-accounts)
5
- credentials to connect to Google Cloud services. When running on Compute Engine
5
+ credentials to connect to Google Cloud services. When running on Google Cloud
6
+ Platform (GCP), including Google Compute Engine (GCE), Google Kubernetes Engine
7
+ (GKE), Google App Engine (GAE), Google Cloud Functions (GCF) and Cloud Run,
6
8
  the credentials will be discovered automatically. When running on other
7
9
  environments, the Service Account credentials can be specified by providing the
8
10
  path to the [JSON
@@ -1,5 +1,37 @@
1
1
  # Release History
2
2
 
3
+ ### 0.34.0 / 2020-09-16
4
+
5
+ #### Features
6
+
7
+ * quota_project can be set via library configuration
8
+
9
+ ### 0.33.3 / 2020-05-28
10
+
11
+ #### Documentation
12
+
13
+ * Fix a few broken links
14
+
15
+ ### 0.33.2 / 2020-04-01
16
+
17
+ #### Documentation
18
+
19
+ * fix some incorrect markdown causing spurious links
20
+
21
+ ### 0.33.1 / 2020-02-04
22
+
23
+ #### Bug Fixes
24
+
25
+ * List all projects example
26
+
27
+ ### 0.33.0 / 2019-10-29
28
+
29
+ This release requires Ruby 2.4 or later.
30
+
31
+ #### Documentation
32
+
33
+ * Clarify which Google Cloud Platform environments support automatic authentication
34
+
3
35
  ### 0.32.0 / 2019-10-01
4
36
 
5
37
  #### Features
@@ -24,7 +24,7 @@ be able to accept your pull requests.
24
24
  In order to use the google-cloud-resource_manager console and run the project's
25
25
  tests, there is a small amount of setup:
26
26
 
27
- 1. Install Ruby. google-cloud-resource_manager requires Ruby 2.3+. You may
27
+ 1. Install Ruby. google-cloud-resource_manager requires Ruby 2.4+. You may
28
28
  choose to manage your Ruby and gem installations with [RVM](https://rvm.io/),
29
29
  [rbenv](https://github.com/rbenv/rbenv), or
30
30
  [chruby](https://github.com/postmodern/chruby).
@@ -14,11 +14,11 @@ do the following:
14
14
 
15
15
  The goal of google-cloud is to provide an API that is comfortable to Rubyists.
16
16
  Your authentication credentials are detected automatically in Google Cloud
17
- Platform environments such as Google Compute Engine, Google App Engine and
18
- Google Kubernetes Engine. In other environments you can configure authentication
19
- easily, either directly in your code or via environment variables. Read more
20
- about the options for connecting in the {file:AUTHENTICATION.md Authentication
21
- Guide}.
17
+ Platform (GCP), including Google Compute Engine (GCE), Google Kubernetes Engine
18
+ (GKE), Google App Engine (GAE), Google Cloud Functions (GCF) and Cloud Run. In
19
+ other environments you can configure authentication easily, either directly in
20
+ your code or via environment variables. Read more about the options for
21
+ connecting in the {file:AUTHENTICATION.md Authentication Guide}.
22
22
 
23
23
  ## Listing Projects
24
24
 
@@ -24,14 +24,8 @@ improved, *please* create a new issue on GitHub so we can talk about it.
24
24
 
25
25
  - [New issue][gh-ruby]
26
26
 
27
- Or, you can ask questions on the [Google Cloud Platform Slack][slack-ruby]. You
28
- can use the "ruby" channel for general Ruby questions, or use the
29
- "google-cloud-ruby" channel if you have questions about this gem in particular.
30
-
31
27
  [so-ruby]: http://stackoverflow.com/questions/tagged/google-cloud-platform+ruby+resourcemanager
32
28
 
33
- [gh-search-ruby]: https://github.com/googlecloudplatform/google-cloud-ruby/issues?q=label%3A%22api%3A+resource+manager%22
34
-
35
- [gh-ruby]: https://github.com/googlecloudplatform/google-cloud-ruby/issues/new
29
+ [gh-search-ruby]: https://github.com/googleapis/google-cloud-ruby/issues?q=label%3A%22api%3A+resource+manager%22
36
30
 
37
- [slack-ruby]: https://gcp-slack.appspot.com/
31
+ [gh-ruby]: https://github.com/googleapis/google-cloud-ruby/issues/new
@@ -125,6 +125,7 @@ Google::Cloud.configure.add_config! :resource_manager do |config|
125
125
  allow_nil: true
126
126
  config.add_alias! :keyfile, :credentials
127
127
  config.add_field! :scope, nil, match: [String, Array]
128
+ config.add_field! :quota_project, nil, match: String
128
129
  config.add_field! :retries, nil, match: Integer
129
130
  config.add_field! :timeout, nil, match: Integer
130
131
  config.add_field! :endpoint, nil, match: String
@@ -80,7 +80,7 @@ module Google
80
80
 
81
81
  ResourceManager::Manager.new(
82
82
  ResourceManager::Service.new(
83
- credentials, retries: retries, timeout: timeout, host: endpoint
83
+ credentials, retries: retries, timeout: timeout, host: endpoint, quota_project: configure.quota_project
84
84
  )
85
85
  )
86
86
  end
@@ -71,7 +71,7 @@ module Google
71
71
  # * `NAME:howl` - Equivalent to above.
72
72
  # * `labels.color:*` - The project has the label color.
73
73
  # * `labels.color:red` - The project's label color has the value red.
74
- # * <code>labels.color:red labels.size:big</code> - The project's
74
+ # * `labels.color:red labels.size:big` - The project's
75
75
  # label color has the value red and its label size has the value
76
76
  # big.
77
77
  # @param [String] token A previously-returned page token representing
@@ -160,11 +160,11 @@ module Google
160
160
  #
161
161
  # Label keys must be between 1 and 63 characters long and must conform
162
162
  # to the following regular expression:
163
- # <code>[a-z]([-a-z0-9]*[a-z0-9])?</code>.
163
+ # `[a-z]([-a-z0-9]*[a-z0-9])?`.
164
164
  #
165
165
  # Label values must be between 0 and 63 characters long and must
166
166
  # conform to the regular expression
167
- # <code>([a-z]([-a-z0-9]*[a-z0-9])?)?</code>.
167
+ # `([a-z]([-a-z0-9]*[a-z0-9])?)?`.
168
168
  #
169
169
  # No more than 256 labels can be associated with a given resource.
170
170
  # @param [Resource] parent A parent Resource. Optional.
@@ -53,7 +53,7 @@ module Google
53
53
  # roles with an array of members. See [Understanding
54
54
  # Roles](https://cloud.google.com/iam/docs/understanding-roles) for a
55
55
  # listing of primitive and curated roles. See
56
- # [Binding](https://cloud.google.com/resource-manager/reference/rpc/google.iam.v1#binding)
56
+ # [Binding](https://cloud.google.com/resource-manager/reference/rest/Shared.Types/Binding)
57
57
  # for a listing of values and patterns for members.
58
58
  #
59
59
  # @example
@@ -87,7 +87,7 @@ module Google
87
87
  # See [Understanding
88
88
  # Roles](https://cloud.google.com/iam/docs/understanding-roles) for a
89
89
  # listing of primitive and curated roles. See
90
- # [Binding](https://cloud.google.com/resource-manager/reference/rpc/google.iam.v1#binding)
90
+ # [Binding](https://cloud.google.com/resource-manager/reference/rest/Shared.Types/Binding)
91
91
  # for a listing of values and patterns for members.
92
92
  #
93
93
  # @param [String] role_name A Cloud IAM role, such as `"roles/owner"`.
@@ -113,7 +113,7 @@ module Google
113
113
  # policy. See [Understanding
114
114
  # Roles](https://cloud.google.com/iam/docs/understanding-roles) for a
115
115
  # listing of primitive and curated roles. See
116
- # [Binding](https://cloud.google.com/resource-manager/reference/rpc/google.iam.v1#binding)
116
+ # [Binding](https://cloud.google.com/resource-manager/reference/rest/Shared.Types/Binding)
117
117
  # for a listing of values and patterns for members.
118
118
  #
119
119
  # @param [String] role_name A Cloud IAM role, such as `"roles/owner"`.
@@ -140,7 +140,7 @@ module Google
140
140
  # {#roles}. See [Understanding
141
141
  # Roles](https://cloud.google.com/iam/docs/understanding-roles) for a
142
142
  # listing of primitive and curated roles. See
143
- # [Binding](https://cloud.google.com/resource-manager/reference/rpc/google.iam.v1#binding)
143
+ # [Binding](https://cloud.google.com/resource-manager/reference/rest/Shared.Types/Binding)
144
144
  # for a listing of values and patterns for members.
145
145
  #
146
146
  # @return [Array<String>] The members strings, or an empty array.
@@ -102,10 +102,10 @@ module Google
102
102
  # The labels associated with this project.
103
103
  #
104
104
  # Label keys must be between 1 and 63 characters long and must conform
105
- # to the regular expression <code>[a-z]([-a-z0-9]*[a-z0-9])?</code>.
105
+ # to the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?`.
106
106
  #
107
107
  # Label values must be between 0 and 63 characters long and must conform
108
- # to the regular expression <code>([a-z]([-a-z0-9]*[a-z0-9])?)?</code>.
108
+ # to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`.
109
109
  #
110
110
  # No more than 256 labels can be associated with a given resource.
111
111
  # (`Hash`)
@@ -144,10 +144,10 @@ module Google
144
144
  # Updates the labels associated with this project.
145
145
  #
146
146
  # Label keys must be between 1 and 63 characters long and must conform
147
- # to the regular expression <code>[a-z]([-a-z0-9]*[a-z0-9])?</code>.
147
+ # to the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?`.
148
148
  #
149
149
  # Label values must be between 0 and 63 characters long and must conform
150
- # to the regular expression <code>([a-z]([-a-z0-9]*[a-z0-9])?)?</code>.
150
+ # to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`.
151
151
  #
152
152
  # No more than 256 labels can be associated with a given resource.
153
153
  # (`Hash`)
@@ -68,11 +68,11 @@ module Google
68
68
  #
69
69
  # Label keys must be between 1 and 63 characters long and must conform
70
70
  # to the following regular expression:
71
- # <code>[a-z]([-a-z0-9]*[a-z0-9])?</code>.
71
+ # `[a-z]([-a-z0-9]*[a-z0-9])?`.
72
72
  #
73
73
  # Label values must be between 0 and 63 characters long and must
74
74
  # conform to the regular expression
75
- # <code>([a-z]([-a-z0-9]*[a-z0-9])?)?</code>.
75
+ # `([a-z]([-a-z0-9]*[a-z0-9])?)?`.
76
76
  #
77
77
  # No more than 256 labels can be associated with a given resource.
78
78
  # (`Hash`)
@@ -95,11 +95,11 @@ module Google
95
95
  #
96
96
  # Label keys must be between 1 and 63 characters long and must conform
97
97
  # to the following regular expression:
98
- # <code>[a-z]([-a-z0-9]*[a-z0-9])?</code>.
98
+ # `[a-z]([-a-z0-9]*[a-z0-9])?`.
99
99
  #
100
100
  # Label values must be between 0 and 63 characters long and must
101
101
  # conform to the regular expression
102
- # <code>([a-z]([-a-z0-9]*[a-z0-9])?)?</code>.
102
+ # `([a-z]([-a-z0-9]*[a-z0-9])?)?`.
103
103
  #
104
104
  # No more than 256 labels can be associated with a given resource.
105
105
  # (`Hash`)
@@ -33,7 +33,7 @@ module Google
33
33
 
34
34
  ##
35
35
  # Creates a new Service instance.
36
- def initialize credentials, retries: nil, timeout: nil, host: nil
36
+ def initialize credentials, retries: nil, timeout: nil, host: nil, quota_project: nil
37
37
  @credentials = credentials
38
38
  @service = API::CloudResourceManagerService.new
39
39
  @service.client_options.application_name = \
@@ -48,6 +48,7 @@ module Google
48
48
  @service.request_options.header["x-goog-api-client"] = \
49
49
  "gl-ruby/#{RUBY_VERSION} " \
50
50
  "gccl/#{Google::Cloud::ResourceManager::VERSION}"
51
+ @service.request_options.quota_project = quota_project if quota_project
51
52
  @service.authorization = @credentials.client
52
53
  @service.root_url = host if host
53
54
  end
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module ResourceManager
19
- VERSION = "0.32.0".freeze
19
+ VERSION = "0.34.0".freeze
20
20
  end
21
21
  end
22
22
  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: 0.32.0
4
+ version: 0.34.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Moore
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-10-02 00:00:00.000000000 Z
12
+ date: 2020-09-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: google-cloud-core
@@ -31,34 +31,42 @@ dependencies:
31
31
  requirements:
32
32
  - - "~>"
33
33
  - !ruby/object:Gem::Version
34
- version: '0.23'
34
+ version: '0.33'
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
39
  - - "~>"
40
40
  - !ruby/object:Gem::Version
41
- version: '0.23'
41
+ version: '0.33'
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: googleauth
44
44
  requirement: !ruby/object:Gem::Requirement
45
45
  requirements:
46
- - - ">="
47
- - !ruby/object:Gem::Version
48
- version: 0.6.2
49
- - - "<"
46
+ - - "~>"
50
47
  - !ruby/object:Gem::Version
51
- version: 0.10.0
48
+ version: '0.9'
52
49
  type: :runtime
53
50
  prerelease: false
54
51
  version_requirements: !ruby/object:Gem::Requirement
55
52
  requirements:
56
- - - ">="
53
+ - - "~>"
57
54
  - !ruby/object:Gem::Version
58
- version: 0.6.2
59
- - - "<"
55
+ version: '0.9'
56
+ - !ruby/object:Gem::Dependency
57
+ name: google-style
58
+ requirement: !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - "~>"
61
+ - !ruby/object:Gem::Version
62
+ version: 1.24.0
63
+ type: :development
64
+ prerelease: false
65
+ version_requirements: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - "~>"
60
68
  - !ruby/object:Gem::Version
61
- version: 0.10.0
69
+ version: 1.24.0
62
70
  - !ruby/object:Gem::Dependency
63
71
  name: minitest
64
72
  requirement: !ruby/object:Gem::Requirement
@@ -143,20 +151,6 @@ dependencies:
143
151
  - - "~>"
144
152
  - !ruby/object:Gem::Version
145
153
  version: '3.0'
146
- - !ruby/object:Gem::Dependency
147
- name: rubocop
148
- requirement: !ruby/object:Gem::Requirement
149
- requirements:
150
- - - "~>"
151
- - !ruby/object:Gem::Version
152
- version: 0.64.0
153
- type: :development
154
- prerelease: false
155
- version_requirements: !ruby/object:Gem::Requirement
156
- requirements:
157
- - - "~>"
158
- - !ruby/object:Gem::Version
159
- version: 0.64.0
160
154
  - !ruby/object:Gem::Dependency
161
155
  name: simplecov
162
156
  requirement: !ruby/object:Gem::Requirement
@@ -240,14 +234,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
240
234
  requirements:
241
235
  - - ">="
242
236
  - !ruby/object:Gem::Version
243
- version: 2.0.0
237
+ version: '2.4'
244
238
  required_rubygems_version: !ruby/object:Gem::Requirement
245
239
  requirements:
246
240
  - - ">="
247
241
  - !ruby/object:Gem::Version
248
242
  version: '0'
249
243
  requirements: []
250
- rubygems_version: 3.0.4
244
+ rubygems_version: 3.1.4
251
245
  signing_key:
252
246
  specification_version: 4
253
247
  summary: API Client library for Google Cloud Resource Manager