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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: deef0fb29d3df22dc3e8be86e138623b4bff00f548a8a4595600c646db425029
4
- data.tar.gz: b7bf76e9d6f1bd76f31821fa880ecce5b3c335349fa79131bd3c55931bf15339
3
+ metadata.gz: 76dc071712bec5a9581b80d8b5f07228590df58c7934b0b4f77d7adc9f58c73c
4
+ data.tar.gz: 3f33d117f9512ab210a90a949dbc5ed395a62cdc9b7e594043d19c69e29c3d4c
5
5
  SHA512:
6
- metadata.gz: 2a740a1bbcf0bfa28786cd9ee96cb1626c1f32294316afa172483252ac9631f5a5a7a40d8f8bb7211fb8f29f0c32c7790a1a32ea1a8166fe9f9dfebdf7d81223
7
- data.tar.gz: 86461d73ac06f2d24a658c1fc411a06f0241c57f836313d8d141ff032799498335080fcf6f1ae95b1480505e72c61836071b653025551cb2b8462389415e3b1e
6
+ metadata.gz: b2853d85620e62a0a5dadd3691751af047db604504c7fd627374beed2f174e44dad458765ddc7ad74195f4583398af4692ca7ae98ac0afa059ac0b5ccc4b07ca
7
+ data.tar.gz: 539766be88e8a18a82ad38949139c178515ad84aeeefb745714b7392399be92e9bf0b38af980fe2e622b1f002632b2ab1d0f92561ae0f6d769a179bbb9220995
@@ -20,7 +20,7 @@
20
20
  module Google
21
21
  module Cloud
22
22
  module OsConfig
23
- VERSION = "1.1.2"
23
+ VERSION = "1.2.0"
24
24
  end
25
25
  end
26
26
  end
@@ -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.1.2
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-12 00:00:00.000000000 Z
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.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.0'
43
+ version: '0.6'
44
44
  - - "<"
45
45
  - !ruby/object:Gem::Version
46
46
  version: 2.a