Class: Google::Apis::ComputeAlpha::NetworkPolicyAssociation

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ NetworkPolicyAssociation

Returns a new instance of NetworkPolicyAssociation.



46127
46128
46129
# File 'lib/google/apis/compute_alpha/classes.rb', line 46127

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

Instance Attribute Details

#attachment_targetString

The target that the network policy is attached to. Corresponds to the JSON property attachmentTarget

Returns:

  • (String)


46120
46121
46122
# File 'lib/google/apis/compute_alpha/classes.rb', line 46120

def attachment_target
  @attachment_target
end

#nameString

The name for an association. Corresponds to the JSON property name

Returns:

  • (String)


46125
46126
46127
# File 'lib/google/apis/compute_alpha/classes.rb', line 46125

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



46132
46133
46134
46135
# File 'lib/google/apis/compute_alpha/classes.rb', line 46132

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