Class: Google::Apis::ComputeAlpha::FirewallPolicyRuleSecureTag

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

Returns a new instance of FirewallPolicyRuleSecureTag.



16283
16284
16285
# File 'lib/google/apis/compute_alpha/classes.rb', line 16283

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

Instance Attribute Details

#nameString

Name of the secure tag, created with TagManager's TagValue API. Corresponds to the JSON property name

Returns:

  • (String)


16274
16275
16276
# File 'lib/google/apis/compute_alpha/classes.rb', line 16274

def name
  @name
end

#stateString

Output only. [Output Only] State of the secure tag, either EFFECTIVE or INEFFECTIVE. A secure tag is INEFFECTIVE when it is deleted or its network is deleted. Corresponds to the JSON property state

Returns:

  • (String)


16281
16282
16283
# File 'lib/google/apis/compute_alpha/classes.rb', line 16281

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



16288
16289
16290
16291
# File 'lib/google/apis/compute_alpha/classes.rb', line 16288

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