Class: Google::Apis::ComputeAlpha::NetworkEndpointGroupServerlessDeployment
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::NetworkEndpointGroupServerlessDeployment
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/compute_alpha/classes.rb,
lib/google/apis/compute_alpha/representations.rb,
lib/google/apis/compute_alpha/representations.rb
Overview
Configuration for a Serverless Deployment network endpoint group (NEG). The platform must be provided. Note: The target backend service must be in the same project and located in the same region as the Serverless NEG.
Instance Attribute Summary collapse
-
#platform ⇒ String
The platform of the backend target(s) of this NEG.
-
#resource ⇒ String
The user-defined name of the workload/instance.
-
#url_mask ⇒ String
A template to parse platform-specific fields from a request URL.
-
#version ⇒ String
The optional resource version.
Instance Method Summary collapse
-
#initialize(**args) ⇒ NetworkEndpointGroupServerlessDeployment
constructor
A new instance of NetworkEndpointGroupServerlessDeployment.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ NetworkEndpointGroupServerlessDeployment
Returns a new instance of NetworkEndpointGroupServerlessDeployment.
22632 22633 22634 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 22632 def initialize(**args) update!(**args) end |
Instance Attribute Details
#platform ⇒ String
The platform of the backend target(s) of this NEG. Possible values include:
- apigateway.googleapis.com
- appengine.googleapies.com
- cloudfunctions.googleapis.com
- run.googleapis.com
Corresponds to the JSON property
platform
22594 22595 22596 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 22594 def platform @platform end |
#resource ⇒ String
The user-defined name of the workload/instance. This value must be provided explicitly or in the urlMask. The resource identified by this value is platform-specific and is as follows:
- API Gateway: The gateway id
- AppEngine: The service name
- Cloud Functions: The function name
- Cloud Run: The service name
Corresponds to the JSON property
resource
22606 22607 22608 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 22606 def resource @resource end |
#url_mask ⇒ String
A template to parse platform-specific fields from a request URL. URL mask allows for routing to multiple services on the same serverless platform without having to create multiple Network Endpoint Groups and backend services. The fields parsed by this template is platform-specific and are as follows:
- API Gateway: The gateway id
- AppEngine: The service and version
- Cloud Functions: The function
- Cloud Run: The service and tag
Corresponds to the JSON property
urlMask
22619 22620 22621 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 22619 def url_mask @url_mask end |
#version ⇒ String
The optional resource version. The version identified by this value is as platform-specific and is follows:
- API Gateway: Unused
- AppEngine: The service version
- Cloud Functions: Unused
- Cloud Run: The service tag
Corresponds to the JSON property
version
22630 22631 22632 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 22630 def version @version end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
22637 22638 22639 22640 22641 22642 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 22637 def update!(**args) @platform = args[:platform] if args.key?(:platform) @resource = args[:resource] if args.key?(:resource) @url_mask = args[:url_mask] if args.key?(:url_mask) @version = args[:version] if args.key?(:version) end |