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

Network Configuration that can be inherited by other protos.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ NetworkConfig

Returns a new instance of NetworkConfig.



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

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

Instance Attribute Details

#network_attachmentString

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

Returns:

  • (String)


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

def network_attachment
  @network_attachment
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1088
1089
1090
# File 'lib/google/apis/eventarc_v1/classes.rb', line 1088

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