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: 4ae6c9a3bcd800b09a1d3c7245d9857950e9ab9ae11002cabd4a52629da6583d
4
- data.tar.gz: 1801b1ae65f4f64786dd5f97ed0782f4d475981efe094238e6cb12a17b925c5f
3
+ metadata.gz: c8c483a41fa7ef21693346f2a2a28be143d2acdcb7aea99c50096845133f3f5c
4
+ data.tar.gz: 5bf1470e9889fd9fa9bb5c63289eac4e43ef3c29823d948fb8619f353480f73a
5
5
  SHA512:
6
- metadata.gz: 161d0ecd080f91afacfe7ac4ea39c4d0a3e1b7463d4d5c05f51d780c0d6d62d70394ccd37ea5cb397a688edda82301f73aafbd8a9ac463625147c68fa04c80b8
7
- data.tar.gz: 31ec6a43f4b3c9fed78ed6c9cef79a1c5ab8e45c60d1b23ad83405fc73ae2c78c8dc76877a600c5e4e0ae05ca1cf4a748efe4da49285df34aa5789dec354e220
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
- 1. `PROFILER_CREDENTIALS` - Path to JSON file, or JSON contents
70
- 2. `PROFILER_KEYFILE` - Path to JSON file, or JSON contents
71
- 3. `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents
72
- 4. `GOOGLE_CLOUD_KEYFILE` - Path to JSON file, or JSON contents
73
- 5. `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file
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 placing them in
86
- environment variables. Either on an individual client initialization:
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 configured globally for all clients:
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 = my_create_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
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Profiler
23
23
  module V2
24
- VERSION = "0.2.1"
24
+ VERSION = "0.2.2"
25
25
  end
26
26
  end
27
27
  end
@@ -32,7 +32,7 @@ module Google
32
32
  # * Profiles can be created in either online or offline mode, see below.
33
33
  class Service
34
34
 
35
- include ::GRPC::GenericService
35
+ include GRPC::GenericService
36
36
 
37
37
  self.marshal_class_method = :encode
38
38
  self.unmarshal_class_method = :decode
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.1
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-06-17 00:00:00.000000000 Z
11
+ date: 2021-07-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common