#[non_exhaustive]pub struct MergeVersionAliasesRequest {
pub name: String,
pub version_aliases: Vec<String>,
/* private fields */
}Expand description
Request message for ModelService.MergeVersionAliases.
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.name: StringRequired. The name of the model version to merge aliases, with a version ID explicitly included.
Example: projects/{project}/locations/{location}/models/{model}@1234
version_aliases: Vec<String>Required. The set of version aliases to merge.
The alias should be at most 128 characters, and match
[a-z][a-zA-Z0-9-]{0,126}[a-z-0-9].
Add the - prefix to an alias means removing that alias from the version.
- is NOT counted in the 128 characters. Example: -golden means removing
the golden alias from the version.
There is NO ordering in aliases, which means
) The aliases returned from GetModel API might not have the exactly same order from this MergeVersionAliases API. 2) Adding and deleting the same alias in the request is not recommended, and the 2 operations will be cancelled out.
Implementations§
Source§impl MergeVersionAliasesRequest
impl MergeVersionAliasesRequest
pub fn new() -> Self
Sourcepub fn set_version_aliases<T, V>(self, v: T) -> Self
pub fn set_version_aliases<T, V>(self, v: T) -> Self
Sets the value of version_aliases.
Trait Implementations§
Source§impl Clone for MergeVersionAliasesRequest
impl Clone for MergeVersionAliasesRequest
Source§fn clone(&self) -> MergeVersionAliasesRequest
fn clone(&self) -> MergeVersionAliasesRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more