Class: Google::Apis::ComputeV1::FirewallPolicyRuleSecureTag

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ FirewallPolicyRuleSecureTag

Returns a new instance of FirewallPolicyRuleSecureTag.



9637
9638
9639
# File 'lib/google/apis/compute_v1/classes.rb', line 9637

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)


9629
9630
9631
# File 'lib/google/apis/compute_v1/classes.rb', line 9629

def name
  @name
end

#stateString

[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)


9635
9636
9637
# File 'lib/google/apis/compute_v1/classes.rb', line 9635

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9642
9643
9644
9645
# File 'lib/google/apis/compute_v1/classes.rb', line 9642

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