Class: Google::Apis::AccesscontextmanagerV1::IngressPolicy

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

Overview

Policy for ingress into ServicePerimeter. IngressPolicies match requests based on ingress_from and ingress_to stanzas. For an ingress policy to match, both the ingress_from and ingress_to stanzas must be matched. If an IngressPolicy matches a request, the request is allowed through the perimeter boundary from outside the perimeter. For example, access from the internet can be allowed either based on an AccessLevel or, for traffic hosted on Google Cloud, the project of the source network. For access from private networks, using the project of the hosting network is required. Individual ingress policies can be limited by restricting which services and/or actions they match using the ingress_to field.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ IngressPolicy

Returns a new instance of IngressPolicy.



694
695
696
# File 'generated/google/apis/accesscontextmanager_v1/classes.rb', line 694

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

Instance Attribute Details

#ingress_fromGoogle::Apis::AccesscontextmanagerV1::IngressFrom

Defines the conditions under which an IngressPolicy matches a request. Conditions are based on information about the source of the request. Corresponds to the JSON property ingressFrom



685
686
687
# File 'generated/google/apis/accesscontextmanager_v1/classes.rb', line 685

def ingress_from
  @ingress_from
end

#ingress_toGoogle::Apis::AccesscontextmanagerV1::IngressTo

Defines the conditions under which an IngressPolicy matches a request. Conditions are based on information about the ApiOperation intended to be performed on the destination of the request. Corresponds to the JSON property ingressTo



692
693
694
# File 'generated/google/apis/accesscontextmanager_v1/classes.rb', line 692

def ingress_to
  @ingress_to
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



699
700
701
702
# File 'generated/google/apis/accesscontextmanager_v1/classes.rb', line 699

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