google-cloud-compute 1.8.1 → 1.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +25 -0
- data/lib/google/cloud/compute/version.rb +1 -1
- data/lib/google/cloud/compute.rb +30 -0
- 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: 8ff86375df2e9dbfc4b2c0b7a24d1316ddddbfb3c4b206d1d4dfd6cd1124a879
|
4
|
+
data.tar.gz: b30ee5f37c0104750c7b42d12d62969b210575699a557474cff65a07dd019da3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b8bfb9d5ef2ec0e93b1be70f7fc4ce055f3923ddf3ae19e8924e7a6b6536c41d2eac459fba8aa934684510dfc8601d4a9ea56696887643e9ec55dd43083c5de0
|
7
|
+
data.tar.gz: 361932ced1db676e41f7122a7533df8efcddb824a8e6435db0e00fe440b686d2ce49a1673931c72e5fb65d1f9eeace72156f4f90a2095673d90971bc368f4507
|
data/README.md
CHANGED
@@ -34,6 +34,31 @@ In order to use this library, you first need to go through the following steps:
|
|
34
34
|
1. [Enable the API.](https://console.cloud.google.com/apis/library/compute.googleapis.com)
|
35
35
|
1. {file:AUTHENTICATION.md Set up authentication.}
|
36
36
|
|
37
|
+
## Debug Logging
|
38
|
+
|
39
|
+
This library comes with opt-in Debug Logging that can help you troubleshoot
|
40
|
+
your application's integration with the API. When logging is activated, key
|
41
|
+
events such as requests and responses, along with data payloads and metadata
|
42
|
+
such as headers and client configuration, are logged to the standard error
|
43
|
+
stream.
|
44
|
+
|
45
|
+
**WARNING:** Client Library Debug Logging includes your data payloads in
|
46
|
+
plaintext, which could include sensitive data such as PII for yourself or your
|
47
|
+
customers, private keys, or other security data that could be compromising if
|
48
|
+
leaked. Always practice good data hygiene with your application logs, and follow
|
49
|
+
the principle of least access. Google also recommends that Client Library Debug
|
50
|
+
Logging be enabled only temporarily during active debugging, and not used
|
51
|
+
permanently in production.
|
52
|
+
|
53
|
+
To enable logging, set the environment variable `GOOGLE_SDK_RUBY_LOGGING_GEMS`
|
54
|
+
to the value `all`. Alternatively, you can set the value to a comma-delimited
|
55
|
+
list of client library gem names. This will select the default logging behavior,
|
56
|
+
which writes logs to the standard error stream. On a local workstation, this may
|
57
|
+
result in logs appearing on the console. When running on a Google Cloud hosting
|
58
|
+
service such as [Google Cloud Run](https://cloud.google.com/run), this generally
|
59
|
+
results in logs appearing alongside your application logs in the
|
60
|
+
[Google Cloud Logging](https://cloud.google.com/logging/) service.
|
61
|
+
|
37
62
|
## Supported Ruby Versions
|
38
63
|
|
39
64
|
This library is supported on Ruby 2.7+.
|
data/lib/google/cloud/compute.rb
CHANGED
@@ -1216,6 +1216,36 @@ module Google
|
|
1216
1216
|
service_module.const_get(:Rest).const_get(:Client).new(&block)
|
1217
1217
|
end
|
1218
1218
|
|
1219
|
+
##
|
1220
|
+
# Create a new client object for NetworkProfiles.
|
1221
|
+
#
|
1222
|
+
# By default, this returns an instance of
|
1223
|
+
# [Google::Cloud::Compute::V1::NetworkProfiles::Rest::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-compute-v1/latest/Google-Cloud-Compute-V1-NetworkProfiles-Rest-Client)
|
1224
|
+
# for a REST client for version V1 of the API.
|
1225
|
+
# However, you can specify a different API version by passing it in the
|
1226
|
+
# `version` parameter. If the NetworkProfiles service is
|
1227
|
+
# supported by that API version, and the corresponding gem is available, the
|
1228
|
+
# appropriate versioned client will be returned.
|
1229
|
+
#
|
1230
|
+
# ## About NetworkProfiles
|
1231
|
+
#
|
1232
|
+
# The NetworkProfiles API.
|
1233
|
+
#
|
1234
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
1235
|
+
# Defaults to `:v1`.
|
1236
|
+
# @return [::Object] A client object for the specified version.
|
1237
|
+
#
|
1238
|
+
def self.network_profiles version: :v1, &block
|
1239
|
+
require "google/cloud/compute/#{version.to_s.downcase}"
|
1240
|
+
|
1241
|
+
package_name = Google::Cloud::Compute
|
1242
|
+
.constants
|
1243
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
1244
|
+
.first
|
1245
|
+
service_module = Google::Cloud::Compute.const_get(package_name).const_get(:NetworkProfiles)
|
1246
|
+
service_module.const_get(:Rest).const_get(:Client).new(&block)
|
1247
|
+
end
|
1248
|
+
|
1219
1249
|
##
|
1220
1250
|
# Create a new client object for Networks.
|
1221
1251
|
#
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-compute
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-12-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-cloud-compute-v1
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '2.
|
19
|
+
version: '2.15'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '2.
|
26
|
+
version: '2.15'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: google-cloud-core
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -71,7 +71,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
71
71
|
- !ruby/object:Gem::Version
|
72
72
|
version: '0'
|
73
73
|
requirements: []
|
74
|
-
rubygems_version: 3.5.
|
74
|
+
rubygems_version: 3.5.23
|
75
75
|
signing_key:
|
76
76
|
specification_version: 4
|
77
77
|
summary: API Client library for the Google Cloud Compute API
|