@@ -436,6 +436,53 @@ func (capacitySummaryContainer *CapacitySummaryContainer) parse(xmlNode *XmlNode
436436 }
437437}
438438
439+ type CloudNamingMode Enum
440+
441+ const (
442+ CLOUD_NAMING_MODE_BLACK_PEARL CloudNamingMode = 1 + iota
443+ CLOUD_NAMING_MODE_AWS_S3 CloudNamingMode = 1 + iota
444+ )
445+
446+ func (cloudNamingMode * CloudNamingMode ) UnmarshalText (text []byte ) error {
447+ var str string = string (bytes .ToUpper (text ))
448+ switch str {
449+ case "" : * cloudNamingMode = UNDEFINED
450+ case "BLACK_PEARL" : * cloudNamingMode = CLOUD_NAMING_MODE_BLACK_PEARL
451+ case "AWS_S3" : * cloudNamingMode = CLOUD_NAMING_MODE_AWS_S3
452+ default :
453+ * cloudNamingMode = UNDEFINED
454+ return errors .New (fmt .Sprintf ("Cannot marshal '%s' into CloudNamingMode" , str ))
455+ }
456+ return nil
457+ }
458+
459+ func (cloudNamingMode CloudNamingMode ) String () string {
460+ switch cloudNamingMode {
461+ case CLOUD_NAMING_MODE_BLACK_PEARL : return "BLACK_PEARL"
462+ case CLOUD_NAMING_MODE_AWS_S3 : return "AWS_S3"
463+ default :
464+ log .Printf ("Error: invalid CloudNamingMode represented by '%d'" , cloudNamingMode )
465+ return ""
466+ }
467+ }
468+
469+ func (cloudNamingMode CloudNamingMode ) StringPtr () * string {
470+ if cloudNamingMode == UNDEFINED {
471+ return nil
472+ }
473+ result := cloudNamingMode .String ()
474+ return & result
475+ }
476+
477+ func newCloudNamingModeFromContent (content []byte , aggErr * AggregateError ) * CloudNamingMode {
478+ if len (content ) == 0 {
479+ // no value
480+ return nil
481+ }
482+ result := new (CloudNamingMode )
483+ parseEnum (content , result , aggErr )
484+ return result
485+ }
439486type CompletedJob struct {
440487 BucketId string
441488 CachedSizeInBytes int64
@@ -1659,9 +1706,11 @@ type S3Region Enum
16591706const (
16601707 S3_REGION_GOV_CLOUD S3Region = 1 + iota
16611708 S3_REGION_US_EAST_1 S3Region = 1 + iota
1709+ S3_REGION_US_EAST_2 S3Region = 1 + iota
16621710 S3_REGION_US_WEST_1 S3Region = 1 + iota
16631711 S3_REGION_US_WEST_2 S3Region = 1 + iota
16641712 S3_REGION_EU_WEST_1 S3Region = 1 + iota
1713+ S3_REGION_EU_WEST_2 S3Region = 1 + iota
16651714 S3_REGION_EU_CENTRAL_1 S3Region = 1 + iota
16661715 S3_REGION_AP_SOUTH_1 S3Region = 1 + iota
16671716 S3_REGION_AP_SOUTHEAST_1 S3Region = 1 + iota
@@ -1670,6 +1719,7 @@ const (
16701719 S3_REGION_AP_NORTHEAST_2 S3Region = 1 + iota
16711720 S3_REGION_SA_EAST_1 S3Region = 1 + iota
16721721 S3_REGION_CN_NORTH_1 S3Region = 1 + iota
1722+ S3_REGION_CA_CENTRAL_1 S3Region = 1 + iota
16731723)
16741724
16751725func (s3Region * S3Region ) UnmarshalText (text []byte ) error {
@@ -1678,9 +1728,11 @@ func (s3Region *S3Region) UnmarshalText(text []byte) error {
16781728 case "" : * s3Region = UNDEFINED
16791729 case "GOV_CLOUD" : * s3Region = S3_REGION_GOV_CLOUD
16801730 case "US_EAST_1" : * s3Region = S3_REGION_US_EAST_1
1731+ case "US_EAST_2" : * s3Region = S3_REGION_US_EAST_2
16811732 case "US_WEST_1" : * s3Region = S3_REGION_US_WEST_1
16821733 case "US_WEST_2" : * s3Region = S3_REGION_US_WEST_2
16831734 case "EU_WEST_1" : * s3Region = S3_REGION_EU_WEST_1
1735+ case "EU_WEST_2" : * s3Region = S3_REGION_EU_WEST_2
16841736 case "EU_CENTRAL_1" : * s3Region = S3_REGION_EU_CENTRAL_1
16851737 case "AP_SOUTH_1" : * s3Region = S3_REGION_AP_SOUTH_1
16861738 case "AP_SOUTHEAST_1" : * s3Region = S3_REGION_AP_SOUTHEAST_1
@@ -1689,6 +1741,7 @@ func (s3Region *S3Region) UnmarshalText(text []byte) error {
16891741 case "AP_NORTHEAST_2" : * s3Region = S3_REGION_AP_NORTHEAST_2
16901742 case "SA_EAST_1" : * s3Region = S3_REGION_SA_EAST_1
16911743 case "CN_NORTH_1" : * s3Region = S3_REGION_CN_NORTH_1
1744+ case "CA_CENTRAL_1" : * s3Region = S3_REGION_CA_CENTRAL_1
16921745 default :
16931746 * s3Region = UNDEFINED
16941747 return errors .New (fmt .Sprintf ("Cannot marshal '%s' into S3Region" , str ))
@@ -1700,9 +1753,11 @@ func (s3Region S3Region) String() string {
17001753 switch s3Region {
17011754 case S3_REGION_GOV_CLOUD : return "GOV_CLOUD"
17021755 case S3_REGION_US_EAST_1 : return "US_EAST_1"
1756+ case S3_REGION_US_EAST_2 : return "US_EAST_2"
17031757 case S3_REGION_US_WEST_1 : return "US_WEST_1"
17041758 case S3_REGION_US_WEST_2 : return "US_WEST_2"
17051759 case S3_REGION_EU_WEST_1 : return "EU_WEST_1"
1760+ case S3_REGION_EU_WEST_2 : return "EU_WEST_2"
17061761 case S3_REGION_EU_CENTRAL_1 : return "EU_CENTRAL_1"
17071762 case S3_REGION_AP_SOUTH_1 : return "AP_SOUTH_1"
17081763 case S3_REGION_AP_SOUTHEAST_1 : return "AP_SOUTHEAST_1"
@@ -1711,6 +1766,7 @@ func (s3Region S3Region) String() string {
17111766 case S3_REGION_AP_NORTHEAST_2 : return "AP_NORTHEAST_2"
17121767 case S3_REGION_SA_EAST_1 : return "SA_EAST_1"
17131768 case S3_REGION_CN_NORTH_1 : return "CN_NORTH_1"
1769+ case S3_REGION_CA_CENTRAL_1 : return "CA_CENTRAL_1"
17141770 default :
17151771 log .Printf ("Error: invalid S3Region represented by '%d'" , s3Region )
17161772 return ""
@@ -3828,6 +3884,7 @@ const (
38283884 TAPE_DRIVE_TYPE_TS1140 TapeDriveType = 1 + iota
38293885 TAPE_DRIVE_TYPE_TS1150 TapeDriveType = 1 + iota
38303886 TAPE_DRIVE_TYPE_TS1155 TapeDriveType = 1 + iota
3887+ TAPE_DRIVE_TYPE_TS1160 TapeDriveType = 1 + iota
38313888)
38323889
38333890func (tapeDriveType * TapeDriveType ) UnmarshalText (text []byte ) error {
@@ -3842,6 +3899,7 @@ func (tapeDriveType *TapeDriveType) UnmarshalText(text []byte) error {
38423899 case "TS1140" : * tapeDriveType = TAPE_DRIVE_TYPE_TS1140
38433900 case "TS1150" : * tapeDriveType = TAPE_DRIVE_TYPE_TS1150
38443901 case "TS1155" : * tapeDriveType = TAPE_DRIVE_TYPE_TS1155
3902+ case "TS1160" : * tapeDriveType = TAPE_DRIVE_TYPE_TS1160
38453903 default :
38463904 * tapeDriveType = UNDEFINED
38473905 return errors .New (fmt .Sprintf ("Cannot marshal '%s' into TapeDriveType" , str ))
@@ -3859,6 +3917,7 @@ func (tapeDriveType TapeDriveType) String() string {
38593917 case TAPE_DRIVE_TYPE_TS1140 : return "TS1140"
38603918 case TAPE_DRIVE_TYPE_TS1150 : return "TS1150"
38613919 case TAPE_DRIVE_TYPE_TS1155 : return "TS1155"
3920+ case TAPE_DRIVE_TYPE_TS1160 : return "TS1160"
38623921 default :
38633922 log .Printf ("Error: invalid TapeDriveType represented by '%d'" , tapeDriveType )
38643923 return ""
@@ -4395,6 +4454,7 @@ type AzureTarget struct {
43954454 Id string
43964455 LastFullyVerified * string
43974456 Name * string
4457+ NamingMode CloudNamingMode
43984458 PermitGoingOutOfSync bool
43994459 Quiesced Quiesced
44004460 State TargetState
@@ -4425,6 +4485,8 @@ func (azureTarget *AzureTarget) parse(xmlNode *XmlNode, aggErr *AggregateError)
44254485 azureTarget .LastFullyVerified = parseNullableString (child .Content )
44264486 case "Name" :
44274487 azureTarget .Name = parseNullableString (child .Content )
4488+ case "NamingMode" :
4489+ parseEnum (child .Content , & azureTarget .NamingMode , aggErr )
44284490 case "PermitGoingOutOfSync" :
44294491 azureTarget .PermitGoingOutOfSync = parseBool (child .Content , aggErr )
44304492 case "Quiesced" :
@@ -4720,6 +4782,7 @@ type S3Target struct {
47204782 Id string
47214783 LastFullyVerified * string
47224784 Name * string
4785+ NamingMode CloudNamingMode
47234786 OfflineDataStagingWindowInTb int
47244787 PermitGoingOutOfSync bool
47254788 ProxyDomain * string
@@ -4759,6 +4822,8 @@ func (s3Target *S3Target) parse(xmlNode *XmlNode, aggErr *AggregateError) {
47594822 s3Target .LastFullyVerified = parseNullableString (child .Content )
47604823 case "Name" :
47614824 s3Target .Name = parseNullableString (child .Content )
4825+ case "NamingMode" :
4826+ parseEnum (child .Content , & s3Target .NamingMode , aggErr )
47624827 case "OfflineDataStagingWindowInTb" :
47634828 s3Target .OfflineDataStagingWindowInTb = parseInt (child .Content , aggErr )
47644829 case "PermitGoingOutOfSync" :
0 commit comments