pub struct WorkerPool {
pub annotations: Option<HashMap<String, String>>,
pub create_time: Option<DateTime<Utc>>,
pub delete_time: Option<DateTime<Utc>>,
pub display_name: Option<String>,
pub etag: Option<String>,
pub name: Option<String>,
pub private_pool_v1_config: Option<PrivatePoolV1Config>,
pub state: Option<String>,
pub uid: Option<String>,
pub update_time: Option<DateTime<Utc>>,
}Expand description
Configuration for a WorkerPool. Cloud Build owns and maintains a pool of workers for general use and have no access to a project’s private network. By default, builds submitted to Cloud Build will use a worker from this pool. If your build needs access to resources on a private network, create and use a WorkerPool to run your builds. Private WorkerPools give your builds access to any single VPC network that you administer, including any on-prem resources connected to that VPC network. For an overview of private pools, see Private pools overview.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- locations worker pools create projects (request)
- locations worker pools get projects (response)
- locations worker pools patch projects (request)
Fields§
§annotations: Option<HashMap<String, String>>User specified annotations. See https://google.aip.dev/128#annotations for more details such as format and size limitations.
create_time: Option<DateTime<Utc>>Output only. Time at which the request to create the WorkerPool was received.
delete_time: Option<DateTime<Utc>>Output only. Time at which the request to delete the WorkerPool was received.
display_name: Option<String>A user-specified, human-readable name for the WorkerPool. If provided, this value must be 1-63 characters.
etag: Option<String>Output only. Checksum computed by the server. May be sent on update and delete requests to ensure that the client has an up-to-date value before proceeding.
name: Option<String>Output only. The resource name of the WorkerPool, with format projects/{project}/locations/{location}/workerPools/{worker_pool}. The value of {worker_pool} is provided by worker_pool_id in CreateWorkerPool request and the value of {location} is determined by the endpoint accessed.
private_pool_v1_config: Option<PrivatePoolV1Config>Legacy Private Pool configuration.
state: Option<String>Output only. WorkerPool state.
uid: Option<String>Output only. A unique identifier for the WorkerPool.
update_time: Option<DateTime<Utc>>Output only. Time at which the request to update the WorkerPool was received.
Trait Implementations§
Source§impl Clone for WorkerPool
impl Clone for WorkerPool
Source§fn clone(&self) -> WorkerPool
fn clone(&self) -> WorkerPool
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for WorkerPool
impl Debug for WorkerPool
Source§impl Default for WorkerPool
impl Default for WorkerPool
Source§fn default() -> WorkerPool
fn default() -> WorkerPool
Source§impl<'de> Deserialize<'de> for WorkerPool
impl<'de> Deserialize<'de> for WorkerPool
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for WorkerPool
impl Serialize for WorkerPool
impl RequestValue for WorkerPool
impl ResponseResult for WorkerPool
Auto Trait Implementations§
impl Freeze for WorkerPool
impl RefUnwindSafe for WorkerPool
impl Send for WorkerPool
impl Sync for WorkerPool
impl Unpin for WorkerPool
impl UnwindSafe for WorkerPool
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more