google-cloud-profiler-v2 0.2.1 → 0.2.2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c8c483a41fa7ef21693346f2a2a28be143d2acdcb7aea99c50096845133f3f5c
|
4
|
+
data.tar.gz: 5bf1470e9889fd9fa9bb5c63289eac4e43ef3c29823d948fb8619f353480f73a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2f2f15121b7320d9f11a22a53a4e4a28266b6bbce7f9323bc5ce59841fd92679bacc670da5ebd12d653aa47910af09b6501f75e38947a4434a0ed53cbdacc48b
|
7
|
+
data.tar.gz: b9626cf149c10c72db24b8edd5b14e7d166a2d356663527e62a0bcf99dbdb9d8fdb2247da92107415cb2275f6b9d6c4de8371dd62abe5def6812afee92898574
|
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"
|
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
|
|
@@ -70,10 +70,7 @@ module Google
|
|
70
70
|
|
71
71
|
default_config.timeout = 30.0
|
72
72
|
default_config.retry_policy = {
|
73
|
-
initial_delay: 1.0,
|
74
|
-
max_delay: 10.0,
|
75
|
-
multiplier: 1.3,
|
76
|
-
retry_codes: [14]
|
73
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
77
74
|
}
|
78
75
|
|
79
76
|
default_config.rpcs.create_profile.timeout = 3600.0
|
@@ -150,7 +147,7 @@ module Google
|
|
150
147
|
!@config.endpoint.split(".").first.include?("-")
|
151
148
|
credentials ||= Credentials.default scope: @config.scope,
|
152
149
|
enable_self_signed_jwt: enable_self_signed_jwt
|
153
|
-
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
150
|
+
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
154
151
|
credentials = Credentials.new credentials, scope: @config.scope
|
155
152
|
end
|
156
153
|
@quota_project_id = @config.quota_project
|
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.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-07-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|