google-cloud-vmware_engine 1.2.0 → 1.3.0

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: 52a137fe57818a039f8f028f4d8c459c0ee98ddafd2555513fe5fd43daa89cad
4
- data.tar.gz: c3dbf0d68d6043dfe881e64a47249c80662254001f89332d8a9a0eed970e2fcb
3
+ metadata.gz: 3e6f90ced959d03abc74a8320ce242b34f595bd807ec207eda253abce005ea55
4
+ data.tar.gz: b250428c4053b5b4d003bb91ffa7e47d5450c6e66109d11f884c5ec27327e601
5
5
  SHA512:
6
- metadata.gz: 2092701f94a5ee07779101d6033bb7be2ee27cb59cc681e41ba6f42254289912a76646cb39c2d9adbd38378a99c66a212b47d1dd57081a53a6779d4b78e56112
7
- data.tar.gz: 1965e34de8bc6d4f7bb1110353d80bd7a4002bdb66523deca63ba80bbe7a4b9732de7a7af0e190c78e60a8f3525daf533656f65dccc6cd5fd36c18a47fac23e9
6
+ metadata.gz: 4ba09641ad55eefaedd60ea4f43f010cf0527265a19132811347056feb89f00d19941533daf42d2ca6227c7414d706b9982e88a952c39aac5ce91841a3dbbe0c
7
+ data.tar.gz: b9de364ccbc7eb3736f1cc46588b78890f99b16f302c6e97276ae420aa5e2893a381f5bf08485b9a99de98919daedd4f45b3823c4b3a30a35c9a7128e6d1f553
data/README.md CHANGED
@@ -34,9 +34,39 @@ 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/vmwareengine.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
+
62
+ Debug logging also requires that the versioned clients for this service be
63
+ sufficiently recent, released after about Dec 10, 2024. If logging is not
64
+ working, try updating the versioned clients in your bundle or installed gems:
65
+ [google-cloud-vmware_engine-v1](https://cloud.google.com/ruby/docs/reference/google-cloud-vmware_engine-v1/latest).
66
+
37
67
  ## Supported Ruby Versions
38
68
 
39
- This library is supported on Ruby 2.7+.
69
+ This library is supported on Ruby 3.0+.
40
70
 
41
71
  Google provides official support for Ruby versions that are actively supported
42
72
  by Ruby Core—that is, Ruby versions that are either in normal maintenance or
@@ -20,7 +20,7 @@
20
20
  module Google
21
21
  module Cloud
22
22
  module VmwareEngine
23
- VERSION = "1.2.0"
23
+ VERSION = "1.3.0"
24
24
  end
25
25
  end
26
26
  end
@@ -58,6 +58,11 @@ module Google
58
58
  # You can also specify a different transport by passing `:rest` or `:grpc` in
59
59
  # the `transport` parameter.
60
60
  #
61
+ # Raises an exception if the currently installed versioned client gem for the
62
+ # given API version does not support the given transport of the VmwareEngine service.
63
+ # You can determine whether the method will succeed by calling
64
+ # {Google::Cloud::VmwareEngine.vmware_engine_available?}.
65
+ #
61
66
  # ## About VmwareEngine
62
67
  #
63
68
  # VMwareEngine manages VMware's private clusters in the Cloud.
@@ -79,6 +84,37 @@ module Google
79
84
  service_module.const_get(:Client).new(&block)
80
85
  end
81
86
 
87
+ ##
88
+ # Determines whether the VmwareEngine service is supported by the current client.
89
+ # If true, you can retrieve a client object by calling {Google::Cloud::VmwareEngine.vmware_engine}.
90
+ # If false, that method will raise an exception. This could happen if the given
91
+ # API version does not exist or does not support the VmwareEngine service,
92
+ # or if the versioned client gem needs an update to support the VmwareEngine service.
93
+ #
94
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
95
+ # Defaults to `:v1`.
96
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
97
+ # @return [boolean] Whether the service is available.
98
+ #
99
+ def self.vmware_engine_available? version: :v1, transport: :grpc
100
+ require "google/cloud/vmware_engine/#{version.to_s.downcase}"
101
+ package_name = Google::Cloud::VmwareEngine
102
+ .constants
103
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
104
+ .first
105
+ return false unless package_name
106
+ service_module = Google::Cloud::VmwareEngine.const_get package_name
107
+ return false unless service_module.const_defined? :VmwareEngine
108
+ service_module = service_module.const_get :VmwareEngine
109
+ if transport == :rest
110
+ return false unless service_module.const_defined? :Rest
111
+ service_module = service_module.const_get :Rest
112
+ end
113
+ service_module.const_defined? :Client
114
+ rescue ::LoadError
115
+ false
116
+ end
117
+
82
118
  ##
83
119
  # Configure the google-cloud-vmware_engine library.
84
120
  #
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-vmware_engine
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-02-26 00:00:00.000000000 Z
10
+ date: 2025-01-29 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: google-cloud-core
@@ -65,7 +64,6 @@ homepage: https://github.com/googleapis/google-cloud-ruby
65
64
  licenses:
66
65
  - Apache-2.0
67
66
  metadata: {}
68
- post_install_message:
69
67
  rdoc_options: []
70
68
  require_paths:
71
69
  - lib
@@ -73,15 +71,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
73
71
  requirements:
74
72
  - - ">="
75
73
  - !ruby/object:Gem::Version
76
- version: '2.7'
74
+ version: '3.0'
77
75
  required_rubygems_version: !ruby/object:Gem::Requirement
78
76
  requirements:
79
77
  - - ">="
80
78
  - !ruby/object:Gem::Version
81
79
  version: '0'
82
80
  requirements: []
83
- rubygems_version: 3.5.6
84
- signing_key:
81
+ rubygems_version: 3.6.2
85
82
  specification_version: 4
86
83
  summary: API Client library for the Google Cloud VMware Engine API
87
84
  test_files: []