Class: Google::Apis::ComputeAlpha::Principal

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

All fields defined in a principal are ANDed.

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

Returns a new instance of Principal



23884
23885
23886
# File 'generated/google/apis/compute_alpha/classes.rb', line 23884

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

Instance Attribute Details

#conditionString

An expression to specify custom condition. Corresponds to the JSON property condition

Returns:

  • (String)


23833
23834
23835
# File 'generated/google/apis/compute_alpha/classes.rb', line 23833

def condition
  @condition
end

#groupsArray<String>

The groups the principal belongs to. Exact match, prefix match, and suffix match are supported. Corresponds to the JSON property groups

Returns:

  • (Array<String>)


23839
23840
23841
# File 'generated/google/apis/compute_alpha/classes.rb', line 23839

def groups
  @groups
end

#ipsArray<String>

IPv4 or IPv6 address or range (In CIDR format) Corresponds to the JSON property ips

Returns:

  • (Array<String>)


23844
23845
23846
# File 'generated/google/apis/compute_alpha/classes.rb', line 23844

def ips
  @ips
end

#namespacesArray<String>

The namespaces. Exact match, prefix match, and suffix match are supported. Corresponds to the JSON property namespaces

Returns:

  • (Array<String>)


23849
23850
23851
# File 'generated/google/apis/compute_alpha/classes.rb', line 23849

def namespaces
  @namespaces
end

#not_groupsArray<String>

Negate of groups. Specifies exclusions. Corresponds to the JSON property notGroups

Returns:

  • (Array<String>)


23854
23855
23856
# File 'generated/google/apis/compute_alpha/classes.rb', line 23854

def not_groups
  @not_groups
end

#not_ipsArray<String>

Negate of IPs. Specifies exclusions. Corresponds to the JSON property notIps

Returns:

  • (Array<String>)


23859
23860
23861
# File 'generated/google/apis/compute_alpha/classes.rb', line 23859

def not_ips
  @not_ips
end

#not_namespacesArray<String>

Negate of namespaces. Specifies exclusions. Corresponds to the JSON property notNamespaces

Returns:

  • (Array<String>)


23864
23865
23866
# File 'generated/google/apis/compute_alpha/classes.rb', line 23864

def not_namespaces
  @not_namespaces
end

#not_usersArray<String>

Negate of users. Specifies exclusions. Corresponds to the JSON property notUsers

Returns:

  • (Array<String>)


23869
23870
23871
# File 'generated/google/apis/compute_alpha/classes.rb', line 23869

def not_users
  @not_users
end

#propertiesHash<String,String>

A map of Istio attribute to expected values. Exact match, prefix match, and suffix match are supported for values. For example, request.headers[version]: ?v1?. The properties are ANDed together. Corresponds to the JSON property properties

Returns:

  • (Hash<String,String>)


23876
23877
23878
# File 'generated/google/apis/compute_alpha/classes.rb', line 23876

def properties
  @properties
end

#usersArray<String>

The user names/IDs or service accounts. Exact match, prefix match, and suffix match are supported. Corresponds to the JSON property users

Returns:

  • (Array<String>)


23882
23883
23884
# File 'generated/google/apis/compute_alpha/classes.rb', line 23882

def users
  @users
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



23889
23890
23891
23892
23893
23894
23895
23896
23897
23898
23899
23900
# File 'generated/google/apis/compute_alpha/classes.rb', line 23889

def update!(**args)
  @condition = args[:condition] if args.key?(:condition)
  @groups = args[:groups] if args.key?(:groups)
  @ips = args[:ips] if args.key?(:ips)
  @namespaces = args[:namespaces] if args.key?(:namespaces)
  @not_groups = args[:not_groups] if args.key?(:not_groups)
  @not_ips = args[:not_ips] if args.key?(:not_ips)
  @not_namespaces = args[:not_namespaces] if args.key?(:not_namespaces)
  @not_users = args[:not_users] if args.key?(:not_users)
  @properties = args[:properties] if args.key?(:properties)
  @users = args[:users] if args.key?(:users)
end