google-cloud-os_config 1.1.2 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/os_config/version.rb +1 -1
- data/lib/google/cloud/os_config.rb +33 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 76dc071712bec5a9581b80d8b5f07228590df58c7934b0b4f77d7adc9f58c73c
|
4
|
+
data.tar.gz: 3f33d117f9512ab210a90a949dbc5ed395a62cdc9b7e594043d19c69e29c3d4c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b2853d85620e62a0a5dadd3691751af047db604504c7fd627374beed2f174e44dad458765ddc7ad74195f4583398af4692ca7ae98ac0afa059ac0b5ccc4b07ca
|
7
|
+
data.tar.gz: 539766be88e8a18a82ad38949139c178515ad84aeeefb745714b7392399be92e9bf0b38af980fe2e622b1f002632b2ab1d0f92561ae0f6d769a179bbb9220995
|
@@ -77,6 +77,39 @@ module Google
|
|
77
77
|
package_module.const_get(:OsConfigService).const_get(:Client).new(&block)
|
78
78
|
end
|
79
79
|
|
80
|
+
##
|
81
|
+
# Create a new client object for OsConfigZonalService.
|
82
|
+
#
|
83
|
+
# By default, this returns an instance of
|
84
|
+
# [Google::Cloud::OsConfig::V1::OsConfigZonalService::Client](https://googleapis.dev/ruby/google-cloud-os_config-v1/latest/Google/Cloud/OsConfig/V1/OsConfigZonalService/Client.html)
|
85
|
+
# for version V1 of the API.
|
86
|
+
# However, you can specify specify a different API version by passing it in the
|
87
|
+
# `version` parameter. If the OsConfigZonalService service is
|
88
|
+
# supported by that API version, and the corresponding gem is available, the
|
89
|
+
# appropriate versioned client will be returned.
|
90
|
+
#
|
91
|
+
# ## About OsConfigZonalService
|
92
|
+
#
|
93
|
+
# Zonal OS Config API
|
94
|
+
#
|
95
|
+
# The OS Config service is the server-side component that allows users to
|
96
|
+
# manage package installations and patch jobs for Compute Engine VM instances.
|
97
|
+
#
|
98
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
99
|
+
# Defaults to `:v1`.
|
100
|
+
# @return [OsConfigZonalService::Client] A client object for the specified version.
|
101
|
+
#
|
102
|
+
def self.os_config_zonal_service version: :v1, &block
|
103
|
+
require "google/cloud/os_config/#{version.to_s.downcase}"
|
104
|
+
|
105
|
+
package_name = Google::Cloud::OsConfig
|
106
|
+
.constants
|
107
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
108
|
+
.first
|
109
|
+
package_module = Google::Cloud::OsConfig.const_get package_name
|
110
|
+
package_module.const_get(:OsConfigZonalService).const_get(:Client).new(&block)
|
111
|
+
end
|
112
|
+
|
80
113
|
##
|
81
114
|
# Configure the google-cloud-os_config library.
|
82
115
|
#
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-os_config
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.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: 2021-07
|
11
|
+
date: 2021-09-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-cloud-core
|
@@ -30,7 +30,7 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '0.
|
33
|
+
version: '0.6'
|
34
34
|
- - "<"
|
35
35
|
- !ruby/object:Gem::Version
|
36
36
|
version: 2.a
|
@@ -40,7 +40,7 @@ dependencies:
|
|
40
40
|
requirements:
|
41
41
|
- - ">="
|
42
42
|
- !ruby/object:Gem::Version
|
43
|
-
version: '0.
|
43
|
+
version: '0.6'
|
44
44
|
- - "<"
|
45
45
|
- !ruby/object:Gem::Version
|
46
46
|
version: 2.a
|