1// Copyright (c) 2016, 2018, 2019, Oracle and/or its affiliates. All rights reserved. 2// Code generated. DO NOT EDIT. 3 4// Object Storage Service API 5// 6// Common set of Object Storage and Archive Storage APIs for managing buckets, objects, and related resources. 7// 8 9package objectstorage 10 11import ( 12 "github.com/oracle/oci-go-sdk/common" 13) 14 15// RenameObjectDetails To use any of the API operations, you must be authorized in an IAM policy. If you are not authorized, 16// talk to an administrator. If you are an administrator who needs to write policies to give users access, see 17// Getting Started with Policies (https://docs.cloud.oracle.com/Content/Identity/Concepts/policygetstarted.htm). 18type RenameObjectDetails struct { 19 20 // The name of the source object to be renamed. 21 SourceName *string `mandatory:"true" json:"sourceName"` 22 23 // The new name of the source object. 24 NewName *string `mandatory:"true" json:"newName"` 25 26 // The if-match entity tag (ETag) of the source object. 27 SrcObjIfMatchETag *string `mandatory:"false" json:"srcObjIfMatchETag"` 28 29 // The if-match entity tag (ETag) of the new object. 30 NewObjIfMatchETag *string `mandatory:"false" json:"newObjIfMatchETag"` 31 32 // The if-none-match entity tag (ETag) of the new object. 33 NewObjIfNoneMatchETag *string `mandatory:"false" json:"newObjIfNoneMatchETag"` 34} 35 36func (m RenameObjectDetails) String() string { 37 return common.PointerString(m) 38} 39