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.



2071
2072
2073
# File 'lib/google/apis/eventarc_v1/classes.rb', line 2071

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)


2069
2070
2071
# File 'lib/google/apis/eventarc_v1/classes.rb', line 2069

def network_attachment
  @network_attachment
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2076
2077
2078
# File 'lib/google/apis/eventarc_v1/classes.rb', line 2076

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