forked from inspec/inspec-gcp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding new fields to container clusters
Signed-off-by: Modular Magician <[email protected]>
- Loading branch information
1 parent
f2233f3
commit a59937f
Showing
5 changed files
with
84 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
58 changes: 58 additions & 0 deletions
58
libraries/google/container/property/regionalcluster_ip_allocation_policy.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# frozen_string_literal: false | ||
|
||
# ---------------------------------------------------------------------------- | ||
# | ||
# *** AUTO GENERATED CODE *** AUTO GENERATED CODE *** | ||
# | ||
# ---------------------------------------------------------------------------- | ||
# | ||
# This file is automatically generated by Magic Modules and manual | ||
# changes will be clobbered when the file is regenerated. | ||
# | ||
# Please read more about how to change this file in README.md and | ||
# CONTRIBUTING.md located at the root of this package. | ||
# | ||
# ---------------------------------------------------------------------------- | ||
module GoogleInSpec | ||
module Container | ||
module Property | ||
class RegionalClusterIpAllocationPolicy | ||
attr_reader :use_ip_aliases | ||
|
||
attr_reader :create_subnetwork | ||
|
||
attr_reader :subnetwork_name | ||
|
||
attr_reader :cluster_secondary_range_name | ||
|
||
attr_reader :services_secondary_range_name | ||
|
||
attr_reader :cluster_ipv4_cidr_block | ||
|
||
attr_reader :node_ipv4_cidr_block | ||
|
||
attr_reader :services_ipv4_cidr_block | ||
|
||
attr_reader :tpu_ipv4_cidr_block | ||
|
||
def initialize(args = nil, parent_identifier = nil) | ||
return if args.nil? | ||
@parent_identifier = parent_identifier | ||
@use_ip_aliases = args['useIpAliases'] | ||
@create_subnetwork = args['createSubnetwork'] | ||
@subnetwork_name = args['subnetworkName'] | ||
@cluster_secondary_range_name = args['clusterSecondaryRangeName'] | ||
@services_secondary_range_name = args['servicesSecondaryRangeName'] | ||
@cluster_ipv4_cidr_block = args['clusterIpv4CidrBlock'] | ||
@node_ipv4_cidr_block = args['nodeIpv4CidrBlock'] | ||
@services_ipv4_cidr_block = args['servicesIpv4CidrBlock'] | ||
@tpu_ipv4_cidr_block = args['tpuIpv4CidrBlock'] | ||
end | ||
|
||
def to_s | ||
"#{@parent_identifier} RegionalClusterIpAllocationPolicy" | ||
end | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters