diff --git a/services/web/mgmt/2020-06-01/web/CHANGELOG.md b/services/web/mgmt/2020-06-01/web/CHANGELOG.md
new file mode 100644
index 000000000000..ab091d30760b
--- /dev/null
+++ b/services/web/mgmt/2020-06-01/web/CHANGELOG.md
@@ -0,0 +1,83 @@
+Generated from https://github.com/Azure/azure-rest-api-specs/tree/3c764635e7d442b3e74caf593029fcd440b3ef82
+
+Code generator @microsoft.azure/autorest.go@~2.1.161
+
+## Breaking Changes
+
+- Function `NewTopLevelDomainCollectionPage` parameter(s) have been changed from `(func(context.Context, TopLevelDomainCollection) (TopLevelDomainCollection, error))` to `(TopLevelDomainCollection, func(context.Context, TopLevelDomainCollection) (TopLevelDomainCollection, error))`
+- Function `NewAppServicePlanCollectionPage` parameter(s) have been changed from `(func(context.Context, AppServicePlanCollection) (AppServicePlanCollection, error))` to `(AppServicePlanCollection, func(context.Context, AppServicePlanCollection) (AppServicePlanCollection, error))`
+- Function `NewPublicCertificateCollectionPage` parameter(s) have been changed from `(func(context.Context, PublicCertificateCollection) (PublicCertificateCollection, error))` to `(PublicCertificateCollection, func(context.Context, PublicCertificateCollection) (PublicCertificateCollection, error))`
+- Function `NewNameIdentifierCollectionPage` parameter(s) have been changed from `(func(context.Context, NameIdentifierCollection) (NameIdentifierCollection, error))` to `(NameIdentifierCollection, func(context.Context, NameIdentifierCollection) (NameIdentifierCollection, error))`
+- Function `NewStaticSiteFunctionOverviewCollectionPage` parameter(s) have been changed from `(func(context.Context, StaticSiteFunctionOverviewCollection) (StaticSiteFunctionOverviewCollection, error))` to `(StaticSiteFunctionOverviewCollection, func(context.Context, StaticSiteFunctionOverviewCollection) (StaticSiteFunctionOverviewCollection, error))`
+- Function `NewResourceCollectionPage` parameter(s) have been changed from `(func(context.Context, ResourceCollection) (ResourceCollection, error))` to `(ResourceCollection, func(context.Context, ResourceCollection) (ResourceCollection, error))`
+- Function `NewCsmOperationCollectionPage` parameter(s) have been changed from `(func(context.Context, CsmOperationCollection) (CsmOperationCollection, error))` to `(CsmOperationCollection, func(context.Context, CsmOperationCollection) (CsmOperationCollection, error))`
+- Function `NewStaticSiteCustomDomainOverviewCollectionPage` parameter(s) have been changed from `(func(context.Context, StaticSiteCustomDomainOverviewCollection) (StaticSiteCustomDomainOverviewCollection, error))` to `(StaticSiteCustomDomainOverviewCollection, func(context.Context, StaticSiteCustomDomainOverviewCollection) (StaticSiteCustomDomainOverviewCollection, error))`
+- Function `NewStampCapacityCollectionPage` parameter(s) have been changed from `(func(context.Context, StampCapacityCollection) (StampCapacityCollection, error))` to `(StampCapacityCollection, func(context.Context, StampCapacityCollection) (StampCapacityCollection, error))`
+- Function `NewDiagnosticCategoryCollectionPage` parameter(s) have been changed from `(func(context.Context, DiagnosticCategoryCollection) (DiagnosticCategoryCollection, error))` to `(DiagnosticCategoryCollection, func(context.Context, DiagnosticCategoryCollection) (DiagnosticCategoryCollection, error))`
+- Function `NewWorkerPoolCollectionPage` parameter(s) have been changed from `(func(context.Context, WorkerPoolCollection) (WorkerPoolCollection, error))` to `(WorkerPoolCollection, func(context.Context, WorkerPoolCollection) (WorkerPoolCollection, error))`
+- Function `NewSiteExtensionInfoCollectionPage` parameter(s) have been changed from `(func(context.Context, SiteExtensionInfoCollection) (SiteExtensionInfoCollection, error))` to `(SiteExtensionInfoCollection, func(context.Context, SiteExtensionInfoCollection) (SiteExtensionInfoCollection, error))`
+- Function `NewResourceMetricDefinitionCollectionPage` parameter(s) have been changed from `(func(context.Context, ResourceMetricDefinitionCollection) (ResourceMetricDefinitionCollection, error))` to `(ResourceMetricDefinitionCollection, func(context.Context, ResourceMetricDefinitionCollection) (ResourceMetricDefinitionCollection, error))`
+- Function `NewProcessModuleInfoCollectionPage` parameter(s) have been changed from `(func(context.Context, ProcessModuleInfoCollection) (ProcessModuleInfoCollection, error))` to `(ProcessModuleInfoCollection, func(context.Context, ProcessModuleInfoCollection) (ProcessModuleInfoCollection, error))`
+- Function `NewIdentifierCollectionPage` parameter(s) have been changed from `(func(context.Context, IdentifierCollection) (IdentifierCollection, error))` to `(IdentifierCollection, func(context.Context, IdentifierCollection) (IdentifierCollection, error))`
+- Function `NewBackupItemCollectionPage` parameter(s) have been changed from `(func(context.Context, BackupItemCollection) (BackupItemCollection, error))` to `(BackupItemCollection, func(context.Context, BackupItemCollection) (BackupItemCollection, error))`
+- Function `NewSiteConfigResourceCollectionPage` parameter(s) have been changed from `(func(context.Context, SiteConfigResourceCollection) (SiteConfigResourceCollection, error))` to `(SiteConfigResourceCollection, func(context.Context, SiteConfigResourceCollection) (SiteConfigResourceCollection, error))`
+- Function `NewInboundEnvironmentEndpointCollectionPage` parameter(s) have been changed from `(func(context.Context, InboundEnvironmentEndpointCollection) (InboundEnvironmentEndpointCollection, error))` to `(InboundEnvironmentEndpointCollection, func(context.Context, InboundEnvironmentEndpointCollection) (InboundEnvironmentEndpointCollection, error))`
+- Function `NewAppServiceCertificateOrderCollectionPage` parameter(s) have been changed from `(func(context.Context, AppServiceCertificateOrderCollection) (AppServiceCertificateOrderCollection, error))` to `(AppServiceCertificateOrderCollection, func(context.Context, AppServiceCertificateOrderCollection) (AppServiceCertificateOrderCollection, error))`
+- Function `NewUsageCollectionPage` parameter(s) have been changed from `(func(context.Context, UsageCollection) (UsageCollection, error))` to `(UsageCollection, func(context.Context, UsageCollection) (UsageCollection, error))`
+- Function `NewSkuInfoCollectionPage` parameter(s) have been changed from `(func(context.Context, SkuInfoCollection) (SkuInfoCollection, error))` to `(SkuInfoCollection, func(context.Context, SkuInfoCollection) (SkuInfoCollection, error))`
+- Function `NewPremierAddOnOfferCollectionPage` parameter(s) have been changed from `(func(context.Context, PremierAddOnOfferCollection) (PremierAddOnOfferCollection, error))` to `(PremierAddOnOfferCollection, func(context.Context, PremierAddOnOfferCollection) (PremierAddOnOfferCollection, error))`
+- Function `NewFunctionEnvelopeCollectionPage` parameter(s) have been changed from `(func(context.Context, FunctionEnvelopeCollection) (FunctionEnvelopeCollection, error))` to `(FunctionEnvelopeCollection, func(context.Context, FunctionEnvelopeCollection) (FunctionEnvelopeCollection, error))`
+- Function `NewAppInstanceStatusCollectionPage` parameter(s) have been changed from `(func(context.Context, AppInstanceStatusCollection) (AppInstanceStatusCollection, error))` to `(AppInstanceStatusCollection, func(context.Context, AppInstanceStatusCollection) (AppInstanceStatusCollection, error))`
+- Function `NewSlotDifferenceCollectionPage` parameter(s) have been changed from `(func(context.Context, SlotDifferenceCollection) (SlotDifferenceCollection, error))` to `(SlotDifferenceCollection, func(context.Context, SlotDifferenceCollection) (SlotDifferenceCollection, error))`
+- Function `NewHostNameBindingCollectionPage` parameter(s) have been changed from `(func(context.Context, HostNameBindingCollection) (HostNameBindingCollection, error))` to `(HostNameBindingCollection, func(context.Context, HostNameBindingCollection) (HostNameBindingCollection, error))`
+- Function `NewStaticSiteBuildCollectionPage` parameter(s) have been changed from `(func(context.Context, StaticSiteBuildCollection) (StaticSiteBuildCollection, error))` to `(StaticSiteBuildCollection, func(context.Context, StaticSiteBuildCollection) (StaticSiteBuildCollection, error))`
+- Function `NewDeploymentCollectionPage` parameter(s) have been changed from `(func(context.Context, DeploymentCollection) (DeploymentCollection, error))` to `(DeploymentCollection, func(context.Context, DeploymentCollection) (DeploymentCollection, error))`
+- Function `NewProcessInfoCollectionPage` parameter(s) have been changed from `(func(context.Context, ProcessInfoCollection) (ProcessInfoCollection, error))` to `(ProcessInfoCollection, func(context.Context, ProcessInfoCollection) (ProcessInfoCollection, error))`
+- Function `NewBillingMeterCollectionPage` parameter(s) have been changed from `(func(context.Context, BillingMeterCollection) (BillingMeterCollection, error))` to `(BillingMeterCollection, func(context.Context, BillingMeterCollection) (BillingMeterCollection, error))`
+- Function `NewSnapshotCollectionPage` parameter(s) have been changed from `(func(context.Context, SnapshotCollection) (SnapshotCollection, error))` to `(SnapshotCollection, func(context.Context, SnapshotCollection) (SnapshotCollection, error))`
+- Function `NewGeoRegionCollectionPage` parameter(s) have been changed from `(func(context.Context, GeoRegionCollection) (GeoRegionCollection, error))` to `(GeoRegionCollection, func(context.Context, GeoRegionCollection) (GeoRegionCollection, error))`
+- Function `NewTriggeredJobHistoryCollectionPage` parameter(s) have been changed from `(func(context.Context, TriggeredJobHistoryCollection) (TriggeredJobHistoryCollection, error))` to `(TriggeredJobHistoryCollection, func(context.Context, TriggeredJobHistoryCollection) (TriggeredJobHistoryCollection, error))`
+- Function `NewAppServiceCertificateCollectionPage` parameter(s) have been changed from `(func(context.Context, AppServiceCertificateCollection) (AppServiceCertificateCollection, error))` to `(AppServiceCertificateCollection, func(context.Context, AppServiceCertificateCollection) (AppServiceCertificateCollection, error))`
+- Function `NewStaticSiteCollectionPage` parameter(s) have been changed from `(func(context.Context, StaticSiteCollection) (StaticSiteCollection, error))` to `(StaticSiteCollection, func(context.Context, StaticSiteCollection) (StaticSiteCollection, error))`
+- Function `NewCertificateCollectionPage` parameter(s) have been changed from `(func(context.Context, CertificateCollection) (CertificateCollection, error))` to `(CertificateCollection, func(context.Context, CertificateCollection) (CertificateCollection, error))`
+- Function `NewStaticSiteUserCollectionPage` parameter(s) have been changed from `(func(context.Context, StaticSiteUserCollection) (StaticSiteUserCollection, error))` to `(StaticSiteUserCollection, func(context.Context, StaticSiteUserCollection) (StaticSiteUserCollection, error))`
+- Function `NewHybridConnectionCollectionPage` parameter(s) have been changed from `(func(context.Context, HybridConnectionCollection) (HybridConnectionCollection, error))` to `(HybridConnectionCollection, func(context.Context, HybridConnectionCollection) (HybridConnectionCollection, error))`
+- Function `NewAppCollectionPage` parameter(s) have been changed from `(func(context.Context, AppCollection) (AppCollection, error))` to `(AppCollection, func(context.Context, AppCollection) (AppCollection, error))`
+- Function `NewDiagnosticAnalysisCollectionPage` parameter(s) have been changed from `(func(context.Context, DiagnosticAnalysisCollection) (DiagnosticAnalysisCollection, error))` to `(DiagnosticAnalysisCollection, func(context.Context, DiagnosticAnalysisCollection) (DiagnosticAnalysisCollection, error))`
+- Function `NewDetectorResponseCollectionPage` parameter(s) have been changed from `(func(context.Context, DetectorResponseCollection) (DetectorResponseCollection, error))` to `(DetectorResponseCollection, func(context.Context, DetectorResponseCollection) (DetectorResponseCollection, error))`
+- Function `NewSiteConfigurationSnapshotInfoCollectionPage` parameter(s) have been changed from `(func(context.Context, SiteConfigurationSnapshotInfoCollection) (SiteConfigurationSnapshotInfoCollection, error))` to `(SiteConfigurationSnapshotInfoCollection, func(context.Context, SiteConfigurationSnapshotInfoCollection) (SiteConfigurationSnapshotInfoCollection, error))`
+- Function `NewOutboundEnvironmentEndpointCollectionPage` parameter(s) have been changed from `(func(context.Context, OutboundEnvironmentEndpointCollection) (OutboundEnvironmentEndpointCollection, error))` to `(OutboundEnvironmentEndpointCollection, func(context.Context, OutboundEnvironmentEndpointCollection) (OutboundEnvironmentEndpointCollection, error))`
+- Function `NewRecommendationCollectionPage` parameter(s) have been changed from `(func(context.Context, RecommendationCollection) (RecommendationCollection, error))` to `(RecommendationCollection, func(context.Context, RecommendationCollection) (RecommendationCollection, error))`
+- Function `NewTldLegalAgreementCollectionPage` parameter(s) have been changed from `(func(context.Context, TldLegalAgreementCollection) (TldLegalAgreementCollection, error))` to `(TldLegalAgreementCollection, func(context.Context, TldLegalAgreementCollection) (TldLegalAgreementCollection, error))`
+- Function `NewJobCollectionPage` parameter(s) have been changed from `(func(context.Context, JobCollection) (JobCollection, error))` to `(JobCollection, func(context.Context, JobCollection) (JobCollection, error))`
+- Function `NewApplicationStackCollectionPage` parameter(s) have been changed from `(func(context.Context, ApplicationStackCollection) (ApplicationStackCollection, error))` to `(ApplicationStackCollection, func(context.Context, ApplicationStackCollection) (ApplicationStackCollection, error))`
+- Function `NewAppServiceEnvironmentCollectionPage` parameter(s) have been changed from `(func(context.Context, AppServiceEnvironmentCollection) (AppServiceEnvironmentCollection, error))` to `(AppServiceEnvironmentCollection, func(context.Context, AppServiceEnvironmentCollection) (AppServiceEnvironmentCollection, error))`
+- Function `NewDomainOwnershipIdentifierCollectionPage` parameter(s) have been changed from `(func(context.Context, DomainOwnershipIdentifierCollection) (DomainOwnershipIdentifierCollection, error))` to `(DomainOwnershipIdentifierCollection, func(context.Context, DomainOwnershipIdentifierCollection) (DomainOwnershipIdentifierCollection, error))`
+- Function `NewDeletedWebAppCollectionPage` parameter(s) have been changed from `(func(context.Context, DeletedWebAppCollection) (DeletedWebAppCollection, error))` to `(DeletedWebAppCollection, func(context.Context, DeletedWebAppCollection) (DeletedWebAppCollection, error))`
+- Function `NewTriggeredWebJobCollectionPage` parameter(s) have been changed from `(func(context.Context, TriggeredWebJobCollection) (TriggeredWebJobCollection, error))` to `(TriggeredWebJobCollection, func(context.Context, TriggeredWebJobCollection) (TriggeredWebJobCollection, error))`
+- Function `NewSourceControlCollectionPage` parameter(s) have been changed from `(func(context.Context, SourceControlCollection) (SourceControlCollection, error))` to `(SourceControlCollection, func(context.Context, SourceControlCollection) (SourceControlCollection, error))`
+- Function `NewDomainCollectionPage` parameter(s) have been changed from `(func(context.Context, DomainCollection) (DomainCollection, error))` to `(DomainCollection, func(context.Context, DomainCollection) (DomainCollection, error))`
+- Function `NewDiagnosticDetectorCollectionPage` parameter(s) have been changed from `(func(context.Context, DiagnosticDetectorCollection) (DiagnosticDetectorCollection, error))` to `(DiagnosticDetectorCollection, func(context.Context, DiagnosticDetectorCollection) (DiagnosticDetectorCollection, error))`
+- Function `NewContinuousWebJobCollectionPage` parameter(s) have been changed from `(func(context.Context, ContinuousWebJobCollection) (ContinuousWebJobCollection, error))` to `(ContinuousWebJobCollection, func(context.Context, ContinuousWebJobCollection) (ContinuousWebJobCollection, error))`
+- Function `NewPerfMonCounterCollectionPage` parameter(s) have been changed from `(func(context.Context, PerfMonCounterCollection) (PerfMonCounterCollection, error))` to `(PerfMonCounterCollection, func(context.Context, PerfMonCounterCollection) (PerfMonCounterCollection, error))`
+- Function `NewProcessThreadInfoCollectionPage` parameter(s) have been changed from `(func(context.Context, ProcessThreadInfoCollection) (ProcessThreadInfoCollection, error))` to `(ProcessThreadInfoCollection, func(context.Context, ProcessThreadInfoCollection) (ProcessThreadInfoCollection, error))`
+- Function `NewResourceHealthMetadataCollectionPage` parameter(s) have been changed from `(func(context.Context, ResourceHealthMetadataCollection) (ResourceHealthMetadataCollection, error))` to `(ResourceHealthMetadataCollection, func(context.Context, ResourceHealthMetadataCollection) (ResourceHealthMetadataCollection, error))`
+- Function `NewCsmUsageQuotaCollectionPage` parameter(s) have been changed from `(func(context.Context, CsmUsageQuotaCollection) (CsmUsageQuotaCollection, error))` to `(CsmUsageQuotaCollection, func(context.Context, CsmUsageQuotaCollection) (CsmUsageQuotaCollection, error))`
+
+## New Content
+
+- New function `StaticSitesClient.PreviewWorkflowResponder(*http.Response) (StaticSitesWorkflowPreview, error)`
+- New function `StaticSitesWorkflowPreview.MarshalJSON() ([]byte, error)`
+- New function `StaticSitesClient.PreviewWorkflowSender(*http.Request) (*http.Response, error)`
+- New function `StaticSitesClient.PreviewWorkflow(context.Context, string, StaticSitesWorkflowPreviewRequest) (StaticSitesWorkflowPreview, error)`
+- New function `StaticSitesWorkflowPreviewRequest.MarshalJSON() ([]byte, error)`
+- New function `StaticSitesClient.PreviewWorkflowPreparer(context.Context, string, StaticSitesWorkflowPreviewRequest) (*http.Request, error)`
+- New function `*StaticSitesWorkflowPreviewRequest.UnmarshalJSON([]byte) error`
+- New function `*StaticSitesWorkflowPreview.UnmarshalJSON([]byte) error`
+- New struct `StaticSitesWorkflowPreview`
+- New struct `StaticSitesWorkflowPreviewProperties`
+- New struct `StaticSitesWorkflowPreviewRequest`
+- New struct `StaticSitesWorkflowPreviewRequestProperties`
+- New field `ScmMinTLSVersion` in struct `SiteConfig`
+- New field `VnetRouteAllEnabled` in struct `SiteConfig`
+- New field `VnetPrivatePortsCount` in struct `SiteConfig`
diff --git a/services/web/mgmt/2020-06-01/web/models.go b/services/web/mgmt/2020-06-01/web/models.go
index e8fc4cfdef5c..8998652593b8 100644
--- a/services/web/mgmt/2020-06-01/web/models.go
+++ b/services/web/mgmt/2020-06-01/web/models.go
@@ -531,8 +531,11 @@ func (page AppCollectionPage) Values() []Site {
}
// Creates a new instance of the AppCollectionPage type.
-func NewAppCollectionPage(getNextPage func(context.Context, AppCollection) (AppCollection, error)) AppCollectionPage {
- return AppCollectionPage{fn: getNextPage}
+func NewAppCollectionPage(cur AppCollection, getNextPage func(context.Context, AppCollection) (AppCollection, error)) AppCollectionPage {
+ return AppCollectionPage{
+ fn: getNextPage,
+ ac: cur,
+ }
}
// AppInstanceStatusCollection collection of app instances.
@@ -696,8 +699,11 @@ func (page AppInstanceStatusCollectionPage) Values() []SiteInstanceStatus {
}
// Creates a new instance of the AppInstanceStatusCollectionPage type.
-func NewAppInstanceStatusCollectionPage(getNextPage func(context.Context, AppInstanceStatusCollection) (AppInstanceStatusCollection, error)) AppInstanceStatusCollectionPage {
- return AppInstanceStatusCollectionPage{fn: getNextPage}
+func NewAppInstanceStatusCollectionPage(cur AppInstanceStatusCollection, getNextPage func(context.Context, AppInstanceStatusCollection) (AppInstanceStatusCollection, error)) AppInstanceStatusCollectionPage {
+ return AppInstanceStatusCollectionPage{
+ fn: getNextPage,
+ aisc: cur,
+ }
}
// ApplicationLogsConfig application logs configuration.
@@ -742,7 +748,8 @@ func (asc ApplicationStackCollection) MarshalJSON() ([]byte, error) {
return json.Marshal(objectMap)
}
-// ApplicationStackCollectionIterator provides access to a complete listing of ApplicationStackResource values.
+// ApplicationStackCollectionIterator provides access to a complete listing of ApplicationStackResource
+// values.
type ApplicationStackCollectionIterator struct {
i int
page ApplicationStackCollectionPage
@@ -885,8 +892,11 @@ func (page ApplicationStackCollectionPage) Values() []ApplicationStackResource {
}
// Creates a new instance of the ApplicationStackCollectionPage type.
-func NewApplicationStackCollectionPage(getNextPage func(context.Context, ApplicationStackCollection) (ApplicationStackCollection, error)) ApplicationStackCollectionPage {
- return ApplicationStackCollectionPage{fn: getNextPage}
+func NewApplicationStackCollectionPage(cur ApplicationStackCollection, getNextPage func(context.Context, ApplicationStackCollection) (ApplicationStackCollection, error)) ApplicationStackCollectionPage {
+ return ApplicationStackCollectionPage{
+ fn: getNextPage,
+ asc: cur,
+ }
}
// ApplicationStackResource ARM resource for a ApplicationStack.
@@ -1067,8 +1077,8 @@ type AppRegistrationProperties struct {
AppSecretSettingName *string `json:"appSecretSettingName,omitempty"`
}
-// AppsApproveOrRejectPrivateEndpointConnectionFuture an abstraction for monitoring and retrieving the results
-// of a long-running operation.
+// AppsApproveOrRejectPrivateEndpointConnectionFuture an abstraction for monitoring and retrieving the
+// results of a long-running operation.
type AppsApproveOrRejectPrivateEndpointConnectionFuture struct {
azure.Future
}
@@ -1119,7 +1129,8 @@ func (future *AppsCopyProductionSlotFuture) Result(client AppsClient) (ar autore
return
}
-// AppsCopySlotSlotFuture an abstraction for monitoring and retrieving the results of a long-running operation.
+// AppsCopySlotSlotFuture an abstraction for monitoring and retrieving the results of a long-running
+// operation.
type AppsCopySlotSlotFuture struct {
azure.Future
}
@@ -1228,8 +1239,8 @@ func (future *AppsCreateInstanceMSDeployOperationFuture) Result(client AppsClien
return
}
-// AppsCreateInstanceMSDeployOperationSlotFuture an abstraction for monitoring and retrieving the results of a
-// long-running operation.
+// AppsCreateInstanceMSDeployOperationSlotFuture an abstraction for monitoring and retrieving the results
+// of a long-running operation.
type AppsCreateInstanceMSDeployOperationSlotFuture struct {
azure.Future
}
@@ -1257,8 +1268,8 @@ func (future *AppsCreateInstanceMSDeployOperationSlotFuture) Result(client AppsC
return
}
-// AppsCreateMSDeployOperationFuture an abstraction for monitoring and retrieving the results of a long-running
-// operation.
+// AppsCreateMSDeployOperationFuture an abstraction for monitoring and retrieving the results of a
+// long-running operation.
type AppsCreateMSDeployOperationFuture struct {
azure.Future
}
@@ -1644,8 +1655,11 @@ func (page AppServiceCertificateCollectionPage) Values() []AppServiceCertificate
}
// Creates a new instance of the AppServiceCertificateCollectionPage type.
-func NewAppServiceCertificateCollectionPage(getNextPage func(context.Context, AppServiceCertificateCollection) (AppServiceCertificateCollection, error)) AppServiceCertificateCollectionPage {
- return AppServiceCertificateCollectionPage{fn: getNextPage}
+func NewAppServiceCertificateCollectionPage(cur AppServiceCertificateCollection, getNextPage func(context.Context, AppServiceCertificateCollection) (AppServiceCertificateCollection, error)) AppServiceCertificateCollectionPage {
+ return AppServiceCertificateCollectionPage{
+ fn: getNextPage,
+ ascc: cur,
+ }
}
// AppServiceCertificateOrder SSL certificate purchase order.
@@ -1925,8 +1939,11 @@ func (page AppServiceCertificateOrderCollectionPage) Values() []AppServiceCertif
}
// Creates a new instance of the AppServiceCertificateOrderCollectionPage type.
-func NewAppServiceCertificateOrderCollectionPage(getNextPage func(context.Context, AppServiceCertificateOrderCollection) (AppServiceCertificateOrderCollection, error)) AppServiceCertificateOrderCollectionPage {
- return AppServiceCertificateOrderCollectionPage{fn: getNextPage}
+func NewAppServiceCertificateOrderCollectionPage(cur AppServiceCertificateOrderCollection, getNextPage func(context.Context, AppServiceCertificateOrderCollection) (AppServiceCertificateOrderCollection, error)) AppServiceCertificateOrderCollectionPage {
+ return AppServiceCertificateOrderCollectionPage{
+ fn: getNextPage,
+ ascoc: cur,
+ }
}
// AppServiceCertificateOrderPatchResource ARM resource for a certificate order that is purchased through
@@ -2016,8 +2033,8 @@ func (ascopr *AppServiceCertificateOrderPatchResource) UnmarshalJSON(body []byte
return nil
}
-// AppServiceCertificateOrderPatchResourceProperties appServiceCertificateOrderPatchResource resource specific
-// properties
+// AppServiceCertificateOrderPatchResourceProperties appServiceCertificateOrderPatchResource resource
+// specific properties
type AppServiceCertificateOrderPatchResourceProperties struct {
// Certificates - State of the Key Vault secret.
Certificates map[string]*AppServiceCertificate `json:"certificates"`
@@ -2155,8 +2172,8 @@ func (asco AppServiceCertificateOrderProperties) MarshalJSON() ([]byte, error) {
return json.Marshal(objectMap)
}
-// AppServiceCertificateOrdersCreateOrUpdateCertificateFuture an abstraction for monitoring and retrieving the
-// results of a long-running operation.
+// AppServiceCertificateOrdersCreateOrUpdateCertificateFuture an abstraction for monitoring and retrieving
+// the results of a long-running operation.
type AppServiceCertificateOrdersCreateOrUpdateCertificateFuture struct {
azure.Future
}
@@ -2184,8 +2201,8 @@ func (future *AppServiceCertificateOrdersCreateOrUpdateCertificateFuture) Result
return
}
-// AppServiceCertificateOrdersCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of
-// a long-running operation.
+// AppServiceCertificateOrdersCreateOrUpdateFuture an abstraction for monitoring and retrieving the results
+// of a long-running operation.
type AppServiceCertificateOrdersCreateOrUpdateFuture struct {
azure.Future
}
@@ -2300,8 +2317,8 @@ func (ascpr *AppServiceCertificatePatchResource) UnmarshalJSON(body []byte) erro
return nil
}
-// AppServiceCertificateResource key Vault container ARM resource for a certificate that is purchased through
-// Azure.
+// AppServiceCertificateResource key Vault container ARM resource for a certificate that is purchased
+// through Azure.
type AppServiceCertificateResource struct {
autorest.Response `json:"-"`
// AppServiceCertificate - Core resource properties
@@ -2734,8 +2751,11 @@ func (page AppServiceEnvironmentCollectionPage) Values() []AppServiceEnvironment
}
// Creates a new instance of the AppServiceEnvironmentCollectionPage type.
-func NewAppServiceEnvironmentCollectionPage(getNextPage func(context.Context, AppServiceEnvironmentCollection) (AppServiceEnvironmentCollection, error)) AppServiceEnvironmentCollectionPage {
- return AppServiceEnvironmentCollectionPage{fn: getNextPage}
+func NewAppServiceEnvironmentCollectionPage(cur AppServiceEnvironmentCollection, getNextPage func(context.Context, AppServiceEnvironmentCollection) (AppServiceEnvironmentCollection, error)) AppServiceEnvironmentCollectionPage {
+ return AppServiceEnvironmentCollectionPage{
+ fn: getNextPage,
+ asec: cur,
+ }
}
// AppServiceEnvironmentPatchResource ARM resource for a app service environment.
@@ -3512,8 +3532,11 @@ func (page AppServicePlanCollectionPage) Values() []AppServicePlan {
}
// Creates a new instance of the AppServicePlanCollectionPage type.
-func NewAppServicePlanCollectionPage(getNextPage func(context.Context, AppServicePlanCollection) (AppServicePlanCollection, error)) AppServicePlanCollectionPage {
- return AppServicePlanCollectionPage{fn: getNextPage}
+func NewAppServicePlanCollectionPage(cur AppServicePlanCollection, getNextPage func(context.Context, AppServicePlanCollection) (AppServicePlanCollection, error)) AppServicePlanCollectionPage {
+ return AppServicePlanCollectionPage{
+ fn: getNextPage,
+ aspc: cur,
+ }
}
// AppServicePlanPatchResource ARM resource for a app service plan.
@@ -3801,8 +3824,8 @@ func (future *AppServicePlansCreateOrUpdateFuture) Result(client AppServicePlans
return
}
-// AppsInstallSiteExtensionFuture an abstraction for monitoring and retrieving the results of a long-running
-// operation.
+// AppsInstallSiteExtensionFuture an abstraction for monitoring and retrieving the results of a
+// long-running operation.
type AppsInstallSiteExtensionFuture struct {
azure.Future
}
@@ -3917,7 +3940,8 @@ func (future *AppsListPublishingCredentialsSlotFuture) Result(client AppsClient)
return
}
-// AppsMigrateMySQLFuture an abstraction for monitoring and retrieving the results of a long-running operation.
+// AppsMigrateMySQLFuture an abstraction for monitoring and retrieving the results of a long-running
+// operation.
type AppsMigrateMySQLFuture struct {
azure.Future
}
@@ -3974,8 +3998,8 @@ func (future *AppsMigrateStorageFuture) Result(client AppsClient) (smr StorageMi
return
}
-// AppsRestoreFromBackupBlobFuture an abstraction for monitoring and retrieving the results of a long-running
-// operation.
+// AppsRestoreFromBackupBlobFuture an abstraction for monitoring and retrieving the results of a
+// long-running operation.
type AppsRestoreFromBackupBlobFuture struct {
azure.Future
}
@@ -4020,8 +4044,8 @@ func (future *AppsRestoreFromBackupBlobSlotFuture) Result(client AppsClient) (ar
return
}
-// AppsRestoreFromDeletedAppFuture an abstraction for monitoring and retrieving the results of a long-running
-// operation.
+// AppsRestoreFromDeletedAppFuture an abstraction for monitoring and retrieving the results of a
+// long-running operation.
type AppsRestoreFromDeletedAppFuture struct {
azure.Future
}
@@ -4088,7 +4112,8 @@ func (future *AppsRestoreFuture) Result(client AppsClient) (ar autorest.Response
return
}
-// AppsRestoreSlotFuture an abstraction for monitoring and retrieving the results of a long-running operation.
+// AppsRestoreSlotFuture an abstraction for monitoring and retrieving the results of a long-running
+// operation.
type AppsRestoreSlotFuture struct {
azure.Future
}
@@ -4185,8 +4210,8 @@ func (future *AppsStartNetworkTraceFuture) Result(client AppsClient) (lnt ListNe
return
}
-// AppsStartNetworkTraceSlotFuture an abstraction for monitoring and retrieving the results of a long-running
-// operation.
+// AppsStartNetworkTraceSlotFuture an abstraction for monitoring and retrieving the results of a
+// long-running operation.
type AppsStartNetworkTraceSlotFuture struct {
azure.Future
}
@@ -4214,8 +4239,8 @@ func (future *AppsStartNetworkTraceSlotFuture) Result(client AppsClient) (lnt Li
return
}
-// AppsStartWebSiteNetworkTraceOperationFuture an abstraction for monitoring and retrieving the results of a
-// long-running operation.
+// AppsStartWebSiteNetworkTraceOperationFuture an abstraction for monitoring and retrieving the results of
+// a long-running operation.
type AppsStartWebSiteNetworkTraceOperationFuture struct {
azure.Future
}
@@ -4243,8 +4268,8 @@ func (future *AppsStartWebSiteNetworkTraceOperationFuture) Result(client AppsCli
return
}
-// AppsStartWebSiteNetworkTraceOperationSlotFuture an abstraction for monitoring and retrieving the results of
-// a long-running operation.
+// AppsStartWebSiteNetworkTraceOperationSlotFuture an abstraction for monitoring and retrieving the results
+// of a long-running operation.
type AppsStartWebSiteNetworkTraceOperationSlotFuture struct {
azure.Future
}
@@ -4272,7 +4297,8 @@ func (future *AppsStartWebSiteNetworkTraceOperationSlotFuture) Result(client App
return
}
-// AppsSwapSlotSlotFuture an abstraction for monitoring and retrieving the results of a long-running operation.
+// AppsSwapSlotSlotFuture an abstraction for monitoring and retrieving the results of a long-running
+// operation.
type AppsSwapSlotSlotFuture struct {
azure.Future
}
@@ -4294,8 +4320,8 @@ func (future *AppsSwapSlotSlotFuture) Result(client AppsClient) (ar autorest.Res
return
}
-// AppsSwapSlotWithProductionFuture an abstraction for monitoring and retrieving the results of a long-running
-// operation.
+// AppsSwapSlotWithProductionFuture an abstraction for monitoring and retrieving the results of a
+// long-running operation.
type AppsSwapSlotWithProductionFuture struct {
azure.Future
}
@@ -5173,8 +5199,11 @@ func (page BackupItemCollectionPage) Values() []BackupItem {
}
// Creates a new instance of the BackupItemCollectionPage type.
-func NewBackupItemCollectionPage(getNextPage func(context.Context, BackupItemCollection) (BackupItemCollection, error)) BackupItemCollectionPage {
- return BackupItemCollectionPage{fn: getNextPage}
+func NewBackupItemCollectionPage(cur BackupItemCollection, getNextPage func(context.Context, BackupItemCollection) (BackupItemCollection, error)) BackupItemCollectionPage {
+ return BackupItemCollectionPage{
+ fn: getNextPage,
+ bic: cur,
+ }
}
// BackupItemProperties backupItem resource specific properties
@@ -5310,8 +5339,8 @@ type BackupRequestProperties struct {
Databases *[]DatabaseBackupSetting `json:"databases,omitempty"`
}
-// BackupSchedule description of a backup schedule. Describes how often should be the backup performed and what
-// should be the retention policy.
+// BackupSchedule description of a backup schedule. Describes how often should be the backup performed and
+// what should be the retention policy.
type BackupSchedule struct {
// FrequencyInterval - How often the backup should be executed (e.g. for weekly backup, this should be set to 7 and FrequencyUnit should be set to Day)
FrequencyInterval *int32 `json:"frequencyInterval,omitempty"`
@@ -5348,8 +5377,8 @@ func (bs BackupSchedule) MarshalJSON() ([]byte, error) {
return json.Marshal(objectMap)
}
-// BillingMeter app Service billing entity that contains information about meter which the Azure billing system
-// utilizes to charge users for services.
+// BillingMeter app Service billing entity that contains information about meter which the Azure billing
+// system utilizes to charge users for services.
type BillingMeter struct {
// BillingMeterProperties - BillingMeter resource specific properties
*BillingMeterProperties `json:"properties,omitempty"`
@@ -5596,8 +5625,11 @@ func (page BillingMeterCollectionPage) Values() []BillingMeter {
}
// Creates a new instance of the BillingMeterCollectionPage type.
-func NewBillingMeterCollectionPage(getNextPage func(context.Context, BillingMeterCollection) (BillingMeterCollection, error)) BillingMeterCollectionPage {
- return BillingMeterCollectionPage{fn: getNextPage}
+func NewBillingMeterCollectionPage(cur BillingMeterCollection, getNextPage func(context.Context, BillingMeterCollection) (BillingMeterCollection, error)) BillingMeterCollectionPage {
+ return BillingMeterCollectionPage{
+ fn: getNextPage,
+ bmc: cur,
+ }
}
// BillingMeterProperties billingMeter resource specific properties
@@ -5993,8 +6025,11 @@ func (page CertificateCollectionPage) Values() []Certificate {
}
// Creates a new instance of the CertificateCollectionPage type.
-func NewCertificateCollectionPage(getNextPage func(context.Context, CertificateCollection) (CertificateCollection, error)) CertificateCollectionPage {
- return CertificateCollectionPage{fn: getNextPage}
+func NewCertificateCollectionPage(cur CertificateCollection, getNextPage func(context.Context, CertificateCollection) (CertificateCollection, error)) CertificateCollectionPage {
+ return CertificateCollectionPage{
+ fn: getNextPage,
+ cc: cur,
+ }
}
// CertificateDetails SSL certificate details.
@@ -6968,8 +7003,11 @@ func (page ContinuousWebJobCollectionPage) Values() []ContinuousWebJob {
}
// Creates a new instance of the ContinuousWebJobCollectionPage type.
-func NewContinuousWebJobCollectionPage(getNextPage func(context.Context, ContinuousWebJobCollection) (ContinuousWebJobCollection, error)) ContinuousWebJobCollectionPage {
- return ContinuousWebJobCollectionPage{fn: getNextPage}
+func NewContinuousWebJobCollectionPage(cur ContinuousWebJobCollection, getNextPage func(context.Context, ContinuousWebJobCollection) (ContinuousWebJobCollection, error)) ContinuousWebJobCollectionPage {
+ return ContinuousWebJobCollectionPage{
+ fn: getNextPage,
+ cwjc: cur,
+ }
}
// ContinuousWebJobProperties continuousWebJob resource specific properties
@@ -7315,8 +7353,11 @@ func (page CsmOperationCollectionPage) Values() []CsmOperationDescription {
}
// Creates a new instance of the CsmOperationCollectionPage type.
-func NewCsmOperationCollectionPage(getNextPage func(context.Context, CsmOperationCollection) (CsmOperationCollection, error)) CsmOperationCollectionPage {
- return CsmOperationCollectionPage{fn: getNextPage}
+func NewCsmOperationCollectionPage(cur CsmOperationCollection, getNextPage func(context.Context, CsmOperationCollection) (CsmOperationCollection, error)) CsmOperationCollectionPage {
+ return CsmOperationCollectionPage{
+ fn: getNextPage,
+ coc: cur,
+ }
}
// CsmOperationDescription description of an operation available for Microsoft.Web resource provider.
@@ -7523,8 +7564,8 @@ func (cpcpe *CsmPublishingCredentialsPoliciesEntity) UnmarshalJSON(body []byte)
return nil
}
-// CsmPublishingCredentialsPoliciesEntityProperties csmPublishingCredentialsPoliciesEntity resource specific
-// properties
+// CsmPublishingCredentialsPoliciesEntityProperties csmPublishingCredentialsPoliciesEntity resource
+// specific properties
type CsmPublishingCredentialsPoliciesEntityProperties struct {
// Allow - true to allow access to a publishing method; otherwise, false.
Allow *bool `json:"allow,omitempty"`
@@ -7724,8 +7765,11 @@ func (page CsmUsageQuotaCollectionPage) Values() []CsmUsageQuota {
}
// Creates a new instance of the CsmUsageQuotaCollectionPage type.
-func NewCsmUsageQuotaCollectionPage(getNextPage func(context.Context, CsmUsageQuotaCollection) (CsmUsageQuotaCollection, error)) CsmUsageQuotaCollectionPage {
- return CsmUsageQuotaCollectionPage{fn: getNextPage}
+func NewCsmUsageQuotaCollectionPage(cur CsmUsageQuotaCollection, getNextPage func(context.Context, CsmUsageQuotaCollection) (CsmUsageQuotaCollection, error)) CsmUsageQuotaCollectionPage {
+ return CsmUsageQuotaCollectionPage{
+ fn: getNextPage,
+ cuqc: cur,
+ }
}
// CustomHostnameAnalysisResult custom domain analysis.
@@ -8401,8 +8445,11 @@ func (page DeletedWebAppCollectionPage) Values() []DeletedSite {
}
// Creates a new instance of the DeletedWebAppCollectionPage type.
-func NewDeletedWebAppCollectionPage(getNextPage func(context.Context, DeletedWebAppCollection) (DeletedWebAppCollection, error)) DeletedWebAppCollectionPage {
- return DeletedWebAppCollectionPage{fn: getNextPage}
+func NewDeletedWebAppCollectionPage(cur DeletedWebAppCollection, getNextPage func(context.Context, DeletedWebAppCollection) (DeletedWebAppCollection, error)) DeletedWebAppCollectionPage {
+ return DeletedWebAppCollectionPage{
+ fn: getNextPage,
+ dwac: cur,
+ }
}
// Deployment user credentials used for publishing activity.
@@ -8653,8 +8700,11 @@ func (page DeploymentCollectionPage) Values() []Deployment {
}
// Creates a new instance of the DeploymentCollectionPage type.
-func NewDeploymentCollectionPage(getNextPage func(context.Context, DeploymentCollection) (DeploymentCollection, error)) DeploymentCollectionPage {
- return DeploymentCollectionPage{fn: getNextPage}
+func NewDeploymentCollectionPage(cur DeploymentCollection, getNextPage func(context.Context, DeploymentCollection) (DeploymentCollection, error)) DeploymentCollectionPage {
+ return DeploymentCollectionPage{
+ fn: getNextPage,
+ dc: cur,
+ }
}
// DeploymentLocations list of available locations (regions or App Service Environments) for
@@ -9070,8 +9120,11 @@ func (page DetectorResponseCollectionPage) Values() []DetectorResponse {
}
// Creates a new instance of the DetectorResponseCollectionPage type.
-func NewDetectorResponseCollectionPage(getNextPage func(context.Context, DetectorResponseCollection) (DetectorResponseCollection, error)) DetectorResponseCollectionPage {
- return DetectorResponseCollectionPage{fn: getNextPage}
+func NewDetectorResponseCollectionPage(cur DetectorResponseCollection, getNextPage func(context.Context, DetectorResponseCollection) (DetectorResponseCollection, error)) DetectorResponseCollectionPage {
+ return DetectorResponseCollectionPage{
+ fn: getNextPage,
+ drc: cur,
+ }
}
// DetectorResponseProperties detectorResponse resource specific properties
@@ -9330,8 +9383,11 @@ func (page DiagnosticAnalysisCollectionPage) Values() []AnalysisDefinition {
}
// Creates a new instance of the DiagnosticAnalysisCollectionPage type.
-func NewDiagnosticAnalysisCollectionPage(getNextPage func(context.Context, DiagnosticAnalysisCollection) (DiagnosticAnalysisCollection, error)) DiagnosticAnalysisCollectionPage {
- return DiagnosticAnalysisCollectionPage{fn: getNextPage}
+func NewDiagnosticAnalysisCollectionPage(cur DiagnosticAnalysisCollection, getNextPage func(context.Context, DiagnosticAnalysisCollection) (DiagnosticAnalysisCollection, error)) DiagnosticAnalysisCollectionPage {
+ return DiagnosticAnalysisCollectionPage{
+ fn: getNextPage,
+ dac: cur,
+ }
}
// DiagnosticAnalysisProperties diagnosticAnalysis resource specific properties
@@ -9596,8 +9652,11 @@ func (page DiagnosticCategoryCollectionPage) Values() []DiagnosticCategory {
}
// Creates a new instance of the DiagnosticCategoryCollectionPage type.
-func NewDiagnosticCategoryCollectionPage(getNextPage func(context.Context, DiagnosticCategoryCollection) (DiagnosticCategoryCollection, error)) DiagnosticCategoryCollectionPage {
- return DiagnosticCategoryCollectionPage{fn: getNextPage}
+func NewDiagnosticCategoryCollectionPage(cur DiagnosticCategoryCollection, getNextPage func(context.Context, DiagnosticCategoryCollection) (DiagnosticCategoryCollection, error)) DiagnosticCategoryCollectionPage {
+ return DiagnosticCategoryCollectionPage{
+ fn: getNextPage,
+ dcc: cur,
+ }
}
// DiagnosticCategoryProperties diagnosticCategory resource specific properties
@@ -9775,8 +9834,11 @@ func (page DiagnosticDetectorCollectionPage) Values() []DetectorDefinition {
}
// Creates a new instance of the DiagnosticDetectorCollectionPage type.
-func NewDiagnosticDetectorCollectionPage(getNextPage func(context.Context, DiagnosticDetectorCollection) (DiagnosticDetectorCollection, error)) DiagnosticDetectorCollectionPage {
- return DiagnosticDetectorCollectionPage{fn: getNextPage}
+func NewDiagnosticDetectorCollectionPage(cur DiagnosticDetectorCollection, getNextPage func(context.Context, DiagnosticDetectorCollection) (DiagnosticDetectorCollection, error)) DiagnosticDetectorCollectionPage {
+ return DiagnosticDetectorCollectionPage{
+ fn: getNextPage,
+ ddc: cur,
+ }
}
// DiagnosticDetectorResponse class representing Response from Diagnostic Detectors
@@ -10217,8 +10279,11 @@ func (page DomainCollectionPage) Values() []Domain {
}
// Creates a new instance of the DomainCollectionPage type.
-func NewDomainCollectionPage(getNextPage func(context.Context, DomainCollection) (DomainCollection, error)) DomainCollectionPage {
- return DomainCollectionPage{fn: getNextPage}
+func NewDomainCollectionPage(cur DomainCollection, getNextPage func(context.Context, DomainCollection) (DomainCollection, error)) DomainCollectionPage {
+ return DomainCollectionPage{
+ fn: getNextPage,
+ dc: cur,
+ }
}
// DomainControlCenterSsoRequest single sign-on request information for domain management.
@@ -10481,8 +10546,11 @@ func (page DomainOwnershipIdentifierCollectionPage) Values() []DomainOwnershipId
}
// Creates a new instance of the DomainOwnershipIdentifierCollectionPage type.
-func NewDomainOwnershipIdentifierCollectionPage(getNextPage func(context.Context, DomainOwnershipIdentifierCollection) (DomainOwnershipIdentifierCollection, error)) DomainOwnershipIdentifierCollectionPage {
- return DomainOwnershipIdentifierCollectionPage{fn: getNextPage}
+func NewDomainOwnershipIdentifierCollectionPage(cur DomainOwnershipIdentifierCollection, getNextPage func(context.Context, DomainOwnershipIdentifierCollection) (DomainOwnershipIdentifierCollection, error)) DomainOwnershipIdentifierCollectionPage {
+ return DomainOwnershipIdentifierCollectionPage{
+ fn: getNextPage,
+ doic: cur,
+ }
}
// DomainOwnershipIdentifierProperties domainOwnershipIdentifier resource specific properties
@@ -10797,8 +10865,8 @@ type EnabledConfig struct {
Enabled *bool `json:"enabled,omitempty"`
}
-// EndpointDependency a domain name that a service is reached at, including details of the current connection
-// status.
+// EndpointDependency a domain name that a service is reached at, including details of the current
+// connection status.
type EndpointDependency struct {
// DomainName - The domain name of the dependency.
DomainName *string `json:"domainName,omitempty"`
@@ -10806,7 +10874,8 @@ type EndpointDependency struct {
EndpointDetails *[]EndpointDetail `json:"endpointDetails,omitempty"`
}
-// EndpointDetail current TCP connectivity information from the App Service Environment to a single endpoint.
+// EndpointDetail current TCP connectivity information from the App Service Environment to a single
+// endpoint.
type EndpointDetail struct {
// IPAddress - An IP Address that Domain Name currently resolves to.
IPAddress *string `json:"ipAddress,omitempty"`
@@ -11387,8 +11456,11 @@ func (page FunctionEnvelopeCollectionPage) Values() []FunctionEnvelope {
}
// Creates a new instance of the FunctionEnvelopeCollectionPage type.
-func NewFunctionEnvelopeCollectionPage(getNextPage func(context.Context, FunctionEnvelopeCollection) (FunctionEnvelopeCollection, error)) FunctionEnvelopeCollectionPage {
- return FunctionEnvelopeCollectionPage{fn: getNextPage}
+func NewFunctionEnvelopeCollectionPage(cur FunctionEnvelopeCollection, getNextPage func(context.Context, FunctionEnvelopeCollection) (FunctionEnvelopeCollection, error)) FunctionEnvelopeCollectionPage {
+ return FunctionEnvelopeCollectionPage{
+ fn: getNextPage,
+ fec: cur,
+ }
}
// FunctionEnvelopeProperties functionEnvelope resource specific properties
@@ -11722,8 +11794,11 @@ func (page GeoRegionCollectionPage) Values() []GeoRegion {
}
// Creates a new instance of the GeoRegionCollectionPage type.
-func NewGeoRegionCollectionPage(getNextPage func(context.Context, GeoRegionCollection) (GeoRegionCollection, error)) GeoRegionCollectionPage {
- return GeoRegionCollectionPage{fn: getNextPage}
+func NewGeoRegionCollectionPage(cur GeoRegionCollection, getNextPage func(context.Context, GeoRegionCollection) (GeoRegionCollection, error)) GeoRegionCollectionPage {
+ return GeoRegionCollectionPage{
+ fn: getNextPage,
+ grc: cur,
+ }
}
// GeoRegionProperties geoRegion resource specific properties
@@ -12036,9 +12111,10 @@ type GoogleProperties struct {
Validation *AllowedAudiencesValidation `json:"validation,omitempty"`
}
-// HandlerMapping the IIS handler mappings used to define which handler processes HTTP requests with certain
+// HandlerMapping the IIS handler mappings used to define which handler processes HTTP requests with
+// certain extension.
+// For example, it is used to configure php-cgi.exe process to handle all HTTP requests with *.php
// extension.
-// For example, it is used to configure php-cgi.exe process to handle all HTTP requests with *.php extension.
type HandlerMapping struct {
// Extension - Requests with this extension will be handled using the specified FastCGI application.
Extension *string `json:"extension,omitempty"`
@@ -12374,8 +12450,11 @@ func (page HostNameBindingCollectionPage) Values() []HostNameBinding {
}
// Creates a new instance of the HostNameBindingCollectionPage type.
-func NewHostNameBindingCollectionPage(getNextPage func(context.Context, HostNameBindingCollection) (HostNameBindingCollection, error)) HostNameBindingCollectionPage {
- return HostNameBindingCollectionPage{fn: getNextPage}
+func NewHostNameBindingCollectionPage(cur HostNameBindingCollection, getNextPage func(context.Context, HostNameBindingCollection) (HostNameBindingCollection, error)) HostNameBindingCollectionPage {
+ return HostNameBindingCollectionPage{
+ fn: getNextPage,
+ hnbc: cur,
+ }
}
// HostNameBindingProperties hostNameBinding resource specific properties
@@ -12886,8 +12965,11 @@ func (page HybridConnectionCollectionPage) Values() []HybridConnection {
}
// Creates a new instance of the HybridConnectionCollectionPage type.
-func NewHybridConnectionCollectionPage(getNextPage func(context.Context, HybridConnectionCollection) (HybridConnectionCollection, error)) HybridConnectionCollectionPage {
- return HybridConnectionCollectionPage{fn: getNextPage}
+func NewHybridConnectionCollectionPage(cur HybridConnectionCollection, getNextPage func(context.Context, HybridConnectionCollection) (HybridConnectionCollection, error)) HybridConnectionCollectionPage {
+ return HybridConnectionCollectionPage{
+ fn: getNextPage,
+ hcc: cur,
+ }
}
// HybridConnectionKey hybrid Connection key contract. This has the send key name and value for a Hybrid
@@ -12986,8 +13068,8 @@ type HybridConnectionKeyProperties struct {
SendKeyValue *string `json:"sendKeyValue,omitempty"`
}
-// HybridConnectionLimits hybrid Connection limits contract. This is used to return the plan limits of Hybrid
-// Connections.
+// HybridConnectionLimits hybrid Connection limits contract. This is used to return the plan limits of
+// Hybrid Connections.
type HybridConnectionLimits struct {
autorest.Response `json:"-"`
// HybridConnectionLimitsProperties - HybridConnectionLimits resource specific properties
@@ -13351,8 +13433,11 @@ func (page IdentifierCollectionPage) Values() []Identifier {
}
// Creates a new instance of the IdentifierCollectionPage type.
-func NewIdentifierCollectionPage(getNextPage func(context.Context, IdentifierCollection) (IdentifierCollection, error)) IdentifierCollectionPage {
- return IdentifierCollectionPage{fn: getNextPage}
+func NewIdentifierCollectionPage(cur IdentifierCollection, getNextPage func(context.Context, IdentifierCollection) (IdentifierCollection, error)) IdentifierCollectionPage {
+ return IdentifierCollectionPage{
+ fn: getNextPage,
+ ic: cur,
+ }
}
// IdentifierProperties identifier resource specific properties
@@ -13481,8 +13566,8 @@ func (IP IdentityProvidersProperties) MarshalJSON() ([]byte, error) {
return json.Marshal(objectMap)
}
-// InboundEnvironmentEndpoint the IP Addresses and Ports that require inbound network access to and within the
-// subnet of the App Service Environment.
+// InboundEnvironmentEndpoint the IP Addresses and Ports that require inbound network access to and within
+// the subnet of the App Service Environment.
type InboundEnvironmentEndpoint struct {
// Description - Short text describing the purpose of the network traffic.
Description *string `json:"description,omitempty"`
@@ -13654,8 +13739,11 @@ func (page InboundEnvironmentEndpointCollectionPage) Values() []InboundEnvironme
}
// Creates a new instance of the InboundEnvironmentEndpointCollectionPage type.
-func NewInboundEnvironmentEndpointCollectionPage(getNextPage func(context.Context, InboundEnvironmentEndpointCollection) (InboundEnvironmentEndpointCollection, error)) InboundEnvironmentEndpointCollectionPage {
- return InboundEnvironmentEndpointCollectionPage{fn: getNextPage}
+func NewInboundEnvironmentEndpointCollectionPage(cur InboundEnvironmentEndpointCollection, getNextPage func(context.Context, InboundEnvironmentEndpointCollection) (InboundEnvironmentEndpointCollection, error)) InboundEnvironmentEndpointCollectionPage {
+ return InboundEnvironmentEndpointCollectionPage{
+ fn: getNextPage,
+ ieec: cur,
+ }
}
// IPSecurityRestriction IP security restriction on an app.
@@ -13987,8 +14075,11 @@ func (page JobCollectionPage) Values() []Job {
}
// Creates a new instance of the JobCollectionPage type.
-func NewJobCollectionPage(getNextPage func(context.Context, JobCollection) (JobCollection, error)) JobCollectionPage {
- return JobCollectionPage{fn: getNextPage}
+func NewJobCollectionPage(cur JobCollection, getNextPage func(context.Context, JobCollection) (JobCollection, error)) JobCollectionPage {
+ return JobCollectionPage{
+ fn: getNextPage,
+ jc: cur,
+ }
}
// JobProperties webJob resource specific properties
@@ -15235,8 +15326,11 @@ func (page NameIdentifierCollectionPage) Values() []NameIdentifier {
}
// Creates a new instance of the NameIdentifierCollectionPage type.
-func NewNameIdentifierCollectionPage(getNextPage func(context.Context, NameIdentifierCollection) (NameIdentifierCollection, error)) NameIdentifierCollectionPage {
- return NameIdentifierCollectionPage{fn: getNextPage}
+func NewNameIdentifierCollectionPage(cur NameIdentifierCollection, getNextPage func(context.Context, NameIdentifierCollection) (NameIdentifierCollection, error)) NameIdentifierCollectionPage {
+ return NameIdentifierCollectionPage{
+ fn: getNextPage,
+ nic: cur,
+ }
}
// NameValuePair name value pair.
@@ -16026,8 +16120,11 @@ func (page OutboundEnvironmentEndpointCollectionPage) Values() []OutboundEnviron
}
// Creates a new instance of the OutboundEnvironmentEndpointCollectionPage type.
-func NewOutboundEnvironmentEndpointCollectionPage(getNextPage func(context.Context, OutboundEnvironmentEndpointCollection) (OutboundEnvironmentEndpointCollection, error)) OutboundEnvironmentEndpointCollectionPage {
- return OutboundEnvironmentEndpointCollectionPage{fn: getNextPage}
+func NewOutboundEnvironmentEndpointCollectionPage(cur OutboundEnvironmentEndpointCollection, getNextPage func(context.Context, OutboundEnvironmentEndpointCollection) (OutboundEnvironmentEndpointCollection, error)) OutboundEnvironmentEndpointCollectionPage {
+ return OutboundEnvironmentEndpointCollectionPage{
+ fn: getNextPage,
+ oeec: cur,
+ }
}
// PerfMonCounterCollection collection of performance monitor counters.
@@ -16191,8 +16288,11 @@ func (page PerfMonCounterCollectionPage) Values() []PerfMonResponse {
}
// Creates a new instance of the PerfMonCounterCollectionPage type.
-func NewPerfMonCounterCollectionPage(getNextPage func(context.Context, PerfMonCounterCollection) (PerfMonCounterCollection, error)) PerfMonCounterCollectionPage {
- return PerfMonCounterCollectionPage{fn: getNextPage}
+func NewPerfMonCounterCollectionPage(cur PerfMonCounterCollection, getNextPage func(context.Context, PerfMonCounterCollection) (PerfMonCounterCollection, error)) PerfMonCounterCollectionPage {
+ return PerfMonCounterCollectionPage{
+ fn: getNextPage,
+ pmcc: cur,
+ }
}
// PerfMonResponse performance monitor API response.
@@ -16591,8 +16691,11 @@ func (page PremierAddOnOfferCollectionPage) Values() []PremierAddOnOffer {
}
// Creates a new instance of the PremierAddOnOfferCollectionPage type.
-func NewPremierAddOnOfferCollectionPage(getNextPage func(context.Context, PremierAddOnOfferCollection) (PremierAddOnOfferCollection, error)) PremierAddOnOfferCollectionPage {
- return PremierAddOnOfferCollectionPage{fn: getNextPage}
+func NewPremierAddOnOfferCollectionPage(cur PremierAddOnOfferCollection, getNextPage func(context.Context, PremierAddOnOfferCollection) (PremierAddOnOfferCollection, error)) PremierAddOnOfferCollectionPage {
+ return PremierAddOnOfferCollectionPage{
+ fn: getNextPage,
+ paooc: cur,
+ }
}
// PremierAddOnOfferProperties premierAddOnOffer resource specific properties
@@ -17310,8 +17413,11 @@ func (page ProcessInfoCollectionPage) Values() []ProcessInfo {
}
// Creates a new instance of the ProcessInfoCollectionPage type.
-func NewProcessInfoCollectionPage(getNextPage func(context.Context, ProcessInfoCollection) (ProcessInfoCollection, error)) ProcessInfoCollectionPage {
- return ProcessInfoCollectionPage{fn: getNextPage}
+func NewProcessInfoCollectionPage(cur ProcessInfoCollection, getNextPage func(context.Context, ProcessInfoCollection) (ProcessInfoCollection, error)) ProcessInfoCollectionPage {
+ return ProcessInfoCollectionPage{
+ fn: getNextPage,
+ pic: cur,
+ }
}
// ProcessInfoProperties processInfo resource specific properties
@@ -17749,8 +17855,11 @@ func (page ProcessModuleInfoCollectionPage) Values() []ProcessModuleInfo {
}
// Creates a new instance of the ProcessModuleInfoCollectionPage type.
-func NewProcessModuleInfoCollectionPage(getNextPage func(context.Context, ProcessModuleInfoCollection) (ProcessModuleInfoCollection, error)) ProcessModuleInfoCollectionPage {
- return ProcessModuleInfoCollectionPage{fn: getNextPage}
+func NewProcessModuleInfoCollectionPage(cur ProcessModuleInfoCollection, getNextPage func(context.Context, ProcessModuleInfoCollection) (ProcessModuleInfoCollection, error)) ProcessModuleInfoCollectionPage {
+ return ProcessModuleInfoCollectionPage{
+ fn: getNextPage,
+ pmic: cur,
+ }
}
// ProcessModuleInfoProperties processModuleInfo resource specific properties
@@ -18026,8 +18135,11 @@ func (page ProcessThreadInfoCollectionPage) Values() []ProcessThreadInfo {
}
// Creates a new instance of the ProcessThreadInfoCollectionPage type.
-func NewProcessThreadInfoCollectionPage(getNextPage func(context.Context, ProcessThreadInfoCollection) (ProcessThreadInfoCollection, error)) ProcessThreadInfoCollectionPage {
- return ProcessThreadInfoCollectionPage{fn: getNextPage}
+func NewProcessThreadInfoCollectionPage(cur ProcessThreadInfoCollection, getNextPage func(context.Context, ProcessThreadInfoCollection) (ProcessThreadInfoCollection, error)) ProcessThreadInfoCollectionPage {
+ return ProcessThreadInfoCollectionPage{
+ fn: getNextPage,
+ ptic: cur,
+ }
}
// ProcessThreadInfoProperties processThreadInfo resource specific properties
@@ -18366,8 +18478,11 @@ func (page PublicCertificateCollectionPage) Values() []PublicCertificate {
}
// Creates a new instance of the PublicCertificateCollectionPage type.
-func NewPublicCertificateCollectionPage(getNextPage func(context.Context, PublicCertificateCollection) (PublicCertificateCollection, error)) PublicCertificateCollectionPage {
- return PublicCertificateCollectionPage{fn: getNextPage}
+func NewPublicCertificateCollectionPage(cur PublicCertificateCollection, getNextPage func(context.Context, PublicCertificateCollection) (PublicCertificateCollection, error)) PublicCertificateCollectionPage {
+ return PublicCertificateCollectionPage{
+ fn: getNextPage,
+ pcc: cur,
+ }
}
// PublicCertificateProperties publicCertificate resource specific properties
@@ -18494,8 +18609,8 @@ type PushSettingsProperties struct {
DynamicTagsJSON *string `json:"dynamicTagsJson,omitempty"`
}
-// RampUpRule routing rules for ramp up testing. This rule allows to redirect static traffic % to a slot or to
-// gradually change routing % based on performance.
+// RampUpRule routing rules for ramp up testing. This rule allows to redirect static traffic % to a slot or
+// to gradually change routing % based on performance.
type RampUpRule struct {
// ActionHostName - Hostname of a slot to which the traffic will be redirected if decided to. E.g. myapp-stage.azurewebsites.net.
ActionHostName *string `json:"actionHostName,omitempty"`
@@ -18771,8 +18886,11 @@ func (page RecommendationCollectionPage) Values() []Recommendation {
}
// Creates a new instance of the RecommendationCollectionPage type.
-func NewRecommendationCollectionPage(getNextPage func(context.Context, RecommendationCollection) (RecommendationCollection, error)) RecommendationCollectionPage {
- return RecommendationCollectionPage{fn: getNextPage}
+func NewRecommendationCollectionPage(cur RecommendationCollection, getNextPage func(context.Context, RecommendationCollection) (RecommendationCollection, error)) RecommendationCollectionPage {
+ return RecommendationCollectionPage{
+ fn: getNextPage,
+ rc: cur,
+ }
}
// RecommendationProperties recommendation resource specific properties
@@ -19580,8 +19698,11 @@ func (page ResourceCollectionPage) Values() []string {
}
// Creates a new instance of the ResourceCollectionPage type.
-func NewResourceCollectionPage(getNextPage func(context.Context, ResourceCollection) (ResourceCollection, error)) ResourceCollectionPage {
- return ResourceCollectionPage{fn: getNextPage}
+func NewResourceCollectionPage(cur ResourceCollection, getNextPage func(context.Context, ResourceCollection) (ResourceCollection, error)) ResourceCollectionPage {
+ return ResourceCollectionPage{
+ fn: getNextPage,
+ rc: cur,
+ }
}
// ResourceHealthMetadata used for getting ResourceHealthCheck settings.
@@ -19833,8 +19954,11 @@ func (page ResourceHealthMetadataCollectionPage) Values() []ResourceHealthMetada
}
// Creates a new instance of the ResourceHealthMetadataCollectionPage type.
-func NewResourceHealthMetadataCollectionPage(getNextPage func(context.Context, ResourceHealthMetadataCollection) (ResourceHealthMetadataCollection, error)) ResourceHealthMetadataCollectionPage {
- return ResourceHealthMetadataCollectionPage{fn: getNextPage}
+func NewResourceHealthMetadataCollectionPage(cur ResourceHealthMetadataCollection, getNextPage func(context.Context, ResourceHealthMetadataCollection) (ResourceHealthMetadataCollection, error)) ResourceHealthMetadataCollectionPage {
+ return ResourceHealthMetadataCollectionPage{
+ fn: getNextPage,
+ rhmc: cur,
+ }
}
// ResourceHealthMetadataProperties resourceHealthMetadata resource specific properties
@@ -19957,8 +20081,8 @@ func (rmdc ResourceMetricDefinitionCollection) MarshalJSON() ([]byte, error) {
return json.Marshal(objectMap)
}
-// ResourceMetricDefinitionCollectionIterator provides access to a complete listing of ResourceMetricDefinition
-// values.
+// ResourceMetricDefinitionCollectionIterator provides access to a complete listing of
+// ResourceMetricDefinition values.
type ResourceMetricDefinitionCollectionIterator struct {
i int
page ResourceMetricDefinitionCollectionPage
@@ -20101,8 +20225,11 @@ func (page ResourceMetricDefinitionCollectionPage) Values() []ResourceMetricDefi
}
// Creates a new instance of the ResourceMetricDefinitionCollectionPage type.
-func NewResourceMetricDefinitionCollectionPage(getNextPage func(context.Context, ResourceMetricDefinitionCollection) (ResourceMetricDefinitionCollection, error)) ResourceMetricDefinitionCollectionPage {
- return ResourceMetricDefinitionCollectionPage{fn: getNextPage}
+func NewResourceMetricDefinitionCollectionPage(cur ResourceMetricDefinitionCollection, getNextPage func(context.Context, ResourceMetricDefinitionCollection) (ResourceMetricDefinitionCollection, error)) ResourceMetricDefinitionCollectionPage {
+ return ResourceMetricDefinitionCollectionPage{
+ fn: getNextPage,
+ rmdc: cur,
+ }
}
// ResourceMetricDefinitionProperties resourceMetricDefinition resource specific properties
@@ -20406,7 +20533,8 @@ func (s *Site) UnmarshalJSON(body []byte) error {
return nil
}
-// SiteAuthSettings configuration settings for the Azure App Service Authentication / Authorization feature.
+// SiteAuthSettings configuration settings for the Azure App Service Authentication / Authorization
+// feature.
type SiteAuthSettings struct {
autorest.Response `json:"-"`
// SiteAuthSettingsProperties - SiteAuthSettings resource specific properties
@@ -20820,6 +20948,10 @@ type SiteConfig struct {
TracingOptions *string `json:"tracingOptions,omitempty"`
// VnetName - Virtual Network name.
VnetName *string `json:"vnetName,omitempty"`
+ // VnetRouteAllEnabled - Virtual Network Route All enabled. This causes all outbound traffic to have Virtual Network Security Groups and User Defined Routes applied.
+ VnetRouteAllEnabled *bool `json:"vnetRouteAllEnabled,omitempty"`
+ // VnetPrivatePortsCount - The number of private ports assigned to this app. These will be assigned dynamically on runtime.
+ VnetPrivatePortsCount *int32 `json:"vnetPrivatePortsCount,omitempty"`
// Cors - Cross-Origin Resource Sharing (CORS) settings.
Cors *CorsSettings `json:"cors,omitempty"`
// Push - Push endpoint settings.
@@ -20846,6 +20978,8 @@ type SiteConfig struct {
HTTP20Enabled *bool `json:"http20Enabled,omitempty"`
// MinTLSVersion - MinTlsVersion: configures the minimum version of TLS required for SSL requests. Possible values include: 'OneFullStopZero', 'OneFullStopOne', 'OneFullStopTwo'
MinTLSVersion SupportedTLSVersions `json:"minTlsVersion,omitempty"`
+ // ScmMinTLSVersion - ScmMinTlsVersion: configures the minimum version of TLS required for SSL requests for SCM site. Possible values include: 'OneFullStopZero', 'OneFullStopOne', 'OneFullStopTwo'
+ ScmMinTLSVersion SupportedTLSVersions `json:"scmMinTlsVersion,omitempty"`
// FtpsState - State of FTP / FTPS service. Possible values include: 'AllAllowed', 'FtpsOnly', 'Disabled'
FtpsState FtpsState `json:"ftpsState,omitempty"`
// PreWarmedInstanceCount - Number of preWarmed instances.
@@ -20972,6 +21106,12 @@ func (sc SiteConfig) MarshalJSON() ([]byte, error) {
if sc.VnetName != nil {
objectMap["vnetName"] = sc.VnetName
}
+ if sc.VnetRouteAllEnabled != nil {
+ objectMap["vnetRouteAllEnabled"] = sc.VnetRouteAllEnabled
+ }
+ if sc.VnetPrivatePortsCount != nil {
+ objectMap["vnetPrivatePortsCount"] = sc.VnetPrivatePortsCount
+ }
if sc.Cors != nil {
objectMap["cors"] = sc.Cors
}
@@ -21011,6 +21151,9 @@ func (sc SiteConfig) MarshalJSON() ([]byte, error) {
if sc.MinTLSVersion != "" {
objectMap["minTlsVersion"] = sc.MinTLSVersion
}
+ if sc.ScmMinTLSVersion != "" {
+ objectMap["scmMinTlsVersion"] = sc.ScmMinTLSVersion
+ }
if sc.FtpsState != "" {
objectMap["ftpsState"] = sc.FtpsState
}
@@ -21271,8 +21414,11 @@ func (page SiteConfigResourceCollectionPage) Values() []SiteConfigResource {
}
// Creates a new instance of the SiteConfigResourceCollectionPage type.
-func NewSiteConfigResourceCollectionPage(getNextPage func(context.Context, SiteConfigResourceCollection) (SiteConfigResourceCollection, error)) SiteConfigResourceCollectionPage {
- return SiteConfigResourceCollectionPage{fn: getNextPage}
+func NewSiteConfigResourceCollectionPage(cur SiteConfigResourceCollection, getNextPage func(context.Context, SiteConfigResourceCollection) (SiteConfigResourceCollection, error)) SiteConfigResourceCollectionPage {
+ return SiteConfigResourceCollectionPage{
+ fn: getNextPage,
+ scrc: cur,
+ }
}
// SiteConfigurationSnapshotInfo a snapshot of a web app configuration.
@@ -21361,8 +21507,8 @@ func (scsi *SiteConfigurationSnapshotInfo) UnmarshalJSON(body []byte) error {
return nil
}
-// SiteConfigurationSnapshotInfoCollection collection of metadata for the app configuration snapshots that can
-// be restored.
+// SiteConfigurationSnapshotInfoCollection collection of metadata for the app configuration snapshots that
+// can be restored.
type SiteConfigurationSnapshotInfoCollection struct {
autorest.Response `json:"-"`
// Value - Collection of resources.
@@ -21524,8 +21670,11 @@ func (page SiteConfigurationSnapshotInfoCollectionPage) Values() []SiteConfigura
}
// Creates a new instance of the SiteConfigurationSnapshotInfoCollectionPage type.
-func NewSiteConfigurationSnapshotInfoCollectionPage(getNextPage func(context.Context, SiteConfigurationSnapshotInfoCollection) (SiteConfigurationSnapshotInfoCollection, error)) SiteConfigurationSnapshotInfoCollectionPage {
- return SiteConfigurationSnapshotInfoCollectionPage{fn: getNextPage}
+func NewSiteConfigurationSnapshotInfoCollectionPage(cur SiteConfigurationSnapshotInfoCollection, getNextPage func(context.Context, SiteConfigurationSnapshotInfoCollection) (SiteConfigurationSnapshotInfoCollection, error)) SiteConfigurationSnapshotInfoCollectionPage {
+ return SiteConfigurationSnapshotInfoCollectionPage{
+ fn: getNextPage,
+ scsic: cur,
+ }
}
// SiteConfigurationSnapshotInfoProperties siteConfigurationSnapshotInfo resource specific properties
@@ -21784,8 +21933,11 @@ func (page SiteExtensionInfoCollectionPage) Values() []SiteExtensionInfo {
}
// Creates a new instance of the SiteExtensionInfoCollectionPage type.
-func NewSiteExtensionInfoCollectionPage(getNextPage func(context.Context, SiteExtensionInfoCollection) (SiteExtensionInfoCollection, error)) SiteExtensionInfoCollectionPage {
- return SiteExtensionInfoCollectionPage{fn: getNextPage}
+func NewSiteExtensionInfoCollectionPage(cur SiteExtensionInfoCollection, getNextPage func(context.Context, SiteExtensionInfoCollection) (SiteExtensionInfoCollection, error)) SiteExtensionInfoCollectionPage {
+ return SiteExtensionInfoCollectionPage{
+ fn: getNextPage,
+ seic: cur,
+ }
}
// SiteExtensionInfoProperties siteExtensionInfo resource specific properties
@@ -22903,8 +23055,11 @@ func (page SkuInfoCollectionPage) Values() []SkuInfo {
}
// Creates a new instance of the SkuInfoCollectionPage type.
-func NewSkuInfoCollectionPage(getNextPage func(context.Context, SkuInfoCollection) (SkuInfoCollection, error)) SkuInfoCollectionPage {
- return SkuInfoCollectionPage{fn: getNextPage}
+func NewSkuInfoCollectionPage(cur SkuInfoCollection, getNextPage func(context.Context, SkuInfoCollection) (SkuInfoCollection, error)) SkuInfoCollectionPage {
+ return SkuInfoCollectionPage{
+ fn: getNextPage,
+ sic: cur,
+ }
}
// SkuInfos collection of SKU information.
@@ -23263,8 +23418,11 @@ func (page SlotDifferenceCollectionPage) Values() []SlotDifference {
}
// Creates a new instance of the SlotDifferenceCollectionPage type.
-func NewSlotDifferenceCollectionPage(getNextPage func(context.Context, SlotDifferenceCollection) (SlotDifferenceCollection, error)) SlotDifferenceCollectionPage {
- return SlotDifferenceCollectionPage{fn: getNextPage}
+func NewSlotDifferenceCollectionPage(cur SlotDifferenceCollection, getNextPage func(context.Context, SlotDifferenceCollection) (SlotDifferenceCollection, error)) SlotDifferenceCollectionPage {
+ return SlotDifferenceCollectionPage{
+ fn: getNextPage,
+ sdc: cur,
+ }
}
// SlotDifferenceProperties slotDifference resource specific properties
@@ -23552,8 +23710,11 @@ func (page SnapshotCollectionPage) Values() []Snapshot {
}
// Creates a new instance of the SnapshotCollectionPage type.
-func NewSnapshotCollectionPage(getNextPage func(context.Context, SnapshotCollection) (SnapshotCollection, error)) SnapshotCollectionPage {
- return SnapshotCollectionPage{fn: getNextPage}
+func NewSnapshotCollectionPage(cur SnapshotCollection, getNextPage func(context.Context, SnapshotCollection) (SnapshotCollection, error)) SnapshotCollectionPage {
+ return SnapshotCollectionPage{
+ fn: getNextPage,
+ sc: cur,
+ }
}
// SnapshotProperties snapshot resource specific properties
@@ -23942,8 +24103,11 @@ func (page SourceControlCollectionPage) Values() []SourceControl {
}
// Creates a new instance of the SourceControlCollectionPage type.
-func NewSourceControlCollectionPage(getNextPage func(context.Context, SourceControlCollection) (SourceControlCollection, error)) SourceControlCollectionPage {
- return SourceControlCollectionPage{fn: getNextPage}
+func NewSourceControlCollectionPage(cur SourceControlCollection, getNextPage func(context.Context, SourceControlCollection) (SourceControlCollection, error)) SourceControlCollectionPage {
+ return SourceControlCollectionPage{
+ fn: getNextPage,
+ scc: cur,
+ }
}
// SourceControlProperties sourceControl resource specific properties
@@ -24181,8 +24345,11 @@ func (page StampCapacityCollectionPage) Values() []StampCapacity {
}
// Creates a new instance of the StampCapacityCollectionPage type.
-func NewStampCapacityCollectionPage(getNextPage func(context.Context, StampCapacityCollection) (StampCapacityCollection, error)) StampCapacityCollectionPage {
- return StampCapacityCollectionPage{fn: getNextPage}
+func NewStampCapacityCollectionPage(cur StampCapacityCollection, getNextPage func(context.Context, StampCapacityCollection) (StampCapacityCollection, error)) StampCapacityCollectionPage {
+ return StampCapacityCollectionPage{
+ fn: getNextPage,
+ scc: cur,
+ }
}
// StaticSite a static site.
@@ -24614,8 +24781,11 @@ func (page StaticSiteBuildCollectionPage) Values() []StaticSiteBuildARMResource
}
// Creates a new instance of the StaticSiteBuildCollectionPage type.
-func NewStaticSiteBuildCollectionPage(getNextPage func(context.Context, StaticSiteBuildCollection) (StaticSiteBuildCollection, error)) StaticSiteBuildCollectionPage {
- return StaticSiteBuildCollectionPage{fn: getNextPage}
+func NewStaticSiteBuildCollectionPage(cur StaticSiteBuildCollection, getNextPage func(context.Context, StaticSiteBuildCollection) (StaticSiteBuildCollection, error)) StaticSiteBuildCollectionPage {
+ return StaticSiteBuildCollectionPage{
+ fn: getNextPage,
+ ssbc: cur,
+ }
}
// StaticSiteBuildProperties build properties for the static site.
@@ -24789,8 +24959,11 @@ func (page StaticSiteCollectionPage) Values() []StaticSiteARMResource {
}
// Creates a new instance of the StaticSiteCollectionPage type.
-func NewStaticSiteCollectionPage(getNextPage func(context.Context, StaticSiteCollection) (StaticSiteCollection, error)) StaticSiteCollectionPage {
- return StaticSiteCollectionPage{fn: getNextPage}
+func NewStaticSiteCollectionPage(cur StaticSiteCollection, getNextPage func(context.Context, StaticSiteCollection) (StaticSiteCollection, error)) StaticSiteCollectionPage {
+ return StaticSiteCollectionPage{
+ fn: getNextPage,
+ ssc: cur,
+ }
}
// StaticSiteCustomDomainOverviewARMResource static Site Custom Domain Overview ARM resource.
@@ -24993,8 +25166,8 @@ func (sscdoc StaticSiteCustomDomainOverviewCollection) staticSiteCustomDomainOve
autorest.WithBaseURL(to.String(sscdoc.NextLink)))
}
-// StaticSiteCustomDomainOverviewCollectionPage contains a page of StaticSiteCustomDomainOverviewARMResource
-// values.
+// StaticSiteCustomDomainOverviewCollectionPage contains a page of
+// StaticSiteCustomDomainOverviewARMResource values.
type StaticSiteCustomDomainOverviewCollectionPage struct {
fn func(context.Context, StaticSiteCustomDomainOverviewCollection) (StaticSiteCustomDomainOverviewCollection, error)
sscdoc StaticSiteCustomDomainOverviewCollection
@@ -25052,8 +25225,11 @@ func (page StaticSiteCustomDomainOverviewCollectionPage) Values() []StaticSiteCu
}
// Creates a new instance of the StaticSiteCustomDomainOverviewCollectionPage type.
-func NewStaticSiteCustomDomainOverviewCollectionPage(getNextPage func(context.Context, StaticSiteCustomDomainOverviewCollection) (StaticSiteCustomDomainOverviewCollection, error)) StaticSiteCustomDomainOverviewCollectionPage {
- return StaticSiteCustomDomainOverviewCollectionPage{fn: getNextPage}
+func NewStaticSiteCustomDomainOverviewCollectionPage(cur StaticSiteCustomDomainOverviewCollection, getNextPage func(context.Context, StaticSiteCustomDomainOverviewCollection) (StaticSiteCustomDomainOverviewCollection, error)) StaticSiteCustomDomainOverviewCollectionPage {
+ return StaticSiteCustomDomainOverviewCollectionPage{
+ fn: getNextPage,
+ sscdoc: cur,
+ }
}
// StaticSiteFunctionOverviewARMResource static Site Function Overview ARM resource.
@@ -25255,7 +25431,8 @@ func (ssfoc StaticSiteFunctionOverviewCollection) staticSiteFunctionOverviewColl
autorest.WithBaseURL(to.String(ssfoc.NextLink)))
}
-// StaticSiteFunctionOverviewCollectionPage contains a page of StaticSiteFunctionOverviewARMResource values.
+// StaticSiteFunctionOverviewCollectionPage contains a page of StaticSiteFunctionOverviewARMResource
+// values.
type StaticSiteFunctionOverviewCollectionPage struct {
fn func(context.Context, StaticSiteFunctionOverviewCollection) (StaticSiteFunctionOverviewCollection, error)
ssfoc StaticSiteFunctionOverviewCollection
@@ -25313,8 +25490,11 @@ func (page StaticSiteFunctionOverviewCollectionPage) Values() []StaticSiteFuncti
}
// Creates a new instance of the StaticSiteFunctionOverviewCollectionPage type.
-func NewStaticSiteFunctionOverviewCollectionPage(getNextPage func(context.Context, StaticSiteFunctionOverviewCollection) (StaticSiteFunctionOverviewCollection, error)) StaticSiteFunctionOverviewCollectionPage {
- return StaticSiteFunctionOverviewCollectionPage{fn: getNextPage}
+func NewStaticSiteFunctionOverviewCollectionPage(cur StaticSiteFunctionOverviewCollection, getNextPage func(context.Context, StaticSiteFunctionOverviewCollection) (StaticSiteFunctionOverviewCollection, error)) StaticSiteFunctionOverviewCollectionPage {
+ return StaticSiteFunctionOverviewCollectionPage{
+ fn: getNextPage,
+ ssfoc: cur,
+ }
}
// StaticSitePatchResource ARM resource for a static site when patching
@@ -25498,6 +25678,198 @@ type StaticSiteResetPropertiesARMResourceProperties struct {
ShouldUpdateRepository *bool `json:"shouldUpdateRepository,omitempty"`
}
+// StaticSitesWorkflowPreview preview for the Static Site Workflow to be generated
+type StaticSitesWorkflowPreview struct {
+ autorest.Response `json:"-"`
+ // StaticSitesWorkflowPreviewProperties - StaticSitesWorkflowPreview resource specific properties
+ *StaticSitesWorkflowPreviewProperties `json:"properties,omitempty"`
+ // ID - READ-ONLY; Resource Id.
+ ID *string `json:"id,omitempty"`
+ // Name - READ-ONLY; Resource Name.
+ Name *string `json:"name,omitempty"`
+ // Kind - Kind of resource.
+ Kind *string `json:"kind,omitempty"`
+ // Type - READ-ONLY; Resource type.
+ Type *string `json:"type,omitempty"`
+}
+
+// MarshalJSON is the custom marshaler for StaticSitesWorkflowPreview.
+func (sswp StaticSitesWorkflowPreview) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ if sswp.StaticSitesWorkflowPreviewProperties != nil {
+ objectMap["properties"] = sswp.StaticSitesWorkflowPreviewProperties
+ }
+ if sswp.Kind != nil {
+ objectMap["kind"] = sswp.Kind
+ }
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON is the custom unmarshaler for StaticSitesWorkflowPreview struct.
+func (sswp *StaticSitesWorkflowPreview) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "properties":
+ if v != nil {
+ var staticSitesWorkflowPreviewProperties StaticSitesWorkflowPreviewProperties
+ err = json.Unmarshal(*v, &staticSitesWorkflowPreviewProperties)
+ if err != nil {
+ return err
+ }
+ sswp.StaticSitesWorkflowPreviewProperties = &staticSitesWorkflowPreviewProperties
+ }
+ case "id":
+ if v != nil {
+ var ID string
+ err = json.Unmarshal(*v, &ID)
+ if err != nil {
+ return err
+ }
+ sswp.ID = &ID
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ sswp.Name = &name
+ }
+ case "kind":
+ if v != nil {
+ var kind string
+ err = json.Unmarshal(*v, &kind)
+ if err != nil {
+ return err
+ }
+ sswp.Kind = &kind
+ }
+ case "type":
+ if v != nil {
+ var typeVar string
+ err = json.Unmarshal(*v, &typeVar)
+ if err != nil {
+ return err
+ }
+ sswp.Type = &typeVar
+ }
+ }
+ }
+
+ return nil
+}
+
+// StaticSitesWorkflowPreviewProperties staticSitesWorkflowPreview resource specific properties
+type StaticSitesWorkflowPreviewProperties struct {
+ // Path - READ-ONLY; The path for the workflow file to be generated
+ Path *string `json:"path,omitempty"`
+ // Contents - READ-ONLY; The contents for the workflow file to be generated
+ Contents *string `json:"contents,omitempty"`
+}
+
+// StaticSitesWorkflowPreviewRequest request entity for previewing the Static Site workflow
+type StaticSitesWorkflowPreviewRequest struct {
+ // StaticSitesWorkflowPreviewRequestProperties - StaticSitesWorkflowPreviewRequest resource specific properties
+ *StaticSitesWorkflowPreviewRequestProperties `json:"properties,omitempty"`
+ // ID - READ-ONLY; Resource Id.
+ ID *string `json:"id,omitempty"`
+ // Name - READ-ONLY; Resource Name.
+ Name *string `json:"name,omitempty"`
+ // Kind - Kind of resource.
+ Kind *string `json:"kind,omitempty"`
+ // Type - READ-ONLY; Resource type.
+ Type *string `json:"type,omitempty"`
+}
+
+// MarshalJSON is the custom marshaler for StaticSitesWorkflowPreviewRequest.
+func (sswpr StaticSitesWorkflowPreviewRequest) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ if sswpr.StaticSitesWorkflowPreviewRequestProperties != nil {
+ objectMap["properties"] = sswpr.StaticSitesWorkflowPreviewRequestProperties
+ }
+ if sswpr.Kind != nil {
+ objectMap["kind"] = sswpr.Kind
+ }
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON is the custom unmarshaler for StaticSitesWorkflowPreviewRequest struct.
+func (sswpr *StaticSitesWorkflowPreviewRequest) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "properties":
+ if v != nil {
+ var staticSitesWorkflowPreviewRequestProperties StaticSitesWorkflowPreviewRequestProperties
+ err = json.Unmarshal(*v, &staticSitesWorkflowPreviewRequestProperties)
+ if err != nil {
+ return err
+ }
+ sswpr.StaticSitesWorkflowPreviewRequestProperties = &staticSitesWorkflowPreviewRequestProperties
+ }
+ case "id":
+ if v != nil {
+ var ID string
+ err = json.Unmarshal(*v, &ID)
+ if err != nil {
+ return err
+ }
+ sswpr.ID = &ID
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ sswpr.Name = &name
+ }
+ case "kind":
+ if v != nil {
+ var kind string
+ err = json.Unmarshal(*v, &kind)
+ if err != nil {
+ return err
+ }
+ sswpr.Kind = &kind
+ }
+ case "type":
+ if v != nil {
+ var typeVar string
+ err = json.Unmarshal(*v, &typeVar)
+ if err != nil {
+ return err
+ }
+ sswpr.Type = &typeVar
+ }
+ }
+ }
+
+ return nil
+}
+
+// StaticSitesWorkflowPreviewRequestProperties staticSitesWorkflowPreviewRequest resource specific
+// properties
+type StaticSitesWorkflowPreviewRequestProperties struct {
+ // RepositoryURL - URL for the repository of the static site.
+ RepositoryURL *string `json:"repositoryUrl,omitempty"`
+ // Branch - The target branch in the repository.
+ Branch *string `json:"branch,omitempty"`
+ // BuildProperties - Build properties to configure on the repository.
+ BuildProperties *StaticSiteBuildProperties `json:"buildProperties,omitempty"`
+}
+
// StaticSiteUserARMResource static Site User ARM resource.
type StaticSiteUserARMResource struct {
autorest.Response `json:"-"`
@@ -25624,7 +25996,8 @@ func (ssuc StaticSiteUserCollection) MarshalJSON() ([]byte, error) {
return json.Marshal(objectMap)
}
-// StaticSiteUserCollectionIterator provides access to a complete listing of StaticSiteUserARMResource values.
+// StaticSiteUserCollectionIterator provides access to a complete listing of StaticSiteUserARMResource
+// values.
type StaticSiteUserCollectionIterator struct {
i int
page StaticSiteUserCollectionPage
@@ -25767,8 +26140,11 @@ func (page StaticSiteUserCollectionPage) Values() []StaticSiteUserARMResource {
}
// Creates a new instance of the StaticSiteUserCollectionPage type.
-func NewStaticSiteUserCollectionPage(getNextPage func(context.Context, StaticSiteUserCollection) (StaticSiteUserCollection, error)) StaticSiteUserCollectionPage {
- return StaticSiteUserCollectionPage{fn: getNextPage}
+func NewStaticSiteUserCollectionPage(cur StaticSiteUserCollection, getNextPage func(context.Context, StaticSiteUserCollection) (StaticSiteUserCollection, error)) StaticSiteUserCollectionPage {
+ return StaticSiteUserCollectionPage{
+ fn: getNextPage,
+ ssuc: cur,
+ }
}
// StaticSiteUserInvitationRequestResource static sites user roles invitation resource.
@@ -25857,8 +26233,8 @@ func (ssuirr *StaticSiteUserInvitationRequestResource) UnmarshalJSON(body []byte
return nil
}
-// StaticSiteUserInvitationRequestResourceProperties staticSiteUserInvitationRequestResource resource specific
-// properties
+// StaticSiteUserInvitationRequestResourceProperties staticSiteUserInvitationRequestResource resource
+// specific properties
type StaticSiteUserInvitationRequestResourceProperties struct {
// Domain - The domain name for the static site custom domain.
Domain *string `json:"domain,omitempty"`
@@ -26475,8 +26851,11 @@ func (page TldLegalAgreementCollectionPage) Values() []TldLegalAgreement {
}
// Creates a new instance of the TldLegalAgreementCollectionPage type.
-func NewTldLegalAgreementCollectionPage(getNextPage func(context.Context, TldLegalAgreementCollection) (TldLegalAgreementCollection, error)) TldLegalAgreementCollectionPage {
- return TldLegalAgreementCollectionPage{fn: getNextPage}
+func NewTldLegalAgreementCollectionPage(cur TldLegalAgreementCollection, getNextPage func(context.Context, TldLegalAgreementCollection) (TldLegalAgreementCollection, error)) TldLegalAgreementCollectionPage {
+ return TldLegalAgreementCollectionPage{
+ fn: getNextPage,
+ tlac: cur,
+ }
}
// TokenStore ...
@@ -26829,8 +27208,11 @@ func (page TopLevelDomainCollectionPage) Values() []TopLevelDomain {
}
// Creates a new instance of the TopLevelDomainCollectionPage type.
-func NewTopLevelDomainCollectionPage(getNextPage func(context.Context, TopLevelDomainCollection) (TopLevelDomainCollection, error)) TopLevelDomainCollectionPage {
- return TopLevelDomainCollectionPage{fn: getNextPage}
+func NewTopLevelDomainCollectionPage(cur TopLevelDomainCollection, getNextPage func(context.Context, TopLevelDomainCollection) (TopLevelDomainCollection, error)) TopLevelDomainCollectionPage {
+ return TopLevelDomainCollectionPage{
+ fn: getNextPage,
+ tldc: cur,
+ }
}
// TopLevelDomainProperties topLevelDomain resource specific properties
@@ -26944,7 +27326,8 @@ func (tjhc TriggeredJobHistoryCollection) MarshalJSON() ([]byte, error) {
return json.Marshal(objectMap)
}
-// TriggeredJobHistoryCollectionIterator provides access to a complete listing of TriggeredJobHistory values.
+// TriggeredJobHistoryCollectionIterator provides access to a complete listing of TriggeredJobHistory
+// values.
type TriggeredJobHistoryCollectionIterator struct {
i int
page TriggeredJobHistoryCollectionPage
@@ -27087,8 +27470,11 @@ func (page TriggeredJobHistoryCollectionPage) Values() []TriggeredJobHistory {
}
// Creates a new instance of the TriggeredJobHistoryCollectionPage type.
-func NewTriggeredJobHistoryCollectionPage(getNextPage func(context.Context, TriggeredJobHistoryCollection) (TriggeredJobHistoryCollection, error)) TriggeredJobHistoryCollectionPage {
- return TriggeredJobHistoryCollectionPage{fn: getNextPage}
+func NewTriggeredJobHistoryCollectionPage(cur TriggeredJobHistoryCollection, getNextPage func(context.Context, TriggeredJobHistoryCollection) (TriggeredJobHistoryCollection, error)) TriggeredJobHistoryCollectionPage {
+ return TriggeredJobHistoryCollectionPage{
+ fn: getNextPage,
+ tjhc: cur,
+ }
}
// TriggeredJobHistoryProperties triggeredJobHistory resource specific properties
@@ -27457,8 +27843,11 @@ func (page TriggeredWebJobCollectionPage) Values() []TriggeredWebJob {
}
// Creates a new instance of the TriggeredWebJobCollectionPage type.
-func NewTriggeredWebJobCollectionPage(getNextPage func(context.Context, TriggeredWebJobCollection) (TriggeredWebJobCollection, error)) TriggeredWebJobCollectionPage {
- return TriggeredWebJobCollectionPage{fn: getNextPage}
+func NewTriggeredWebJobCollectionPage(cur TriggeredWebJobCollection, getNextPage func(context.Context, TriggeredWebJobCollection) (TriggeredWebJobCollection, error)) TriggeredWebJobCollectionPage {
+ return TriggeredWebJobCollectionPage{
+ fn: getNextPage,
+ twjc: cur,
+ }
}
// TriggeredWebJobProperties triggeredWebJob resource specific properties
@@ -27952,8 +28341,11 @@ func (page UsageCollectionPage) Values() []Usage {
}
// Creates a new instance of the UsageCollectionPage type.
-func NewUsageCollectionPage(getNextPage func(context.Context, UsageCollection) (UsageCollection, error)) UsageCollectionPage {
- return UsageCollectionPage{fn: getNextPage}
+func NewUsageCollectionPage(cur UsageCollection, getNextPage func(context.Context, UsageCollection) (UsageCollection, error)) UsageCollectionPage {
+ return UsageCollectionPage{
+ fn: getNextPage,
+ uc: cur,
+ }
}
// UsageProperties usage resource specific properties
@@ -28263,8 +28655,8 @@ func (vnp VirtualNetworkProfile) MarshalJSON() ([]byte, error) {
return json.Marshal(objectMap)
}
-// VnetGateway the Virtual Network gateway contract. This is used to give the Virtual Network gateway access to
-// the VPN package.
+// VnetGateway the Virtual Network gateway contract. This is used to give the Virtual Network gateway
+// access to the VPN package.
type VnetGateway struct {
autorest.Response `json:"-"`
// VnetGatewayProperties - VnetGateway resource specific properties
@@ -29062,8 +29454,11 @@ func (page WorkerPoolCollectionPage) Values() []WorkerPoolResource {
}
// Creates a new instance of the WorkerPoolCollectionPage type.
-func NewWorkerPoolCollectionPage(getNextPage func(context.Context, WorkerPoolCollection) (WorkerPoolCollection, error)) WorkerPoolCollectionPage {
- return WorkerPoolCollectionPage{fn: getNextPage}
+func NewWorkerPoolCollectionPage(cur WorkerPoolCollection, getNextPage func(context.Context, WorkerPoolCollection) (WorkerPoolCollection, error)) WorkerPoolCollectionPage {
+ return WorkerPoolCollectionPage{
+ fn: getNextPage,
+ wpc: cur,
+ }
}
// WorkerPoolResource worker pool of an App Service Environment ARM resource.
diff --git a/services/web/mgmt/2020-06-01/web/staticsites.go b/services/web/mgmt/2020-06-01/web/staticsites.go
index c5f5f5091949..3540a725049b 100644
--- a/services/web/mgmt/2020-06-01/web/staticsites.go
+++ b/services/web/mgmt/2020-06-01/web/staticsites.go
@@ -2168,6 +2168,83 @@ func (client StaticSitesClient) ListStaticSiteUsersComplete(ctx context.Context,
return
}
+// PreviewWorkflow description for Generates a preview workflow file for the static site
+// Parameters:
+// location - location where you plan to create the static site.
+// staticSitesWorkflowPreviewRequest - a JSON representation of the StaticSitesWorkflowPreviewRequest
+// properties. See example.
+func (client StaticSitesClient) PreviewWorkflow(ctx context.Context, location string, staticSitesWorkflowPreviewRequest StaticSitesWorkflowPreviewRequest) (result StaticSitesWorkflowPreview, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/StaticSitesClient.PreviewWorkflow")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.PreviewWorkflowPreparer(ctx, location, staticSitesWorkflowPreviewRequest)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "web.StaticSitesClient", "PreviewWorkflow", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.PreviewWorkflowSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "web.StaticSitesClient", "PreviewWorkflow", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.PreviewWorkflowResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "web.StaticSitesClient", "PreviewWorkflow", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// PreviewWorkflowPreparer prepares the PreviewWorkflow request.
+func (client StaticSitesClient) PreviewWorkflowPreparer(ctx context.Context, location string, staticSitesWorkflowPreviewRequest StaticSitesWorkflowPreviewRequest) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "location": autorest.Encode("path", location),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2020-06-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPost(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Web/locations/{location}/previewStaticSiteWorkflowFile", pathParameters),
+ autorest.WithJSON(staticSitesWorkflowPreviewRequest),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// PreviewWorkflowSender sends the PreviewWorkflow request. The method will close the
+// http.Response Body if it receives an error.
+func (client StaticSitesClient) PreviewWorkflowSender(req *http.Request) (*http.Response, error) {
+ return client.Send(req, azure.DoRetryWithRegistration(client.Client))
+}
+
+// PreviewWorkflowResponder handles the response to the PreviewWorkflow request. The method always
+// closes the http.Response Body.
+func (client StaticSitesClient) PreviewWorkflowResponder(resp *http.Response) (result StaticSitesWorkflowPreview, err error) {
+ err = autorest.Respond(
+ resp,
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
// ResetStaticSiteAPIKey description for Resets the api key for an existing static site.
// Parameters:
// resourceGroupName - name of the resource group to which the resource belongs.
diff --git a/services/web/mgmt/2020-06-01/web/webapi/interfaces.go b/services/web/mgmt/2020-06-01/web/webapi/interfaces.go
index 4f39d2125fad..98c00feb9cf0 100644
--- a/services/web/mgmt/2020-06-01/web/webapi/interfaces.go
+++ b/services/web/mgmt/2020-06-01/web/webapi/interfaces.go
@@ -698,6 +698,7 @@ type StaticSitesClientAPI interface {
ListStaticSiteSecrets(ctx context.Context, resourceGroupName string, name string) (result web.StringDictionary, err error)
ListStaticSiteUsers(ctx context.Context, resourceGroupName string, name string, authprovider string) (result web.StaticSiteUserCollectionPage, err error)
ListStaticSiteUsersComplete(ctx context.Context, resourceGroupName string, name string, authprovider string) (result web.StaticSiteUserCollectionIterator, err error)
+ PreviewWorkflow(ctx context.Context, location string, staticSitesWorkflowPreviewRequest web.StaticSitesWorkflowPreviewRequest) (result web.StaticSitesWorkflowPreview, err error)
ResetStaticSiteAPIKey(ctx context.Context, resourceGroupName string, name string, resetPropertiesEnvelope web.StaticSiteResetPropertiesARMResource) (result autorest.Response, err error)
UpdateStaticSite(ctx context.Context, resourceGroupName string, name string, staticSiteEnvelope web.StaticSitePatchResource) (result web.StaticSiteARMResource, err error)
UpdateStaticSiteUser(ctx context.Context, resourceGroupName string, name string, authprovider string, userid string, staticSiteUserEnvelope web.StaticSiteUserARMResource) (result web.StaticSiteUserARMResource, err error)