pub struct UpdateImageRequest {
pub image_id: String,
pub update_image_details: UpdateImageDetails,
pub opc_retry_token: Option<String>,
pub if_match: Option<String>,
}Fields§
§image_id: StringThe OCID of the image.
update_image_details: UpdateImageDetailsUpdates the image display name field. Avoid entering confidential information.
opc_retry_token: Option<String>A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations (for example, if a resource has been deleted and purged from the system, then a retry of the original creation request may be rejected).
if_match: Option<String>For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code if-match} parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource’s current etag value.
Implementations§
Source§impl UpdateImageRequest
impl UpdateImageRequest
Sourcepub fn new(required: UpdateImageRequestRequired) -> Self
pub fn new(required: UpdateImageRequestRequired) -> Self
Create a new UpdateImageRequest with required fields
Sourcepub fn set_image_id(self, value: String) -> Self
pub fn set_image_id(self, value: String) -> Self
Set image_id
Sourcepub fn set_update_image_details(self, value: UpdateImageDetails) -> Self
pub fn set_update_image_details(self, value: UpdateImageDetails) -> Self
Set update_image_details
Sourcepub fn set_opc_retry_token(self, value: Option<String>) -> Self
pub fn set_opc_retry_token(self, value: Option<String>) -> Self
Set opc_retry_token
Sourcepub fn set_if_match(self, value: Option<String>) -> Self
pub fn set_if_match(self, value: Option<String>) -> Self
Set if_match
Sourcepub fn with_opc_retry_token(self, value: impl Into<String>) -> Self
pub fn with_opc_retry_token(self, value: impl Into<String>) -> Self
Set opc_retry_token (unwraps Option)
Sourcepub fn with_if_match(self, value: impl Into<String>) -> Self
pub fn with_if_match(self, value: impl Into<String>) -> Self
Set if_match (unwraps Option)
Trait Implementations§
Source§impl Clone for UpdateImageRequest
impl Clone for UpdateImageRequest
Source§fn clone(&self) -> UpdateImageRequest
fn clone(&self) -> UpdateImageRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more