Class: Google::Apis::AiplatformV1beta1::GenaiVertexV1beta1EnvironmentConfigEgressRule
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1beta1::GenaiVertexV1beta1EnvironmentConfigEgressRule
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/aiplatform_v1beta1/classes.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb
Overview
A network egress rule that controls which external domains the environment is allowed to reach. Each rule identifies a target domain and, optionally, a set of HTTP headers to inject into every matching outbound request.
Instance Attribute Summary collapse
-
#domain ⇒ String
The domain pattern to match for this rule.
-
#transform ⇒ Hash<String,String>
Headers to inject into requests matching this rule.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GenaiVertexV1beta1EnvironmentConfigEgressRule
constructor
A new instance of GenaiVertexV1beta1EnvironmentConfigEgressRule.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GenaiVertexV1beta1EnvironmentConfigEgressRule
Returns a new instance of GenaiVertexV1beta1EnvironmentConfigEgressRule.
1865 1866 1867 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1865 def initialize(**args) update!(**args) end |
Instance Attribute Details
#domain ⇒ String
The domain pattern to match for this rule. Use an exact hostname (e.g.,
github.com), a wildcard prefix (e.g., *.googleapis.com), or * to match
all domains.
Corresponds to the JSON property domain
1857 1858 1859 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1857 def domain @domain end |
#transform ⇒ Hash<String,String>
Headers to inject into requests matching this rule. Key: header name (e.g., "
Authorization"). Value: header value (e.g., "Bearer your-token").
Corresponds to the JSON property transform
1863 1864 1865 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1863 def transform @transform end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1870 1871 1872 1873 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1870 def update!(**args) @domain = args[:domain] if args.key?(:domain) @transform = args[:transform] if args.key?(:transform) end |