@@ -482,3 +482,65 @@ type WaitForManagedObjectStorageBucketDeletionRequest struct {
482482func (r * WaitForManagedObjectStorageBucketDeletionRequest ) RequestURL () string {
483483 return fmt .Sprintf ("%s/%s/buckets" , managedObjectStorageBasePath , r .ServiceUUID )
484484}
485+
486+ type CreateManagedObjectStoragePolicyVersionRequest struct {
487+ ServiceUUID string `json:"-"`
488+ Name string `json:"-"`
489+ Document string `json:"document"`
490+ IsDefault bool `json:"is_default,omitempty"`
491+ }
492+
493+ func (r * CreateManagedObjectStoragePolicyVersionRequest ) RequestURL () string {
494+ return fmt .Sprintf (
495+ "%s/%s/policies/%s/versions" ,
496+ managedObjectStorageBasePath ,
497+ r .ServiceUUID ,
498+ r .Name ,
499+ )
500+ }
501+
502+ type GetManagedObjectStoragePolicyVersionsRequest struct {
503+ ServiceUUID string `json:"-"`
504+ Name string `json:"-"`
505+ }
506+
507+ func (r * GetManagedObjectStoragePolicyVersionsRequest ) RequestURL () string {
508+ return fmt .Sprintf (
509+ "%s/%s/policies/%s/versions" ,
510+ managedObjectStorageBasePath ,
511+ r .ServiceUUID ,
512+ r .Name ,
513+ )
514+ }
515+
516+ type GetManagedObjectStoragePolicyVersionRequest struct {
517+ ServiceUUID string `json:"-"`
518+ Name string `json:"-"`
519+ VersionID string `json:"-"`
520+ }
521+
522+ func (r * GetManagedObjectStoragePolicyVersionRequest ) RequestURL () string {
523+ return fmt .Sprintf (
524+ "%s/%s/policies/%s/versions/%s" ,
525+ managedObjectStorageBasePath ,
526+ r .ServiceUUID ,
527+ r .Name ,
528+ r .VersionID ,
529+ )
530+ }
531+
532+ type DeleteManagedObjectStoragePolicyVersionRequest struct {
533+ ServiceUUID string `json:"-"`
534+ Name string `json:"-"`
535+ VersionID string `json:"-"`
536+ }
537+
538+ func (r * DeleteManagedObjectStoragePolicyVersionRequest ) RequestURL () string {
539+ return fmt .Sprintf (
540+ "%s/%s/policies/%s/versions/%s" ,
541+ managedObjectStorageBasePath ,
542+ r .ServiceUUID ,
543+ r .Name ,
544+ r .VersionID ,
545+ )
546+ }
0 commit comments