@@ -18,8 +18,6 @@ const (
1818 ManagedObjectStorageOperationalStateDeleteNetwork ManagedObjectStorageOperationalState = "delete-network"
1919 // ManagedObjectStorageOperationalStateDeleteService indicates that service is being deleted
2020 ManagedObjectStorageOperationalStateDeleteService ManagedObjectStorageOperationalState = "delete-service"
21- // ManagedObjectStorageOperationalStateDeleteUser indicates that users are being deleted
22- ManagedObjectStorageOperationalStateDeleteUser ManagedObjectStorageOperationalState = "delete-user"
2321 // ManagedObjectStorageOperationalStatePending indicates newly created service or that started reconfiguration
2422 ManagedObjectStorageOperationalStatePending ManagedObjectStorageOperationalState = "started"
2523 // ManagedObjectStorageOperationalStateRunning indicates that service is up and running
@@ -32,26 +30,24 @@ const (
3230 ManagedObjectStorageOperationalStateSetupNetwork ManagedObjectStorageOperationalState = "setup-network"
3331 // ManagedObjectStorageOperationalStateSetupService indicates that service is being configured
3432 ManagedObjectStorageOperationalStateSetupService ManagedObjectStorageOperationalState = "setup-service"
35- // ManagedObjectStorageOperationalStateSetupUser indicates that users are being configured
36- ManagedObjectStorageOperationalStateSetupUser ManagedObjectStorageOperationalState = "setup-user"
3733 // ManagedObjectStorageOperationalStateStopped indicates that service is down
3834 ManagedObjectStorageOperationalStateStopped ManagedObjectStorageOperationalState = "stopped"
3935)
4036
4137const (
42- // ManagedObjectStorageUserOperationalStatePending indicates a newly attached user
43- ManagedObjectStorageUserOperationalStatePending ManagedObjectStorageUserOperationalState = "pending "
44- // ManagedObjectStorageUserOperationalStateReady indicates that the user is configured and ready for access keys issuing
45- ManagedObjectStorageUserOperationalStateReady ManagedObjectStorageUserOperationalState = "ready "
38+ // ManagedObjectStorageUserAccessKeyStatusActive indicates an active access key
39+ ManagedObjectStorageUserAccessKeyStatusActive ManagedObjectStorageUserAccessKeyStatus = "Active "
40+ // ManagedObjectStorageUserAccessKeyStatusInactive indicates an inactive access key
41+ ManagedObjectStorageUserAccessKeyStatusInactive ManagedObjectStorageUserAccessKeyStatus = "Inactive "
4642)
4743
4844type (
4945 // ManagedObjectStorageConfiguredStatus indicates the service's current intended status. Managed by the customer
5046 ManagedObjectStorageConfiguredStatus string
5147 // ManagedObjectStorageOperationalState indicates the service's current operational, effective state. Managed by the system
5248 ManagedObjectStorageOperationalState string
53- // ManagedObjectStorageUserOperationalState indicates the user 's current operational, effective state . Managed by the system
54- ManagedObjectStorageUserOperationalState string
49+ // ManagedObjectStorageUserAccessKeyStatus indicates the access key 's current status . Managed by the customer
50+ ManagedObjectStorageUserAccessKeyStatus string
5551)
5652
5753// ManagedObjectStorage represents a Managed Object Storage service
@@ -65,14 +61,15 @@ type ManagedObjectStorage struct {
6561 OperationalState ManagedObjectStorageOperationalState `json:"operational_state"`
6662 Region string `json:"region"`
6763 UpdatedAt time.Time `json:"updated_at"`
68- Users []ManagedObjectStorageUser `json:"users"`
6964 UUID string `json:"uuid"`
7065}
7166
7267// ManagedObjectStorageEndpoint represents an endpoint for accessing the Managed Object Storage service
7368type ManagedObjectStorageEndpoint struct {
7469 DomainName string `json:"domain_name"`
7570 Type string `json:"type"`
71+ IAMURL string `json:"iam_url"`
72+ STSURL string `json:"sts_url"`
7673}
7774
7875// ManagedObjectStorageNetwork represents a network from where object storage can be used. Private networks must reside in object storage region
@@ -85,11 +82,30 @@ type ManagedObjectStorageNetwork struct {
8582
8683// ManagedObjectStorageUser represents a user for the Managed Object Storage service
8784type ManagedObjectStorageUser struct {
88- AccessKeys []ManagedObjectStorageUserAccessKey `json:"access_keys"`
89- CreatedAt time.Time `json:"created_at"`
90- OperationalState ManagedObjectStorageUserOperationalState `json:"operational_state"`
91- UpdatedAt time.Time `json:"updated_at"`
92- Username string `json:"username"`
85+ AccessKeys []ManagedObjectStorageUserAccessKey `json:"access_keys"`
86+ ARN string `json:"arn"`
87+ CreatedAt time.Time `json:"created_at"`
88+ Policies []ManagedObjectStoragePolicy `json:"policies"`
89+ Username string `json:"username"`
90+ }
91+
92+ // ManagedObjectStoragePolicy represents a policy for the Managed Object Storage service
93+ type ManagedObjectStoragePolicy struct {
94+ ARN string `json:"arn"`
95+ AttachmentCount int `json:"attachment_count"`
96+ CreatedAt time.Time `json:"created_at"`
97+ DefaultVersionID string `json:"default_version_id"`
98+ Description string `json:"description"`
99+ Document string `json:"document"`
100+ Name string `json:"name"`
101+ System bool `json:"system"`
102+ UpdatedAt time.Time `json:"updated_at"`
103+ }
104+
105+ // ManagedObjectStorageUserPolicy represents a policy attached to a Managed Object Storage user
106+ type ManagedObjectStorageUserPolicy struct {
107+ ARN string `json:"arn"`
108+ Name string `json:"name"`
93109}
94110
95111// ManagedObjectStorageRegion represents a region where Managed Object Storage service can be hosted
@@ -106,13 +122,11 @@ type ManagedObjectStorageRegionZone struct {
106122
107123// ManagedObjectStorageUserAccessKey represents Access Key details for a Managed Object Storage service user
108124type ManagedObjectStorageUserAccessKey struct {
109- AccessKeyId string `json:"access_key_id"`
110- CreatedAt time.Time `json:"created_at"`
111- Enabled bool `json:"enabled"`
112- LastUsedAt time.Time `json:"last_used_at"`
113- Name string `json:"name"`
114- SecretAccessKey * string `json:"secret_access_key,omitempty"`
115- UpdatedAt time.Time `json:"updated_at"`
125+ AccessKeyID string `json:"access_key_id"`
126+ CreatedAt time.Time `json:"created_at"`
127+ LastUsedAt time.Time `json:"last_used_at"`
128+ SecretAccessKey * string `json:"secret_access_key,omitempty"`
129+ Status ManagedObjectStorageUserAccessKeyStatus `json:"status"`
116130}
117131
118132// ManagedObjectStorageBucketMetrics represents metrics for a Managed Object Storage service bucket
0 commit comments