Class: Google::Apis::FileV1beta1::NetworkConfig

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/file_v1beta1/classes.rb,
lib/google/apis/file_v1beta1/representations.rb,
lib/google/apis/file_v1beta1/representations.rb

Overview

Network configuration for the instance.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ NetworkConfig

Returns a new instance of NetworkConfig.



1130
1131
1132
# File 'lib/google/apis/file_v1beta1/classes.rb', line 1130

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#connect_modeString

The network connect mode of the Filestore instance. If not provided, the connect mode defaults to DIRECT_PEERING. Corresponds to the JSON property connectMode

Returns:

  • (String)


1099
1100
1101
# File 'lib/google/apis/file_v1beta1/classes.rb', line 1099

def connect_mode
  @connect_mode
end

#ip_addressesArray<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

Returns:

  • (Array<String>)


1106
1107
1108
# File 'lib/google/apis/file_v1beta1/classes.rb', line 1106

def ip_addresses
  @ip_addresses
end

#modesArray<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

Returns:

  • (Array<String>)


1112
1113
1114
# File 'lib/google/apis/file_v1beta1/classes.rb', line 1112

def modes
  @modes
end

#networkString

The name of the Google Compute Engine VPC network to which the instance is connected. Corresponds to the JSON property network

Returns:

  • (String)


1118
1119
1120
# File 'lib/google/apis/file_v1beta1/classes.rb', line 1118

def network
  @network
end

#reserved_ip_rangeString

A /29 CIDR block for Basic or a /23 CIDR block for High Scale 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/23. 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

Returns:

  • (String)


1128
1129
1130
# File 'lib/google/apis/file_v1beta1/classes.rb', line 1128

def reserved_ip_range
  @reserved_ip_range
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1135
1136
1137
1138
1139
1140
1141
# File 'lib/google/apis/file_v1beta1/classes.rb', line 1135

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