Class: Google::Apis::FileV1beta1::NetworkConfig
- Inherits:
-
Object
- Object
- Google::Apis::FileV1beta1::NetworkConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/file_v1beta1/classes.rb,
generated/google/apis/file_v1beta1/representations.rb,
generated/google/apis/file_v1beta1/representations.rb
Overview
Network configuration for the instance.
Instance Attribute Summary collapse
-
#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
A /29 CIDR block in one of the internal IP address ranges that identifies the range of IP addresses reserved for this instance.
-
#subnetwork ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ NetworkConfig
constructor
A new instance of NetworkConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ NetworkConfig
Returns a new instance of NetworkConfig
486 487 488 |
# File 'generated/google/apis/file_v1beta1/classes.rb', line 486 def initialize(**args) update!(**args) end |
Instance Attribute Details
#ip_addresses ⇒ Array<String>
Output only.
IPv4 addresses in the format
octet 1
.octet 2
.octet 3
.octet 4
or IPv6 addresses in the format
block 1
:block 2
:block 3
:block 4
:block 5
:block 6
:block 7
:block 8
.
Corresponds to the JSON property ipAddresses
452 453 454 |
# File 'generated/google/apis/file_v1beta1/classes.rb', line 452 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
458 459 460 |
# File 'generated/google/apis/file_v1beta1/classes.rb', line 458 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
465 466 467 |
# File 'generated/google/apis/file_v1beta1/classes.rb', line 465 def network @network end |
#reserved_ip_range ⇒ String
A /29 CIDR block 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 or 192.168.0.0/29. The range you specify
can't overlap with either existing subnets or assigned IP address ranges
for other Cloud Filestore instances in the selected VPC network.
Corresponds to the JSON property reservedIpRange
476 477 478 |
# File 'generated/google/apis/file_v1beta1/classes.rb', line 476 def reserved_ip_range @reserved_ip_range end |
#subnetwork ⇒ String
Output only.
The name of the Google Compute Engine
subnetwork to which the
instance is connected.
Corresponds to the JSON property subnetwork
484 485 486 |
# File 'generated/google/apis/file_v1beta1/classes.rb', line 484 def subnetwork @subnetwork end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
491 492 493 494 495 496 497 |
# File 'generated/google/apis/file_v1beta1/classes.rb', line 491 def update!(**args) @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) @subnetwork = args[:subnetwork] if args.key?(:subnetwork) end |