Class: Google::Apis::EventarcV1::NetworkConfig

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

Overview

Represents a network config to be used for destination resolution and connectivity.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ NetworkConfig

Returns a new instance of NetworkConfig.



1063
1064
1065
# File 'lib/google/apis/eventarc_v1/classes.rb', line 1063

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

Instance Attribute Details

#network_attachmentString

Required. Name of the NetworkAttachment that allows access to the destination VPC. Format: projects/PROJECT_ID/regions/REGION/networkAttachments/ NETWORK_ATTACHMENT_NAME` Corresponds to the JSON propertynetworkAttachment`

Returns:

  • (String)


1061
1062
1063
# File 'lib/google/apis/eventarc_v1/classes.rb', line 1061

def network_attachment
  @network_attachment
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1068
1069
1070
# File 'lib/google/apis/eventarc_v1/classes.rb', line 1068

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