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// NamespaceMetadata NamespaceMetadata maps a namespace string to defaultS3CompartmentId and defaultSwiftCompartmentId values. 16type NamespaceMetadata struct { 17 18 // The Object Storage namespace to which the metadata belongs. 19 Namespace *string `mandatory:"true" json:"namespace"` 20 21 // If the field is set, specifies the default compartment assignment for the Amazon S3 Compatibility API. 22 DefaultS3CompartmentId *string `mandatory:"true" json:"defaultS3CompartmentId"` 23 24 // If the field is set, specifies the default compartment assignment for the Swift API. 25 DefaultSwiftCompartmentId *string `mandatory:"true" json:"defaultSwiftCompartmentId"` 26} 27 28func (m NamespaceMetadata) String() string { 29 return common.PointerString(m) 30} 31