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.



1077
1078
1079
# File 'lib/google/apis/eventarc_v1/classes.rb', line 1077

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)


1075
1076
1077
# File 'lib/google/apis/eventarc_v1/classes.rb', line 1075

def network_attachment
  @network_attachment
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1082
1083
1084
# File 'lib/google/apis/eventarc_v1/classes.rb', line 1082

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