Class: Google::Apis::FileV1::NetworkConfig
- Inherits:
-
Object
- Object
- Google::Apis::FileV1::NetworkConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/file_v1/classes.rb,
lib/google/apis/file_v1/representations.rb,
lib/google/apis/file_v1/representations.rb
Overview
Network configuration for the instance.
Instance Attribute Summary collapse
-
#connect_mode ⇒ String
The network connect mode of the Filestore instance.
-
#ip_addresses ⇒ Array<String>
Output only.
-
#modes ⇒ Array<String>
Internet protocol versions for which the instance has IP addresses assigned.
-
#network ⇒ String
The name of the Google Compute Engine VPC network to which the instance is connected.
-
#reserved_ip_range ⇒ String
Optional, reserved_ip_range can have one of the following two types of values.
Instance Method Summary collapse
-
#initialize(**args) ⇒ NetworkConfig
constructor
A new instance of NetworkConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ NetworkConfig
Returns a new instance of NetworkConfig.
1170 1171 1172 |
# File 'lib/google/apis/file_v1/classes.rb', line 1170 def initialize(**args) update!(**args) end |
Instance Attribute Details
#connect_mode ⇒ String
The network connect mode of the Filestore instance. If not provided, the
connect mode defaults to DIRECT_PEERING.
Corresponds to the JSON property connectMode
1131 1132 1133 |
# File 'lib/google/apis/file_v1/classes.rb', line 1131 def connect_mode @connect_mode end |
#ip_addresses ⇒ Array<String>
Output only. IPv4 addresses in the format octet1`.`octet2`.`octet3`.`octet4
or IPv6 addresses in the format block1`:`block2`:`block3`:`block4`:`block5`:
`block6`:`block7`:`block8
.
Corresponds to the JSON property ipAddresses
1138 1139 1140 |
# File 'lib/google/apis/file_v1/classes.rb', line 1138 def ip_addresses @ip_addresses end |
#modes ⇒ Array<String>
Internet protocol versions for which the instance has IP addresses assigned.
For this version, only MODE_IPV4 is supported.
Corresponds to the JSON property modes
1144 1145 1146 |
# File 'lib/google/apis/file_v1/classes.rb', line 1144 def modes @modes end |
#network ⇒ String
The name of the Google Compute Engine VPC network to which the instance is connected.
Corresponds to the JSON property network
1150 1151 1152 |
# File 'lib/google/apis/file_v1/classes.rb', line 1150 def network @network end |
#reserved_ip_range ⇒ String
Optional, reserved_ip_range can have one of the following two types of values.
- CIDR range value when using DIRECT_PEERING connect mode. * Allocated IP
address range when using PRIVATE_SERVICE_ACCESS connect mode.
When the name of an allocated IP address range is specified, it must be one of
the ranges associated with the private service access connection. When
specified as a direct CIDR value, it must be a /29 CIDR block for Basic tier,
a /24 CIDR block for High Scale tier, or a /26 CIDR block for Enterprise tier
in one of the internal IP address ranges that identifies the range of IP
addresses reserved for this instance. For example, 10.0.0.0/29, 192.168.0.0/24
or 192.168.0.0/26, respectively. The range you specify can't overlap with
either existing subnets or assigned IP address ranges for other Filestore
instances in the selected VPC network.
Corresponds to the JSON property
reservedIpRange
1168 1169 1170 |
# File 'lib/google/apis/file_v1/classes.rb', line 1168 def reserved_ip_range @reserved_ip_range end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1175 1176 1177 1178 1179 1180 1181 |
# File 'lib/google/apis/file_v1/classes.rb', line 1175 def update!(**args) @connect_mode = args[:connect_mode] if args.key?(:connect_mode) @ip_addresses = args[:ip_addresses] if args.key?(:ip_addresses) @modes = args[:modes] if args.key?(:modes) @network = args[:network] if args.key?(:network) @reserved_ip_range = args[:reserved_ip_range] if args.key?(:reserved_ip_range) end |