Class: Google::Apis::NetworksecurityV1beta1::AuthzPolicyTarget

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

Overview

Specifies the set of targets to which this policy should be applied to.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AuthzPolicyTarget

Returns a new instance of AuthzPolicyTarget.



695
696
697
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 695

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

Instance Attribute Details

#load_balancing_schemeString

Required. All gateways and forwarding rules referenced by this policy and extensions must share the same load balancing scheme. Supported values: INTERNAL_MANAGED and EXTERNAL_MANAGED. For more information, refer to Backend services overview. Corresponds to the JSON property loadBalancingScheme

Returns:

  • (String)


687
688
689
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 687

def load_balancing_scheme
  @load_balancing_scheme
end

#resourcesArray<String>

Required. A list of references to the Forwarding Rules on which this policy will be applied. Corresponds to the JSON property resources

Returns:

  • (Array<String>)


693
694
695
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 693

def resources
  @resources
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



700
701
702
703
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 700

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