From 5a968dabc8095e3567e12d92d65fbf7e284235fe Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Fri, 8 Apr 2022 12:36:51 +0000 Subject: [PATCH] CodeGen from PR 17264 in Azure/azure-rest-api-specs Merge eb829ed4739fccb03dd2327b7762392e74c80ae4 into e6960fdb7e58aa8bcca0b208a881452e2e6c55c8 --- .../mgmt/2020-07-01/appplatform/CHANGELOG.md | 29 ++++++++++- .../mgmt/2020-07-01/appplatform/_meta.json | 2 +- .../mgmt/2020-07-01/appplatform/enums.go | 28 +++++++++++ .../mgmt/2020-07-01/appplatform/models.go | 49 +++++++++++++++++++ .../appplatform/CHANGELOG.md | 20 +++++++- .../2020-11-01-preview/appplatform/_meta.json | 2 +- .../2020-11-01-preview/appplatform/enums.go | 13 +++++ .../2020-11-01-preview/appplatform/models.go | 37 ++++++++++++-- .../appplatform/CHANGELOG.md | 19 ++++++- .../2021-06-01-preview/appplatform/_meta.json | 2 +- .../2021-06-01-preview/appplatform/enums.go | 13 +++++ .../2021-06-01-preview/appplatform/models.go | 25 ++++++++++ .../appplatform/CHANGELOG.md | 20 +++++++- .../2021-09-01-preview/appplatform/_meta.json | 2 +- .../2021-09-01-preview/appplatform/enums.go | 19 ++++++- .../2021-09-01-preview/appplatform/models.go | 25 +++++++++- .../appplatform/CHANGELOG.md | 35 ++++++++++++- .../2022-01-01-preview/appplatform/_meta.json | 2 +- .../appplatform/appplatformapi/interfaces.go | 2 +- .../appplatform/buildserviceagentpool.go | 12 ++--- .../2022-01-01-preview/appplatform/enums.go | 19 ++++++- .../2022-01-01-preview/appplatform/models.go | 25 +++++++++- .../appplatform/CHANGELOG.md | 2 +- .../2022-03-01-preview/appplatform/_meta.json | 2 +- 24 files changed, 375 insertions(+), 29 deletions(-) diff --git a/services/appplatform/mgmt/2020-07-01/appplatform/CHANGELOG.md b/services/appplatform/mgmt/2020-07-01/appplatform/CHANGELOG.md index 52911e4cc5e4..fa19dadc5298 100644 --- a/services/appplatform/mgmt/2020-07-01/appplatform/CHANGELOG.md +++ b/services/appplatform/mgmt/2020-07-01/appplatform/CHANGELOG.md @@ -1,2 +1,29 @@ -# Change History +# Unreleased +## Additive Changes + +### New Constants + +1. ActionType.Internal +1. TrafficDirection.Inbound +1. TrafficDirection.Outbound + +### New Funcs + +1. OperationDetail.MarshalJSON() ([]byte, error) +1. PossibleActionTypeValues() []ActionType +1. PossibleTrafficDirectionValues() []TrafficDirection +1. RequiredTraffic.MarshalJSON() ([]byte, error) + +### Struct Changes + +#### New Structs + +1. RequiredTraffic + +#### New Struct Fields + +1. MetricDimension.ToBeExportedForShoebox +1. MetricSpecification.SourceMdmNamespace +1. NetworkProfile.RequiredTraffics +1. OperationDetail.ActionType diff --git a/services/appplatform/mgmt/2020-07-01/appplatform/_meta.json b/services/appplatform/mgmt/2020-07-01/appplatform/_meta.json index c9b975cc3818..d8c1258f7a65 100644 --- a/services/appplatform/mgmt/2020-07-01/appplatform/_meta.json +++ b/services/appplatform/mgmt/2020-07-01/appplatform/_meta.json @@ -1,5 +1,5 @@ { - "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", + "commit": "140e85eaffc052f1dcbb3787c992a6026fface55", "readme": "/_/azure-rest-api-specs/specification/appplatform/resource-manager/readme.md", "tag": "package-2020-07", "use": "@microsoft.azure/autorest.go@2.1.187", diff --git a/services/appplatform/mgmt/2020-07-01/appplatform/enums.go b/services/appplatform/mgmt/2020-07-01/appplatform/enums.go index 1f1f4961bc8b..2338763dfe94 100644 --- a/services/appplatform/mgmt/2020-07-01/appplatform/enums.go +++ b/services/appplatform/mgmt/2020-07-01/appplatform/enums.go @@ -6,6 +6,19 @@ package appplatform // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// ActionType enumerates the values for action type. +type ActionType string + +const ( + // Internal ... + Internal ActionType = "Internal" +) + +// PossibleActionTypeValues returns an array of possible values for the ActionType const type. +func PossibleActionTypeValues() []ActionType { + return []ActionType{Internal} +} + // AppResourceProvisioningState enumerates the values for app resource provisioning state. type AppResourceProvisioningState string @@ -268,6 +281,21 @@ func PossibleTestKeyTypeValues() []TestKeyType { return []TestKeyType{Primary, Secondary} } +// TrafficDirection enumerates the values for traffic direction. +type TrafficDirection string + +const ( + // Inbound ... + Inbound TrafficDirection = "Inbound" + // Outbound ... + Outbound TrafficDirection = "Outbound" +) + +// PossibleTrafficDirectionValues returns an array of possible values for the TrafficDirection const type. +func PossibleTrafficDirectionValues() []TrafficDirection { + return []TrafficDirection{Inbound, Outbound} +} + // UserSourceType enumerates the values for user source type. type UserSourceType string diff --git a/services/appplatform/mgmt/2020-07-01/appplatform/models.go b/services/appplatform/mgmt/2020-07-01/appplatform/models.go index 05599810346a..2da08fd8d7fe 100644 --- a/services/appplatform/mgmt/2020-07-01/appplatform/models.go +++ b/services/appplatform/mgmt/2020-07-01/appplatform/models.go @@ -2380,6 +2380,8 @@ type MetricDimension struct { Name *string `json:"name,omitempty"` // DisplayName - Localized friendly display name of the dimension DisplayName *string `json:"displayName,omitempty"` + // ToBeExportedForShoebox - Whether this dimension should be included for the Shoebox export scenario + ToBeExportedForShoebox *bool `json:"toBeExportedForShoebox,omitempty"` } // MetricSpecification specifications of the Metrics for Azure Monitoring @@ -2404,6 +2406,8 @@ type MetricSpecification struct { FillGapWithZero *bool `json:"fillGapWithZero,omitempty"` // Dimensions - Dimensions of the metric Dimensions *[]MetricDimension `json:"dimensions,omitempty"` + // SourceMdmNamespace - Name of the MDM namespace. Optional. + SourceMdmNamespace *string `json:"sourceMdmNamespace,omitempty"` } // MonitoringSettingProperties monitoring Setting properties payload @@ -2574,6 +2578,8 @@ type NetworkProfile struct { AppNetworkResourceGroup *string `json:"appNetworkResourceGroup,omitempty"` // OutboundIPs - READ-ONLY; Desired outbound IP resources for Azure Spring Cloud instance. OutboundIPs *NetworkProfileOutboundIPs `json:"outboundIPs,omitempty"` + // RequiredTraffics - READ-ONLY; Required inbound or outbound traffics for Azure Spring Cloud instance. + RequiredTraffics *[]RequiredTraffic `json:"requiredTraffics,omitempty"` } // MarshalJSON is the custom marshaler for NetworkProfile. @@ -2617,12 +2623,35 @@ type OperationDetail struct { IsDataAction *bool `json:"isDataAction,omitempty"` // Display - Display of the operation Display *OperationDisplay `json:"display,omitempty"` + // ActionType - READ-ONLY; Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. Possible values include: 'Internal' + ActionType ActionType `json:"actionType,omitempty"` // Origin - Origin of the operation Origin *string `json:"origin,omitempty"` // Properties - Properties of the operation Properties *OperationProperties `json:"properties,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDetail. +func (od OperationDetail) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if od.Name != nil { + objectMap["name"] = od.Name + } + if od.IsDataAction != nil { + objectMap["isDataAction"] = od.IsDataAction + } + if od.Display != nil { + objectMap["display"] = od.Display + } + if od.Origin != nil { + objectMap["origin"] = od.Origin + } + if od.Properties != nil { + objectMap["properties"] = od.Properties + } + return json.Marshal(objectMap) +} + // OperationDisplay operation display payload type OperationDisplay struct { // Provider - Resource provider of the operation @@ -2686,6 +2715,26 @@ type RegenerateTestKeyRequestPayload struct { KeyType TestKeyType `json:"keyType,omitempty"` } +// RequiredTraffic required inbound or outbound traffic for Azure Spring Cloud instance. +type RequiredTraffic struct { + // Protocol - READ-ONLY; The protocol of required traffic + Protocol *string `json:"protocol,omitempty"` + // Port - READ-ONLY; The port of required traffic + Port *int32 `json:"port,omitempty"` + // Ips - READ-ONLY; The ip list of required traffic + Ips *[]string `json:"ips,omitempty"` + // Fqdns - READ-ONLY; The FQDN list of required traffic + Fqdns *[]string `json:"fqdns,omitempty"` + // Direction - READ-ONLY; The direction of required traffic. Possible values include: 'Inbound', 'Outbound' + Direction TrafficDirection `json:"direction,omitempty"` +} + +// MarshalJSON is the custom marshaler for RequiredTraffic. +func (rt RequiredTraffic) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Resource the core properties of ARM resources. type Resource struct { // ID - READ-ONLY; Fully qualified resource Id for the resource. diff --git a/services/preview/appplatform/mgmt/2020-11-01-preview/appplatform/CHANGELOG.md b/services/preview/appplatform/mgmt/2020-11-01-preview/appplatform/CHANGELOG.md index 52911e4cc5e4..16f464ac4bca 100644 --- a/services/preview/appplatform/mgmt/2020-11-01-preview/appplatform/CHANGELOG.md +++ b/services/preview/appplatform/mgmt/2020-11-01-preview/appplatform/CHANGELOG.md @@ -1,2 +1,20 @@ -# Change History +# Unreleased +## Additive Changes + +### New Constants + +1. ActionType.Internal + +### New Funcs + +1. OperationDetail.MarshalJSON() ([]byte, error) +1. PossibleActionTypeValues() []ActionType + +### Struct Changes + +#### New Struct Fields + +1. MetricDimension.ToBeExportedForShoebox +1. MetricSpecification.SourceMdmNamespace +1. OperationDetail.ActionType diff --git a/services/preview/appplatform/mgmt/2020-11-01-preview/appplatform/_meta.json b/services/preview/appplatform/mgmt/2020-11-01-preview/appplatform/_meta.json index fc8bec7dd50e..0e17af9282e0 100644 --- a/services/preview/appplatform/mgmt/2020-11-01-preview/appplatform/_meta.json +++ b/services/preview/appplatform/mgmt/2020-11-01-preview/appplatform/_meta.json @@ -1,5 +1,5 @@ { - "commit": "92ab22b49bd085116af0c61fada2c6c360702e9e", + "commit": "140e85eaffc052f1dcbb3787c992a6026fface55", "readme": "/_/azure-rest-api-specs/specification/appplatform/resource-manager/readme.md", "tag": "package-preview-2020-11", "use": "@microsoft.azure/autorest.go@2.1.187", diff --git a/services/preview/appplatform/mgmt/2020-11-01-preview/appplatform/enums.go b/services/preview/appplatform/mgmt/2020-11-01-preview/appplatform/enums.go index 6d83c7e3ff6f..2338763dfe94 100644 --- a/services/preview/appplatform/mgmt/2020-11-01-preview/appplatform/enums.go +++ b/services/preview/appplatform/mgmt/2020-11-01-preview/appplatform/enums.go @@ -6,6 +6,19 @@ package appplatform // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// ActionType enumerates the values for action type. +type ActionType string + +const ( + // Internal ... + Internal ActionType = "Internal" +) + +// PossibleActionTypeValues returns an array of possible values for the ActionType const type. +func PossibleActionTypeValues() []ActionType { + return []ActionType{Internal} +} + // AppResourceProvisioningState enumerates the values for app resource provisioning state. type AppResourceProvisioningState string diff --git a/services/preview/appplatform/mgmt/2020-11-01-preview/appplatform/models.go b/services/preview/appplatform/mgmt/2020-11-01-preview/appplatform/models.go index f6471952adfe..8aa349f6f91c 100644 --- a/services/preview/appplatform/mgmt/2020-11-01-preview/appplatform/models.go +++ b/services/preview/appplatform/mgmt/2020-11-01-preview/appplatform/models.go @@ -238,14 +238,14 @@ type AppResourceProperties struct { Fqdn *string `json:"fqdn,omitempty"` // HTTPSOnly - Indicate if only https is allowed. HTTPSOnly *bool `json:"httpsOnly,omitempty"` - // EnableEndToEndTLS - Indicate if end to end TLS is enabled. - EnableEndToEndTLS *bool `json:"enableEndToEndTLS,omitempty"` // CreatedTime - READ-ONLY; Date time when the resource is created CreatedTime *date.Time `json:"createdTime,omitempty"` // TemporaryDisk - Temporary disk settings TemporaryDisk *TemporaryDisk `json:"temporaryDisk,omitempty"` // PersistentDisk - Persistent disk settings PersistentDisk *PersistentDisk `json:"persistentDisk,omitempty"` + // EnableEndToEndTLS - Indicate if end to end TLS is enabled. + EnableEndToEndTLS *bool `json:"enableEndToEndTLS,omitempty"` } // MarshalJSON is the custom marshaler for AppResourceProperties. @@ -263,15 +263,15 @@ func (arp AppResourceProperties) MarshalJSON() ([]byte, error) { if arp.HTTPSOnly != nil { objectMap["httpsOnly"] = arp.HTTPSOnly } - if arp.EnableEndToEndTLS != nil { - objectMap["enableEndToEndTLS"] = arp.EnableEndToEndTLS - } if arp.TemporaryDisk != nil { objectMap["temporaryDisk"] = arp.TemporaryDisk } if arp.PersistentDisk != nil { objectMap["persistentDisk"] = arp.PersistentDisk } + if arp.EnableEndToEndTLS != nil { + objectMap["enableEndToEndTLS"] = arp.EnableEndToEndTLS + } return json.Marshal(objectMap) } @@ -2397,6 +2397,8 @@ type MetricDimension struct { Name *string `json:"name,omitempty"` // DisplayName - Localized friendly display name of the dimension DisplayName *string `json:"displayName,omitempty"` + // ToBeExportedForShoebox - Whether this dimension should be included for the Shoebox export scenario + ToBeExportedForShoebox *bool `json:"toBeExportedForShoebox,omitempty"` } // MetricSpecification specifications of the Metrics for Azure Monitoring @@ -2421,6 +2423,8 @@ type MetricSpecification struct { FillGapWithZero *bool `json:"fillGapWithZero,omitempty"` // Dimensions - Dimensions of the metric Dimensions *[]MetricDimension `json:"dimensions,omitempty"` + // SourceMdmNamespace - Name of the MDM namespace. Optional. + SourceMdmNamespace *string `json:"sourceMdmNamespace,omitempty"` } // MonitoringSettingProperties monitoring Setting properties payload @@ -2646,12 +2650,35 @@ type OperationDetail struct { IsDataAction *bool `json:"isDataAction,omitempty"` // Display - Display of the operation Display *OperationDisplay `json:"display,omitempty"` + // ActionType - READ-ONLY; Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. Possible values include: 'Internal' + ActionType ActionType `json:"actionType,omitempty"` // Origin - Origin of the operation Origin *string `json:"origin,omitempty"` // Properties - Properties of the operation Properties *OperationProperties `json:"properties,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDetail. +func (od OperationDetail) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if od.Name != nil { + objectMap["name"] = od.Name + } + if od.IsDataAction != nil { + objectMap["isDataAction"] = od.IsDataAction + } + if od.Display != nil { + objectMap["display"] = od.Display + } + if od.Origin != nil { + objectMap["origin"] = od.Origin + } + if od.Properties != nil { + objectMap["properties"] = od.Properties + } + return json.Marshal(objectMap) +} + // OperationDisplay operation display payload type OperationDisplay struct { // Provider - Resource provider of the operation diff --git a/services/preview/appplatform/mgmt/2021-06-01-preview/appplatform/CHANGELOG.md b/services/preview/appplatform/mgmt/2021-06-01-preview/appplatform/CHANGELOG.md index 52911e4cc5e4..535e52fa359c 100644 --- a/services/preview/appplatform/mgmt/2021-06-01-preview/appplatform/CHANGELOG.md +++ b/services/preview/appplatform/mgmt/2021-06-01-preview/appplatform/CHANGELOG.md @@ -1,2 +1,19 @@ -# Change History +# Unreleased +## Additive Changes + +### New Constants + +1. ActionType.ActionTypeInternal + +### New Funcs + +1. OperationDetail.MarshalJSON() ([]byte, error) +1. PossibleActionTypeValues() []ActionType + +### Struct Changes + +#### New Struct Fields + +1. MetricSpecification.SourceMdmNamespace +1. OperationDetail.ActionType diff --git a/services/preview/appplatform/mgmt/2021-06-01-preview/appplatform/_meta.json b/services/preview/appplatform/mgmt/2021-06-01-preview/appplatform/_meta.json index 268fbc2e98d7..89eb46138fd1 100644 --- a/services/preview/appplatform/mgmt/2021-06-01-preview/appplatform/_meta.json +++ b/services/preview/appplatform/mgmt/2021-06-01-preview/appplatform/_meta.json @@ -1,5 +1,5 @@ { - "commit": "f9883569df850be792a37df17a1a28a5bdcdfc39", + "commit": "140e85eaffc052f1dcbb3787c992a6026fface55", "readme": "/_/azure-rest-api-specs/specification/appplatform/resource-manager/readme.md", "tag": "package-preview-2021-06", "use": "@microsoft.azure/autorest.go@2.1.187", diff --git a/services/preview/appplatform/mgmt/2021-06-01-preview/appplatform/enums.go b/services/preview/appplatform/mgmt/2021-06-01-preview/appplatform/enums.go index fec3ec77be59..6787d986046a 100644 --- a/services/preview/appplatform/mgmt/2021-06-01-preview/appplatform/enums.go +++ b/services/preview/appplatform/mgmt/2021-06-01-preview/appplatform/enums.go @@ -6,6 +6,19 @@ package appplatform // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// ActionType enumerates the values for action type. +type ActionType string + +const ( + // ActionTypeInternal ... + ActionTypeInternal ActionType = "Internal" +) + +// PossibleActionTypeValues returns an array of possible values for the ActionType const type. +func PossibleActionTypeValues() []ActionType { + return []ActionType{ActionTypeInternal} +} + // AppResourceProvisioningState enumerates the values for app resource provisioning state. type AppResourceProvisioningState string diff --git a/services/preview/appplatform/mgmt/2021-06-01-preview/appplatform/models.go b/services/preview/appplatform/mgmt/2021-06-01-preview/appplatform/models.go index c1cffcbab88a..5b50c3407c32 100644 --- a/services/preview/appplatform/mgmt/2021-06-01-preview/appplatform/models.go +++ b/services/preview/appplatform/mgmt/2021-06-01-preview/appplatform/models.go @@ -2450,6 +2450,8 @@ type MetricSpecification struct { FillGapWithZero *bool `json:"fillGapWithZero,omitempty"` // Dimensions - Dimensions of the metric Dimensions *[]MetricDimension `json:"dimensions,omitempty"` + // SourceMdmNamespace - Name of the MDM namespace. Optional. + SourceMdmNamespace *string `json:"sourceMdmNamespace,omitempty"` } // MonitoringSettingProperties monitoring Setting properties payload @@ -2675,12 +2677,35 @@ type OperationDetail struct { IsDataAction *bool `json:"isDataAction,omitempty"` // Display - Display of the operation Display *OperationDisplay `json:"display,omitempty"` + // ActionType - READ-ONLY; Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. Possible values include: 'ActionTypeInternal' + ActionType ActionType `json:"actionType,omitempty"` // Origin - Origin of the operation Origin *string `json:"origin,omitempty"` // Properties - Properties of the operation Properties *OperationProperties `json:"properties,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDetail. +func (od OperationDetail) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if od.Name != nil { + objectMap["name"] = od.Name + } + if od.IsDataAction != nil { + objectMap["isDataAction"] = od.IsDataAction + } + if od.Display != nil { + objectMap["display"] = od.Display + } + if od.Origin != nil { + objectMap["origin"] = od.Origin + } + if od.Properties != nil { + objectMap["properties"] = od.Properties + } + return json.Marshal(objectMap) +} + // OperationDisplay operation display payload type OperationDisplay struct { // Provider - Resource provider of the operation diff --git a/services/preview/appplatform/mgmt/2021-09-01-preview/appplatform/CHANGELOG.md b/services/preview/appplatform/mgmt/2021-09-01-preview/appplatform/CHANGELOG.md index 52911e4cc5e4..75b874db44bd 100644 --- a/services/preview/appplatform/mgmt/2021-09-01-preview/appplatform/CHANGELOG.md +++ b/services/preview/appplatform/mgmt/2021-09-01-preview/appplatform/CHANGELOG.md @@ -1,2 +1,20 @@ -# Change History +# Unreleased +## Additive Changes + +### New Constants + +1. ActionType.ActionTypeInternal +1. ProvisioningState.ProvisioningStateStarting +1. ProvisioningState.ProvisioningStateStopping + +### New Funcs + +1. OperationDetail.MarshalJSON() ([]byte, error) +1. PossibleActionTypeValues() []ActionType + +### Struct Changes + +#### New Struct Fields + +1. OperationDetail.ActionType diff --git a/services/preview/appplatform/mgmt/2021-09-01-preview/appplatform/_meta.json b/services/preview/appplatform/mgmt/2021-09-01-preview/appplatform/_meta.json index bee21af08ee9..1afb492d6d08 100644 --- a/services/preview/appplatform/mgmt/2021-09-01-preview/appplatform/_meta.json +++ b/services/preview/appplatform/mgmt/2021-09-01-preview/appplatform/_meta.json @@ -1,5 +1,5 @@ { - "commit": "547fc2c120bac50455ab85831747d7041a2cc4ea", + "commit": "140e85eaffc052f1dcbb3787c992a6026fface55", "readme": "/_/azure-rest-api-specs/specification/appplatform/resource-manager/readme.md", "tag": "package-preview-2021-09", "use": "@microsoft.azure/autorest.go@2.1.187", diff --git a/services/preview/appplatform/mgmt/2021-09-01-preview/appplatform/enums.go b/services/preview/appplatform/mgmt/2021-09-01-preview/appplatform/enums.go index 0f4b6aabd4b7..ebe3802cabfc 100644 --- a/services/preview/appplatform/mgmt/2021-09-01-preview/appplatform/enums.go +++ b/services/preview/appplatform/mgmt/2021-09-01-preview/appplatform/enums.go @@ -6,6 +6,19 @@ package appplatform // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// ActionType enumerates the values for action type. +type ActionType string + +const ( + // ActionTypeInternal ... + ActionTypeInternal ActionType = "Internal" +) + +// PossibleActionTypeValues returns an array of possible values for the ActionType const type. +func PossibleActionTypeValues() []ActionType { + return []ActionType{ActionTypeInternal} +} + // AppResourceProvisioningState enumerates the values for app resource provisioning state. type AppResourceProvisioningState string @@ -180,6 +193,10 @@ const ( ProvisioningStateMoveFailed ProvisioningState = "MoveFailed" // ProvisioningStateMoving ... ProvisioningStateMoving ProvisioningState = "Moving" + // ProvisioningStateStarting ... + ProvisioningStateStarting ProvisioningState = "Starting" + // ProvisioningStateStopping ... + ProvisioningStateStopping ProvisioningState = "Stopping" // ProvisioningStateSucceeded ... ProvisioningStateSucceeded ProvisioningState = "Succeeded" // ProvisioningStateUpdating ... @@ -188,7 +205,7 @@ const ( // PossibleProvisioningStateValues returns an array of possible values for the ProvisioningState const type. func PossibleProvisioningStateValues() []ProvisioningState { - return []ProvisioningState{ProvisioningStateCreating, ProvisioningStateDeleted, ProvisioningStateDeleting, ProvisioningStateFailed, ProvisioningStateMoved, ProvisioningStateMoveFailed, ProvisioningStateMoving, ProvisioningStateSucceeded, ProvisioningStateUpdating} + return []ProvisioningState{ProvisioningStateCreating, ProvisioningStateDeleted, ProvisioningStateDeleting, ProvisioningStateFailed, ProvisioningStateMoved, ProvisioningStateMoveFailed, ProvisioningStateMoving, ProvisioningStateStarting, ProvisioningStateStopping, ProvisioningStateSucceeded, ProvisioningStateUpdating} } // ResourceSkuRestrictionsReasonCode enumerates the values for resource sku restrictions reason code. diff --git a/services/preview/appplatform/mgmt/2021-09-01-preview/appplatform/models.go b/services/preview/appplatform/mgmt/2021-09-01-preview/appplatform/models.go index 160a0fde43ae..ffac19e8174b 100644 --- a/services/preview/appplatform/mgmt/2021-09-01-preview/appplatform/models.go +++ b/services/preview/appplatform/mgmt/2021-09-01-preview/appplatform/models.go @@ -1400,7 +1400,7 @@ type CloudErrorBody struct { // ClusterResourceProperties service properties payload type ClusterResourceProperties struct { - // ProvisioningState - READ-ONLY; Provisioning state of the Service. Possible values include: 'ProvisioningStateCreating', 'ProvisioningStateUpdating', 'ProvisioningStateDeleting', 'ProvisioningStateDeleted', 'ProvisioningStateSucceeded', 'ProvisioningStateFailed', 'ProvisioningStateMoving', 'ProvisioningStateMoved', 'ProvisioningStateMoveFailed' + // ProvisioningState - READ-ONLY; Provisioning state of the Service. Possible values include: 'ProvisioningStateCreating', 'ProvisioningStateUpdating', 'ProvisioningStateStarting', 'ProvisioningStateStopping', 'ProvisioningStateDeleting', 'ProvisioningStateDeleted', 'ProvisioningStateSucceeded', 'ProvisioningStateFailed', 'ProvisioningStateMoving', 'ProvisioningStateMoved', 'ProvisioningStateMoveFailed' ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` // NetworkProfile - Network profile of the Service NetworkProfile *NetworkProfile `json:"networkProfile,omitempty"` @@ -3241,12 +3241,35 @@ type OperationDetail struct { IsDataAction *bool `json:"isDataAction,omitempty"` // Display - Display of the operation Display *OperationDisplay `json:"display,omitempty"` + // ActionType - READ-ONLY; Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. Possible values include: 'ActionTypeInternal' + ActionType ActionType `json:"actionType,omitempty"` // Origin - Origin of the operation Origin *string `json:"origin,omitempty"` // Properties - Properties of the operation Properties *OperationProperties `json:"properties,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDetail. +func (od OperationDetail) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if od.Name != nil { + objectMap["name"] = od.Name + } + if od.IsDataAction != nil { + objectMap["isDataAction"] = od.IsDataAction + } + if od.Display != nil { + objectMap["display"] = od.Display + } + if od.Origin != nil { + objectMap["origin"] = od.Origin + } + if od.Properties != nil { + objectMap["properties"] = od.Properties + } + return json.Marshal(objectMap) +} + // OperationDisplay operation display payload type OperationDisplay struct { // Provider - Resource provider of the operation diff --git a/services/preview/appplatform/mgmt/2022-01-01-preview/appplatform/CHANGELOG.md b/services/preview/appplatform/mgmt/2022-01-01-preview/appplatform/CHANGELOG.md index 52911e4cc5e4..495bb62cfa45 100644 --- a/services/preview/appplatform/mgmt/2022-01-01-preview/appplatform/CHANGELOG.md +++ b/services/preview/appplatform/mgmt/2022-01-01-preview/appplatform/CHANGELOG.md @@ -1,2 +1,35 @@ -# Change History +# Unreleased +## Breaking Changes + +### Signature Changes + +#### Funcs + +1. BuildServiceAgentPoolClient.UpdatePut + - Params + - From: context.Context, string, string, string, string, BuildServiceAgentPoolSizeProperties + - To: context.Context, string, string, string, string, BuildServiceAgentPoolResource +1. BuildServiceAgentPoolClient.UpdatePutPreparer + - Params + - From: context.Context, string, string, string, string, BuildServiceAgentPoolSizeProperties + - To: context.Context, string, string, string, string, BuildServiceAgentPoolResource + +## Additive Changes + +### New Constants + +1. ActionType.ActionTypeInternal +1. ProvisioningState.ProvisioningStateStarting +1. ProvisioningState.ProvisioningStateStopping + +### New Funcs + +1. OperationDetail.MarshalJSON() ([]byte, error) +1. PossibleActionTypeValues() []ActionType + +### Struct Changes + +#### New Struct Fields + +1. OperationDetail.ActionType diff --git a/services/preview/appplatform/mgmt/2022-01-01-preview/appplatform/_meta.json b/services/preview/appplatform/mgmt/2022-01-01-preview/appplatform/_meta.json index b43d8656d130..063e27085fbe 100644 --- a/services/preview/appplatform/mgmt/2022-01-01-preview/appplatform/_meta.json +++ b/services/preview/appplatform/mgmt/2022-01-01-preview/appplatform/_meta.json @@ -1,5 +1,5 @@ { - "commit": "3e1f462ff6a7daa705ac58f1772dd5c429bb8d2e", + "commit": "140e85eaffc052f1dcbb3787c992a6026fface55", "readme": "/_/azure-rest-api-specs/specification/appplatform/resource-manager/readme.md", "tag": "package-preview-2022-01", "use": "@microsoft.azure/autorest.go@2.1.187", diff --git a/services/preview/appplatform/mgmt/2022-01-01-preview/appplatform/appplatformapi/interfaces.go b/services/preview/appplatform/mgmt/2022-01-01-preview/appplatform/appplatformapi/interfaces.go index 95840c0c8cab..d8e0e4389650 100644 --- a/services/preview/appplatform/mgmt/2022-01-01-preview/appplatform/appplatformapi/interfaces.go +++ b/services/preview/appplatform/mgmt/2022-01-01-preview/appplatform/appplatformapi/interfaces.go @@ -115,7 +115,7 @@ type BuildServiceAgentPoolClientAPI interface { Get(ctx context.Context, resourceGroupName string, serviceName string, buildServiceName string, agentPoolName string) (result appplatform.BuildServiceAgentPoolResource, err error) List(ctx context.Context, resourceGroupName string, serviceName string, buildServiceName string) (result appplatform.BuildServiceAgentPoolResourceCollectionPage, err error) ListComplete(ctx context.Context, resourceGroupName string, serviceName string, buildServiceName string) (result appplatform.BuildServiceAgentPoolResourceCollectionIterator, err error) - UpdatePut(ctx context.Context, resourceGroupName string, serviceName string, buildServiceName string, agentPoolName string, poolSize appplatform.BuildServiceAgentPoolSizeProperties) (result appplatform.BuildServiceAgentPoolUpdatePutFuture, err error) + UpdatePut(ctx context.Context, resourceGroupName string, serviceName string, buildServiceName string, agentPoolName string, agentPoolResource appplatform.BuildServiceAgentPoolResource) (result appplatform.BuildServiceAgentPoolUpdatePutFuture, err error) } var _ BuildServiceAgentPoolClientAPI = (*appplatform.BuildServiceAgentPoolClient)(nil) diff --git a/services/preview/appplatform/mgmt/2022-01-01-preview/appplatform/buildserviceagentpool.go b/services/preview/appplatform/mgmt/2022-01-01-preview/appplatform/buildserviceagentpool.go index f418305586f6..10ba4fa2de68 100644 --- a/services/preview/appplatform/mgmt/2022-01-01-preview/appplatform/buildserviceagentpool.go +++ b/services/preview/appplatform/mgmt/2022-01-01-preview/appplatform/buildserviceagentpool.go @@ -240,8 +240,8 @@ func (client BuildServiceAgentPoolClient) ListComplete(ctx context.Context, reso // serviceName - the name of the Service resource. // buildServiceName - the name of the build service resource. // agentPoolName - the name of the build service agent pool resource. -// poolSize - parameters for the update operation -func (client BuildServiceAgentPoolClient) UpdatePut(ctx context.Context, resourceGroupName string, serviceName string, buildServiceName string, agentPoolName string, poolSize BuildServiceAgentPoolSizeProperties) (result BuildServiceAgentPoolUpdatePutFuture, err error) { +// agentPoolResource - parameters for the update operation +func (client BuildServiceAgentPoolClient) UpdatePut(ctx context.Context, resourceGroupName string, serviceName string, buildServiceName string, agentPoolName string, agentPoolResource BuildServiceAgentPoolResource) (result BuildServiceAgentPoolUpdatePutFuture, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/BuildServiceAgentPoolClient.UpdatePut") defer func() { @@ -252,7 +252,7 @@ func (client BuildServiceAgentPoolClient) UpdatePut(ctx context.Context, resourc tracing.EndSpan(ctx, sc, err) }() } - req, err := client.UpdatePutPreparer(ctx, resourceGroupName, serviceName, buildServiceName, agentPoolName, poolSize) + req, err := client.UpdatePutPreparer(ctx, resourceGroupName, serviceName, buildServiceName, agentPoolName, agentPoolResource) if err != nil { err = autorest.NewErrorWithError(err, "appplatform.BuildServiceAgentPoolClient", "UpdatePut", nil, "Failure preparing request") return @@ -268,7 +268,7 @@ func (client BuildServiceAgentPoolClient) UpdatePut(ctx context.Context, resourc } // UpdatePutPreparer prepares the UpdatePut request. -func (client BuildServiceAgentPoolClient) UpdatePutPreparer(ctx context.Context, resourceGroupName string, serviceName string, buildServiceName string, agentPoolName string, poolSize BuildServiceAgentPoolSizeProperties) (*http.Request, error) { +func (client BuildServiceAgentPoolClient) UpdatePutPreparer(ctx context.Context, resourceGroupName string, serviceName string, buildServiceName string, agentPoolName string, agentPoolResource BuildServiceAgentPoolResource) (*http.Request, error) { pathParameters := map[string]interface{}{ "agentPoolName": autorest.Encode("path", agentPoolName), "buildServiceName": autorest.Encode("path", buildServiceName), @@ -282,14 +282,12 @@ func (client BuildServiceAgentPoolClient) UpdatePutPreparer(ctx context.Context, "api-version": APIVersion, } - poolSize.CPU = nil - poolSize.Memory = nil preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPut(), autorest.WithBaseURL(client.BaseURI), autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/agentPools/{agentPoolName}", pathParameters), - autorest.WithJSON(poolSize), + autorest.WithJSON(agentPoolResource), autorest.WithQueryParameters(queryParameters)) return preparer.Prepare((&http.Request{}).WithContext(ctx)) } diff --git a/services/preview/appplatform/mgmt/2022-01-01-preview/appplatform/enums.go b/services/preview/appplatform/mgmt/2022-01-01-preview/appplatform/enums.go index 0ebb2f1f703e..2b7bdae0196d 100644 --- a/services/preview/appplatform/mgmt/2022-01-01-preview/appplatform/enums.go +++ b/services/preview/appplatform/mgmt/2022-01-01-preview/appplatform/enums.go @@ -6,6 +6,19 @@ package appplatform // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// ActionType enumerates the values for action type. +type ActionType string + +const ( + // ActionTypeInternal ... + ActionTypeInternal ActionType = "Internal" +) + +// PossibleActionTypeValues returns an array of possible values for the ActionType const type. +func PossibleActionTypeValues() []ActionType { + return []ActionType{ActionTypeInternal} +} + // APIPortalProvisioningState enumerates the values for api portal provisioning state. type APIPortalProvisioningState string @@ -401,6 +414,10 @@ const ( ProvisioningStateMoveFailed ProvisioningState = "MoveFailed" // ProvisioningStateMoving ... ProvisioningStateMoving ProvisioningState = "Moving" + // ProvisioningStateStarting ... + ProvisioningStateStarting ProvisioningState = "Starting" + // ProvisioningStateStopping ... + ProvisioningStateStopping ProvisioningState = "Stopping" // ProvisioningStateSucceeded ... ProvisioningStateSucceeded ProvisioningState = "Succeeded" // ProvisioningStateUpdating ... @@ -409,7 +426,7 @@ const ( // PossibleProvisioningStateValues returns an array of possible values for the ProvisioningState const type. func PossibleProvisioningStateValues() []ProvisioningState { - return []ProvisioningState{ProvisioningStateCreating, ProvisioningStateDeleted, ProvisioningStateDeleting, ProvisioningStateFailed, ProvisioningStateMoved, ProvisioningStateMoveFailed, ProvisioningStateMoving, ProvisioningStateSucceeded, ProvisioningStateUpdating} + return []ProvisioningState{ProvisioningStateCreating, ProvisioningStateDeleted, ProvisioningStateDeleting, ProvisioningStateFailed, ProvisioningStateMoved, ProvisioningStateMoveFailed, ProvisioningStateMoving, ProvisioningStateStarting, ProvisioningStateStopping, ProvisioningStateSucceeded, ProvisioningStateUpdating} } // ResourceSkuRestrictionsReasonCode enumerates the values for resource sku restrictions reason code. diff --git a/services/preview/appplatform/mgmt/2022-01-01-preview/appplatform/models.go b/services/preview/appplatform/mgmt/2022-01-01-preview/appplatform/models.go index f609b068a880..d37576a4549a 100644 --- a/services/preview/appplatform/mgmt/2022-01-01-preview/appplatform/models.go +++ b/services/preview/appplatform/mgmt/2022-01-01-preview/appplatform/models.go @@ -3712,7 +3712,7 @@ type CloudErrorBody struct { // ClusterResourceProperties service properties payload type ClusterResourceProperties struct { - // ProvisioningState - READ-ONLY; Provisioning state of the Service. Possible values include: 'ProvisioningStateCreating', 'ProvisioningStateUpdating', 'ProvisioningStateDeleting', 'ProvisioningStateDeleted', 'ProvisioningStateSucceeded', 'ProvisioningStateFailed', 'ProvisioningStateMoving', 'ProvisioningStateMoved', 'ProvisioningStateMoveFailed' + // ProvisioningState - READ-ONLY; Provisioning state of the Service. Possible values include: 'ProvisioningStateCreating', 'ProvisioningStateUpdating', 'ProvisioningStateStarting', 'ProvisioningStateStopping', 'ProvisioningStateDeleting', 'ProvisioningStateDeleted', 'ProvisioningStateSucceeded', 'ProvisioningStateFailed', 'ProvisioningStateMoving', 'ProvisioningStateMoved', 'ProvisioningStateMoveFailed' ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` // NetworkProfile - Network profile of the Service NetworkProfile *NetworkProfile `json:"networkProfile,omitempty"` @@ -7251,12 +7251,35 @@ type OperationDetail struct { IsDataAction *bool `json:"isDataAction,omitempty"` // Display - Display of the operation Display *OperationDisplay `json:"display,omitempty"` + // ActionType - READ-ONLY; Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. Possible values include: 'ActionTypeInternal' + ActionType ActionType `json:"actionType,omitempty"` // Origin - Origin of the operation Origin *string `json:"origin,omitempty"` // Properties - Properties of the operation Properties *OperationProperties `json:"properties,omitempty"` } +// MarshalJSON is the custom marshaler for OperationDetail. +func (od OperationDetail) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if od.Name != nil { + objectMap["name"] = od.Name + } + if od.IsDataAction != nil { + objectMap["isDataAction"] = od.IsDataAction + } + if od.Display != nil { + objectMap["display"] = od.Display + } + if od.Origin != nil { + objectMap["origin"] = od.Origin + } + if od.Properties != nil { + objectMap["properties"] = od.Properties + } + return json.Marshal(objectMap) +} + // OperationDisplay operation display payload type OperationDisplay struct { // Provider - Resource provider of the operation diff --git a/services/preview/appplatform/mgmt/2022-03-01-preview/appplatform/CHANGELOG.md b/services/preview/appplatform/mgmt/2022-03-01-preview/appplatform/CHANGELOG.md index 52911e4cc5e4..a1ecf841edb0 100644 --- a/services/preview/appplatform/mgmt/2022-03-01-preview/appplatform/CHANGELOG.md +++ b/services/preview/appplatform/mgmt/2022-03-01-preview/appplatform/CHANGELOG.md @@ -1,2 +1,2 @@ -# Change History +# Unreleased diff --git a/services/preview/appplatform/mgmt/2022-03-01-preview/appplatform/_meta.json b/services/preview/appplatform/mgmt/2022-03-01-preview/appplatform/_meta.json index 78913da4cb5a..17c3958e5666 100644 --- a/services/preview/appplatform/mgmt/2022-03-01-preview/appplatform/_meta.json +++ b/services/preview/appplatform/mgmt/2022-03-01-preview/appplatform/_meta.json @@ -1,5 +1,5 @@ { - "commit": "f7f8f5bd19939b4a11ea626f266a362b4dd5b626", + "commit": "140e85eaffc052f1dcbb3787c992a6026fface55", "readme": "/_/azure-rest-api-specs/specification/appplatform/resource-manager/readme.md", "tag": "package-preview-2022-03", "use": "@microsoft.azure/autorest.go@2.1.187",