Class: Google::Apis::NetworksecurityV1beta1::FirewallEndpointAssociationReference

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

Overview

This is a subset of the FirewallEndpointAssociation message, containing fields to be used by the consumer.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ FirewallEndpointAssociationReference

Returns a new instance of FirewallEndpointAssociationReference.



1172
1173
1174
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 1172

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

Instance Attribute Details

#nameString

Output only. The resource name of the FirewallEndpointAssociation. Format: projects/project/locations/location/firewallEndpointAssociations/id Corresponds to the JSON property name

Returns:

  • (String)


1164
1165
1166
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 1164

def name
  @name
end

#networkString

Output only. The VPC network associated. Format: projects/project/global/ networks/name. Corresponds to the JSON property network

Returns:

  • (String)


1170
1171
1172
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 1170

def network
  @network
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1177
1178
1179
1180
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 1177

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