Reference documentation and code samples for the Cloud Run V2 API class Google::Cloud::Run::V2::CreateWorkerPoolRequest.
Request message for creating a WorkerPool.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#parent
def parent() -> ::String
Returns
-
(::String) — Required. The location and project in which this worker pool should be
created. Format:
projects/{project}/locations/{location}
, where{project}
can be project id or number. Only lowercase characters, digits, and hyphens.
#parent=
def parent=(value) -> ::String
Parameter
-
value (::String) — Required. The location and project in which this worker pool should be
created. Format:
projects/{project}/locations/{location}
, where{project}
can be project id or number. Only lowercase characters, digits, and hyphens.
Returns
-
(::String) — Required. The location and project in which this worker pool should be
created. Format:
projects/{project}/locations/{location}
, where{project}
can be project id or number. Only lowercase characters, digits, and hyphens.
#validate_only
def validate_only() -> ::Boolean
Returns
- (::Boolean) — Optional. Indicates that the request should be validated and default values populated, without persisting the request or creating any resources.
#validate_only=
def validate_only=(value) -> ::Boolean
Parameter
- value (::Boolean) — Optional. Indicates that the request should be validated and default values populated, without persisting the request or creating any resources.
Returns
- (::Boolean) — Optional. Indicates that the request should be validated and default values populated, without persisting the request or creating any resources.
#worker_pool
def worker_pool() -> ::Google::Cloud::Run::V2::WorkerPool
Returns
- (::Google::Cloud::Run::V2::WorkerPool) — Required. The WorkerPool instance to create.
#worker_pool=
def worker_pool=(value) -> ::Google::Cloud::Run::V2::WorkerPool
Parameter
- value (::Google::Cloud::Run::V2::WorkerPool) — Required. The WorkerPool instance to create.
Returns
- (::Google::Cloud::Run::V2::WorkerPool) — Required. The WorkerPool instance to create.
#worker_pool_id
def worker_pool_id() -> ::String
Returns
-
(::String) — Required. The unique identifier for the WorkerPool. It must begin with
letter, and cannot end with hyphen; must contain fewer than 50 characters.
The name of the worker pool becomes
{parent}/workerPools/{worker_pool_id}
.
#worker_pool_id=
def worker_pool_id=(value) -> ::String
Parameter
-
value (::String) — Required. The unique identifier for the WorkerPool. It must begin with
letter, and cannot end with hyphen; must contain fewer than 50 characters.
The name of the worker pool becomes
{parent}/workerPools/{worker_pool_id}
.
Returns
-
(::String) — Required. The unique identifier for the WorkerPool. It must begin with
letter, and cannot end with hyphen; must contain fewer than 50 characters.
The name of the worker pool becomes
{parent}/workerPools/{worker_pool_id}
.