Class: Google::Apis::AccesscontextmanagerV1::EgressPolicy
- Inherits:
-
Object
- Object
- Google::Apis::AccesscontextmanagerV1::EgressPolicy
- 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 egress from perimeter. EgressPolicies match requests based on
egress_from
and egress_to
stanzas. For an EgressPolicy to match, both
egress_from
and egress_to
stanzas must be matched. If an EgressPolicy
matches a request, the request is allowed to span the ServicePerimeter
boundary. For example, an EgressPolicy can be used to allow VMs on networks
within the ServicePerimeter to access a defined set of projects outside the
perimeter in certain contexts (e.g. to read data from a Cloud Storage bucket
or query against a BigQuery dataset). EgressPolicies are concerned with the *
resources* that a request relates as well as the API services and API actions
being used. They do not related to the direction of data movement. More
detailed documentation for this concept can be found in the descriptions of
EgressFrom and EgressTo.
Instance Attribute Summary collapse
-
#egress_from ⇒ Google::Apis::AccesscontextmanagerV1::EgressFrom
Defines the conditions under which an EgressPolicy matches a request.
-
#egress_to ⇒ Google::Apis::AccesscontextmanagerV1::EgressTo
Defines the conditions under which an EgressPolicy matches a request.
Instance Method Summary collapse
-
#initialize(**args) ⇒ EgressPolicy
constructor
A new instance of EgressPolicy.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ EgressPolicy
Returns a new instance of EgressPolicy.
474 475 476 |
# File 'generated/google/apis/accesscontextmanager_v1/classes.rb', line 474 def initialize(**args) update!(**args) end |
Instance Attribute Details
#egress_from ⇒ Google::Apis::AccesscontextmanagerV1::EgressFrom
Defines the conditions under which an EgressPolicy matches a request.
Conditions based on information about the source of the request. Note that if
the destination of the request is protected by a ServicePerimeter, then that
ServicePerimeter must have an IngressPolicy which allows access in order for
this request to succeed.
Corresponds to the JSON property egressFrom
463 464 465 |
# File 'generated/google/apis/accesscontextmanager_v1/classes.rb', line 463 def egress_from @egress_from end |
#egress_to ⇒ Google::Apis::AccesscontextmanagerV1::EgressTo
Defines the conditions under which an EgressPolicy matches a request.
Conditions are based on information about the ApiOperation intended to be
performed on the resources
specified. Note that if the destination of the
request is protected by a ServicePerimeter, then that ServicePerimeter must
have an IngressPolicy which allows access in order for this request to succeed.
Corresponds to the JSON property egressTo
472 473 474 |
# File 'generated/google/apis/accesscontextmanager_v1/classes.rb', line 472 def egress_to @egress_to end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
479 480 481 482 |
# File 'generated/google/apis/accesscontextmanager_v1/classes.rb', line 479 def update!(**args) @egress_from = args[:egress_from] if args.key?(:egress_from) @egress_to = args[:egress_to] if args.key?(:egress_to) end |