#[non_exhaustive]pub struct CreateArtifactRequest {
pub parent: String,
pub artifact: Option<Artifact>,
pub artifact_id: String,
/* private fields */
}Expand description
Request message for MetadataService.CreateArtifact.
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 MetadataStore where the Artifact should
be created.
Format:
projects/{project}/locations/{location}/metadataStores/{metadatastore}
artifact: Option<Artifact>Required. The Artifact to create.
artifact_id: StringThe {artifact} portion of the resource name with the format:
projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}
If not provided, the Artifact’s ID will be a UUID generated by the service.
Must be 4-128 characters in length. Valid characters are /[a-z][0-9]-/.
Must be unique across all Artifacts in the parent MetadataStore. (Otherwise
the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED if the
caller can’t view the preexisting Artifact.)
Implementations§
Source§impl CreateArtifactRequest
impl CreateArtifactRequest
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_artifact_id<T: Into<String>>(self, v: T) -> Self
pub fn set_artifact_id<T: Into<String>>(self, v: T) -> Self
Sets the value of artifact_id.
Trait Implementations§
Source§impl Clone for CreateArtifactRequest
impl Clone for CreateArtifactRequest
Source§fn clone(&self) -> CreateArtifactRequest
fn clone(&self) -> CreateArtifactRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more