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

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) ⇒ SecurityPolicyAssociation

Returns a new instance of SecurityPolicyAssociation.



45249
45250
45251
# File 'lib/google/apis/compute_alpha/classes.rb', line 45249

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)


45217
45218
45219
# File 'lib/google/apis/compute_alpha/classes.rb', line 45217

def attachment_id
  @attachment_id
end

#display_nameString

[Output Only] The display name of the security policy of the association. Corresponds to the JSON property displayName

Returns:

  • (String)


45222
45223
45224
# File 'lib/google/apis/compute_alpha/classes.rb', line 45222

def display_name
  @display_name
end

#excluded_foldersArray<String>

A list of folders to exclude from the security policy. Corresponds to the JSON property excludedFolders

Returns:

  • (Array<String>)


45227
45228
45229
# File 'lib/google/apis/compute_alpha/classes.rb', line 45227

def excluded_folders
  @excluded_folders
end

#excluded_projectsArray<String>

A list of projects to exclude from the security policy. Corresponds to the JSON property excludedProjects

Returns:

  • (Array<String>)


45232
45233
45234
# File 'lib/google/apis/compute_alpha/classes.rb', line 45232

def excluded_projects
  @excluded_projects
end

#nameString

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

Returns:

  • (String)


45237
45238
45239
# File 'lib/google/apis/compute_alpha/classes.rb', line 45237

def name
  @name
end

#security_policy_idString

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

Returns:

  • (String)


45242
45243
45244
# File 'lib/google/apis/compute_alpha/classes.rb', line 45242

def security_policy_id
  @security_policy_id
end

#short_nameString

[Output Only] The short name of the security policy of the association. Corresponds to the JSON property shortName

Returns:

  • (String)


45247
45248
45249
# File 'lib/google/apis/compute_alpha/classes.rb', line 45247

def short_name
  @short_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



45254
45255
45256
45257
45258
45259
45260
45261
45262
# File 'lib/google/apis/compute_alpha/classes.rb', line 45254

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