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// BucketSummary 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 BucketSummary struct {
19
20	// The Object Storage namespace in which the bucket lives.
21	Namespace *string `mandatory:"true" json:"namespace"`
22
23	// The name of the bucket. Avoid entering confidential information.
24	// Example: my-new-bucket1
25	Name *string `mandatory:"true" json:"name"`
26
27	// The compartment ID in which the bucket is authorized.
28	CompartmentId *string `mandatory:"true" json:"compartmentId"`
29
30	// The OCID of the user who created the bucket.
31	CreatedBy *string `mandatory:"true" json:"createdBy"`
32
33	// The date and time the bucket was created, as described in RFC 2616 (https://tools.ietf.org/rfc/rfc2616), section 14.29.
34	TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`
35
36	// The entity tag (ETag) for the bucket.
37	Etag *string `mandatory:"true" json:"etag"`
38
39	// Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace.
40	// For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
41	// Example: `{"Department": "Finance"}`
42	FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
43
44	// Defined tags for this resource. Each key is predefined and scoped to a namespace.
45	// For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
46	// Example: `{"Operations": {"CostCenter": "42"}}`
47	DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
48}
49
50func (m BucketSummary) String() string {
51	return common.PointerString(m)
52}
53