google-cloud-compute 0.1.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +5 -5
- data/lib/google/cloud/compute/version.rb +1 -1
- data/lib/google/cloud/compute.rb +150 -0
- metadata +14 -20
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3a59c7a94b6de69c08631a8e1b18b53607b24fa920db48d28eed1417f2522d0e
|
4
|
+
data.tar.gz: 90c7c5ac3bb9cb32afe652e674625b24449e2f9d8d2dd28a0c3b3467a3c81b5a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7f110a708dec6538cea1bb0191f08f5427ec280cd44f6e45b5a928603afae6ce4839249d44c557c319edb0b22b1456dd6b533c84b18400b8a6376a9a4cd40c00
|
7
|
+
data.tar.gz: 8f3db1432111567b36f7e2a6695d3846a95f38103d8f74529c0b7db7552f554660b1c74afd22306bcf1e9d91fe788201920f1a90066e5a337494ff7c94119337
|
data/README.md
CHANGED
@@ -36,14 +36,14 @@ In order to use this library, you first need to go through the following steps:
|
|
36
36
|
|
37
37
|
## Supported Ruby Versions
|
38
38
|
|
39
|
-
This library is supported on Ruby 2.
|
39
|
+
This library is supported on Ruby 2.6+.
|
40
40
|
|
41
41
|
Google provides official support for Ruby versions that are actively supported
|
42
42
|
by Ruby Core—that is, Ruby versions that are either in normal maintenance or
|
43
|
-
in security maintenance, and not end of life.
|
44
|
-
|
45
|
-
|
46
|
-
|
43
|
+
in security maintenance, and not end of life. Older versions of Ruby _may_
|
44
|
+
still work, but are unsupported and not recommended. See
|
45
|
+
https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby
|
46
|
+
support schedule.
|
47
47
|
|
48
48
|
## Which client should I use?
|
49
49
|
|
data/lib/google/cloud/compute.rb
CHANGED
@@ -913,6 +913,36 @@ module Google
|
|
913
913
|
package_module.const_get(:Licenses).const_get(:Rest).const_get(:Client).new(&block)
|
914
914
|
end
|
915
915
|
|
916
|
+
##
|
917
|
+
# Create a new client object for MachineImages.
|
918
|
+
#
|
919
|
+
# By default, this returns an instance of
|
920
|
+
# [Google::Cloud::Compute::V1::MachineImages::Rest::Client](https://googleapis.dev/ruby/google-cloud-compute-v1/latest/Google/Cloud/Compute/V1/MachineImages/Rest/Client.html)
|
921
|
+
# for version V1 of the API.
|
922
|
+
# However, you can specify specify a different API version by passing it in the
|
923
|
+
# `version` parameter. If the MachineImages service is
|
924
|
+
# supported by that API version, and the corresponding gem is available, the
|
925
|
+
# appropriate versioned client will be returned.
|
926
|
+
#
|
927
|
+
# ## About MachineImages
|
928
|
+
#
|
929
|
+
# The MachineImages API.
|
930
|
+
#
|
931
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
932
|
+
# Defaults to `:v1`.
|
933
|
+
# @return [MachineImages::Rest::Client] A client object for the specified version.
|
934
|
+
#
|
935
|
+
def self.machine_images version: :v1, &block
|
936
|
+
require "google/cloud/compute/#{version.to_s.downcase}"
|
937
|
+
|
938
|
+
package_name = Google::Cloud::Compute
|
939
|
+
.constants
|
940
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
941
|
+
.first
|
942
|
+
package_module = Google::Cloud::Compute.const_get package_name
|
943
|
+
package_module.const_get(:MachineImages).const_get(:Rest).const_get(:Client).new(&block)
|
944
|
+
end
|
945
|
+
|
916
946
|
##
|
917
947
|
# Create a new client object for MachineTypes.
|
918
948
|
#
|
@@ -943,6 +973,36 @@ module Google
|
|
943
973
|
package_module.const_get(:MachineTypes).const_get(:Rest).const_get(:Client).new(&block)
|
944
974
|
end
|
945
975
|
|
976
|
+
##
|
977
|
+
# Create a new client object for NetworkEdgeSecurityServices.
|
978
|
+
#
|
979
|
+
# By default, this returns an instance of
|
980
|
+
# [Google::Cloud::Compute::V1::NetworkEdgeSecurityServices::Rest::Client](https://googleapis.dev/ruby/google-cloud-compute-v1/latest/Google/Cloud/Compute/V1/NetworkEdgeSecurityServices/Rest/Client.html)
|
981
|
+
# for version V1 of the API.
|
982
|
+
# However, you can specify specify a different API version by passing it in the
|
983
|
+
# `version` parameter. If the NetworkEdgeSecurityServices service is
|
984
|
+
# supported by that API version, and the corresponding gem is available, the
|
985
|
+
# appropriate versioned client will be returned.
|
986
|
+
#
|
987
|
+
# ## About NetworkEdgeSecurityServices
|
988
|
+
#
|
989
|
+
# The NetworkEdgeSecurityServices API.
|
990
|
+
#
|
991
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
992
|
+
# Defaults to `:v1`.
|
993
|
+
# @return [NetworkEdgeSecurityServices::Rest::Client] A client object for the specified version.
|
994
|
+
#
|
995
|
+
def self.network_edge_security_services version: :v1, &block
|
996
|
+
require "google/cloud/compute/#{version.to_s.downcase}"
|
997
|
+
|
998
|
+
package_name = Google::Cloud::Compute
|
999
|
+
.constants
|
1000
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
1001
|
+
.first
|
1002
|
+
package_module = Google::Cloud::Compute.const_get package_name
|
1003
|
+
package_module.const_get(:NetworkEdgeSecurityServices).const_get(:Rest).const_get(:Client).new(&block)
|
1004
|
+
end
|
1005
|
+
|
946
1006
|
##
|
947
1007
|
# Create a new client object for NetworkEndpointGroups.
|
948
1008
|
#
|
@@ -973,6 +1033,36 @@ module Google
|
|
973
1033
|
package_module.const_get(:NetworkEndpointGroups).const_get(:Rest).const_get(:Client).new(&block)
|
974
1034
|
end
|
975
1035
|
|
1036
|
+
##
|
1037
|
+
# Create a new client object for NetworkFirewallPolicies.
|
1038
|
+
#
|
1039
|
+
# By default, this returns an instance of
|
1040
|
+
# [Google::Cloud::Compute::V1::NetworkFirewallPolicies::Rest::Client](https://googleapis.dev/ruby/google-cloud-compute-v1/latest/Google/Cloud/Compute/V1/NetworkFirewallPolicies/Rest/Client.html)
|
1041
|
+
# for version V1 of the API.
|
1042
|
+
# However, you can specify specify a different API version by passing it in the
|
1043
|
+
# `version` parameter. If the NetworkFirewallPolicies service is
|
1044
|
+
# supported by that API version, and the corresponding gem is available, the
|
1045
|
+
# appropriate versioned client will be returned.
|
1046
|
+
#
|
1047
|
+
# ## About NetworkFirewallPolicies
|
1048
|
+
#
|
1049
|
+
# The NetworkFirewallPolicies API.
|
1050
|
+
#
|
1051
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
1052
|
+
# Defaults to `:v1`.
|
1053
|
+
# @return [NetworkFirewallPolicies::Rest::Client] A client object for the specified version.
|
1054
|
+
#
|
1055
|
+
def self.network_firewall_policies version: :v1, &block
|
1056
|
+
require "google/cloud/compute/#{version.to_s.downcase}"
|
1057
|
+
|
1058
|
+
package_name = Google::Cloud::Compute
|
1059
|
+
.constants
|
1060
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
1061
|
+
.first
|
1062
|
+
package_module = Google::Cloud::Compute.const_get package_name
|
1063
|
+
package_module.const_get(:NetworkFirewallPolicies).const_get(:Rest).const_get(:Client).new(&block)
|
1064
|
+
end
|
1065
|
+
|
976
1066
|
##
|
977
1067
|
# Create a new client object for Networks.
|
978
1068
|
#
|
@@ -1543,6 +1633,36 @@ module Google
|
|
1543
1633
|
package_module.const_get(:RegionNetworkEndpointGroups).const_get(:Rest).const_get(:Client).new(&block)
|
1544
1634
|
end
|
1545
1635
|
|
1636
|
+
##
|
1637
|
+
# Create a new client object for RegionNetworkFirewallPolicies.
|
1638
|
+
#
|
1639
|
+
# By default, this returns an instance of
|
1640
|
+
# [Google::Cloud::Compute::V1::RegionNetworkFirewallPolicies::Rest::Client](https://googleapis.dev/ruby/google-cloud-compute-v1/latest/Google/Cloud/Compute/V1/RegionNetworkFirewallPolicies/Rest/Client.html)
|
1641
|
+
# for version V1 of the API.
|
1642
|
+
# However, you can specify specify a different API version by passing it in the
|
1643
|
+
# `version` parameter. If the RegionNetworkFirewallPolicies service is
|
1644
|
+
# supported by that API version, and the corresponding gem is available, the
|
1645
|
+
# appropriate versioned client will be returned.
|
1646
|
+
#
|
1647
|
+
# ## About RegionNetworkFirewallPolicies
|
1648
|
+
#
|
1649
|
+
# The RegionNetworkFirewallPolicies API.
|
1650
|
+
#
|
1651
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
1652
|
+
# Defaults to `:v1`.
|
1653
|
+
# @return [RegionNetworkFirewallPolicies::Rest::Client] A client object for the specified version.
|
1654
|
+
#
|
1655
|
+
def self.region_network_firewall_policies version: :v1, &block
|
1656
|
+
require "google/cloud/compute/#{version.to_s.downcase}"
|
1657
|
+
|
1658
|
+
package_name = Google::Cloud::Compute
|
1659
|
+
.constants
|
1660
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
1661
|
+
.first
|
1662
|
+
package_module = Google::Cloud::Compute.const_get package_name
|
1663
|
+
package_module.const_get(:RegionNetworkFirewallPolicies).const_get(:Rest).const_get(:Client).new(&block)
|
1664
|
+
end
|
1665
|
+
|
1546
1666
|
##
|
1547
1667
|
# Create a new client object for RegionNotificationEndpoints.
|
1548
1668
|
#
|
@@ -1603,6 +1723,36 @@ module Google
|
|
1603
1723
|
package_module.const_get(:RegionOperations).const_get(:Rest).const_get(:Client).new(&block)
|
1604
1724
|
end
|
1605
1725
|
|
1726
|
+
##
|
1727
|
+
# Create a new client object for RegionSecurityPolicies.
|
1728
|
+
#
|
1729
|
+
# By default, this returns an instance of
|
1730
|
+
# [Google::Cloud::Compute::V1::RegionSecurityPolicies::Rest::Client](https://googleapis.dev/ruby/google-cloud-compute-v1/latest/Google/Cloud/Compute/V1/RegionSecurityPolicies/Rest/Client.html)
|
1731
|
+
# for version V1 of the API.
|
1732
|
+
# However, you can specify specify a different API version by passing it in the
|
1733
|
+
# `version` parameter. If the RegionSecurityPolicies service is
|
1734
|
+
# supported by that API version, and the corresponding gem is available, the
|
1735
|
+
# appropriate versioned client will be returned.
|
1736
|
+
#
|
1737
|
+
# ## About RegionSecurityPolicies
|
1738
|
+
#
|
1739
|
+
# The RegionSecurityPolicies API.
|
1740
|
+
#
|
1741
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
1742
|
+
# Defaults to `:v1`.
|
1743
|
+
# @return [RegionSecurityPolicies::Rest::Client] A client object for the specified version.
|
1744
|
+
#
|
1745
|
+
def self.region_security_policies version: :v1, &block
|
1746
|
+
require "google/cloud/compute/#{version.to_s.downcase}"
|
1747
|
+
|
1748
|
+
package_name = Google::Cloud::Compute
|
1749
|
+
.constants
|
1750
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
1751
|
+
.first
|
1752
|
+
package_module = Google::Cloud::Compute.const_get package_name
|
1753
|
+
package_module.const_get(:RegionSecurityPolicies).const_get(:Rest).const_get(:Client).new(&block)
|
1754
|
+
end
|
1755
|
+
|
1606
1756
|
##
|
1607
1757
|
# Create a new client object for RegionSslCertificates.
|
1608
1758
|
#
|
metadata
CHANGED
@@ -1,35 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-compute
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.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: 2022-02
|
11
|
+
date: 2022-07-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-cloud-compute-v1
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '0.0'
|
20
|
-
- - "<"
|
17
|
+
- - "~>"
|
21
18
|
- !ruby/object:Gem::Version
|
22
|
-
version:
|
19
|
+
version: '1.3'
|
23
20
|
type: :runtime
|
24
21
|
prerelease: false
|
25
22
|
version_requirements: !ruby/object:Gem::Requirement
|
26
23
|
requirements:
|
27
|
-
- - "
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: '0.0'
|
30
|
-
- - "<"
|
24
|
+
- - "~>"
|
31
25
|
- !ruby/object:Gem::Version
|
32
|
-
version:
|
26
|
+
version: '1.3'
|
33
27
|
- !ruby/object:Gem::Dependency
|
34
28
|
name: google-cloud-core
|
35
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -50,28 +44,28 @@ dependencies:
|
|
50
44
|
requirements:
|
51
45
|
- - "~>"
|
52
46
|
- !ruby/object:Gem::Version
|
53
|
-
version: 1.
|
47
|
+
version: 1.26.1
|
54
48
|
type: :development
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
51
|
requirements:
|
58
52
|
- - "~>"
|
59
53
|
- !ruby/object:Gem::Version
|
60
|
-
version: 1.
|
54
|
+
version: 1.26.1
|
61
55
|
- !ruby/object:Gem::Dependency
|
62
56
|
name: minitest
|
63
57
|
requirement: !ruby/object:Gem::Requirement
|
64
58
|
requirements:
|
65
59
|
- - "~>"
|
66
60
|
- !ruby/object:Gem::Version
|
67
|
-
version: '5.
|
61
|
+
version: '5.16'
|
68
62
|
type: :development
|
69
63
|
prerelease: false
|
70
64
|
version_requirements: !ruby/object:Gem::Requirement
|
71
65
|
requirements:
|
72
66
|
- - "~>"
|
73
67
|
- !ruby/object:Gem::Version
|
74
|
-
version: '5.
|
68
|
+
version: '5.16'
|
75
69
|
- !ruby/object:Gem::Dependency
|
76
70
|
name: minitest-focus
|
77
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -106,14 +100,14 @@ dependencies:
|
|
106
100
|
requirements:
|
107
101
|
- - ">="
|
108
102
|
- !ruby/object:Gem::Version
|
109
|
-
version: '
|
103
|
+
version: '13.0'
|
110
104
|
type: :development
|
111
105
|
prerelease: false
|
112
106
|
version_requirements: !ruby/object:Gem::Requirement
|
113
107
|
requirements:
|
114
108
|
- - ">="
|
115
109
|
- !ruby/object:Gem::Version
|
116
|
-
version: '
|
110
|
+
version: '13.0'
|
117
111
|
- !ruby/object:Gem::Dependency
|
118
112
|
name: redcarpet
|
119
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -182,14 +176,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
182
176
|
requirements:
|
183
177
|
- - ">="
|
184
178
|
- !ruby/object:Gem::Version
|
185
|
-
version: '2.
|
179
|
+
version: '2.6'
|
186
180
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
187
181
|
requirements:
|
188
182
|
- - ">="
|
189
183
|
- !ruby/object:Gem::Version
|
190
184
|
version: '0'
|
191
185
|
requirements: []
|
192
|
-
rubygems_version: 3.3.
|
186
|
+
rubygems_version: 3.3.14
|
193
187
|
signing_key:
|
194
188
|
specification_version: 4
|
195
189
|
summary: API Client library for the Google Cloud Compute API
|