#[non_exhaustive]pub struct CreateEndpointRequest {
pub parent: String,
pub endpoint: Option<Endpoint>,
pub endpoint_id: String,
/* private fields */
}Expand description
Request message for EndpointService.CreateEndpoint.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.parent: StringRequired. The resource name of the Location to create the Endpoint in.
Format: projects/{project}/locations/{location}
endpoint: Option<Endpoint>Required. The Endpoint to create.
endpoint_id: StringImmutable. The ID to use for endpoint, which will become the final component of the endpoint resource name. If not provided, Vertex AI will generate a value for this ID.
If the first character is a letter, this value may be up to 63 characters,
and valid characters are [a-z0-9-]. The last character must be a letter
or number.
If the first character is a number, this value may be up to 9 characters,
and valid characters are [0-9] with no leading zeros.
When using HTTP/JSON, this field is populated
based on a query string argument, such as ?endpoint_id=12345. This is the
fallback for fields that are not included in either the URI or the body.
Implementations§
Source§impl CreateEndpointRequest
impl CreateEndpointRequest
pub fn new() -> Self
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> Self
Sets the value of parent.
Sourcepub fn set_endpoint_id<T: Into<String>>(self, v: T) -> Self
pub fn set_endpoint_id<T: Into<String>>(self, v: T) -> Self
Sets the value of endpoint_id.
Trait Implementations§
Source§impl Clone for CreateEndpointRequest
impl Clone for CreateEndpointRequest
Source§fn clone(&self) -> CreateEndpointRequest
fn clone(&self) -> CreateEndpointRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more