google-cloud-resource_manager 0.33.0 → 0.35.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: 7d2b920f2f383a687a4c446081acc2ba69babd09ed1ea3c1c5e6fe67f5af9015
4
- data.tar.gz: bbeb05a7808eb428fa1565f5ed7b83491e9457723f280f2274893cbe425730b9
3
+ metadata.gz: e1d58a2cf27a816ffe9aafda3227a0afe310673267f1e9f1c84e9b6a6a8d5ea0
4
+ data.tar.gz: 36e904653719e11e1399f42eabcd1788c6f31d31c8a29649a95056be00d528a1
5
5
  SHA512:
6
- metadata.gz: fbf01b3d884e9ff9a0542ee9a952bd8e4c76fce8a4f36abb588e6bafb207345872481a52979194affaa856dc7a3c001a36eb76e8223fbabd85179dc0597ff4fb
7
- data.tar.gz: 15f506199e41a85a6fee9ed125173aa0564b9e10feec7476d9bc4e640bcc37545e902acd36b6aa46a559d010bfa7b1fdec495f1df165eb77fa72a8e3d4c50783
6
+ metadata.gz: 4a3e3b6a3639126d736ea6fe7df00d32533d8704d4833528a2142db1ababda76991c37d33b54150ef100ec836dd8f01869a65249cc436c5ccb4c77ef431c7e26
7
+ data.tar.gz: b7a72042ba7e5fba8467a95575359184345d68fdd371a40a3f7893b2f5f88c309fea0c75fe07a6bda7c5afd02cf5f7e1f25a4a8e050d84f0eafc17606008ee84
@@ -1,5 +1,35 @@
1
1
  # Release History
2
2
 
3
+ ### 0.35.0 / 2021-01-13
4
+
5
+ #### Features
6
+
7
+ * Replace google-api-client with google-apis-cloudresourcemanager_v1
8
+
9
+ ### 0.34.0 / 2020-09-16
10
+
11
+ #### Features
12
+
13
+ * quota_project can be set via library configuration
14
+
15
+ ### 0.33.3 / 2020-05-28
16
+
17
+ #### Documentation
18
+
19
+ * Fix a few broken links
20
+
21
+ ### 0.33.2 / 2020-04-01
22
+
23
+ #### Documentation
24
+
25
+ * fix some incorrect markdown causing spurious links
26
+
27
+ ### 0.33.1 / 2020-02-04
28
+
29
+ #### Bug Fixes
30
+
31
+ * List all projects example
32
+
3
33
  ### 0.33.0 / 2019-10-29
4
34
 
5
35
  This release requires Ruby 2.4 or later.
@@ -45,7 +45,7 @@ tests, there is a small amount of setup:
45
45
 
46
46
  ```sh
47
47
  $ cd google-cloud-resource_manager/
48
- $ bundle exec rake bundleupdate
48
+ $ bundle install
49
49
  ```
50
50
 
51
51
  ## Console
@@ -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.33.0".freeze
19
+ VERSION = "0.35.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.33.0
4
+ version: 0.35.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-30 00:00:00.000000000 Z
12
+ date: 2021-01-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: google-cloud-core
@@ -26,19 +26,19 @@ dependencies:
26
26
  - !ruby/object:Gem::Version
27
27
  version: '1.2'
28
28
  - !ruby/object:Gem::Dependency
29
- name: google-api-client
29
+ name: google-apis-cloudresourcemanager_v1
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
32
  - - "~>"
33
33
  - !ruby/object:Gem::Version
34
- version: '0.33'
34
+ version: '0.1'
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.33'
41
+ version: '0.1'
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: googleauth
44
44
  requirement: !ruby/object:Gem::Requirement
@@ -241,7 +241,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
241
241
  - !ruby/object:Gem::Version
242
242
  version: '0'
243
243
  requirements: []
244
- rubygems_version: 3.0.6
244
+ rubygems_version: 3.1.4
245
245
  signing_key:
246
246
  specification_version: 4
247
247
  summary: API Client library for Google Cloud Resource Manager