Class: Google::Apis::ComputeAlpha::SecurityPolicyAssociation

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ SecurityPolicyAssociation

Returns a new instance of SecurityPolicyAssociation



29940
29941
29942
# File 'generated/google/apis/compute_alpha/classes.rb', line 29940

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

Instance Attribute Details

#attachment_idString

The resource that the security policy is attached to. Corresponds to the JSON property attachmentId

Returns:

  • (String)


29928
29929
29930
# File 'generated/google/apis/compute_alpha/classes.rb', line 29928

def attachment_id
  @attachment_id
end

#nameString

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

Returns:

  • (String)


29933
29934
29935
# File 'generated/google/apis/compute_alpha/classes.rb', line 29933

def name
  @name
end

#security_policy_idString

[Output Only] The security policy ID of the association. Corresponds to the JSON property securityPolicyId

Returns:

  • (String)


29938
29939
29940
# File 'generated/google/apis/compute_alpha/classes.rb', line 29938

def security_policy_id
  @security_policy_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



29945
29946
29947
29948
29949
# File 'generated/google/apis/compute_alpha/classes.rb', line 29945

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