google-cloud-profiler-v2 0.2.1 → 0.2.5
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/.yardopts +1 -1
- data/AUTHENTICATION.md +15 -33
- data/README.md +1 -1
- data/lib/google/cloud/profiler/v2/profiler_service/client.rb +100 -53
- data/lib/google/cloud/profiler/v2/version.rb +1 -1
- data/lib/google/devtools/cloudprofiler/v2/profiler_pb.rb +2 -2
- data/proto_docs/google/api/resource.rb +10 -71
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 79883aecdcb67dda5b935b8373afc7f6be46a42710e1764dc6292f47f9e7a040
|
4
|
+
data.tar.gz: 2325c24a4462a4c4cd6c5dcc9be5d31cc3d3ee89bc198d19ebe705fa0776d79b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 51e1b2f7bda1d1d2c9d1ee47a7781928d35b8fd8724eb7116dbcc3707bdb58e47192a89c84da01f8e0065c33b0a7fab0d17bce1a50dbf5b050ee307f55fdc1cf
|
7
|
+
data.tar.gz: 9a53713132222c810c1e6ec9fdedea221e80b51bb1ca1eb297bfb57139c6d6954a625d767169615b2e28dc1bf854fd73423b5aad35b39b54e06fbe8878ae8a63
|
data/.yardopts
CHANGED
data/AUTHENTICATION.md
CHANGED
@@ -66,11 +66,11 @@ The environment variables that google-cloud-profiler-v2
|
|
66
66
|
checks for credentials are configured on the service Credentials class (such as
|
67
67
|
{::Google::Cloud::Profiler::V2::ProfilerService::Credentials}):
|
68
68
|
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
69
|
+
* `PROFILER_CREDENTIALS` - Path to JSON file, or JSON contents
|
70
|
+
* `PROFILER_KEYFILE` - Path to JSON file, or JSON contents
|
71
|
+
* `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents
|
72
|
+
* `GOOGLE_CLOUD_KEYFILE` - Path to JSON file, or JSON contents
|
73
|
+
* `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file
|
74
74
|
|
75
75
|
```ruby
|
76
76
|
require "google/cloud/profiler/v2"
|
@@ -82,8 +82,8 @@ client = ::Google::Cloud::Profiler::V2::ProfilerService::Client.new
|
|
82
82
|
|
83
83
|
### Configuration
|
84
84
|
|
85
|
-
The **Credentials JSON** can be configured instead of
|
86
|
-
environment
|
85
|
+
The path to the **Credentials JSON** file can be configured instead of storing
|
86
|
+
it in an environment variable. Either on an individual client initialization:
|
87
87
|
|
88
88
|
```ruby
|
89
89
|
require "google/cloud/profiler/v2"
|
@@ -93,7 +93,7 @@ client = ::Google::Cloud::Profiler::V2::ProfilerService::Client.new do |config|
|
|
93
93
|
end
|
94
94
|
```
|
95
95
|
|
96
|
-
Or
|
96
|
+
Or globally for all clients:
|
97
97
|
|
98
98
|
```ruby
|
99
99
|
require "google/cloud/profiler/v2"
|
@@ -120,15 +120,6 @@ To configure your system for this, simply:
|
|
120
120
|
**NOTE:** This is _not_ recommended for running in production. The Cloud SDK
|
121
121
|
*should* only be used during development.
|
122
122
|
|
123
|
-
[gce-how-to]: https://cloud.google.com/compute/docs/authentication#using
|
124
|
-
[dev-console]: https://console.cloud.google.com/project
|
125
|
-
|
126
|
-
[enable-apis]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/enable-apis.png
|
127
|
-
|
128
|
-
[create-new-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account.png
|
129
|
-
[create-new-service-account-existing-keys]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account-existing-keys.png
|
130
|
-
[reuse-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/reuse-service-account.png
|
131
|
-
|
132
123
|
## Creating a Service Account
|
133
124
|
|
134
125
|
Google Cloud requires **Service Account Credentials** to
|
@@ -139,31 +130,22 @@ If you are not running this client within
|
|
139
130
|
[Google Cloud Platform environments](#google-cloud-platform-environments), you
|
140
131
|
need a Google Developers service account.
|
141
132
|
|
142
|
-
1. Visit the [Google
|
133
|
+
1. Visit the [Google Cloud Console](https://console.cloud.google.com/project).
|
143
134
|
2. Create a new project or click on an existing project.
|
144
|
-
3. Activate the
|
135
|
+
3. Activate the menu in the upper left and select **APIs & Services**. From
|
145
136
|
here, you will enable the APIs that your application requires.
|
146
137
|
|
147
|
-
![Enable the APIs that your application requires][enable-apis]
|
148
|
-
|
149
138
|
*Note: You may need to enable billing in order to use these services.*
|
150
139
|
|
151
140
|
4. Select **Credentials** from the side navigation.
|
152
141
|
|
153
|
-
|
154
|
-
|
155
|
-
![Create a new service account][create-new-service-account]
|
156
|
-
|
157
|
-
![Create a new service account With Existing Keys][create-new-service-account-existing-keys]
|
158
|
-
|
159
|
-
Find the "Add credentials" drop down and select "Service account" to be
|
160
|
-
guided through downloading a new JSON key file.
|
142
|
+
Find the "Create credentials" drop down near the top of the page, and select
|
143
|
+
"Service account" to be guided through downloading a new JSON key file.
|
161
144
|
|
162
145
|
If you want to re-use an existing service account, you can easily generate a
|
163
|
-
new key file. Just select the account you wish to re-use,
|
164
|
-
|
165
|
-
|
166
|
-
![Re-use an existing service account][reuse-service-account]
|
146
|
+
new key file. Just select the account you wish to re-use, click the pencil
|
147
|
+
tool on the right side to edit the service account, select the **Keys** tab,
|
148
|
+
and then select **Add Key**.
|
167
149
|
|
168
150
|
The key file you download will be used by this library to authenticate API
|
169
151
|
requests and should be stored in a secure location.
|
data/README.md
CHANGED
@@ -33,7 +33,7 @@ In order to use this library, you first need to go through the following steps:
|
|
33
33
|
require "google/cloud/profiler/v2"
|
34
34
|
|
35
35
|
client = ::Google::Cloud::Profiler::V2::ProfilerService::Client.new
|
36
|
-
request =
|
36
|
+
request = ::Google::Cloud::Profiler::V2::CreateProfileRequest.new # (request fields as keyword arguments...)
|
37
37
|
response = client.create_profile request
|
38
38
|
```
|
39
39
|
|
@@ -44,13 +44,12 @@ module Google
|
|
44
44
|
# See {::Google::Cloud::Profiler::V2::ProfilerService::Client::Configuration}
|
45
45
|
# for a description of the configuration fields.
|
46
46
|
#
|
47
|
-
#
|
47
|
+
# @example
|
48
48
|
#
|
49
|
-
#
|
50
|
-
#
|
51
|
-
#
|
52
|
-
#
|
53
|
-
# end
|
49
|
+
# # Modify the configuration for all ProfilerService clients
|
50
|
+
# ::Google::Cloud::Profiler::V2::ProfilerService::Client.configure do |config|
|
51
|
+
# config.timeout = 10.0
|
52
|
+
# end
|
54
53
|
#
|
55
54
|
# @yield [config] Configure the Client client.
|
56
55
|
# @yieldparam config [Client::Configuration]
|
@@ -70,10 +69,7 @@ module Google
|
|
70
69
|
|
71
70
|
default_config.timeout = 30.0
|
72
71
|
default_config.retry_policy = {
|
73
|
-
initial_delay: 1.0,
|
74
|
-
max_delay: 10.0,
|
75
|
-
multiplier: 1.3,
|
76
|
-
retry_codes: [14]
|
72
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
77
73
|
}
|
78
74
|
|
79
75
|
default_config.rpcs.create_profile.timeout = 3600.0
|
@@ -111,19 +107,15 @@ module Google
|
|
111
107
|
##
|
112
108
|
# Create a new ProfilerService client object.
|
113
109
|
#
|
114
|
-
#
|
115
|
-
#
|
116
|
-
# To create a new ProfilerService client with the default
|
117
|
-
# configuration:
|
110
|
+
# @example
|
118
111
|
#
|
119
|
-
#
|
112
|
+
# # Create a client using the default configuration
|
113
|
+
# client = ::Google::Cloud::Profiler::V2::ProfilerService::Client.new
|
120
114
|
#
|
121
|
-
#
|
122
|
-
#
|
123
|
-
#
|
124
|
-
#
|
125
|
-
# config.timeout = 10.0
|
126
|
-
# end
|
115
|
+
# # Create a client using a custom configuration
|
116
|
+
# client = ::Google::Cloud::Profiler::V2::ProfilerService::Client.new do |config|
|
117
|
+
# config.timeout = 10.0
|
118
|
+
# end
|
127
119
|
#
|
128
120
|
# @yield [config] Configure the ProfilerService client.
|
129
121
|
# @yieldparam config [Client::Configuration]
|
@@ -143,14 +135,13 @@ module Google
|
|
143
135
|
|
144
136
|
# Create credentials
|
145
137
|
credentials = @config.credentials
|
146
|
-
# Use self-signed JWT if the
|
138
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
147
139
|
# but only if the default endpoint does not have a region prefix.
|
148
|
-
enable_self_signed_jwt = @config.
|
149
|
-
@config.endpoint == Client.configure.endpoint &&
|
140
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
150
141
|
!@config.endpoint.split(".").first.include?("-")
|
151
142
|
credentials ||= Credentials.default scope: @config.scope,
|
152
143
|
enable_self_signed_jwt: enable_self_signed_jwt
|
153
|
-
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
144
|
+
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
154
145
|
credentials = Credentials.new credentials, scope: @config.scope
|
155
146
|
end
|
156
147
|
@quota_project_id = @config.quota_project
|
@@ -212,6 +203,21 @@ module Google
|
|
212
203
|
#
|
213
204
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
214
205
|
#
|
206
|
+
# @example Basic example
|
207
|
+
# require "google/cloud/profiler/v2"
|
208
|
+
#
|
209
|
+
# # Create a client object. The client can be reused for multiple calls.
|
210
|
+
# client = Google::Cloud::Profiler::V2::ProfilerService::Client.new
|
211
|
+
#
|
212
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
213
|
+
# request = Google::Cloud::Profiler::V2::CreateProfileRequest.new
|
214
|
+
#
|
215
|
+
# # Call the create_profile method.
|
216
|
+
# result = client.create_profile request
|
217
|
+
#
|
218
|
+
# # The returned object is of type Google::Cloud::Profiler::V2::Profile.
|
219
|
+
# p result
|
220
|
+
#
|
215
221
|
def create_profile request, options = nil
|
216
222
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
217
223
|
|
@@ -229,16 +235,20 @@ module Google
|
|
229
235
|
gapic_version: ::Google::Cloud::Profiler::V2::VERSION
|
230
236
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
231
237
|
|
232
|
-
header_params = {
|
233
|
-
|
234
|
-
|
238
|
+
header_params = {}
|
239
|
+
if request.parent
|
240
|
+
header_params["parent"] = request.parent
|
241
|
+
end
|
242
|
+
|
235
243
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
236
244
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
237
245
|
|
238
246
|
options.apply_defaults timeout: @config.rpcs.create_profile.timeout,
|
239
247
|
metadata: metadata,
|
240
248
|
retry_policy: @config.rpcs.create_profile.retry_policy
|
241
|
-
|
249
|
+
|
250
|
+
options.apply_defaults timeout: @config.timeout,
|
251
|
+
metadata: @config.metadata,
|
242
252
|
retry_policy: @config.retry_policy
|
243
253
|
|
244
254
|
@profiler_service_stub.call_rpc :create_profile, request, options: options do |response, operation|
|
@@ -282,6 +292,21 @@ module Google
|
|
282
292
|
#
|
283
293
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
284
294
|
#
|
295
|
+
# @example Basic example
|
296
|
+
# require "google/cloud/profiler/v2"
|
297
|
+
#
|
298
|
+
# # Create a client object. The client can be reused for multiple calls.
|
299
|
+
# client = Google::Cloud::Profiler::V2::ProfilerService::Client.new
|
300
|
+
#
|
301
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
302
|
+
# request = Google::Cloud::Profiler::V2::CreateOfflineProfileRequest.new
|
303
|
+
#
|
304
|
+
# # Call the create_offline_profile method.
|
305
|
+
# result = client.create_offline_profile request
|
306
|
+
#
|
307
|
+
# # The returned object is of type Google::Cloud::Profiler::V2::Profile.
|
308
|
+
# p result
|
309
|
+
#
|
285
310
|
def create_offline_profile request, options = nil
|
286
311
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
287
312
|
|
@@ -299,16 +324,20 @@ module Google
|
|
299
324
|
gapic_version: ::Google::Cloud::Profiler::V2::VERSION
|
300
325
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
301
326
|
|
302
|
-
header_params = {
|
303
|
-
|
304
|
-
|
327
|
+
header_params = {}
|
328
|
+
if request.parent
|
329
|
+
header_params["parent"] = request.parent
|
330
|
+
end
|
331
|
+
|
305
332
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
306
333
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
307
334
|
|
308
335
|
options.apply_defaults timeout: @config.rpcs.create_offline_profile.timeout,
|
309
336
|
metadata: metadata,
|
310
337
|
retry_policy: @config.rpcs.create_offline_profile.retry_policy
|
311
|
-
|
338
|
+
|
339
|
+
options.apply_defaults timeout: @config.timeout,
|
340
|
+
metadata: @config.metadata,
|
312
341
|
retry_policy: @config.retry_policy
|
313
342
|
|
314
343
|
@profiler_service_stub.call_rpc :create_offline_profile, request, options: options do |response, operation|
|
@@ -356,6 +385,21 @@ module Google
|
|
356
385
|
#
|
357
386
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
358
387
|
#
|
388
|
+
# @example Basic example
|
389
|
+
# require "google/cloud/profiler/v2"
|
390
|
+
#
|
391
|
+
# # Create a client object. The client can be reused for multiple calls.
|
392
|
+
# client = Google::Cloud::Profiler::V2::ProfilerService::Client.new
|
393
|
+
#
|
394
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
395
|
+
# request = Google::Cloud::Profiler::V2::UpdateProfileRequest.new
|
396
|
+
#
|
397
|
+
# # Call the update_profile method.
|
398
|
+
# result = client.update_profile request
|
399
|
+
#
|
400
|
+
# # The returned object is of type Google::Cloud::Profiler::V2::Profile.
|
401
|
+
# p result
|
402
|
+
#
|
359
403
|
def update_profile request, options = nil
|
360
404
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
361
405
|
|
@@ -373,16 +417,20 @@ module Google
|
|
373
417
|
gapic_version: ::Google::Cloud::Profiler::V2::VERSION
|
374
418
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
375
419
|
|
376
|
-
header_params = {
|
377
|
-
|
378
|
-
|
420
|
+
header_params = {}
|
421
|
+
if request.profile&.name
|
422
|
+
header_params["profile.name"] = request.profile.name
|
423
|
+
end
|
424
|
+
|
379
425
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
380
426
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
381
427
|
|
382
428
|
options.apply_defaults timeout: @config.rpcs.update_profile.timeout,
|
383
429
|
metadata: metadata,
|
384
430
|
retry_policy: @config.rpcs.update_profile.retry_policy
|
385
|
-
|
431
|
+
|
432
|
+
options.apply_defaults timeout: @config.timeout,
|
433
|
+
metadata: @config.metadata,
|
386
434
|
retry_policy: @config.retry_policy
|
387
435
|
|
388
436
|
@profiler_service_stub.call_rpc :update_profile, request, options: options do |response, operation|
|
@@ -406,22 +454,21 @@ module Google
|
|
406
454
|
# Configuration can be applied globally to all clients, or to a single client
|
407
455
|
# on construction.
|
408
456
|
#
|
409
|
-
#
|
410
|
-
#
|
411
|
-
#
|
412
|
-
# to 20 seconds,
|
413
|
-
#
|
414
|
-
#
|
415
|
-
#
|
416
|
-
#
|
417
|
-
#
|
418
|
-
#
|
419
|
-
#
|
420
|
-
#
|
421
|
-
#
|
422
|
-
#
|
423
|
-
#
|
424
|
-
# end
|
457
|
+
# @example
|
458
|
+
#
|
459
|
+
# # Modify the global config, setting the timeout for
|
460
|
+
# # create_profile to 20 seconds,
|
461
|
+
# # and all remaining timeouts to 10 seconds.
|
462
|
+
# ::Google::Cloud::Profiler::V2::ProfilerService::Client.configure do |config|
|
463
|
+
# config.timeout = 10.0
|
464
|
+
# config.rpcs.create_profile.timeout = 20.0
|
465
|
+
# end
|
466
|
+
#
|
467
|
+
# # Apply the above configuration only to a new client.
|
468
|
+
# client = ::Google::Cloud::Profiler::V2::ProfilerService::Client.new do |config|
|
469
|
+
# config.timeout = 10.0
|
470
|
+
# config.rpcs.create_profile.timeout = 20.0
|
471
|
+
# end
|
425
472
|
#
|
426
473
|
# @!attribute [rw] endpoint
|
427
474
|
# The hostname or hostname:port of the service endpoint.
|
@@ -1,12 +1,12 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/devtools/cloudprofiler/v2/profiler.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/annotations_pb'
|
7
5
|
require 'google/protobuf/duration_pb'
|
8
6
|
require 'google/protobuf/field_mask_pb'
|
9
7
|
require 'google/api/client_pb'
|
8
|
+
require 'google/protobuf'
|
9
|
+
|
10
10
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
11
11
|
add_file("google/devtools/cloudprofiler/v2/profiler.proto", :syntax => :proto3) do
|
12
12
|
add_message "google.devtools.cloudprofiler.v2.CreateProfileRequest" do
|
@@ -33,11 +33,7 @@ module Google
|
|
33
33
|
# // For Kubernetes resources, the format is {api group}/{kind}.
|
34
34
|
# option (google.api.resource) = {
|
35
35
|
# type: "pubsub.googleapis.com/Topic"
|
36
|
-
#
|
37
|
-
# pattern: "projects/{project}/topics/{topic}"
|
38
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
39
|
-
# parent_name_extractor: "projects/{project}"
|
40
|
-
# }
|
36
|
+
# pattern: "projects/{project}/topics/{topic}"
|
41
37
|
# };
|
42
38
|
# }
|
43
39
|
#
|
@@ -45,10 +41,7 @@ module Google
|
|
45
41
|
#
|
46
42
|
# resources:
|
47
43
|
# - type: "pubsub.googleapis.com/Topic"
|
48
|
-
#
|
49
|
-
# - pattern: "projects/{project}/topics/{topic}"
|
50
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
51
|
-
# parent_name_extractor: "projects/{project}"
|
44
|
+
# pattern: "projects/{project}/topics/{topic}"
|
52
45
|
#
|
53
46
|
# Sometimes, resources have multiple patterns, typically because they can
|
54
47
|
# live under multiple parents.
|
@@ -58,26 +51,10 @@ module Google
|
|
58
51
|
# message LogEntry {
|
59
52
|
# option (google.api.resource) = {
|
60
53
|
# type: "logging.googleapis.com/LogEntry"
|
61
|
-
#
|
62
|
-
#
|
63
|
-
#
|
64
|
-
#
|
65
|
-
# }
|
66
|
-
# name_descriptor: {
|
67
|
-
# pattern: "folders/{folder}/logs/{log}"
|
68
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
69
|
-
# parent_name_extractor: "folders/{folder}"
|
70
|
-
# }
|
71
|
-
# name_descriptor: {
|
72
|
-
# pattern: "organizations/{organization}/logs/{log}"
|
73
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Organization"
|
74
|
-
# parent_name_extractor: "organizations/{organization}"
|
75
|
-
# }
|
76
|
-
# name_descriptor: {
|
77
|
-
# pattern: "billingAccounts/{billing_account}/logs/{log}"
|
78
|
-
# parent_type: "billing.googleapis.com/BillingAccount"
|
79
|
-
# parent_name_extractor: "billingAccounts/{billing_account}"
|
80
|
-
# }
|
54
|
+
# pattern: "projects/{project}/logs/{log}"
|
55
|
+
# pattern: "folders/{folder}/logs/{log}"
|
56
|
+
# pattern: "organizations/{organization}/logs/{log}"
|
57
|
+
# pattern: "billingAccounts/{billing_account}/logs/{log}"
|
81
58
|
# };
|
82
59
|
# }
|
83
60
|
#
|
@@ -85,48 +62,10 @@ module Google
|
|
85
62
|
#
|
86
63
|
# resources:
|
87
64
|
# - type: 'logging.googleapis.com/LogEntry'
|
88
|
-
#
|
89
|
-
#
|
90
|
-
#
|
91
|
-
#
|
92
|
-
# - pattern: "folders/{folder}/logs/{log}"
|
93
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
94
|
-
# parent_name_extractor: "folders/{folder}"
|
95
|
-
# - pattern: "organizations/{organization}/logs/{log}"
|
96
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Organization"
|
97
|
-
# parent_name_extractor: "organizations/{organization}"
|
98
|
-
# - pattern: "billingAccounts/{billing_account}/logs/{log}"
|
99
|
-
# parent_type: "billing.googleapis.com/BillingAccount"
|
100
|
-
# parent_name_extractor: "billingAccounts/{billing_account}"
|
101
|
-
#
|
102
|
-
# For flexible resources, the resource name doesn't contain parent names, but
|
103
|
-
# the resource itself has parents for policy evaluation.
|
104
|
-
#
|
105
|
-
# Example:
|
106
|
-
#
|
107
|
-
# message Shelf {
|
108
|
-
# option (google.api.resource) = {
|
109
|
-
# type: "library.googleapis.com/Shelf"
|
110
|
-
# name_descriptor: {
|
111
|
-
# pattern: "shelves/{shelf}"
|
112
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
113
|
-
# }
|
114
|
-
# name_descriptor: {
|
115
|
-
# pattern: "shelves/{shelf}"
|
116
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
117
|
-
# }
|
118
|
-
# };
|
119
|
-
# }
|
120
|
-
#
|
121
|
-
# The ResourceDescriptor Yaml config will look like:
|
122
|
-
#
|
123
|
-
# resources:
|
124
|
-
# - type: 'library.googleapis.com/Shelf'
|
125
|
-
# name_descriptor:
|
126
|
-
# - pattern: "shelves/{shelf}"
|
127
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
128
|
-
# - pattern: "shelves/{shelf}"
|
129
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
65
|
+
# pattern: "projects/{project}/logs/{log}"
|
66
|
+
# pattern: "folders/{folder}/logs/{log}"
|
67
|
+
# pattern: "organizations/{organization}/logs/{log}"
|
68
|
+
# pattern: "billingAccounts/{billing_account}/logs/{log}"
|
130
69
|
# @!attribute [rw] type
|
131
70
|
# @return [::String]
|
132
71
|
# The resource type. It must be in the format of
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-profiler-v2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-01-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.7'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '0.
|
29
|
+
version: '0.7'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -204,7 +204,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
204
204
|
- !ruby/object:Gem::Version
|
205
205
|
version: '0'
|
206
206
|
requirements: []
|
207
|
-
rubygems_version: 3.
|
207
|
+
rubygems_version: 3.3.4
|
208
208
|
signing_key:
|
209
209
|
specification_version: 4
|
210
210
|
summary: API Client library for the Cloud Profiler V2 API
|