Class: Google::Apis::BackupdrV1::NetworkInterface
- Inherits:
-
Object
- Object
- Google::Apis::BackupdrV1::NetworkInterface
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/backupdr_v1/classes.rb,
lib/google/apis/backupdr_v1/representations.rb,
lib/google/apis/backupdr_v1/representations.rb
Overview
A network interface resource attached to an instance. s
Instance Attribute Summary collapse
-
#access_configs ⇒ Array<Google::Apis::BackupdrV1::AccessConfig>
Optional.
-
#alias_ip_ranges ⇒ Array<Google::Apis::BackupdrV1::AliasIpRange>
Optional.
-
#internal_ipv6_prefix_length ⇒ Fixnum
Optional.
-
#ipv6_access_configs ⇒ Array<Google::Apis::BackupdrV1::AccessConfig>
Optional.
-
#ipv6_access_type ⇒ String
Optional.
-
#ipv6_address ⇒ String
Optional.
-
#name ⇒ String
Output only.
-
#network ⇒ String
Optional.
-
#network_attachment ⇒ String
Optional.
-
#network_ip ⇒ String
Optional.
-
#nic_type ⇒ String
Optional.
-
#queue_count ⇒ Fixnum
Optional.
-
#stack_type ⇒ String
The stack type for this network interface.
-
#subnetwork ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ NetworkInterface
constructor
A new instance of NetworkInterface.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ NetworkInterface
Returns a new instance of NetworkInterface.
3003 3004 3005 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 3003 def initialize(**args) update!(**args) end |
Instance Attribute Details
#access_configs ⇒ Array<Google::Apis::BackupdrV1::AccessConfig>
Optional. An array of configurations for this interface. Currently, only one
access config,ONE_TO_ONE_NAT is supported. If there are no accessConfigs
specified, then this instance will have no external internet access.
Corresponds to the JSON property accessConfigs
2919 2920 2921 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 2919 def access_configs @access_configs end |
#alias_ip_ranges ⇒ Array<Google::Apis::BackupdrV1::AliasIpRange>
Optional. An array of alias IP ranges for this network interface. You can only
specify this field for network interfaces in VPC networks.
Corresponds to the JSON property aliasIpRanges
2925 2926 2927 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 2925 def alias_ip_ranges @alias_ip_ranges end |
#internal_ipv6_prefix_length ⇒ Fixnum
Optional. The prefix length of the primary internal IPv6 range.
Corresponds to the JSON property internalIpv6PrefixLength
2930 2931 2932 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 2930 def internal_ipv6_prefix_length @internal_ipv6_prefix_length end |
#ipv6_access_configs ⇒ Array<Google::Apis::BackupdrV1::AccessConfig>
Optional. An array of IPv6 access configurations for this interface. Currently,
only one IPv6 access config, DIRECT_IPV6, is supported. If there is no
ipv6AccessConfig specified, then this instance will have no external IPv6
Internet access.
Corresponds to the JSON property ipv6AccessConfigs
2938 2939 2940 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 2938 def ipv6_access_configs @ipv6_access_configs end |
#ipv6_access_type ⇒ String
Optional. [Output Only] One of EXTERNAL, INTERNAL to indicate whether the IP
can be accessed from the Internet. This field is always inherited from its
subnetwork.
Corresponds to the JSON property ipv6AccessType
2945 2946 2947 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 2945 def ipv6_access_type @ipv6_access_type end |
#ipv6_address ⇒ String
Optional. An IPv6 internal network address for this network interface. To use
a static internal IP address, it must be unused and in the same region as the
instance's zone. If not specified, Google Cloud will automatically assign an
internal IPv6 address from the instance's subnetwork.
Corresponds to the JSON property ipv6Address
2953 2954 2955 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 2953 def ipv6_address @ipv6_address end |
#name ⇒ String
Output only. [Output Only] The name of the network interface, which is
generated by the server.
Corresponds to the JSON property name
2959 2960 2961 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 2959 def name @name end |
#network ⇒ String
Optional. URL of the VPC network resource for this instance.
Corresponds to the JSON property network
2964 2965 2966 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 2964 def network @network end |
#network_attachment ⇒ String
Optional. The URL of the network attachment that this interface should connect
to in the following format: projects/project_number
/regions/region_name
/
networkAttachments/network_attachment_name
.
Corresponds to the JSON property networkAttachment
2971 2972 2973 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 2971 def @network_attachment end |
#network_ip ⇒ String
Optional. An IPv4 internal IP address to assign to the instance for this
network interface. If not specified by the user, an unused internal IP is
assigned by the system.
Corresponds to the JSON property networkIP
2978 2979 2980 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 2978 def network_ip @network_ip end |
#nic_type ⇒ String
Optional. The type of vNIC to be used on this interface. This may be gVNIC or
VirtioNet.
Corresponds to the JSON property nicType
2984 2985 2986 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 2984 def nic_type @nic_type end |
#queue_count ⇒ Fixnum
Optional. The networking queue count that's specified by users for the network
interface. Both Rx and Tx queues will be set to this number. It'll be empty if
not specified by the users.
Corresponds to the JSON property queueCount
2991 2992 2993 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 2991 def queue_count @queue_count end |
#stack_type ⇒ String
The stack type for this network interface.
Corresponds to the JSON property stackType
2996 2997 2998 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 2996 def stack_type @stack_type end |
#subnetwork ⇒ String
Optional. The URL of the Subnetwork resource for this instance.
Corresponds to the JSON property subnetwork
3001 3002 3003 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 3001 def subnetwork @subnetwork end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 3008 def update!(**args) @access_configs = args[:access_configs] if args.key?(:access_configs) @alias_ip_ranges = args[:alias_ip_ranges] if args.key?(:alias_ip_ranges) @internal_ipv6_prefix_length = args[:internal_ipv6_prefix_length] if args.key?(:internal_ipv6_prefix_length) @ipv6_access_configs = args[:ipv6_access_configs] if args.key?(:ipv6_access_configs) @ipv6_access_type = args[:ipv6_access_type] if args.key?(:ipv6_access_type) @ipv6_address = args[:ipv6_address] if args.key?(:ipv6_address) @name = args[:name] if args.key?(:name) @network = args[:network] if args.key?(:network) @network_attachment = args[:network_attachment] if args.key?(:network_attachment) @network_ip = args[:network_ip] if args.key?(:network_ip) @nic_type = args[:nic_type] if args.key?(:nic_type) @queue_count = args[:queue_count] if args.key?(:queue_count) @stack_type = args[:stack_type] if args.key?(:stack_type) @subnetwork = args[:subnetwork] if args.key?(:subnetwork) end |