Class: Google::Apis::ComputeAlpha::Condition

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

Overview

A condition to be met.

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

Returns a new instance of Condition



4543
4544
4545
# File 'generated/google/apis/compute_alpha/classes.rb', line 4543

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

Instance Attribute Details

#iamString

Trusted attributes supplied by the IAM system. Corresponds to the JSON property iam

Returns:

  • (String)


4515
4516
4517
# File 'generated/google/apis/compute_alpha/classes.rb', line 4515

def iam
  @iam
end

#opString

An operator to apply the subject with. Corresponds to the JSON property op

Returns:

  • (String)


4520
4521
4522
# File 'generated/google/apis/compute_alpha/classes.rb', line 4520

def op
  @op
end

#svcString

Trusted attributes discharged by the service. Corresponds to the JSON property svc

Returns:

  • (String)


4525
4526
4527
# File 'generated/google/apis/compute_alpha/classes.rb', line 4525

def svc
  @svc
end

#sysString

Trusted attributes supplied by any service that owns resources and uses the IAM system for access control. Corresponds to the JSON property sys

Returns:

  • (String)


4531
4532
4533
# File 'generated/google/apis/compute_alpha/classes.rb', line 4531

def sys
  @sys
end

#valueString

DEPRECATED. Use 'values' instead. Corresponds to the JSON property value

Returns:

  • (String)


4536
4537
4538
# File 'generated/google/apis/compute_alpha/classes.rb', line 4536

def value
  @value
end

#valuesArray<String>

The objects of the condition. This is mutually exclusive with 'value'. Corresponds to the JSON property values

Returns:

  • (Array<String>)


4541
4542
4543
# File 'generated/google/apis/compute_alpha/classes.rb', line 4541

def values
  @values
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4548
4549
4550
4551
4552
4553
4554
4555
# File 'generated/google/apis/compute_alpha/classes.rb', line 4548

def update!(**args)
  @iam = args[:iam] if args.key?(:iam)
  @op = args[:op] if args.key?(:op)
  @svc = args[:svc] if args.key?(:svc)
  @sys = args[:sys] if args.key?(:sys)
  @value = args[:value] if args.key?(:value)
  @values = args[:values] if args.key?(:values)
end