google-cloud-resource_manager 0.31.1 → 0.33.3

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: 26ab83655455041360b28db84f36a3a4ef2d785d52b522785a2a2cdb303deae0
4
- data.tar.gz: 36d536f95585ce3c7367874a80df009940d9469f24fe162e8f413e6849b0f812
3
+ metadata.gz: 3cded17ed9c4e33404c747dc2b06e1aa276cd438573b93fa9bf891c1f3702f61
4
+ data.tar.gz: 6b181b8cc4c214003bc8bffb58f613b5dd7f95521a922eb7d0d8430890bde1aa
5
5
  SHA512:
6
- metadata.gz: 3d7f900489601308c957cfade19626b2f54f52f24e6c7d5ac9b0f6a40a55ac2394509f1571a4821abd7a893f9975951e09515c565f863eb75ec4cf9c7d324bf4
7
- data.tar.gz: 21b00b617ace5313babb39360c2e231bd0358271d60cf21206da5fefc38eccd383fd78177d3468a4a69d8ad713e81326710ea586652bee4f075ddde702f5da28
6
+ metadata.gz: cd9f37757d670deceb12d72c74ee613bb011936bf39792d2c731b59a662914ab426e737bc1454a560b2d5273e389457fba4f5bd4b9e76db2b83d723032850f87
7
+ data.tar.gz: 1de0a5a362844c4531ff4c119f32baea147994febfdf65b89125c927089acdd51fd1c37e61c30d5ac51574c34f39a895c185d1a87b431dc3f1c1e797b7890e45
@@ -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.33.3 / 2020-05-28
4
+
5
+ #### Documentation
6
+
7
+ * Fix a few broken links
8
+
9
+ ### 0.33.2 / 2020-04-01
10
+
11
+ #### Documentation
12
+
13
+ * fix some incorrect markdown causing spurious links
14
+
15
+ ### 0.33.1 / 2020-02-04
16
+
17
+ #### Bug Fixes
18
+
19
+ * List all projects example
20
+
21
+ ### 0.33.0 / 2019-10-29
22
+
23
+ This release requires Ruby 2.4 or later.
24
+
25
+ #### Documentation
26
+
27
+ * Clarify which Google Cloud Platform environments support automatic authentication
28
+
29
+ ### 0.32.0 / 2019-10-01
30
+
31
+ #### Features
32
+
33
+ * Support overriding of service endpoint
34
+
3
35
  ### 0.31.1 / 2019-08-23
4
36
 
5
37
  #### Documentation
@@ -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
@@ -127,4 +127,5 @@ Google::Cloud.configure.add_config! :resource_manager do |config|
127
127
  config.add_field! :scope, nil, match: [String, Array]
128
128
  config.add_field! :retries, nil, match: Integer
129
129
  config.add_field! :timeout, nil, match: Integer
130
+ config.add_field! :endpoint, nil, match: String
130
131
  end
@@ -50,6 +50,8 @@ module Google
50
50
  # @param [Integer] retries Number of times to retry requests on server
51
51
  # error. The default value is `3`. Optional.
52
52
  # @param [Integer] timeout Default timeout to use in requests. Optional.
53
+ # @param [String] endpoint Override of the endpoint host name. Optional.
54
+ # If the param is nil, uses the default endpoint.
53
55
  # @param [String] keyfile Alias for the `credentials` argument.
54
56
  # Deprecated.
55
57
  #
@@ -64,10 +66,11 @@ module Google
64
66
  # end
65
67
  #
66
68
  def self.new credentials: nil, scope: nil, retries: nil, timeout: nil,
67
- keyfile: nil
69
+ endpoint: nil, keyfile: nil
68
70
  scope ||= configure.scope
69
71
  retries ||= configure.retries
70
72
  timeout ||= configure.timeout
73
+ endpoint ||= configure.endpoint
71
74
  credentials ||= keyfile
72
75
  credentials ||= default_credentials scope: scope
73
76
  unless credentials.is_a? Google::Auth::Credentials
@@ -77,7 +80,7 @@ module Google
77
80
 
78
81
  ResourceManager::Manager.new(
79
82
  ResourceManager::Service.new(
80
- credentials, retries: retries, timeout: timeout
83
+ credentials, retries: retries, timeout: timeout, host: endpoint
81
84
  )
82
85
  )
83
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
36
+ def initialize credentials, retries: nil, timeout: nil, host: nil
37
37
  @credentials = credentials
38
38
  @service = API::CloudResourceManagerService.new
39
39
  @service.client_options.application_name = \
@@ -49,6 +49,7 @@ module Google
49
49
  "gl-ruby/#{RUBY_VERSION} " \
50
50
  "gccl/#{Google::Cloud::ResourceManager::VERSION}"
51
51
  @service.authorization = @credentials.client
52
+ @service.root_url = host if host
52
53
  end
53
54
 
54
55
  def service
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module ResourceManager
19
- VERSION = "0.31.1".freeze
19
+ VERSION = "0.33.3".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.31.1
4
+ version: 0.33.3
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-08-23 00:00:00.000000000 Z
12
+ date: 2020-05-28 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.0.6
251
245
  signing_key:
252
246
  specification_version: 4
253
247
  summary: API Client library for Google Cloud Resource Manager