Class: Google::Apis::RunV2::GoogleCloudRunV2NetworkInterface

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

Overview

VPC network settings.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRunV2NetworkInterface

Returns a new instance of GoogleCloudRunV2NetworkInterface.



1141
1142
1143
# File 'lib/google/apis/run_v2/classes.rb', line 1141

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

Instance Attribute Details

#networkString

The VPC network name to access to. Defaults to "default" network. Corresponds to the JSON property network

Returns:

  • (String)


1129
1130
1131
# File 'lib/google/apis/run_v2/classes.rb', line 1129

def network
  @network
end

#subnetworkString

The VPC subnetwork name to access to. Defaults to the same vaule of network. Corresponds to the JSON property subnetwork

Returns:

  • (String)


1134
1135
1136
# File 'lib/google/apis/run_v2/classes.rb', line 1134

def subnetwork
  @subnetwork
end

#tagsArray<String>

Network tags applied to this VPC network. Corresponds to the JSON property tags

Returns:

  • (Array<String>)


1139
1140
1141
# File 'lib/google/apis/run_v2/classes.rb', line 1139

def tags
  @tags
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1146
1147
1148
1149
1150
# File 'lib/google/apis/run_v2/classes.rb', line 1146

def update!(**args)
  @network = args[:network] if args.key?(:network)
  @subnetwork = args[:subnetwork] if args.key?(:subnetwork)
  @tags = args[:tags] if args.key?(:tags)
end