diff --git a/profiles/preview/web/mgmt/web/models.go b/profiles/preview/web/mgmt/web/models.go
index 49e40ea40e32..61db598f247f 100644
--- a/profiles/preview/web/mgmt/web/models.go
+++ b/profiles/preview/web/mgmt/web/models.go
@@ -328,6 +328,13 @@ const (
InternalLoadBalancingModeWeb InternalLoadBalancingMode = original.InternalLoadBalancingModeWeb
)
+type IPFilterTag = original.IPFilterTag
+
+const (
+ Default IPFilterTag = original.Default
+ XffProxy IPFilterTag = original.XffProxy
+)
+
type IssueType = original.IssueType
const (
@@ -458,6 +465,15 @@ const (
WebDeploy PublishingProfileFormat = original.WebDeploy
)
+type RenderingType = original.RenderingType
+
+const (
+ NoGraph RenderingType = original.NoGraph
+ Table RenderingType = original.Table
+ TimeSeries RenderingType = original.TimeSeries
+ TimeSeriesPerInstance RenderingType = original.TimeSeriesPerInstance
+)
+
type ResourceScopeType = original.ResourceScopeType
const (
@@ -594,13 +610,13 @@ const (
type WorkerSizeOptions = original.WorkerSizeOptions
const (
- D1 WorkerSizeOptions = original.D1
- D2 WorkerSizeOptions = original.D2
- D3 WorkerSizeOptions = original.D3
- Default WorkerSizeOptions = original.Default
- Large WorkerSizeOptions = original.Large
- Medium WorkerSizeOptions = original.Medium
- Small WorkerSizeOptions = original.Small
+ WorkerSizeOptionsD1 WorkerSizeOptions = original.WorkerSizeOptionsD1
+ WorkerSizeOptionsD2 WorkerSizeOptions = original.WorkerSizeOptionsD2
+ WorkerSizeOptionsD3 WorkerSizeOptions = original.WorkerSizeOptionsD3
+ WorkerSizeOptionsDefault WorkerSizeOptions = original.WorkerSizeOptionsDefault
+ WorkerSizeOptionsLarge WorkerSizeOptions = original.WorkerSizeOptionsLarge
+ WorkerSizeOptionsMedium WorkerSizeOptions = original.WorkerSizeOptionsMedium
+ WorkerSizeOptionsSmall WorkerSizeOptions = original.WorkerSizeOptionsSmall
)
type AbnormalTimePeriod = original.AbnormalTimePeriod
@@ -747,6 +763,8 @@ type CustomHostnameAnalysisResult = original.CustomHostnameAnalysisResult
type CustomHostnameAnalysisResultProperties = original.CustomHostnameAnalysisResultProperties
type DatabaseBackupSetting = original.DatabaseBackupSetting
type DataSource = original.DataSource
+type DataTableResponseColumn = original.DataTableResponseColumn
+type DataTableResponseObject = original.DataTableResponseObject
type DefaultErrorResponse = original.DefaultErrorResponse
type DefaultErrorResponseError = original.DefaultErrorResponseError
type DefaultErrorResponseErrorDetailsItem = original.DefaultErrorResponseErrorDetailsItem
@@ -765,6 +783,12 @@ type DeploymentProperties = original.DeploymentProperties
type DetectorAbnormalTimePeriod = original.DetectorAbnormalTimePeriod
type DetectorDefinition = original.DetectorDefinition
type DetectorDefinitionProperties = original.DetectorDefinitionProperties
+type DetectorInfo = original.DetectorInfo
+type DetectorResponse = original.DetectorResponse
+type DetectorResponseCollection = original.DetectorResponseCollection
+type DetectorResponseCollectionIterator = original.DetectorResponseCollectionIterator
+type DetectorResponseCollectionPage = original.DetectorResponseCollectionPage
+type DetectorResponseProperties = original.DetectorResponseProperties
type DiagnosticAnalysis = original.DiagnosticAnalysis
type DiagnosticAnalysisCollection = original.DiagnosticAnalysisCollection
type DiagnosticAnalysisCollectionIterator = original.DiagnosticAnalysisCollectionIterator
@@ -775,6 +799,7 @@ type DiagnosticCategoryCollection = original.DiagnosticCategoryCollection
type DiagnosticCategoryCollectionIterator = original.DiagnosticCategoryCollectionIterator
type DiagnosticCategoryCollectionPage = original.DiagnosticCategoryCollectionPage
type DiagnosticCategoryProperties = original.DiagnosticCategoryProperties
+type DiagnosticData = original.DiagnosticData
type DiagnosticDetectorCollection = original.DiagnosticDetectorCollection
type DiagnosticDetectorCollectionIterator = original.DiagnosticDetectorCollectionIterator
type DiagnosticDetectorCollectionPage = original.DiagnosticDetectorCollectionPage
@@ -858,6 +883,7 @@ type ListOperation = original.ListOperation
type ListVnetInfo = original.ListVnetInfo
type ListVnetRoute = original.ListVnetRoute
type LocalizableString = original.LocalizableString
+type LogSpecification = original.LogSpecification
type ManagedServiceIdentity = original.ManagedServiceIdentity
type MetricAvailabilily = original.MetricAvailabilily
type MetricAvailability = original.MetricAvailability
@@ -896,6 +922,8 @@ type PremierAddOnOfferCollection = original.PremierAddOnOfferCollection
type PremierAddOnOfferCollectionIterator = original.PremierAddOnOfferCollectionIterator
type PremierAddOnOfferCollectionPage = original.PremierAddOnOfferCollectionPage
type PremierAddOnOfferProperties = original.PremierAddOnOfferProperties
+type PremierAddOnPatchResource = original.PremierAddOnPatchResource
+type PremierAddOnPatchResourceProperties = original.PremierAddOnPatchResourceProperties
type PremierAddOnProperties = original.PremierAddOnProperties
type PrivateAccess = original.PrivateAccess
type PrivateAccessProperties = original.PrivateAccessProperties
@@ -937,6 +965,7 @@ type ReissueCertificateOrderRequest = original.ReissueCertificateOrderRequest
type ReissueCertificateOrderRequestProperties = original.ReissueCertificateOrderRequestProperties
type RelayServiceConnectionEntity = original.RelayServiceConnectionEntity
type RelayServiceConnectionEntityProperties = original.RelayServiceConnectionEntityProperties
+type Rendering = original.Rendering
type RenewCertificateOrderRequest = original.RenewCertificateOrderRequest
type RenewCertificateOrderRequestProperties = original.RenewCertificateOrderRequestProperties
type RequestsBasedTrigger = original.RequestsBasedTrigger
@@ -1020,10 +1049,7 @@ type SnapshotCollection = original.SnapshotCollection
type SnapshotCollectionIterator = original.SnapshotCollectionIterator
type SnapshotCollectionPage = original.SnapshotCollectionPage
type SnapshotProperties = original.SnapshotProperties
-type SnapshotRecoveryRequest = original.SnapshotRecoveryRequest
-type SnapshotRecoveryRequestProperties = original.SnapshotRecoveryRequestProperties
type SnapshotRecoverySource = original.SnapshotRecoverySource
-type SnapshotRecoveryTarget = original.SnapshotRecoveryTarget
type SnapshotRestoreRequest = original.SnapshotRestoreRequest
type SnapshotRestoreRequestProperties = original.SnapshotRestoreRequestProperties
type Solution = original.Solution
@@ -1045,6 +1071,8 @@ type StorageMigrationResponse = original.StorageMigrationResponse
type StorageMigrationResponseProperties = original.StorageMigrationResponseProperties
type String = original.String
type StringDictionary = original.StringDictionary
+type SwiftVirtualNetwork = original.SwiftVirtualNetwork
+type SwiftVirtualNetworkProperties = original.SwiftVirtualNetworkProperties
type TldLegalAgreement = original.TldLegalAgreement
type TldLegalAgreementCollection = original.TldLegalAgreementCollection
type TldLegalAgreementCollectionIterator = original.TldLegalAgreementCollectionIterator
@@ -1256,6 +1284,9 @@ func PossibleInAvailabilityReasonTypeValues() []InAvailabilityReasonType {
func PossibleInternalLoadBalancingModeValues() []InternalLoadBalancingMode {
return original.PossibleInternalLoadBalancingModeValues()
}
+func PossibleIPFilterTagValues() []IPFilterTag {
+ return original.PossibleIPFilterTagValues()
+}
func PossibleIssueTypeValues() []IssueType {
return original.PossibleIssueTypeValues()
}
@@ -1298,6 +1329,9 @@ func PossiblePublicCertificateLocationValues() []PublicCertificateLocation {
func PossiblePublishingProfileFormatValues() []PublishingProfileFormat {
return original.PossiblePublishingProfileFormatValues()
}
+func PossibleRenderingTypeValues() []RenderingType {
+ return original.PossibleRenderingTypeValues()
+}
func PossibleResourceScopeTypeValues() []ResourceScopeType {
return original.PossibleResourceScopeTypeValues()
}
diff --git a/services/web/mgmt/2016-09-01/web/apps.go b/services/web/mgmt/2016-09-01/web/apps.go
index 414b7700fd44..4db43838e3cd 100644
--- a/services/web/mgmt/2016-09-01/web/apps.go
+++ b/services/web/mgmt/2016-09-01/web/apps.go
@@ -24719,7 +24719,7 @@ func (client AppsClient) UpdateDiagnosticLogsConfig(ctx context.Context, resourc
{Target: "siteLogsConfig.SiteLogsConfigProperties.HTTPLogs", Name: validation.Null, Rule: false,
Chain: []validation.Constraint{{Target: "siteLogsConfig.SiteLogsConfigProperties.HTTPLogs.FileSystem", Name: validation.Null, Rule: false,
Chain: []validation.Constraint{{Target: "siteLogsConfig.SiteLogsConfigProperties.HTTPLogs.FileSystem.RetentionInMb", Name: validation.Null, Rule: false,
- Chain: []validation.Constraint{{Target: "siteLogsConfig.SiteLogsConfigProperties.HTTPLogs.FileSystem.RetentionInMb", Name: validation.InclusiveMaximum, Rule: 100, Chain: nil},
+ Chain: []validation.Constraint{{Target: "siteLogsConfig.SiteLogsConfigProperties.HTTPLogs.FileSystem.RetentionInMb", Name: validation.InclusiveMaximum, Rule: int64(100), Chain: nil},
{Target: "siteLogsConfig.SiteLogsConfigProperties.HTTPLogs.FileSystem.RetentionInMb", Name: validation.InclusiveMinimum, Rule: 25, Chain: nil},
}},
}},
@@ -24815,7 +24815,7 @@ func (client AppsClient) UpdateDiagnosticLogsConfigSlot(ctx context.Context, res
{Target: "siteLogsConfig.SiteLogsConfigProperties.HTTPLogs", Name: validation.Null, Rule: false,
Chain: []validation.Constraint{{Target: "siteLogsConfig.SiteLogsConfigProperties.HTTPLogs.FileSystem", Name: validation.Null, Rule: false,
Chain: []validation.Constraint{{Target: "siteLogsConfig.SiteLogsConfigProperties.HTTPLogs.FileSystem.RetentionInMb", Name: validation.Null, Rule: false,
- Chain: []validation.Constraint{{Target: "siteLogsConfig.SiteLogsConfigProperties.HTTPLogs.FileSystem.RetentionInMb", Name: validation.InclusiveMaximum, Rule: 100, Chain: nil},
+ Chain: []validation.Constraint{{Target: "siteLogsConfig.SiteLogsConfigProperties.HTTPLogs.FileSystem.RetentionInMb", Name: validation.InclusiveMaximum, Rule: int64(100), Chain: nil},
{Target: "siteLogsConfig.SiteLogsConfigProperties.HTTPLogs.FileSystem.RetentionInMb", Name: validation.InclusiveMinimum, Rule: 25, Chain: nil},
}},
}},
diff --git a/services/web/mgmt/2016-09-01/web/appservicecertificateorders.go b/services/web/mgmt/2016-09-01/web/appservicecertificateorders.go
index ba9c790ce435..40d00aabbb3d 100644
--- a/services/web/mgmt/2016-09-01/web/appservicecertificateorders.go
+++ b/services/web/mgmt/2016-09-01/web/appservicecertificateorders.go
@@ -54,7 +54,7 @@ func (client AppServiceCertificateOrdersClient) CreateOrUpdate(ctx context.Conte
{TargetValue: certificateDistinguishedName,
Constraints: []validation.Constraint{{Target: "certificateDistinguishedName.AppServiceCertificateOrderProperties", Name: validation.Null, Rule: false,
Chain: []validation.Constraint{{Target: "certificateDistinguishedName.AppServiceCertificateOrderProperties.ValidityInYears", Name: validation.Null, Rule: false,
- Chain: []validation.Constraint{{Target: "certificateDistinguishedName.AppServiceCertificateOrderProperties.ValidityInYears", Name: validation.InclusiveMaximum, Rule: 3, Chain: nil},
+ Chain: []validation.Constraint{{Target: "certificateDistinguishedName.AppServiceCertificateOrderProperties.ValidityInYears", Name: validation.InclusiveMaximum, Rule: int64(3), Chain: nil},
{Target: "certificateDistinguishedName.AppServiceCertificateOrderProperties.ValidityInYears", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil},
}},
}}}}}); err != nil {
@@ -1508,7 +1508,7 @@ func (client AppServiceCertificateOrdersClient) ValidatePurchaseInformation(ctx
{TargetValue: appServiceCertificateOrder,
Constraints: []validation.Constraint{{Target: "appServiceCertificateOrder.AppServiceCertificateOrderProperties", Name: validation.Null, Rule: false,
Chain: []validation.Constraint{{Target: "appServiceCertificateOrder.AppServiceCertificateOrderProperties.ValidityInYears", Name: validation.Null, Rule: false,
- Chain: []validation.Constraint{{Target: "appServiceCertificateOrder.AppServiceCertificateOrderProperties.ValidityInYears", Name: validation.InclusiveMaximum, Rule: 3, Chain: nil},
+ Chain: []validation.Constraint{{Target: "appServiceCertificateOrder.AppServiceCertificateOrderProperties.ValidityInYears", Name: validation.InclusiveMaximum, Rule: int64(3), Chain: nil},
{Target: "appServiceCertificateOrder.AppServiceCertificateOrderProperties.ValidityInYears", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil},
}},
}}}}}); err != nil {
diff --git a/services/web/mgmt/2018-02-01/web/apps.go b/services/web/mgmt/2018-02-01/web/apps.go
index 04df7a05f9c4..894a85bd91cd 100644
--- a/services/web/mgmt/2018-02-01/web/apps.go
+++ b/services/web/mgmt/2018-02-01/web/apps.go
@@ -1391,13 +1391,13 @@ func (client AppsClient) CreateOrUpdate(ctx context.Context, resourceGroupName s
Chain: []validation.Constraint{{Target: "siteEnvelope.SiteProperties.SiteConfig.Push.PushSettingsProperties", Name: validation.Null, Rule: false,
Chain: []validation.Constraint{{Target: "siteEnvelope.SiteProperties.SiteConfig.Push.PushSettingsProperties.IsPushEnabled", Name: validation.Null, Rule: true, Chain: nil}}},
}},
+ {Target: "siteEnvelope.SiteProperties.SiteConfig.ReservedInstanceCount", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "siteEnvelope.SiteProperties.SiteConfig.ReservedInstanceCount", Name: validation.InclusiveMaximum, Rule: int64(10), Chain: nil},
+ {Target: "siteEnvelope.SiteProperties.SiteConfig.ReservedInstanceCount", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil},
+ }},
}},
{Target: "siteEnvelope.SiteProperties.CloningInfo", Name: validation.Null, Rule: false,
Chain: []validation.Constraint{{Target: "siteEnvelope.SiteProperties.CloningInfo.SourceWebAppID", Name: validation.Null, Rule: true, Chain: nil}}},
- {Target: "siteEnvelope.SiteProperties.SnapshotInfo", Name: validation.Null, Rule: false,
- Chain: []validation.Constraint{{Target: "siteEnvelope.SiteProperties.SnapshotInfo.SnapshotRecoveryRequestProperties", Name: validation.Null, Rule: false,
- Chain: []validation.Constraint{{Target: "siteEnvelope.SiteProperties.SnapshotInfo.SnapshotRecoveryRequestProperties.Overwrite", Name: validation.Null, Rule: true, Chain: nil}}},
- }},
}}}}}); err != nil {
return result, validation.NewError("web.AppsClient", "CreateOrUpdate", err.Error())
}
@@ -1487,6 +1487,10 @@ func (client AppsClient) CreateOrUpdateConfiguration(ctx context.Context, resour
Chain: []validation.Constraint{{Target: "siteConfig.SiteConfig.Push.PushSettingsProperties", Name: validation.Null, Rule: false,
Chain: []validation.Constraint{{Target: "siteConfig.SiteConfig.Push.PushSettingsProperties.IsPushEnabled", Name: validation.Null, Rule: true, Chain: nil}}},
}},
+ {Target: "siteConfig.SiteConfig.ReservedInstanceCount", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "siteConfig.SiteConfig.ReservedInstanceCount", Name: validation.InclusiveMaximum, Rule: int64(10), Chain: nil},
+ {Target: "siteConfig.SiteConfig.ReservedInstanceCount", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil},
+ }},
}}}}}); err != nil {
return result, validation.NewError("web.AppsClient", "CreateOrUpdateConfiguration", err.Error())
}
@@ -1574,6 +1578,10 @@ func (client AppsClient) CreateOrUpdateConfigurationSlot(ctx context.Context, re
Chain: []validation.Constraint{{Target: "siteConfig.SiteConfig.Push.PushSettingsProperties", Name: validation.Null, Rule: false,
Chain: []validation.Constraint{{Target: "siteConfig.SiteConfig.Push.PushSettingsProperties.IsPushEnabled", Name: validation.Null, Rule: true, Chain: nil}}},
}},
+ {Target: "siteConfig.SiteConfig.ReservedInstanceCount", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "siteConfig.SiteConfig.ReservedInstanceCount", Name: validation.InclusiveMaximum, Rule: int64(10), Chain: nil},
+ {Target: "siteConfig.SiteConfig.ReservedInstanceCount", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil},
+ }},
}}}}}); err != nil {
return result, validation.NewError("web.AppsClient", "CreateOrUpdateConfigurationSlot", err.Error())
}
@@ -2488,13 +2496,13 @@ func (client AppsClient) CreateOrUpdateSlot(ctx context.Context, resourceGroupNa
Chain: []validation.Constraint{{Target: "siteEnvelope.SiteProperties.SiteConfig.Push.PushSettingsProperties", Name: validation.Null, Rule: false,
Chain: []validation.Constraint{{Target: "siteEnvelope.SiteProperties.SiteConfig.Push.PushSettingsProperties.IsPushEnabled", Name: validation.Null, Rule: true, Chain: nil}}},
}},
+ {Target: "siteEnvelope.SiteProperties.SiteConfig.ReservedInstanceCount", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "siteEnvelope.SiteProperties.SiteConfig.ReservedInstanceCount", Name: validation.InclusiveMaximum, Rule: int64(10), Chain: nil},
+ {Target: "siteEnvelope.SiteProperties.SiteConfig.ReservedInstanceCount", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil},
+ }},
}},
{Target: "siteEnvelope.SiteProperties.CloningInfo", Name: validation.Null, Rule: false,
Chain: []validation.Constraint{{Target: "siteEnvelope.SiteProperties.CloningInfo.SourceWebAppID", Name: validation.Null, Rule: true, Chain: nil}}},
- {Target: "siteEnvelope.SiteProperties.SnapshotInfo", Name: validation.Null, Rule: false,
- Chain: []validation.Constraint{{Target: "siteEnvelope.SiteProperties.SnapshotInfo.SnapshotRecoveryRequestProperties", Name: validation.Null, Rule: false,
- Chain: []validation.Constraint{{Target: "siteEnvelope.SiteProperties.SnapshotInfo.SnapshotRecoveryRequestProperties.Overwrite", Name: validation.Null, Rule: true, Chain: nil}}},
- }},
}}}}}); err != nil {
return result, validation.NewError("web.AppsClient", "CreateOrUpdateSlot", err.Error())
}
@@ -2735,6 +2743,171 @@ func (client AppsClient) CreateOrUpdateSourceControlSlotResponder(resp *http.Res
return
}
+// CreateOrUpdateSwiftVirtualNetworkConnection integrates this Web App with a Virtual Network. This requires that 1)
+// "swiftSupported" is true when doing a GET against this resource, and 2) that the target Subnet has already been
+// delegated, and is not
+// in use by another App Service Plan other than the one this App is in.
+// Parameters:
+// resourceGroupName - name of the resource group to which the resource belongs.
+// name - name of the app.
+// connectionEnvelope - properties of the Virtual Network connection. See example.
+func (client AppsClient) CreateOrUpdateSwiftVirtualNetworkConnection(ctx context.Context, resourceGroupName string, name string, connectionEnvelope SwiftVirtualNetwork) (result SwiftVirtualNetwork, err error) {
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: resourceGroupName,
+ Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
+ {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
+ {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+[^\.]$`, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("web.AppsClient", "CreateOrUpdateSwiftVirtualNetworkConnection", err.Error())
+ }
+
+ req, err := client.CreateOrUpdateSwiftVirtualNetworkConnectionPreparer(ctx, resourceGroupName, name, connectionEnvelope)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateOrUpdateSwiftVirtualNetworkConnection", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.CreateOrUpdateSwiftVirtualNetworkConnectionSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateOrUpdateSwiftVirtualNetworkConnection", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.CreateOrUpdateSwiftVirtualNetworkConnectionResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateOrUpdateSwiftVirtualNetworkConnection", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// CreateOrUpdateSwiftVirtualNetworkConnectionPreparer prepares the CreateOrUpdateSwiftVirtualNetworkConnection request.
+func (client AppsClient) CreateOrUpdateSwiftVirtualNetworkConnectionPreparer(ctx context.Context, resourceGroupName string, name string, connectionEnvelope SwiftVirtualNetwork) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "name": autorest.Encode("path", name),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2018-02-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPut(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/virtualNetwork", pathParameters),
+ autorest.WithJSON(connectionEnvelope),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// CreateOrUpdateSwiftVirtualNetworkConnectionSender sends the CreateOrUpdateSwiftVirtualNetworkConnection request. The method will close the
+// http.Response Body if it receives an error.
+func (client AppsClient) CreateOrUpdateSwiftVirtualNetworkConnectionSender(req *http.Request) (*http.Response, error) {
+ return autorest.SendWithSender(client, req,
+ azure.DoRetryWithRegistration(client.Client))
+}
+
+// CreateOrUpdateSwiftVirtualNetworkConnectionResponder handles the response to the CreateOrUpdateSwiftVirtualNetworkConnection request. The method always
+// closes the http.Response Body.
+func (client AppsClient) CreateOrUpdateSwiftVirtualNetworkConnectionResponder(resp *http.Response) (result SwiftVirtualNetwork, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// CreateOrUpdateSwiftVirtualNetworkConnectionSlot integrates this Web App with a Virtual Network. This requires that
+// 1) "swiftSupported" is true when doing a GET against this resource, and 2) that the target Subnet has already been
+// delegated, and is not
+// in use by another App Service Plan other than the one this App is in.
+// Parameters:
+// resourceGroupName - name of the resource group to which the resource belongs.
+// name - name of the app.
+// connectionEnvelope - properties of the Virtual Network connection. See example.
+// slot - name of the deployment slot. If a slot is not specified, the API will add or update connections for
+// the production slot.
+func (client AppsClient) CreateOrUpdateSwiftVirtualNetworkConnectionSlot(ctx context.Context, resourceGroupName string, name string, connectionEnvelope SwiftVirtualNetwork, slot string) (result SwiftVirtualNetwork, err error) {
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: resourceGroupName,
+ Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
+ {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
+ {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+[^\.]$`, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("web.AppsClient", "CreateOrUpdateSwiftVirtualNetworkConnectionSlot", err.Error())
+ }
+
+ req, err := client.CreateOrUpdateSwiftVirtualNetworkConnectionSlotPreparer(ctx, resourceGroupName, name, connectionEnvelope, slot)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateOrUpdateSwiftVirtualNetworkConnectionSlot", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.CreateOrUpdateSwiftVirtualNetworkConnectionSlotSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateOrUpdateSwiftVirtualNetworkConnectionSlot", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.CreateOrUpdateSwiftVirtualNetworkConnectionSlotResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "web.AppsClient", "CreateOrUpdateSwiftVirtualNetworkConnectionSlot", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// CreateOrUpdateSwiftVirtualNetworkConnectionSlotPreparer prepares the CreateOrUpdateSwiftVirtualNetworkConnectionSlot request.
+func (client AppsClient) CreateOrUpdateSwiftVirtualNetworkConnectionSlotPreparer(ctx context.Context, resourceGroupName string, name string, connectionEnvelope SwiftVirtualNetwork, slot string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "name": autorest.Encode("path", name),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "slot": autorest.Encode("path", slot),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2018-02-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPut(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/virtualNetwork", pathParameters),
+ autorest.WithJSON(connectionEnvelope),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// CreateOrUpdateSwiftVirtualNetworkConnectionSlotSender sends the CreateOrUpdateSwiftVirtualNetworkConnectionSlot request. The method will close the
+// http.Response Body if it receives an error.
+func (client AppsClient) CreateOrUpdateSwiftVirtualNetworkConnectionSlotSender(req *http.Request) (*http.Response, error) {
+ return autorest.SendWithSender(client, req,
+ azure.DoRetryWithRegistration(client.Client))
+}
+
+// CreateOrUpdateSwiftVirtualNetworkConnectionSlotResponder handles the response to the CreateOrUpdateSwiftVirtualNetworkConnectionSlot request. The method always
+// closes the http.Response Body.
+func (client AppsClient) CreateOrUpdateSwiftVirtualNetworkConnectionSlotResponder(resp *http.Response) (result SwiftVirtualNetwork, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
// CreateOrUpdateVnetConnection adds a Virtual Network connection to an app or slot (PUT) or updates the connection
// properties (PATCH).
// Parameters:
@@ -5424,7 +5597,7 @@ func (client AppsClient) DeleteSlotResponder(resp *http.Response) (result autore
// Parameters:
// resourceGroupName - name of the resource group to which the resource belongs.
// name - name of the app.
-func (client AppsClient) DeleteSourceControl(ctx context.Context, resourceGroupName string, name string) (result SetObject, err error) {
+func (client AppsClient) DeleteSourceControl(ctx context.Context, resourceGroupName string, name string) (result autorest.Response, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
@@ -5441,7 +5614,7 @@ func (client AppsClient) DeleteSourceControl(ctx context.Context, resourceGroupN
resp, err := client.DeleteSourceControlSender(req)
if err != nil {
- result.Response = autorest.Response{Response: resp}
+ result.Response = resp
err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteSourceControl", resp, "Failure sending request")
return
}
@@ -5484,14 +5657,13 @@ func (client AppsClient) DeleteSourceControlSender(req *http.Request) (*http.Res
// DeleteSourceControlResponder handles the response to the DeleteSourceControl request. The method always
// closes the http.Response Body.
-func (client AppsClient) DeleteSourceControlResponder(resp *http.Response) (result SetObject, err error) {
+func (client AppsClient) DeleteSourceControlResponder(resp *http.Response) (result autorest.Response, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNotFound),
- autorest.ByUnmarshallingJSON(&result.Value),
autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
+ result.Response = resp
return
}
@@ -5501,7 +5673,7 @@ func (client AppsClient) DeleteSourceControlResponder(resp *http.Response) (resu
// name - name of the app.
// slot - name of the deployment slot. If a slot is not specified, the API will delete the source control
// configuration for the production slot.
-func (client AppsClient) DeleteSourceControlSlot(ctx context.Context, resourceGroupName string, name string, slot string) (result SetObject, err error) {
+func (client AppsClient) DeleteSourceControlSlot(ctx context.Context, resourceGroupName string, name string, slot string) (result autorest.Response, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
@@ -5518,7 +5690,7 @@ func (client AppsClient) DeleteSourceControlSlot(ctx context.Context, resourceGr
resp, err := client.DeleteSourceControlSlotSender(req)
if err != nil {
- result.Response = autorest.Response{Response: resp}
+ result.Response = resp
err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteSourceControlSlot", resp, "Failure sending request")
return
}
@@ -5562,59 +5734,56 @@ func (client AppsClient) DeleteSourceControlSlotSender(req *http.Request) (*http
// DeleteSourceControlSlotResponder handles the response to the DeleteSourceControlSlot request. The method always
// closes the http.Response Body.
-func (client AppsClient) DeleteSourceControlSlotResponder(resp *http.Response) (result SetObject, err error) {
+func (client AppsClient) DeleteSourceControlSlotResponder(resp *http.Response) (result autorest.Response, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNotFound),
- autorest.ByUnmarshallingJSON(&result.Value),
autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
+ result.Response = resp
return
}
-// DeleteTriggeredWebJob delete a triggered web job by its ID for an app, or a deployment slot.
+// DeleteSwiftVirtualNetwork deletes a Swift Virtual Network connection from an app (or deployment slot).
// Parameters:
// resourceGroupName - name of the resource group to which the resource belongs.
-// name - site name.
-// webJobName - name of Web Job.
-func (client AppsClient) DeleteTriggeredWebJob(ctx context.Context, resourceGroupName string, name string, webJobName string) (result autorest.Response, err error) {
+// name - name of the app.
+func (client AppsClient) DeleteSwiftVirtualNetwork(ctx context.Context, resourceGroupName string, name string) (result autorest.Response, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+[^\.]$`, Chain: nil}}}}); err != nil {
- return result, validation.NewError("web.AppsClient", "DeleteTriggeredWebJob", err.Error())
+ return result, validation.NewError("web.AppsClient", "DeleteSwiftVirtualNetwork", err.Error())
}
- req, err := client.DeleteTriggeredWebJobPreparer(ctx, resourceGroupName, name, webJobName)
+ req, err := client.DeleteSwiftVirtualNetworkPreparer(ctx, resourceGroupName, name)
if err != nil {
- err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteTriggeredWebJob", nil, "Failure preparing request")
+ err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteSwiftVirtualNetwork", nil, "Failure preparing request")
return
}
- resp, err := client.DeleteTriggeredWebJobSender(req)
+ resp, err := client.DeleteSwiftVirtualNetworkSender(req)
if err != nil {
result.Response = resp
- err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteTriggeredWebJob", resp, "Failure sending request")
+ err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteSwiftVirtualNetwork", resp, "Failure sending request")
return
}
- result, err = client.DeleteTriggeredWebJobResponder(resp)
+ result, err = client.DeleteSwiftVirtualNetworkResponder(resp)
if err != nil {
- err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteTriggeredWebJob", resp, "Failure responding to request")
+ err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteSwiftVirtualNetwork", resp, "Failure responding to request")
}
return
}
-// DeleteTriggeredWebJobPreparer prepares the DeleteTriggeredWebJob request.
-func (client AppsClient) DeleteTriggeredWebJobPreparer(ctx context.Context, resourceGroupName string, name string, webJobName string) (*http.Request, error) {
+// DeleteSwiftVirtualNetworkPreparer prepares the DeleteSwiftVirtualNetwork request.
+func (client AppsClient) DeleteSwiftVirtualNetworkPreparer(ctx context.Context, resourceGroupName string, name string) (*http.Request, error) {
pathParameters := map[string]interface{}{
"name": autorest.Encode("path", name),
"resourceGroupName": autorest.Encode("path", resourceGroupName),
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
- "webJobName": autorest.Encode("path", webJobName),
}
const APIVersion = "2018-02-01"
@@ -5625,75 +5794,73 @@ func (client AppsClient) DeleteTriggeredWebJobPreparer(ctx context.Context, reso
preparer := autorest.CreatePreparer(
autorest.AsDelete(),
autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/triggeredwebjobs/{webJobName}", pathParameters),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/virtualNetwork", pathParameters),
autorest.WithQueryParameters(queryParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
-// DeleteTriggeredWebJobSender sends the DeleteTriggeredWebJob request. The method will close the
+// DeleteSwiftVirtualNetworkSender sends the DeleteSwiftVirtualNetwork request. The method will close the
// http.Response Body if it receives an error.
-func (client AppsClient) DeleteTriggeredWebJobSender(req *http.Request) (*http.Response, error) {
+func (client AppsClient) DeleteSwiftVirtualNetworkSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
azure.DoRetryWithRegistration(client.Client))
}
-// DeleteTriggeredWebJobResponder handles the response to the DeleteTriggeredWebJob request. The method always
+// DeleteSwiftVirtualNetworkResponder handles the response to the DeleteSwiftVirtualNetwork request. The method always
// closes the http.Response Body.
-func (client AppsClient) DeleteTriggeredWebJobResponder(resp *http.Response) (result autorest.Response, err error) {
+func (client AppsClient) DeleteSwiftVirtualNetworkResponder(resp *http.Response) (result autorest.Response, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNotFound),
autorest.ByClosing())
result.Response = resp
return
}
-// DeleteTriggeredWebJobSlot delete a triggered web job by its ID for an app, or a deployment slot.
+// DeleteSwiftVirtualNetworkSlot deletes a Swift Virtual Network connection from an app (or deployment slot).
// Parameters:
// resourceGroupName - name of the resource group to which the resource belongs.
-// name - site name.
-// webJobName - name of Web Job.
-// slot - name of the deployment slot. If a slot is not specified, the API deletes a deployment for the
+// name - name of the app.
+// slot - name of the deployment slot. If a slot is not specified, the API will delete the connection for the
// production slot.
-func (client AppsClient) DeleteTriggeredWebJobSlot(ctx context.Context, resourceGroupName string, name string, webJobName string, slot string) (result autorest.Response, err error) {
+func (client AppsClient) DeleteSwiftVirtualNetworkSlot(ctx context.Context, resourceGroupName string, name string, slot string) (result autorest.Response, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+[^\.]$`, Chain: nil}}}}); err != nil {
- return result, validation.NewError("web.AppsClient", "DeleteTriggeredWebJobSlot", err.Error())
+ return result, validation.NewError("web.AppsClient", "DeleteSwiftVirtualNetworkSlot", err.Error())
}
- req, err := client.DeleteTriggeredWebJobSlotPreparer(ctx, resourceGroupName, name, webJobName, slot)
+ req, err := client.DeleteSwiftVirtualNetworkSlotPreparer(ctx, resourceGroupName, name, slot)
if err != nil {
- err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteTriggeredWebJobSlot", nil, "Failure preparing request")
+ err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteSwiftVirtualNetworkSlot", nil, "Failure preparing request")
return
}
- resp, err := client.DeleteTriggeredWebJobSlotSender(req)
+ resp, err := client.DeleteSwiftVirtualNetworkSlotSender(req)
if err != nil {
result.Response = resp
- err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteTriggeredWebJobSlot", resp, "Failure sending request")
+ err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteSwiftVirtualNetworkSlot", resp, "Failure sending request")
return
}
- result, err = client.DeleteTriggeredWebJobSlotResponder(resp)
+ result, err = client.DeleteSwiftVirtualNetworkSlotResponder(resp)
if err != nil {
- err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteTriggeredWebJobSlot", resp, "Failure responding to request")
+ err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteSwiftVirtualNetworkSlot", resp, "Failure responding to request")
}
return
}
-// DeleteTriggeredWebJobSlotPreparer prepares the DeleteTriggeredWebJobSlot request.
-func (client AppsClient) DeleteTriggeredWebJobSlotPreparer(ctx context.Context, resourceGroupName string, name string, webJobName string, slot string) (*http.Request, error) {
+// DeleteSwiftVirtualNetworkSlotPreparer prepares the DeleteSwiftVirtualNetworkSlot request.
+func (client AppsClient) DeleteSwiftVirtualNetworkSlotPreparer(ctx context.Context, resourceGroupName string, name string, slot string) (*http.Request, error) {
pathParameters := map[string]interface{}{
"name": autorest.Encode("path", name),
"resourceGroupName": autorest.Encode("path", resourceGroupName),
"slot": autorest.Encode("path", slot),
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
- "webJobName": autorest.Encode("path", webJobName),
}
const APIVersion = "2018-02-01"
@@ -5704,72 +5871,72 @@ func (client AppsClient) DeleteTriggeredWebJobSlotPreparer(ctx context.Context,
preparer := autorest.CreatePreparer(
autorest.AsDelete(),
autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/triggeredwebjobs/{webJobName}", pathParameters),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/virtualNetwork", pathParameters),
autorest.WithQueryParameters(queryParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
-// DeleteTriggeredWebJobSlotSender sends the DeleteTriggeredWebJobSlot request. The method will close the
+// DeleteSwiftVirtualNetworkSlotSender sends the DeleteSwiftVirtualNetworkSlot request. The method will close the
// http.Response Body if it receives an error.
-func (client AppsClient) DeleteTriggeredWebJobSlotSender(req *http.Request) (*http.Response, error) {
+func (client AppsClient) DeleteSwiftVirtualNetworkSlotSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
azure.DoRetryWithRegistration(client.Client))
}
-// DeleteTriggeredWebJobSlotResponder handles the response to the DeleteTriggeredWebJobSlot request. The method always
+// DeleteSwiftVirtualNetworkSlotResponder handles the response to the DeleteSwiftVirtualNetworkSlot request. The method always
// closes the http.Response Body.
-func (client AppsClient) DeleteTriggeredWebJobSlotResponder(resp *http.Response) (result autorest.Response, err error) {
+func (client AppsClient) DeleteSwiftVirtualNetworkSlotResponder(resp *http.Response) (result autorest.Response, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNotFound),
autorest.ByClosing())
result.Response = resp
return
}
-// DeleteVnetConnection deletes a connection from an app (or deployment slot to a named virtual network.
+// DeleteTriggeredWebJob delete a triggered web job by its ID for an app, or a deployment slot.
// Parameters:
// resourceGroupName - name of the resource group to which the resource belongs.
-// name - name of the app.
-// vnetName - name of the virtual network.
-func (client AppsClient) DeleteVnetConnection(ctx context.Context, resourceGroupName string, name string, vnetName string) (result autorest.Response, err error) {
+// name - site name.
+// webJobName - name of Web Job.
+func (client AppsClient) DeleteTriggeredWebJob(ctx context.Context, resourceGroupName string, name string, webJobName string) (result autorest.Response, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+[^\.]$`, Chain: nil}}}}); err != nil {
- return result, validation.NewError("web.AppsClient", "DeleteVnetConnection", err.Error())
+ return result, validation.NewError("web.AppsClient", "DeleteTriggeredWebJob", err.Error())
}
- req, err := client.DeleteVnetConnectionPreparer(ctx, resourceGroupName, name, vnetName)
+ req, err := client.DeleteTriggeredWebJobPreparer(ctx, resourceGroupName, name, webJobName)
if err != nil {
- err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteVnetConnection", nil, "Failure preparing request")
+ err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteTriggeredWebJob", nil, "Failure preparing request")
return
}
- resp, err := client.DeleteVnetConnectionSender(req)
+ resp, err := client.DeleteTriggeredWebJobSender(req)
if err != nil {
result.Response = resp
- err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteVnetConnection", resp, "Failure sending request")
+ err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteTriggeredWebJob", resp, "Failure sending request")
return
}
- result, err = client.DeleteVnetConnectionResponder(resp)
+ result, err = client.DeleteTriggeredWebJobResponder(resp)
if err != nil {
- err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteVnetConnection", resp, "Failure responding to request")
+ err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteTriggeredWebJob", resp, "Failure responding to request")
}
return
}
-// DeleteVnetConnectionPreparer prepares the DeleteVnetConnection request.
-func (client AppsClient) DeleteVnetConnectionPreparer(ctx context.Context, resourceGroupName string, name string, vnetName string) (*http.Request, error) {
+// DeleteTriggeredWebJobPreparer prepares the DeleteTriggeredWebJob request.
+func (client AppsClient) DeleteTriggeredWebJobPreparer(ctx context.Context, resourceGroupName string, name string, webJobName string) (*http.Request, error) {
pathParameters := map[string]interface{}{
"name": autorest.Encode("path", name),
"resourceGroupName": autorest.Encode("path", resourceGroupName),
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
- "vnetName": autorest.Encode("path", vnetName),
+ "webJobName": autorest.Encode("path", webJobName),
}
const APIVersion = "2018-02-01"
@@ -5780,70 +5947,225 @@ func (client AppsClient) DeleteVnetConnectionPreparer(ctx context.Context, resou
preparer := autorest.CreatePreparer(
autorest.AsDelete(),
autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/virtualNetworkConnections/{vnetName}", pathParameters),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/triggeredwebjobs/{webJobName}", pathParameters),
autorest.WithQueryParameters(queryParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
-// DeleteVnetConnectionSender sends the DeleteVnetConnection request. The method will close the
+// DeleteTriggeredWebJobSender sends the DeleteTriggeredWebJob request. The method will close the
// http.Response Body if it receives an error.
-func (client AppsClient) DeleteVnetConnectionSender(req *http.Request) (*http.Response, error) {
+func (client AppsClient) DeleteTriggeredWebJobSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
azure.DoRetryWithRegistration(client.Client))
}
-// DeleteVnetConnectionResponder handles the response to the DeleteVnetConnection request. The method always
+// DeleteTriggeredWebJobResponder handles the response to the DeleteTriggeredWebJob request. The method always
// closes the http.Response Body.
-func (client AppsClient) DeleteVnetConnectionResponder(resp *http.Response) (result autorest.Response, err error) {
+func (client AppsClient) DeleteTriggeredWebJobResponder(resp *http.Response) (result autorest.Response, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNotFound),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent),
autorest.ByClosing())
result.Response = resp
return
}
-// DeleteVnetConnectionSlot deletes a connection from an app (or deployment slot to a named virtual network.
+// DeleteTriggeredWebJobSlot delete a triggered web job by its ID for an app, or a deployment slot.
// Parameters:
// resourceGroupName - name of the resource group to which the resource belongs.
-// name - name of the app.
-// vnetName - name of the virtual network.
-// slot - name of the deployment slot. If a slot is not specified, the API will delete the connection for the
+// name - site name.
+// webJobName - name of Web Job.
+// slot - name of the deployment slot. If a slot is not specified, the API deletes a deployment for the
// production slot.
-func (client AppsClient) DeleteVnetConnectionSlot(ctx context.Context, resourceGroupName string, name string, vnetName string, slot string) (result autorest.Response, err error) {
+func (client AppsClient) DeleteTriggeredWebJobSlot(ctx context.Context, resourceGroupName string, name string, webJobName string, slot string) (result autorest.Response, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+[^\.]$`, Chain: nil}}}}); err != nil {
- return result, validation.NewError("web.AppsClient", "DeleteVnetConnectionSlot", err.Error())
+ return result, validation.NewError("web.AppsClient", "DeleteTriggeredWebJobSlot", err.Error())
}
- req, err := client.DeleteVnetConnectionSlotPreparer(ctx, resourceGroupName, name, vnetName, slot)
+ req, err := client.DeleteTriggeredWebJobSlotPreparer(ctx, resourceGroupName, name, webJobName, slot)
if err != nil {
- err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteVnetConnectionSlot", nil, "Failure preparing request")
+ err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteTriggeredWebJobSlot", nil, "Failure preparing request")
return
}
- resp, err := client.DeleteVnetConnectionSlotSender(req)
+ resp, err := client.DeleteTriggeredWebJobSlotSender(req)
if err != nil {
result.Response = resp
- err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteVnetConnectionSlot", resp, "Failure sending request")
+ err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteTriggeredWebJobSlot", resp, "Failure sending request")
return
}
- result, err = client.DeleteVnetConnectionSlotResponder(resp)
+ result, err = client.DeleteTriggeredWebJobSlotResponder(resp)
if err != nil {
- err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteVnetConnectionSlot", resp, "Failure responding to request")
+ err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteTriggeredWebJobSlot", resp, "Failure responding to request")
}
return
}
-// DeleteVnetConnectionSlotPreparer prepares the DeleteVnetConnectionSlot request.
-func (client AppsClient) DeleteVnetConnectionSlotPreparer(ctx context.Context, resourceGroupName string, name string, vnetName string, slot string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
+// DeleteTriggeredWebJobSlotPreparer prepares the DeleteTriggeredWebJobSlot request.
+func (client AppsClient) DeleteTriggeredWebJobSlotPreparer(ctx context.Context, resourceGroupName string, name string, webJobName string, slot string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "name": autorest.Encode("path", name),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "slot": autorest.Encode("path", slot),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ "webJobName": autorest.Encode("path", webJobName),
+ }
+
+ const APIVersion = "2018-02-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsDelete(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/triggeredwebjobs/{webJobName}", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// DeleteTriggeredWebJobSlotSender sends the DeleteTriggeredWebJobSlot request. The method will close the
+// http.Response Body if it receives an error.
+func (client AppsClient) DeleteTriggeredWebJobSlotSender(req *http.Request) (*http.Response, error) {
+ return autorest.SendWithSender(client, req,
+ azure.DoRetryWithRegistration(client.Client))
+}
+
+// DeleteTriggeredWebJobSlotResponder handles the response to the DeleteTriggeredWebJobSlot request. The method always
+// closes the http.Response Body.
+func (client AppsClient) DeleteTriggeredWebJobSlotResponder(resp *http.Response) (result autorest.Response, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent),
+ autorest.ByClosing())
+ result.Response = resp
+ return
+}
+
+// DeleteVnetConnection deletes a connection from an app (or deployment slot to a named virtual network.
+// Parameters:
+// resourceGroupName - name of the resource group to which the resource belongs.
+// name - name of the app.
+// vnetName - name of the virtual network.
+func (client AppsClient) DeleteVnetConnection(ctx context.Context, resourceGroupName string, name string, vnetName string) (result autorest.Response, err error) {
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: resourceGroupName,
+ Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
+ {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
+ {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+[^\.]$`, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("web.AppsClient", "DeleteVnetConnection", err.Error())
+ }
+
+ req, err := client.DeleteVnetConnectionPreparer(ctx, resourceGroupName, name, vnetName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteVnetConnection", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.DeleteVnetConnectionSender(req)
+ if err != nil {
+ result.Response = resp
+ err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteVnetConnection", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.DeleteVnetConnectionResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteVnetConnection", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// DeleteVnetConnectionPreparer prepares the DeleteVnetConnection request.
+func (client AppsClient) DeleteVnetConnectionPreparer(ctx context.Context, resourceGroupName string, name string, vnetName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "name": autorest.Encode("path", name),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ "vnetName": autorest.Encode("path", vnetName),
+ }
+
+ const APIVersion = "2018-02-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsDelete(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/virtualNetworkConnections/{vnetName}", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// DeleteVnetConnectionSender sends the DeleteVnetConnection request. The method will close the
+// http.Response Body if it receives an error.
+func (client AppsClient) DeleteVnetConnectionSender(req *http.Request) (*http.Response, error) {
+ return autorest.SendWithSender(client, req,
+ azure.DoRetryWithRegistration(client.Client))
+}
+
+// DeleteVnetConnectionResponder handles the response to the DeleteVnetConnection request. The method always
+// closes the http.Response Body.
+func (client AppsClient) DeleteVnetConnectionResponder(resp *http.Response) (result autorest.Response, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNotFound),
+ autorest.ByClosing())
+ result.Response = resp
+ return
+}
+
+// DeleteVnetConnectionSlot deletes a connection from an app (or deployment slot to a named virtual network.
+// Parameters:
+// resourceGroupName - name of the resource group to which the resource belongs.
+// name - name of the app.
+// vnetName - name of the virtual network.
+// slot - name of the deployment slot. If a slot is not specified, the API will delete the connection for the
+// production slot.
+func (client AppsClient) DeleteVnetConnectionSlot(ctx context.Context, resourceGroupName string, name string, vnetName string, slot string) (result autorest.Response, err error) {
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: resourceGroupName,
+ Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
+ {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
+ {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+[^\.]$`, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("web.AppsClient", "DeleteVnetConnectionSlot", err.Error())
+ }
+
+ req, err := client.DeleteVnetConnectionSlotPreparer(ctx, resourceGroupName, name, vnetName, slot)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteVnetConnectionSlot", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.DeleteVnetConnectionSlotSender(req)
+ if err != nil {
+ result.Response = resp
+ err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteVnetConnectionSlot", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.DeleteVnetConnectionSlotResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "web.AppsClient", "DeleteVnetConnectionSlot", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// DeleteVnetConnectionSlotPreparer prepares the DeleteVnetConnectionSlot request.
+func (client AppsClient) DeleteVnetConnectionSlotPreparer(ctx context.Context, resourceGroupName string, name string, vnetName string, slot string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
"name": autorest.Encode("path", name),
"resourceGroupName": autorest.Encode("path", resourceGroupName),
"slot": autorest.Encode("path", slot),
@@ -5883,12 +6205,13 @@ func (client AppsClient) DeleteVnetConnectionSlotResponder(resp *http.Response)
return
}
-// DiscoverRestore discovers an existing app backup that can be restored from a blob in Azure storage.
+// DiscoverBackup discovers an existing app backup that can be restored from a blob in Azure storage. Use this to get
+// information about the databases stored in a backup.
// Parameters:
// resourceGroupName - name of the resource group to which the resource belongs.
// name - name of the app.
// request - a RestoreRequest object that includes Azure storage URL and blog name for discovery of backup.
-func (client AppsClient) DiscoverRestore(ctx context.Context, resourceGroupName string, name string, request RestoreRequest) (result RestoreRequest, err error) {
+func (client AppsClient) DiscoverBackup(ctx context.Context, resourceGroupName string, name string, request RestoreRequest) (result RestoreRequest, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
@@ -5899,32 +6222,32 @@ func (client AppsClient) DiscoverRestore(ctx context.Context, resourceGroupName
Chain: []validation.Constraint{{Target: "request.RestoreRequestProperties.StorageAccountURL", Name: validation.Null, Rule: true, Chain: nil},
{Target: "request.RestoreRequestProperties.Overwrite", Name: validation.Null, Rule: true, Chain: nil},
}}}}}); err != nil {
- return result, validation.NewError("web.AppsClient", "DiscoverRestore", err.Error())
+ return result, validation.NewError("web.AppsClient", "DiscoverBackup", err.Error())
}
- req, err := client.DiscoverRestorePreparer(ctx, resourceGroupName, name, request)
+ req, err := client.DiscoverBackupPreparer(ctx, resourceGroupName, name, request)
if err != nil {
- err = autorest.NewErrorWithError(err, "web.AppsClient", "DiscoverRestore", nil, "Failure preparing request")
+ err = autorest.NewErrorWithError(err, "web.AppsClient", "DiscoverBackup", nil, "Failure preparing request")
return
}
- resp, err := client.DiscoverRestoreSender(req)
+ resp, err := client.DiscoverBackupSender(req)
if err != nil {
result.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "web.AppsClient", "DiscoverRestore", resp, "Failure sending request")
+ err = autorest.NewErrorWithError(err, "web.AppsClient", "DiscoverBackup", resp, "Failure sending request")
return
}
- result, err = client.DiscoverRestoreResponder(resp)
+ result, err = client.DiscoverBackupResponder(resp)
if err != nil {
- err = autorest.NewErrorWithError(err, "web.AppsClient", "DiscoverRestore", resp, "Failure responding to request")
+ err = autorest.NewErrorWithError(err, "web.AppsClient", "DiscoverBackup", resp, "Failure responding to request")
}
return
}
-// DiscoverRestorePreparer prepares the DiscoverRestore request.
-func (client AppsClient) DiscoverRestorePreparer(ctx context.Context, resourceGroupName string, name string, request RestoreRequest) (*http.Request, error) {
+// DiscoverBackupPreparer prepares the DiscoverBackup request.
+func (client AppsClient) DiscoverBackupPreparer(ctx context.Context, resourceGroupName string, name string, request RestoreRequest) (*http.Request, error) {
pathParameters := map[string]interface{}{
"name": autorest.Encode("path", name),
"resourceGroupName": autorest.Encode("path", resourceGroupName),
@@ -5938,24 +6261,24 @@ func (client AppsClient) DiscoverRestorePreparer(ctx context.Context, resourceGr
preparer := autorest.CreatePreparer(
autorest.AsContentType("application/json; charset=utf-8"),
- autorest.AsPut(),
+ autorest.AsPost(),
autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/backups/discover", pathParameters),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/discoverbackup", pathParameters),
autorest.WithJSON(request),
autorest.WithQueryParameters(queryParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
-// DiscoverRestoreSender sends the DiscoverRestore request. The method will close the
+// DiscoverBackupSender sends the DiscoverBackup request. The method will close the
// http.Response Body if it receives an error.
-func (client AppsClient) DiscoverRestoreSender(req *http.Request) (*http.Response, error) {
+func (client AppsClient) DiscoverBackupSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
azure.DoRetryWithRegistration(client.Client))
}
-// DiscoverRestoreResponder handles the response to the DiscoverRestore request. The method always
+// DiscoverBackupResponder handles the response to the DiscoverBackup request. The method always
// closes the http.Response Body.
-func (client AppsClient) DiscoverRestoreResponder(resp *http.Response) (result RestoreRequest, err error) {
+func (client AppsClient) DiscoverBackupResponder(resp *http.Response) (result RestoreRequest, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
@@ -5966,14 +6289,15 @@ func (client AppsClient) DiscoverRestoreResponder(resp *http.Response) (result R
return
}
-// DiscoverRestoreSlot discovers an existing app backup that can be restored from a blob in Azure storage.
+// DiscoverBackupSlot discovers an existing app backup that can be restored from a blob in Azure storage. Use this to
+// get information about the databases stored in a backup.
// Parameters:
// resourceGroupName - name of the resource group to which the resource belongs.
// name - name of the app.
// request - a RestoreRequest object that includes Azure storage URL and blog name for discovery of backup.
// slot - name of the deployment slot. If a slot is not specified, the API will perform discovery for the
// production slot.
-func (client AppsClient) DiscoverRestoreSlot(ctx context.Context, resourceGroupName string, name string, request RestoreRequest, slot string) (result RestoreRequest, err error) {
+func (client AppsClient) DiscoverBackupSlot(ctx context.Context, resourceGroupName string, name string, request RestoreRequest, slot string) (result RestoreRequest, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
@@ -5984,32 +6308,32 @@ func (client AppsClient) DiscoverRestoreSlot(ctx context.Context, resourceGroupN
Chain: []validation.Constraint{{Target: "request.RestoreRequestProperties.StorageAccountURL", Name: validation.Null, Rule: true, Chain: nil},
{Target: "request.RestoreRequestProperties.Overwrite", Name: validation.Null, Rule: true, Chain: nil},
}}}}}); err != nil {
- return result, validation.NewError("web.AppsClient", "DiscoverRestoreSlot", err.Error())
+ return result, validation.NewError("web.AppsClient", "DiscoverBackupSlot", err.Error())
}
- req, err := client.DiscoverRestoreSlotPreparer(ctx, resourceGroupName, name, request, slot)
+ req, err := client.DiscoverBackupSlotPreparer(ctx, resourceGroupName, name, request, slot)
if err != nil {
- err = autorest.NewErrorWithError(err, "web.AppsClient", "DiscoverRestoreSlot", nil, "Failure preparing request")
+ err = autorest.NewErrorWithError(err, "web.AppsClient", "DiscoverBackupSlot", nil, "Failure preparing request")
return
}
- resp, err := client.DiscoverRestoreSlotSender(req)
+ resp, err := client.DiscoverBackupSlotSender(req)
if err != nil {
result.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "web.AppsClient", "DiscoverRestoreSlot", resp, "Failure sending request")
+ err = autorest.NewErrorWithError(err, "web.AppsClient", "DiscoverBackupSlot", resp, "Failure sending request")
return
}
- result, err = client.DiscoverRestoreSlotResponder(resp)
+ result, err = client.DiscoverBackupSlotResponder(resp)
if err != nil {
- err = autorest.NewErrorWithError(err, "web.AppsClient", "DiscoverRestoreSlot", resp, "Failure responding to request")
+ err = autorest.NewErrorWithError(err, "web.AppsClient", "DiscoverBackupSlot", resp, "Failure responding to request")
}
return
}
-// DiscoverRestoreSlotPreparer prepares the DiscoverRestoreSlot request.
-func (client AppsClient) DiscoverRestoreSlotPreparer(ctx context.Context, resourceGroupName string, name string, request RestoreRequest, slot string) (*http.Request, error) {
+// DiscoverBackupSlotPreparer prepares the DiscoverBackupSlot request.
+func (client AppsClient) DiscoverBackupSlotPreparer(ctx context.Context, resourceGroupName string, name string, request RestoreRequest, slot string) (*http.Request, error) {
pathParameters := map[string]interface{}{
"name": autorest.Encode("path", name),
"resourceGroupName": autorest.Encode("path", resourceGroupName),
@@ -6024,24 +6348,24 @@ func (client AppsClient) DiscoverRestoreSlotPreparer(ctx context.Context, resour
preparer := autorest.CreatePreparer(
autorest.AsContentType("application/json; charset=utf-8"),
- autorest.AsPut(),
+ autorest.AsPost(),
autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/backups/discover", pathParameters),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/discoverbackup", pathParameters),
autorest.WithJSON(request),
autorest.WithQueryParameters(queryParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
-// DiscoverRestoreSlotSender sends the DiscoverRestoreSlot request. The method will close the
+// DiscoverBackupSlotSender sends the DiscoverBackupSlot request. The method will close the
// http.Response Body if it receives an error.
-func (client AppsClient) DiscoverRestoreSlotSender(req *http.Request) (*http.Response, error) {
+func (client AppsClient) DiscoverBackupSlotSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
azure.DoRetryWithRegistration(client.Client))
}
-// DiscoverRestoreSlotResponder handles the response to the DiscoverRestoreSlot request. The method always
+// DiscoverBackupSlotResponder handles the response to the DiscoverBackupSlot request. The method always
// closes the http.Response Body.
-func (client AppsClient) DiscoverRestoreSlotResponder(resp *http.Response) (result RestoreRequest, err error) {
+func (client AppsClient) DiscoverBackupSlotResponder(resp *http.Response) (result RestoreRequest, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
@@ -11685,48 +12009,46 @@ func (client AppsClient) GetSourceControlSlotResponder(resp *http.Response) (res
return
}
-// GetTriggeredWebJob gets a triggered web job by its ID for an app, or a deployment slot.
+// GetSwiftVirtualNetworkConnection gets a Swift Virtual Network connection.
// Parameters:
// resourceGroupName - name of the resource group to which the resource belongs.
-// name - site name.
-// webJobName - name of Web Job.
-func (client AppsClient) GetTriggeredWebJob(ctx context.Context, resourceGroupName string, name string, webJobName string) (result TriggeredWebJob, err error) {
+// name - name of the app.
+func (client AppsClient) GetSwiftVirtualNetworkConnection(ctx context.Context, resourceGroupName string, name string) (result SwiftVirtualNetwork, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+[^\.]$`, Chain: nil}}}}); err != nil {
- return result, validation.NewError("web.AppsClient", "GetTriggeredWebJob", err.Error())
+ return result, validation.NewError("web.AppsClient", "GetSwiftVirtualNetworkConnection", err.Error())
}
- req, err := client.GetTriggeredWebJobPreparer(ctx, resourceGroupName, name, webJobName)
+ req, err := client.GetSwiftVirtualNetworkConnectionPreparer(ctx, resourceGroupName, name)
if err != nil {
- err = autorest.NewErrorWithError(err, "web.AppsClient", "GetTriggeredWebJob", nil, "Failure preparing request")
+ err = autorest.NewErrorWithError(err, "web.AppsClient", "GetSwiftVirtualNetworkConnection", nil, "Failure preparing request")
return
}
- resp, err := client.GetTriggeredWebJobSender(req)
+ resp, err := client.GetSwiftVirtualNetworkConnectionSender(req)
if err != nil {
result.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "web.AppsClient", "GetTriggeredWebJob", resp, "Failure sending request")
+ err = autorest.NewErrorWithError(err, "web.AppsClient", "GetSwiftVirtualNetworkConnection", resp, "Failure sending request")
return
}
- result, err = client.GetTriggeredWebJobResponder(resp)
+ result, err = client.GetSwiftVirtualNetworkConnectionResponder(resp)
if err != nil {
- err = autorest.NewErrorWithError(err, "web.AppsClient", "GetTriggeredWebJob", resp, "Failure responding to request")
+ err = autorest.NewErrorWithError(err, "web.AppsClient", "GetSwiftVirtualNetworkConnection", resp, "Failure responding to request")
}
return
}
-// GetTriggeredWebJobPreparer prepares the GetTriggeredWebJob request.
-func (client AppsClient) GetTriggeredWebJobPreparer(ctx context.Context, resourceGroupName string, name string, webJobName string) (*http.Request, error) {
+// GetSwiftVirtualNetworkConnectionPreparer prepares the GetSwiftVirtualNetworkConnection request.
+func (client AppsClient) GetSwiftVirtualNetworkConnectionPreparer(ctx context.Context, resourceGroupName string, name string) (*http.Request, error) {
pathParameters := map[string]interface{}{
"name": autorest.Encode("path", name),
"resourceGroupName": autorest.Encode("path", resourceGroupName),
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
- "webJobName": autorest.Encode("path", webJobName),
}
const APIVersion = "2018-02-01"
@@ -11737,75 +12059,74 @@ func (client AppsClient) GetTriggeredWebJobPreparer(ctx context.Context, resourc
preparer := autorest.CreatePreparer(
autorest.AsGet(),
autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/triggeredwebjobs/{webJobName}", pathParameters),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/virtualNetwork", pathParameters),
autorest.WithQueryParameters(queryParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
-// GetTriggeredWebJobSender sends the GetTriggeredWebJob request. The method will close the
+// GetSwiftVirtualNetworkConnectionSender sends the GetSwiftVirtualNetworkConnection request. The method will close the
// http.Response Body if it receives an error.
-func (client AppsClient) GetTriggeredWebJobSender(req *http.Request) (*http.Response, error) {
+func (client AppsClient) GetSwiftVirtualNetworkConnectionSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
azure.DoRetryWithRegistration(client.Client))
}
-// GetTriggeredWebJobResponder handles the response to the GetTriggeredWebJob request. The method always
+// GetSwiftVirtualNetworkConnectionResponder handles the response to the GetSwiftVirtualNetworkConnection request. The method always
// closes the http.Response Body.
-func (client AppsClient) GetTriggeredWebJobResponder(resp *http.Response) (result TriggeredWebJob, err error) {
+func (client AppsClient) GetSwiftVirtualNetworkConnectionResponder(resp *http.Response) (result SwiftVirtualNetwork, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNotFound),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
autorest.ByUnmarshallingJSON(&result),
autorest.ByClosing())
result.Response = autorest.Response{Response: resp}
return
}
-// GetTriggeredWebJobHistory gets a triggered web job's history by its ID for an app, , or a deployment slot.
+// GetSwiftVirtualNetworkConnectionSlot gets a Swift Virtual Network connection.
// Parameters:
// resourceGroupName - name of the resource group to which the resource belongs.
-// name - site name.
-// webJobName - name of Web Job.
-// ID - history ID.
-func (client AppsClient) GetTriggeredWebJobHistory(ctx context.Context, resourceGroupName string, name string, webJobName string, ID string) (result TriggeredJobHistory, err error) {
+// name - name of the app.
+// slot - name of the deployment slot. If a slot is not specified, the API will get a gateway for the
+// production slot's Virtual Network.
+func (client AppsClient) GetSwiftVirtualNetworkConnectionSlot(ctx context.Context, resourceGroupName string, name string, slot string) (result SwiftVirtualNetwork, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+[^\.]$`, Chain: nil}}}}); err != nil {
- return result, validation.NewError("web.AppsClient", "GetTriggeredWebJobHistory", err.Error())
+ return result, validation.NewError("web.AppsClient", "GetSwiftVirtualNetworkConnectionSlot", err.Error())
}
- req, err := client.GetTriggeredWebJobHistoryPreparer(ctx, resourceGroupName, name, webJobName, ID)
+ req, err := client.GetSwiftVirtualNetworkConnectionSlotPreparer(ctx, resourceGroupName, name, slot)
if err != nil {
- err = autorest.NewErrorWithError(err, "web.AppsClient", "GetTriggeredWebJobHistory", nil, "Failure preparing request")
+ err = autorest.NewErrorWithError(err, "web.AppsClient", "GetSwiftVirtualNetworkConnectionSlot", nil, "Failure preparing request")
return
}
- resp, err := client.GetTriggeredWebJobHistorySender(req)
+ resp, err := client.GetSwiftVirtualNetworkConnectionSlotSender(req)
if err != nil {
result.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "web.AppsClient", "GetTriggeredWebJobHistory", resp, "Failure sending request")
+ err = autorest.NewErrorWithError(err, "web.AppsClient", "GetSwiftVirtualNetworkConnectionSlot", resp, "Failure sending request")
return
}
- result, err = client.GetTriggeredWebJobHistoryResponder(resp)
+ result, err = client.GetSwiftVirtualNetworkConnectionSlotResponder(resp)
if err != nil {
- err = autorest.NewErrorWithError(err, "web.AppsClient", "GetTriggeredWebJobHistory", resp, "Failure responding to request")
+ err = autorest.NewErrorWithError(err, "web.AppsClient", "GetSwiftVirtualNetworkConnectionSlot", resp, "Failure responding to request")
}
return
}
-// GetTriggeredWebJobHistoryPreparer prepares the GetTriggeredWebJobHistory request.
-func (client AppsClient) GetTriggeredWebJobHistoryPreparer(ctx context.Context, resourceGroupName string, name string, webJobName string, ID string) (*http.Request, error) {
+// GetSwiftVirtualNetworkConnectionSlotPreparer prepares the GetSwiftVirtualNetworkConnectionSlot request.
+func (client AppsClient) GetSwiftVirtualNetworkConnectionSlotPreparer(ctx context.Context, resourceGroupName string, name string, slot string) (*http.Request, error) {
pathParameters := map[string]interface{}{
- "id": autorest.Encode("path", ID),
"name": autorest.Encode("path", name),
"resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "slot": autorest.Encode("path", slot),
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
- "webJobName": autorest.Encode("path", webJobName),
}
const APIVersion = "2018-02-01"
@@ -11816,76 +12137,71 @@ func (client AppsClient) GetTriggeredWebJobHistoryPreparer(ctx context.Context,
preparer := autorest.CreatePreparer(
autorest.AsGet(),
autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/triggeredwebjobs/{webJobName}/history/{id}", pathParameters),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/virtualNetwork", pathParameters),
autorest.WithQueryParameters(queryParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
-// GetTriggeredWebJobHistorySender sends the GetTriggeredWebJobHistory request. The method will close the
+// GetSwiftVirtualNetworkConnectionSlotSender sends the GetSwiftVirtualNetworkConnectionSlot request. The method will close the
// http.Response Body if it receives an error.
-func (client AppsClient) GetTriggeredWebJobHistorySender(req *http.Request) (*http.Response, error) {
+func (client AppsClient) GetSwiftVirtualNetworkConnectionSlotSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
azure.DoRetryWithRegistration(client.Client))
}
-// GetTriggeredWebJobHistoryResponder handles the response to the GetTriggeredWebJobHistory request. The method always
+// GetSwiftVirtualNetworkConnectionSlotResponder handles the response to the GetSwiftVirtualNetworkConnectionSlot request. The method always
// closes the http.Response Body.
-func (client AppsClient) GetTriggeredWebJobHistoryResponder(resp *http.Response) (result TriggeredJobHistory, err error) {
+func (client AppsClient) GetSwiftVirtualNetworkConnectionSlotResponder(resp *http.Response) (result SwiftVirtualNetwork, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNotFound),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
autorest.ByUnmarshallingJSON(&result),
autorest.ByClosing())
result.Response = autorest.Response{Response: resp}
return
}
-// GetTriggeredWebJobHistorySlot gets a triggered web job's history by its ID for an app, , or a deployment slot.
+// GetTriggeredWebJob gets a triggered web job by its ID for an app, or a deployment slot.
// Parameters:
// resourceGroupName - name of the resource group to which the resource belongs.
// name - site name.
// webJobName - name of Web Job.
-// ID - history ID.
-// slot - name of the deployment slot. If a slot is not specified, the API deletes a deployment for the
-// production slot.
-func (client AppsClient) GetTriggeredWebJobHistorySlot(ctx context.Context, resourceGroupName string, name string, webJobName string, ID string, slot string) (result TriggeredJobHistory, err error) {
+func (client AppsClient) GetTriggeredWebJob(ctx context.Context, resourceGroupName string, name string, webJobName string) (result TriggeredWebJob, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+[^\.]$`, Chain: nil}}}}); err != nil {
- return result, validation.NewError("web.AppsClient", "GetTriggeredWebJobHistorySlot", err.Error())
+ return result, validation.NewError("web.AppsClient", "GetTriggeredWebJob", err.Error())
}
- req, err := client.GetTriggeredWebJobHistorySlotPreparer(ctx, resourceGroupName, name, webJobName, ID, slot)
+ req, err := client.GetTriggeredWebJobPreparer(ctx, resourceGroupName, name, webJobName)
if err != nil {
- err = autorest.NewErrorWithError(err, "web.AppsClient", "GetTriggeredWebJobHistorySlot", nil, "Failure preparing request")
+ err = autorest.NewErrorWithError(err, "web.AppsClient", "GetTriggeredWebJob", nil, "Failure preparing request")
return
}
- resp, err := client.GetTriggeredWebJobHistorySlotSender(req)
+ resp, err := client.GetTriggeredWebJobSender(req)
if err != nil {
result.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "web.AppsClient", "GetTriggeredWebJobHistorySlot", resp, "Failure sending request")
+ err = autorest.NewErrorWithError(err, "web.AppsClient", "GetTriggeredWebJob", resp, "Failure sending request")
return
}
- result, err = client.GetTriggeredWebJobHistorySlotResponder(resp)
+ result, err = client.GetTriggeredWebJobResponder(resp)
if err != nil {
- err = autorest.NewErrorWithError(err, "web.AppsClient", "GetTriggeredWebJobHistorySlot", resp, "Failure responding to request")
+ err = autorest.NewErrorWithError(err, "web.AppsClient", "GetTriggeredWebJob", resp, "Failure responding to request")
}
return
}
-// GetTriggeredWebJobHistorySlotPreparer prepares the GetTriggeredWebJobHistorySlot request.
-func (client AppsClient) GetTriggeredWebJobHistorySlotPreparer(ctx context.Context, resourceGroupName string, name string, webJobName string, ID string, slot string) (*http.Request, error) {
+// GetTriggeredWebJobPreparer prepares the GetTriggeredWebJob request.
+func (client AppsClient) GetTriggeredWebJobPreparer(ctx context.Context, resourceGroupName string, name string, webJobName string) (*http.Request, error) {
pathParameters := map[string]interface{}{
- "id": autorest.Encode("path", ID),
"name": autorest.Encode("path", name),
"resourceGroupName": autorest.Encode("path", resourceGroupName),
- "slot": autorest.Encode("path", slot),
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
"webJobName": autorest.Encode("path", webJobName),
}
@@ -11898,21 +12214,21 @@ func (client AppsClient) GetTriggeredWebJobHistorySlotPreparer(ctx context.Conte
preparer := autorest.CreatePreparer(
autorest.AsGet(),
autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/triggeredwebjobs/{webJobName}/history/{id}", pathParameters),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/triggeredwebjobs/{webJobName}", pathParameters),
autorest.WithQueryParameters(queryParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
-// GetTriggeredWebJobHistorySlotSender sends the GetTriggeredWebJobHistorySlot request. The method will close the
+// GetTriggeredWebJobSender sends the GetTriggeredWebJob request. The method will close the
// http.Response Body if it receives an error.
-func (client AppsClient) GetTriggeredWebJobHistorySlotSender(req *http.Request) (*http.Response, error) {
+func (client AppsClient) GetTriggeredWebJobSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
azure.DoRetryWithRegistration(client.Client))
}
-// GetTriggeredWebJobHistorySlotResponder handles the response to the GetTriggeredWebJobHistorySlot request. The method always
+// GetTriggeredWebJobResponder handles the response to the GetTriggeredWebJob request. The method always
// closes the http.Response Body.
-func (client AppsClient) GetTriggeredWebJobHistorySlotResponder(resp *http.Response) (result TriggeredJobHistory, err error) {
+func (client AppsClient) GetTriggeredWebJobResponder(resp *http.Response) (result TriggeredWebJob, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
@@ -11923,20 +12239,181 @@ func (client AppsClient) GetTriggeredWebJobHistorySlotResponder(resp *http.Respo
return
}
-// GetTriggeredWebJobSlot gets a triggered web job by its ID for an app, or a deployment slot.
+// GetTriggeredWebJobHistory gets a triggered web job's history by its ID for an app, , or a deployment slot.
// Parameters:
// resourceGroupName - name of the resource group to which the resource belongs.
// name - site name.
// webJobName - name of Web Job.
-// slot - name of the deployment slot. If a slot is not specified, the API deletes a deployment for the
-// production slot.
-func (client AppsClient) GetTriggeredWebJobSlot(ctx context.Context, resourceGroupName string, name string, webJobName string, slot string) (result TriggeredWebJob, err error) {
+// ID - history ID.
+func (client AppsClient) GetTriggeredWebJobHistory(ctx context.Context, resourceGroupName string, name string, webJobName string, ID string) (result TriggeredJobHistory, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+[^\.]$`, Chain: nil}}}}); err != nil {
- return result, validation.NewError("web.AppsClient", "GetTriggeredWebJobSlot", err.Error())
+ return result, validation.NewError("web.AppsClient", "GetTriggeredWebJobHistory", err.Error())
+ }
+
+ req, err := client.GetTriggeredWebJobHistoryPreparer(ctx, resourceGroupName, name, webJobName, ID)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "web.AppsClient", "GetTriggeredWebJobHistory", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetTriggeredWebJobHistorySender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "web.AppsClient", "GetTriggeredWebJobHistory", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetTriggeredWebJobHistoryResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "web.AppsClient", "GetTriggeredWebJobHistory", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetTriggeredWebJobHistoryPreparer prepares the GetTriggeredWebJobHistory request.
+func (client AppsClient) GetTriggeredWebJobHistoryPreparer(ctx context.Context, resourceGroupName string, name string, webJobName string, ID string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "id": autorest.Encode("path", ID),
+ "name": autorest.Encode("path", name),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ "webJobName": autorest.Encode("path", webJobName),
+ }
+
+ const APIVersion = "2018-02-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/triggeredwebjobs/{webJobName}/history/{id}", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetTriggeredWebJobHistorySender sends the GetTriggeredWebJobHistory request. The method will close the
+// http.Response Body if it receives an error.
+func (client AppsClient) GetTriggeredWebJobHistorySender(req *http.Request) (*http.Response, error) {
+ return autorest.SendWithSender(client, req,
+ azure.DoRetryWithRegistration(client.Client))
+}
+
+// GetTriggeredWebJobHistoryResponder handles the response to the GetTriggeredWebJobHistory request. The method always
+// closes the http.Response Body.
+func (client AppsClient) GetTriggeredWebJobHistoryResponder(resp *http.Response) (result TriggeredJobHistory, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNotFound),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// GetTriggeredWebJobHistorySlot gets a triggered web job's history by its ID for an app, , or a deployment slot.
+// Parameters:
+// resourceGroupName - name of the resource group to which the resource belongs.
+// name - site name.
+// webJobName - name of Web Job.
+// ID - history ID.
+// slot - name of the deployment slot. If a slot is not specified, the API deletes a deployment for the
+// production slot.
+func (client AppsClient) GetTriggeredWebJobHistorySlot(ctx context.Context, resourceGroupName string, name string, webJobName string, ID string, slot string) (result TriggeredJobHistory, err error) {
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: resourceGroupName,
+ Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
+ {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
+ {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+[^\.]$`, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("web.AppsClient", "GetTriggeredWebJobHistorySlot", err.Error())
+ }
+
+ req, err := client.GetTriggeredWebJobHistorySlotPreparer(ctx, resourceGroupName, name, webJobName, ID, slot)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "web.AppsClient", "GetTriggeredWebJobHistorySlot", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetTriggeredWebJobHistorySlotSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "web.AppsClient", "GetTriggeredWebJobHistorySlot", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetTriggeredWebJobHistorySlotResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "web.AppsClient", "GetTriggeredWebJobHistorySlot", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetTriggeredWebJobHistorySlotPreparer prepares the GetTriggeredWebJobHistorySlot request.
+func (client AppsClient) GetTriggeredWebJobHistorySlotPreparer(ctx context.Context, resourceGroupName string, name string, webJobName string, ID string, slot string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "id": autorest.Encode("path", ID),
+ "name": autorest.Encode("path", name),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "slot": autorest.Encode("path", slot),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ "webJobName": autorest.Encode("path", webJobName),
+ }
+
+ const APIVersion = "2018-02-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/triggeredwebjobs/{webJobName}/history/{id}", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetTriggeredWebJobHistorySlotSender sends the GetTriggeredWebJobHistorySlot request. The method will close the
+// http.Response Body if it receives an error.
+func (client AppsClient) GetTriggeredWebJobHistorySlotSender(req *http.Request) (*http.Response, error) {
+ return autorest.SendWithSender(client, req,
+ azure.DoRetryWithRegistration(client.Client))
+}
+
+// GetTriggeredWebJobHistorySlotResponder handles the response to the GetTriggeredWebJobHistorySlot request. The method always
+// closes the http.Response Body.
+func (client AppsClient) GetTriggeredWebJobHistorySlotResponder(resp *http.Response) (result TriggeredJobHistory, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNotFound),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// GetTriggeredWebJobSlot gets a triggered web job by its ID for an app, or a deployment slot.
+// Parameters:
+// resourceGroupName - name of the resource group to which the resource belongs.
+// name - site name.
+// webJobName - name of Web Job.
+// slot - name of the deployment slot. If a slot is not specified, the API deletes a deployment for the
+// production slot.
+func (client AppsClient) GetTriggeredWebJobSlot(ctx context.Context, resourceGroupName string, name string, webJobName string, slot string) (result TriggeredWebJob, err error) {
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: resourceGroupName,
+ Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
+ {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
+ {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+[^\.]$`, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("web.AppsClient", "GetTriggeredWebJobSlot", err.Error())
}
req, err := client.GetTriggeredWebJobSlotPreparer(ctx, resourceGroupName, name, webJobName, slot)
@@ -25344,7 +25821,7 @@ func (client AppsClient) UpdateDiagnosticLogsConfig(ctx context.Context, resourc
{Target: "siteLogsConfig.SiteLogsConfigProperties.HTTPLogs", Name: validation.Null, Rule: false,
Chain: []validation.Constraint{{Target: "siteLogsConfig.SiteLogsConfigProperties.HTTPLogs.FileSystem", Name: validation.Null, Rule: false,
Chain: []validation.Constraint{{Target: "siteLogsConfig.SiteLogsConfigProperties.HTTPLogs.FileSystem.RetentionInMb", Name: validation.Null, Rule: false,
- Chain: []validation.Constraint{{Target: "siteLogsConfig.SiteLogsConfigProperties.HTTPLogs.FileSystem.RetentionInMb", Name: validation.InclusiveMaximum, Rule: 100, Chain: nil},
+ Chain: []validation.Constraint{{Target: "siteLogsConfig.SiteLogsConfigProperties.HTTPLogs.FileSystem.RetentionInMb", Name: validation.InclusiveMaximum, Rule: int64(100), Chain: nil},
{Target: "siteLogsConfig.SiteLogsConfigProperties.HTTPLogs.FileSystem.RetentionInMb", Name: validation.InclusiveMinimum, Rule: 25, Chain: nil},
}},
}},
@@ -25440,7 +25917,7 @@ func (client AppsClient) UpdateDiagnosticLogsConfigSlot(ctx context.Context, res
{Target: "siteLogsConfig.SiteLogsConfigProperties.HTTPLogs", Name: validation.Null, Rule: false,
Chain: []validation.Constraint{{Target: "siteLogsConfig.SiteLogsConfigProperties.HTTPLogs.FileSystem", Name: validation.Null, Rule: false,
Chain: []validation.Constraint{{Target: "siteLogsConfig.SiteLogsConfigProperties.HTTPLogs.FileSystem.RetentionInMb", Name: validation.Null, Rule: false,
- Chain: []validation.Constraint{{Target: "siteLogsConfig.SiteLogsConfigProperties.HTTPLogs.FileSystem.RetentionInMb", Name: validation.InclusiveMaximum, Rule: 100, Chain: nil},
+ Chain: []validation.Constraint{{Target: "siteLogsConfig.SiteLogsConfigProperties.HTTPLogs.FileSystem.RetentionInMb", Name: validation.InclusiveMaximum, Rule: int64(100), Chain: nil},
{Target: "siteLogsConfig.SiteLogsConfigProperties.HTTPLogs.FileSystem.RetentionInMb", Name: validation.InclusiveMinimum, Rule: 25, Chain: nil},
}},
}},
@@ -26004,6 +26481,169 @@ func (client AppsClient) UpdateMetadataSlotResponder(resp *http.Response) (resul
return
}
+// UpdatePremierAddOn updates a named add-on of an app.
+// Parameters:
+// resourceGroupName - name of the resource group to which the resource belongs.
+// name - name of the app.
+// premierAddOnName - add-on name.
+// premierAddOn - a JSON representation of the edited premier add-on.
+func (client AppsClient) UpdatePremierAddOn(ctx context.Context, resourceGroupName string, name string, premierAddOnName string, premierAddOn PremierAddOnPatchResource) (result PremierAddOn, err error) {
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: resourceGroupName,
+ Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
+ {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
+ {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+[^\.]$`, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("web.AppsClient", "UpdatePremierAddOn", err.Error())
+ }
+
+ req, err := client.UpdatePremierAddOnPreparer(ctx, resourceGroupName, name, premierAddOnName, premierAddOn)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdatePremierAddOn", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.UpdatePremierAddOnSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdatePremierAddOn", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.UpdatePremierAddOnResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdatePremierAddOn", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// UpdatePremierAddOnPreparer prepares the UpdatePremierAddOn request.
+func (client AppsClient) UpdatePremierAddOnPreparer(ctx context.Context, resourceGroupName string, name string, premierAddOnName string, premierAddOn PremierAddOnPatchResource) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "name": autorest.Encode("path", name),
+ "premierAddOnName": autorest.Encode("path", premierAddOnName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2018-02-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPatch(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/premieraddons/{premierAddOnName}", pathParameters),
+ autorest.WithJSON(premierAddOn),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// UpdatePremierAddOnSender sends the UpdatePremierAddOn request. The method will close the
+// http.Response Body if it receives an error.
+func (client AppsClient) UpdatePremierAddOnSender(req *http.Request) (*http.Response, error) {
+ return autorest.SendWithSender(client, req,
+ azure.DoRetryWithRegistration(client.Client))
+}
+
+// UpdatePremierAddOnResponder handles the response to the UpdatePremierAddOn request. The method always
+// closes the http.Response Body.
+func (client AppsClient) UpdatePremierAddOnResponder(resp *http.Response) (result PremierAddOn, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// UpdatePremierAddOnSlot updates a named add-on of an app.
+// Parameters:
+// resourceGroupName - name of the resource group to which the resource belongs.
+// name - name of the app.
+// premierAddOnName - add-on name.
+// premierAddOn - a JSON representation of the edited premier add-on.
+// slot - name of the deployment slot. If a slot is not specified, the API will update the named add-on for the
+// production slot.
+func (client AppsClient) UpdatePremierAddOnSlot(ctx context.Context, resourceGroupName string, name string, premierAddOnName string, premierAddOn PremierAddOnPatchResource, slot string) (result PremierAddOn, err error) {
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: resourceGroupName,
+ Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
+ {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
+ {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+[^\.]$`, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("web.AppsClient", "UpdatePremierAddOnSlot", err.Error())
+ }
+
+ req, err := client.UpdatePremierAddOnSlotPreparer(ctx, resourceGroupName, name, premierAddOnName, premierAddOn, slot)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdatePremierAddOnSlot", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.UpdatePremierAddOnSlotSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdatePremierAddOnSlot", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.UpdatePremierAddOnSlotResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdatePremierAddOnSlot", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// UpdatePremierAddOnSlotPreparer prepares the UpdatePremierAddOnSlot request.
+func (client AppsClient) UpdatePremierAddOnSlotPreparer(ctx context.Context, resourceGroupName string, name string, premierAddOnName string, premierAddOn PremierAddOnPatchResource, slot string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "name": autorest.Encode("path", name),
+ "premierAddOnName": autorest.Encode("path", premierAddOnName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "slot": autorest.Encode("path", slot),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2018-02-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPatch(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/premieraddons/{premierAddOnName}", pathParameters),
+ autorest.WithJSON(premierAddOn),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// UpdatePremierAddOnSlotSender sends the UpdatePremierAddOnSlot request. The method will close the
+// http.Response Body if it receives an error.
+func (client AppsClient) UpdatePremierAddOnSlotSender(req *http.Request) (*http.Response, error) {
+ return autorest.SendWithSender(client, req,
+ azure.DoRetryWithRegistration(client.Client))
+}
+
+// UpdatePremierAddOnSlotResponder handles the response to the UpdatePremierAddOnSlot request. The method always
+// closes the http.Response Body.
+func (client AppsClient) UpdatePremierAddOnSlotResponder(resp *http.Response) (result PremierAddOn, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
// UpdateRelayServiceConnection creates a new hybrid connection configuration (PUT), or updates an existing one
// (PATCH).
// Parameters:
@@ -26565,7 +27205,7 @@ func (client AppsClient) UpdateSourceControlResponder(resp *http.Response) (resu
err = autorest.Respond(
resp,
client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated, http.StatusAccepted),
autorest.ByUnmarshallingJSON(&result),
autorest.ByClosing())
result.Response = autorest.Response{Response: resp}
@@ -26646,7 +27286,172 @@ func (client AppsClient) UpdateSourceControlSlotResponder(resp *http.Response) (
err = autorest.Respond(
resp,
client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated, http.StatusAccepted),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// UpdateSwiftVirtualNetworkConnection integrates this Web App with a Virtual Network. This requires that 1)
+// "swiftSupported" is true when doing a GET against this resource, and 2) that the target Subnet has already been
+// delegated, and is not
+// in use by another App Service Plan other than the one this App is in.
+// Parameters:
+// resourceGroupName - name of the resource group to which the resource belongs.
+// name - name of the app.
+// connectionEnvelope - properties of the Virtual Network connection. See example.
+func (client AppsClient) UpdateSwiftVirtualNetworkConnection(ctx context.Context, resourceGroupName string, name string, connectionEnvelope SwiftVirtualNetwork) (result SwiftVirtualNetwork, err error) {
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: resourceGroupName,
+ Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
+ {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
+ {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+[^\.]$`, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("web.AppsClient", "UpdateSwiftVirtualNetworkConnection", err.Error())
+ }
+
+ req, err := client.UpdateSwiftVirtualNetworkConnectionPreparer(ctx, resourceGroupName, name, connectionEnvelope)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateSwiftVirtualNetworkConnection", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.UpdateSwiftVirtualNetworkConnectionSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateSwiftVirtualNetworkConnection", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.UpdateSwiftVirtualNetworkConnectionResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateSwiftVirtualNetworkConnection", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// UpdateSwiftVirtualNetworkConnectionPreparer prepares the UpdateSwiftVirtualNetworkConnection request.
+func (client AppsClient) UpdateSwiftVirtualNetworkConnectionPreparer(ctx context.Context, resourceGroupName string, name string, connectionEnvelope SwiftVirtualNetwork) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "name": autorest.Encode("path", name),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2018-02-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPatch(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/virtualNetwork", pathParameters),
+ autorest.WithJSON(connectionEnvelope),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// UpdateSwiftVirtualNetworkConnectionSender sends the UpdateSwiftVirtualNetworkConnection request. The method will close the
+// http.Response Body if it receives an error.
+func (client AppsClient) UpdateSwiftVirtualNetworkConnectionSender(req *http.Request) (*http.Response, error) {
+ return autorest.SendWithSender(client, req,
+ azure.DoRetryWithRegistration(client.Client))
+}
+
+// UpdateSwiftVirtualNetworkConnectionResponder handles the response to the UpdateSwiftVirtualNetworkConnection request. The method always
+// closes the http.Response Body.
+func (client AppsClient) UpdateSwiftVirtualNetworkConnectionResponder(resp *http.Response) (result SwiftVirtualNetwork, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// UpdateSwiftVirtualNetworkConnectionSlot integrates this Web App with a Virtual Network. This requires that 1)
+// "swiftSupported" is true when doing a GET against this resource, and 2) that the target Subnet has already been
+// delegated, and is not
+// in use by another App Service Plan other than the one this App is in.
+// Parameters:
+// resourceGroupName - name of the resource group to which the resource belongs.
+// name - name of the app.
+// connectionEnvelope - properties of the Virtual Network connection. See example.
+// slot - name of the deployment slot. If a slot is not specified, the API will add or update connections for
+// the production slot.
+func (client AppsClient) UpdateSwiftVirtualNetworkConnectionSlot(ctx context.Context, resourceGroupName string, name string, connectionEnvelope SwiftVirtualNetwork, slot string) (result SwiftVirtualNetwork, err error) {
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: resourceGroupName,
+ Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
+ {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
+ {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+[^\.]$`, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("web.AppsClient", "UpdateSwiftVirtualNetworkConnectionSlot", err.Error())
+ }
+
+ req, err := client.UpdateSwiftVirtualNetworkConnectionSlotPreparer(ctx, resourceGroupName, name, connectionEnvelope, slot)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateSwiftVirtualNetworkConnectionSlot", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.UpdateSwiftVirtualNetworkConnectionSlotSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateSwiftVirtualNetworkConnectionSlot", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.UpdateSwiftVirtualNetworkConnectionSlotResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "web.AppsClient", "UpdateSwiftVirtualNetworkConnectionSlot", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// UpdateSwiftVirtualNetworkConnectionSlotPreparer prepares the UpdateSwiftVirtualNetworkConnectionSlot request.
+func (client AppsClient) UpdateSwiftVirtualNetworkConnectionSlotPreparer(ctx context.Context, resourceGroupName string, name string, connectionEnvelope SwiftVirtualNetwork, slot string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "name": autorest.Encode("path", name),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "slot": autorest.Encode("path", slot),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2018-02-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPatch(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/virtualNetwork", pathParameters),
+ autorest.WithJSON(connectionEnvelope),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// UpdateSwiftVirtualNetworkConnectionSlotSender sends the UpdateSwiftVirtualNetworkConnectionSlot request. The method will close the
+// http.Response Body if it receives an error.
+func (client AppsClient) UpdateSwiftVirtualNetworkConnectionSlotSender(req *http.Request) (*http.Response, error) {
+ return autorest.SendWithSender(client, req,
+ azure.DoRetryWithRegistration(client.Client))
+}
+
+// UpdateSwiftVirtualNetworkConnectionSlotResponder handles the response to the UpdateSwiftVirtualNetworkConnectionSlot request. The method always
+// closes the http.Response Body.
+func (client AppsClient) UpdateSwiftVirtualNetworkConnectionSlotResponder(resp *http.Response) (result SwiftVirtualNetwork, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
autorest.ByUnmarshallingJSON(&result),
autorest.ByClosing())
result.Response = autorest.Response{Response: resp}
diff --git a/services/web/mgmt/2018-02-01/web/appservicecertificateorders.go b/services/web/mgmt/2018-02-01/web/appservicecertificateorders.go
index 77ef0e4f424e..be9cbbdd2944 100644
--- a/services/web/mgmt/2018-02-01/web/appservicecertificateorders.go
+++ b/services/web/mgmt/2018-02-01/web/appservicecertificateorders.go
@@ -54,7 +54,7 @@ func (client AppServiceCertificateOrdersClient) CreateOrUpdate(ctx context.Conte
{TargetValue: certificateDistinguishedName,
Constraints: []validation.Constraint{{Target: "certificateDistinguishedName.AppServiceCertificateOrderProperties", Name: validation.Null, Rule: false,
Chain: []validation.Constraint{{Target: "certificateDistinguishedName.AppServiceCertificateOrderProperties.ValidityInYears", Name: validation.Null, Rule: false,
- Chain: []validation.Constraint{{Target: "certificateDistinguishedName.AppServiceCertificateOrderProperties.ValidityInYears", Name: validation.InclusiveMaximum, Rule: 3, Chain: nil},
+ Chain: []validation.Constraint{{Target: "certificateDistinguishedName.AppServiceCertificateOrderProperties.ValidityInYears", Name: validation.InclusiveMaximum, Rule: int64(3), Chain: nil},
{Target: "certificateDistinguishedName.AppServiceCertificateOrderProperties.ValidityInYears", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil},
}},
}}}}}); err != nil {
@@ -1508,7 +1508,7 @@ func (client AppServiceCertificateOrdersClient) ValidatePurchaseInformation(ctx
{TargetValue: appServiceCertificateOrder,
Constraints: []validation.Constraint{{Target: "appServiceCertificateOrder.AppServiceCertificateOrderProperties", Name: validation.Null, Rule: false,
Chain: []validation.Constraint{{Target: "appServiceCertificateOrder.AppServiceCertificateOrderProperties.ValidityInYears", Name: validation.Null, Rule: false,
- Chain: []validation.Constraint{{Target: "appServiceCertificateOrder.AppServiceCertificateOrderProperties.ValidityInYears", Name: validation.InclusiveMaximum, Rule: 3, Chain: nil},
+ Chain: []validation.Constraint{{Target: "appServiceCertificateOrder.AppServiceCertificateOrderProperties.ValidityInYears", Name: validation.InclusiveMaximum, Rule: int64(3), Chain: nil},
{Target: "appServiceCertificateOrder.AppServiceCertificateOrderProperties.ValidityInYears", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil},
}},
}}}}}); err != nil {
diff --git a/services/web/mgmt/2018-02-01/web/appserviceenvironments.go b/services/web/mgmt/2018-02-01/web/appserviceenvironments.go
index 976c1299dcf8..fbfba2504d81 100644
--- a/services/web/mgmt/2018-02-01/web/appserviceenvironments.go
+++ b/services/web/mgmt/2018-02-01/web/appserviceenvironments.go
@@ -1848,7 +1848,7 @@ func (client AppServiceEnvironmentsClient) ListMultiRolePoolInstanceMetricsPrepa
preparer := autorest.CreatePreparer(
autorest.AsGet(),
autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/multiRolePools/default/instances/{instance}metrics", pathParameters),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/multiRolePools/default/instances/{instance}/metrics", pathParameters),
autorest.WithQueryParameters(queryParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
@@ -3073,7 +3073,7 @@ func (client AppServiceEnvironmentsClient) ListWorkerPoolInstanceMetricsPreparer
preparer := autorest.CreatePreparer(
autorest.AsGet(),
autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/workerPools/{workerPoolName}/instances/{instance}metrics", pathParameters),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/workerPools/{workerPoolName}/instances/{instance}/metrics", pathParameters),
autorest.WithQueryParameters(queryParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
@@ -3629,80 +3629,6 @@ func (client AppServiceEnvironmentsClient) SuspendComplete(ctx context.Context,
return
}
-// SyncVirtualNetworkInfo resume an App Service Environment.
-// Parameters:
-// resourceGroupName - name of the resource group to which the resource belongs.
-// name - name of the App Service Environment.
-func (client AppServiceEnvironmentsClient) SyncVirtualNetworkInfo(ctx context.Context, resourceGroupName string, name string) (result autorest.Response, err error) {
- if err := validation.Validate([]validation.Validation{
- {TargetValue: resourceGroupName,
- Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
- {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
- {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+[^\.]$`, Chain: nil}}}}); err != nil {
- return result, validation.NewError("web.AppServiceEnvironmentsClient", "SyncVirtualNetworkInfo", err.Error())
- }
-
- req, err := client.SyncVirtualNetworkInfoPreparer(ctx, resourceGroupName, name)
- if err != nil {
- err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "SyncVirtualNetworkInfo", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.SyncVirtualNetworkInfoSender(req)
- if err != nil {
- result.Response = resp
- err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "SyncVirtualNetworkInfo", resp, "Failure sending request")
- return
- }
-
- result, err = client.SyncVirtualNetworkInfoResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "SyncVirtualNetworkInfo", resp, "Failure responding to request")
- }
-
- return
-}
-
-// SyncVirtualNetworkInfoPreparer prepares the SyncVirtualNetworkInfo request.
-func (client AppServiceEnvironmentsClient) SyncVirtualNetworkInfoPreparer(ctx context.Context, resourceGroupName string, name string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "name": autorest.Encode("path", name),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2018-02-01"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsPost(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/syncVirtualNetwork", pathParameters),
- autorest.WithQueryParameters(queryParameters))
- return preparer.Prepare((&http.Request{}).WithContext(ctx))
-}
-
-// SyncVirtualNetworkInfoSender sends the SyncVirtualNetworkInfo request. The method will close the
-// http.Response Body if it receives an error.
-func (client AppServiceEnvironmentsClient) SyncVirtualNetworkInfoSender(req *http.Request) (*http.Response, error) {
- return autorest.SendWithSender(client, req,
- azure.DoRetryWithRegistration(client.Client))
-}
-
-// SyncVirtualNetworkInfoResponder handles the response to the SyncVirtualNetworkInfo request. The method always
-// closes the http.Response Body.
-func (client AppServiceEnvironmentsClient) SyncVirtualNetworkInfoResponder(resp *http.Response) (result autorest.Response, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted),
- autorest.ByClosing())
- result.Response = resp
- return
-}
-
// Update create or update an App Service Environment.
// Parameters:
// resourceGroupName - name of the resource group to which the resource belongs.
diff --git a/services/web/mgmt/2018-02-01/web/client.go b/services/web/mgmt/2018-02-01/web/client.go
index f0d7f0e559c8..7f3412460896 100644
--- a/services/web/mgmt/2018-02-01/web/client.go
+++ b/services/web/mgmt/2018-02-01/web/client.go
@@ -313,9 +313,10 @@ func (client BaseClient) GetSubscriptionDeploymentLocationsResponder(resp *http.
// ListBillingMeters gets a list of meters for a given location.
// Parameters:
// billingLocation - azure Location of billable resource
-func (client BaseClient) ListBillingMeters(ctx context.Context, billingLocation string) (result BillingMeterCollectionPage, err error) {
+// osType - app Service OS type meters used for
+func (client BaseClient) ListBillingMeters(ctx context.Context, billingLocation string, osType string) (result BillingMeterCollectionPage, err error) {
result.fn = client.listBillingMetersNextResults
- req, err := client.ListBillingMetersPreparer(ctx, billingLocation)
+ req, err := client.ListBillingMetersPreparer(ctx, billingLocation, osType)
if err != nil {
err = autorest.NewErrorWithError(err, "web.BaseClient", "ListBillingMeters", nil, "Failure preparing request")
return
@@ -337,7 +338,7 @@ func (client BaseClient) ListBillingMeters(ctx context.Context, billingLocation
}
// ListBillingMetersPreparer prepares the ListBillingMeters request.
-func (client BaseClient) ListBillingMetersPreparer(ctx context.Context, billingLocation string) (*http.Request, error) {
+func (client BaseClient) ListBillingMetersPreparer(ctx context.Context, billingLocation string, osType string) (*http.Request, error) {
pathParameters := map[string]interface{}{
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
@@ -349,6 +350,9 @@ func (client BaseClient) ListBillingMetersPreparer(ctx context.Context, billingL
if len(billingLocation) > 0 {
queryParameters["billingLocation"] = autorest.Encode("query", billingLocation)
}
+ if len(osType) > 0 {
+ queryParameters["osType"] = autorest.Encode("query", osType)
+ }
preparer := autorest.CreatePreparer(
autorest.AsGet(),
@@ -400,8 +404,8 @@ func (client BaseClient) listBillingMetersNextResults(lastResults BillingMeterCo
}
// ListBillingMetersComplete enumerates all values, automatically crossing page boundaries as required.
-func (client BaseClient) ListBillingMetersComplete(ctx context.Context, billingLocation string) (result BillingMeterCollectionIterator, err error) {
- result.page, err = client.ListBillingMeters(ctx, billingLocation)
+func (client BaseClient) ListBillingMetersComplete(ctx context.Context, billingLocation string, osType string) (result BillingMeterCollectionIterator, err error) {
+ result.page, err = client.ListBillingMeters(ctx, billingLocation, osType)
return
}
@@ -410,9 +414,11 @@ func (client BaseClient) ListBillingMetersComplete(ctx context.Context, billingL
// sku - name of SKU used to filter the regions.
// linuxWorkersEnabled - specify true
if you want to filter to only regions that support Linux
// workers.
-func (client BaseClient) ListGeoRegions(ctx context.Context, sku SkuName, linuxWorkersEnabled *bool) (result GeoRegionCollectionPage, err error) {
+// xenonWorkersEnabled - specify true
if you want to filter to only regions that support Xenon
+// workers.
+func (client BaseClient) ListGeoRegions(ctx context.Context, sku SkuName, linuxWorkersEnabled *bool, xenonWorkersEnabled *bool) (result GeoRegionCollectionPage, err error) {
result.fn = client.listGeoRegionsNextResults
- req, err := client.ListGeoRegionsPreparer(ctx, sku, linuxWorkersEnabled)
+ req, err := client.ListGeoRegionsPreparer(ctx, sku, linuxWorkersEnabled, xenonWorkersEnabled)
if err != nil {
err = autorest.NewErrorWithError(err, "web.BaseClient", "ListGeoRegions", nil, "Failure preparing request")
return
@@ -434,7 +440,7 @@ func (client BaseClient) ListGeoRegions(ctx context.Context, sku SkuName, linuxW
}
// ListGeoRegionsPreparer prepares the ListGeoRegions request.
-func (client BaseClient) ListGeoRegionsPreparer(ctx context.Context, sku SkuName, linuxWorkersEnabled *bool) (*http.Request, error) {
+func (client BaseClient) ListGeoRegionsPreparer(ctx context.Context, sku SkuName, linuxWorkersEnabled *bool, xenonWorkersEnabled *bool) (*http.Request, error) {
pathParameters := map[string]interface{}{
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
@@ -449,6 +455,9 @@ func (client BaseClient) ListGeoRegionsPreparer(ctx context.Context, sku SkuName
if linuxWorkersEnabled != nil {
queryParameters["linuxWorkersEnabled"] = autorest.Encode("query", *linuxWorkersEnabled)
}
+ if xenonWorkersEnabled != nil {
+ queryParameters["xenonWorkersEnabled"] = autorest.Encode("query", *xenonWorkersEnabled)
+ }
preparer := autorest.CreatePreparer(
autorest.AsGet(),
@@ -500,8 +509,8 @@ func (client BaseClient) listGeoRegionsNextResults(lastResults GeoRegionCollecti
}
// ListGeoRegionsComplete enumerates all values, automatically crossing page boundaries as required.
-func (client BaseClient) ListGeoRegionsComplete(ctx context.Context, sku SkuName, linuxWorkersEnabled *bool) (result GeoRegionCollectionIterator, err error) {
- result.page, err = client.ListGeoRegions(ctx, sku, linuxWorkersEnabled)
+func (client BaseClient) ListGeoRegionsComplete(ctx context.Context, sku SkuName, linuxWorkersEnabled *bool, xenonWorkersEnabled *bool) (result GeoRegionCollectionIterator, err error) {
+ result.page, err = client.ListGeoRegions(ctx, sku, linuxWorkersEnabled, xenonWorkersEnabled)
return
}
diff --git a/services/web/mgmt/2018-02-01/web/diagnostics.go b/services/web/mgmt/2018-02-01/web/diagnostics.go
index 728027815df4..5df60b305456 100644
--- a/services/web/mgmt/2018-02-01/web/diagnostics.go
+++ b/services/web/mgmt/2018-02-01/web/diagnostics.go
@@ -417,6 +417,97 @@ func (client DiagnosticsClient) ExecuteSiteDetectorSlotResponder(resp *http.Resp
return
}
+// GetHostingEnvironmentDetectorResponse get Hosting Environment Detector Response
+// Parameters:
+// resourceGroupName - name of the resource group to which the resource belongs.
+// name - app Service Environment Name
+// detectorName - detector Resource Name
+// startTime - start Time
+// endTime - end Time
+// timeGrain - time Grain
+func (client DiagnosticsClient) GetHostingEnvironmentDetectorResponse(ctx context.Context, resourceGroupName string, name string, detectorName string, startTime *date.Time, endTime *date.Time, timeGrain string) (result DetectorResponse, err error) {
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: resourceGroupName,
+ Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
+ {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
+ {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+[^\.]$`, Chain: nil}}},
+ {TargetValue: timeGrain,
+ Constraints: []validation.Constraint{{Target: "timeGrain", Name: validation.Pattern, Rule: `PT[1-9][0-9]+[SMH]`, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("web.DiagnosticsClient", "GetHostingEnvironmentDetectorResponse", err.Error())
+ }
+
+ req, err := client.GetHostingEnvironmentDetectorResponsePreparer(ctx, resourceGroupName, name, detectorName, startTime, endTime, timeGrain)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "GetHostingEnvironmentDetectorResponse", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetHostingEnvironmentDetectorResponseSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "GetHostingEnvironmentDetectorResponse", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetHostingEnvironmentDetectorResponseResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "GetHostingEnvironmentDetectorResponse", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetHostingEnvironmentDetectorResponsePreparer prepares the GetHostingEnvironmentDetectorResponse request.
+func (client DiagnosticsClient) GetHostingEnvironmentDetectorResponsePreparer(ctx context.Context, resourceGroupName string, name string, detectorName string, startTime *date.Time, endTime *date.Time, timeGrain string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "detectorName": autorest.Encode("path", detectorName),
+ "name": autorest.Encode("path", name),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2018-02-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+ if startTime != nil {
+ queryParameters["startTime"] = autorest.Encode("query", *startTime)
+ }
+ if endTime != nil {
+ queryParameters["endTime"] = autorest.Encode("query", *endTime)
+ }
+ if len(timeGrain) > 0 {
+ queryParameters["timeGrain"] = autorest.Encode("query", timeGrain)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/detectors/{detectorName}", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetHostingEnvironmentDetectorResponseSender sends the GetHostingEnvironmentDetectorResponse request. The method will close the
+// http.Response Body if it receives an error.
+func (client DiagnosticsClient) GetHostingEnvironmentDetectorResponseSender(req *http.Request) (*http.Response, error) {
+ return autorest.SendWithSender(client, req,
+ azure.DoRetryWithRegistration(client.Client))
+}
+
+// GetHostingEnvironmentDetectorResponseResponder handles the response to the GetHostingEnvironmentDetectorResponse request. The method always
+// closes the http.Response Body.
+func (client DiagnosticsClient) GetHostingEnvironmentDetectorResponseResponder(resp *http.Response) (result DetectorResponse, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
// GetSiteAnalysis get Site Analysis
// Parameters:
// resourceGroupName - name of the resource group to which the resource belongs.
@@ -684,6 +775,190 @@ func (client DiagnosticsClient) GetSiteDetectorComplete(ctx context.Context, res
return
}
+// GetSiteDetectorResponse get site detector response
+// Parameters:
+// resourceGroupName - name of the resource group to which the resource belongs.
+// siteName - site Name
+// detectorName - detector Resource Name
+// startTime - start Time
+// endTime - end Time
+// timeGrain - time Grain
+func (client DiagnosticsClient) GetSiteDetectorResponse(ctx context.Context, resourceGroupName string, siteName string, detectorName string, startTime *date.Time, endTime *date.Time, timeGrain string) (result DetectorResponse, err error) {
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: resourceGroupName,
+ Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
+ {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
+ {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+[^\.]$`, Chain: nil}}},
+ {TargetValue: timeGrain,
+ Constraints: []validation.Constraint{{Target: "timeGrain", Name: validation.Pattern, Rule: `PT[1-9][0-9]+[SMH]`, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("web.DiagnosticsClient", "GetSiteDetectorResponse", err.Error())
+ }
+
+ req, err := client.GetSiteDetectorResponsePreparer(ctx, resourceGroupName, siteName, detectorName, startTime, endTime, timeGrain)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "GetSiteDetectorResponse", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetSiteDetectorResponseSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "GetSiteDetectorResponse", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetSiteDetectorResponseResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "GetSiteDetectorResponse", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetSiteDetectorResponsePreparer prepares the GetSiteDetectorResponse request.
+func (client DiagnosticsClient) GetSiteDetectorResponsePreparer(ctx context.Context, resourceGroupName string, siteName string, detectorName string, startTime *date.Time, endTime *date.Time, timeGrain string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "detectorName": autorest.Encode("path", detectorName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "siteName": autorest.Encode("path", siteName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2018-02-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+ if startTime != nil {
+ queryParameters["startTime"] = autorest.Encode("query", *startTime)
+ }
+ if endTime != nil {
+ queryParameters["endTime"] = autorest.Encode("query", *endTime)
+ }
+ if len(timeGrain) > 0 {
+ queryParameters["timeGrain"] = autorest.Encode("query", timeGrain)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/detectors/{detectorName}", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetSiteDetectorResponseSender sends the GetSiteDetectorResponse request. The method will close the
+// http.Response Body if it receives an error.
+func (client DiagnosticsClient) GetSiteDetectorResponseSender(req *http.Request) (*http.Response, error) {
+ return autorest.SendWithSender(client, req,
+ azure.DoRetryWithRegistration(client.Client))
+}
+
+// GetSiteDetectorResponseResponder handles the response to the GetSiteDetectorResponse request. The method always
+// closes the http.Response Body.
+func (client DiagnosticsClient) GetSiteDetectorResponseResponder(resp *http.Response) (result DetectorResponse, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// GetSiteDetectorResponseSlot get site detector response
+// Parameters:
+// resourceGroupName - name of the resource group to which the resource belongs.
+// siteName - site Name
+// detectorName - detector Resource Name
+// slot - slot Name
+// startTime - start Time
+// endTime - end Time
+// timeGrain - time Grain
+func (client DiagnosticsClient) GetSiteDetectorResponseSlot(ctx context.Context, resourceGroupName string, siteName string, detectorName string, slot string, startTime *date.Time, endTime *date.Time, timeGrain string) (result DetectorResponse, err error) {
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: resourceGroupName,
+ Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
+ {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
+ {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+[^\.]$`, Chain: nil}}},
+ {TargetValue: timeGrain,
+ Constraints: []validation.Constraint{{Target: "timeGrain", Name: validation.Pattern, Rule: `PT[1-9][0-9]+[SMH]`, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("web.DiagnosticsClient", "GetSiteDetectorResponseSlot", err.Error())
+ }
+
+ req, err := client.GetSiteDetectorResponseSlotPreparer(ctx, resourceGroupName, siteName, detectorName, slot, startTime, endTime, timeGrain)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "GetSiteDetectorResponseSlot", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetSiteDetectorResponseSlotSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "GetSiteDetectorResponseSlot", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetSiteDetectorResponseSlotResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "GetSiteDetectorResponseSlot", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetSiteDetectorResponseSlotPreparer prepares the GetSiteDetectorResponseSlot request.
+func (client DiagnosticsClient) GetSiteDetectorResponseSlotPreparer(ctx context.Context, resourceGroupName string, siteName string, detectorName string, slot string, startTime *date.Time, endTime *date.Time, timeGrain string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "detectorName": autorest.Encode("path", detectorName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "siteName": autorest.Encode("path", siteName),
+ "slot": autorest.Encode("path", slot),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2018-02-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+ if startTime != nil {
+ queryParameters["startTime"] = autorest.Encode("query", *startTime)
+ }
+ if endTime != nil {
+ queryParameters["endTime"] = autorest.Encode("query", *endTime)
+ }
+ if len(timeGrain) > 0 {
+ queryParameters["timeGrain"] = autorest.Encode("query", timeGrain)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slot}/detectors/{detectorName}", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetSiteDetectorResponseSlotSender sends the GetSiteDetectorResponseSlot request. The method will close the
+// http.Response Body if it receives an error.
+func (client DiagnosticsClient) GetSiteDetectorResponseSlotSender(req *http.Request) (*http.Response, error) {
+ return autorest.SendWithSender(client, req,
+ azure.DoRetryWithRegistration(client.Client))
+}
+
+// GetSiteDetectorResponseSlotResponder handles the response to the GetSiteDetectorResponseSlot request. The method always
+// closes the http.Response Body.
+func (client DiagnosticsClient) GetSiteDetectorResponseSlotResponder(resp *http.Response) (result DetectorResponse, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
// GetSiteDetectorSlot get Detector
// Parameters:
// resourceGroupName - name of the resource group to which the resource belongs.
@@ -949,6 +1224,109 @@ func (client DiagnosticsClient) GetSiteDiagnosticCategorySlotResponder(resp *htt
return
}
+// ListHostingEnvironmentDetectorResponses list Hosting Environment Detector Responses
+// Parameters:
+// resourceGroupName - name of the resource group to which the resource belongs.
+// name - site Name
+func (client DiagnosticsClient) ListHostingEnvironmentDetectorResponses(ctx context.Context, resourceGroupName string, name string) (result DetectorResponseCollectionPage, err error) {
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: resourceGroupName,
+ Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
+ {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
+ {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+[^\.]$`, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("web.DiagnosticsClient", "ListHostingEnvironmentDetectorResponses", err.Error())
+ }
+
+ result.fn = client.listHostingEnvironmentDetectorResponsesNextResults
+ req, err := client.ListHostingEnvironmentDetectorResponsesPreparer(ctx, resourceGroupName, name)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "ListHostingEnvironmentDetectorResponses", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListHostingEnvironmentDetectorResponsesSender(req)
+ if err != nil {
+ result.drc.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "ListHostingEnvironmentDetectorResponses", resp, "Failure sending request")
+ return
+ }
+
+ result.drc, err = client.ListHostingEnvironmentDetectorResponsesResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "ListHostingEnvironmentDetectorResponses", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListHostingEnvironmentDetectorResponsesPreparer prepares the ListHostingEnvironmentDetectorResponses request.
+func (client DiagnosticsClient) ListHostingEnvironmentDetectorResponsesPreparer(ctx context.Context, resourceGroupName string, name string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "name": autorest.Encode("path", name),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2018-02-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/detectors", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListHostingEnvironmentDetectorResponsesSender sends the ListHostingEnvironmentDetectorResponses request. The method will close the
+// http.Response Body if it receives an error.
+func (client DiagnosticsClient) ListHostingEnvironmentDetectorResponsesSender(req *http.Request) (*http.Response, error) {
+ return autorest.SendWithSender(client, req,
+ azure.DoRetryWithRegistration(client.Client))
+}
+
+// ListHostingEnvironmentDetectorResponsesResponder handles the response to the ListHostingEnvironmentDetectorResponses request. The method always
+// closes the http.Response Body.
+func (client DiagnosticsClient) ListHostingEnvironmentDetectorResponsesResponder(resp *http.Response) (result DetectorResponseCollection, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listHostingEnvironmentDetectorResponsesNextResults retrieves the next set of results, if any.
+func (client DiagnosticsClient) listHostingEnvironmentDetectorResponsesNextResults(lastResults DetectorResponseCollection) (result DetectorResponseCollection, err error) {
+ req, err := lastResults.detectorResponseCollectionPreparer()
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "web.DiagnosticsClient", "listHostingEnvironmentDetectorResponsesNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListHostingEnvironmentDetectorResponsesSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "web.DiagnosticsClient", "listHostingEnvironmentDetectorResponsesNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListHostingEnvironmentDetectorResponsesResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "listHostingEnvironmentDetectorResponsesNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListHostingEnvironmentDetectorResponsesComplete enumerates all values, automatically crossing page boundaries as required.
+func (client DiagnosticsClient) ListHostingEnvironmentDetectorResponsesComplete(ctx context.Context, resourceGroupName string, name string) (result DetectorResponseCollectionIterator, err error) {
+ result.page, err = client.ListHostingEnvironmentDetectorResponses(ctx, resourceGroupName, name)
+ return
+}
+
// ListSiteAnalyses get Site Analyses
// Parameters:
// resourceGroupName - name of the resource group to which the resource belongs.
@@ -1161,6 +1539,214 @@ func (client DiagnosticsClient) ListSiteAnalysesSlotComplete(ctx context.Context
return
}
+// ListSiteDetectorResponses list Site Detector Responses
+// Parameters:
+// resourceGroupName - name of the resource group to which the resource belongs.
+// siteName - site Name
+func (client DiagnosticsClient) ListSiteDetectorResponses(ctx context.Context, resourceGroupName string, siteName string) (result DetectorResponseCollectionPage, err error) {
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: resourceGroupName,
+ Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
+ {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
+ {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+[^\.]$`, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("web.DiagnosticsClient", "ListSiteDetectorResponses", err.Error())
+ }
+
+ result.fn = client.listSiteDetectorResponsesNextResults
+ req, err := client.ListSiteDetectorResponsesPreparer(ctx, resourceGroupName, siteName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "ListSiteDetectorResponses", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListSiteDetectorResponsesSender(req)
+ if err != nil {
+ result.drc.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "ListSiteDetectorResponses", resp, "Failure sending request")
+ return
+ }
+
+ result.drc, err = client.ListSiteDetectorResponsesResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "ListSiteDetectorResponses", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListSiteDetectorResponsesPreparer prepares the ListSiteDetectorResponses request.
+func (client DiagnosticsClient) ListSiteDetectorResponsesPreparer(ctx context.Context, resourceGroupName string, siteName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "siteName": autorest.Encode("path", siteName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2018-02-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/detectors", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListSiteDetectorResponsesSender sends the ListSiteDetectorResponses request. The method will close the
+// http.Response Body if it receives an error.
+func (client DiagnosticsClient) ListSiteDetectorResponsesSender(req *http.Request) (*http.Response, error) {
+ return autorest.SendWithSender(client, req,
+ azure.DoRetryWithRegistration(client.Client))
+}
+
+// ListSiteDetectorResponsesResponder handles the response to the ListSiteDetectorResponses request. The method always
+// closes the http.Response Body.
+func (client DiagnosticsClient) ListSiteDetectorResponsesResponder(resp *http.Response) (result DetectorResponseCollection, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listSiteDetectorResponsesNextResults retrieves the next set of results, if any.
+func (client DiagnosticsClient) listSiteDetectorResponsesNextResults(lastResults DetectorResponseCollection) (result DetectorResponseCollection, err error) {
+ req, err := lastResults.detectorResponseCollectionPreparer()
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "web.DiagnosticsClient", "listSiteDetectorResponsesNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListSiteDetectorResponsesSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "web.DiagnosticsClient", "listSiteDetectorResponsesNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListSiteDetectorResponsesResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "listSiteDetectorResponsesNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListSiteDetectorResponsesComplete enumerates all values, automatically crossing page boundaries as required.
+func (client DiagnosticsClient) ListSiteDetectorResponsesComplete(ctx context.Context, resourceGroupName string, siteName string) (result DetectorResponseCollectionIterator, err error) {
+ result.page, err = client.ListSiteDetectorResponses(ctx, resourceGroupName, siteName)
+ return
+}
+
+// ListSiteDetectorResponsesSlot list Site Detector Responses
+// Parameters:
+// resourceGroupName - name of the resource group to which the resource belongs.
+// siteName - site Name
+// slot - slot Name
+func (client DiagnosticsClient) ListSiteDetectorResponsesSlot(ctx context.Context, resourceGroupName string, siteName string, slot string) (result DetectorResponseCollectionPage, err error) {
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: resourceGroupName,
+ Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
+ {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
+ {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+[^\.]$`, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("web.DiagnosticsClient", "ListSiteDetectorResponsesSlot", err.Error())
+ }
+
+ result.fn = client.listSiteDetectorResponsesSlotNextResults
+ req, err := client.ListSiteDetectorResponsesSlotPreparer(ctx, resourceGroupName, siteName, slot)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "ListSiteDetectorResponsesSlot", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListSiteDetectorResponsesSlotSender(req)
+ if err != nil {
+ result.drc.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "ListSiteDetectorResponsesSlot", resp, "Failure sending request")
+ return
+ }
+
+ result.drc, err = client.ListSiteDetectorResponsesSlotResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "ListSiteDetectorResponsesSlot", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListSiteDetectorResponsesSlotPreparer prepares the ListSiteDetectorResponsesSlot request.
+func (client DiagnosticsClient) ListSiteDetectorResponsesSlotPreparer(ctx context.Context, resourceGroupName string, siteName string, slot string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "siteName": autorest.Encode("path", siteName),
+ "slot": autorest.Encode("path", slot),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2018-02-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slot}/detectors", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListSiteDetectorResponsesSlotSender sends the ListSiteDetectorResponsesSlot request. The method will close the
+// http.Response Body if it receives an error.
+func (client DiagnosticsClient) ListSiteDetectorResponsesSlotSender(req *http.Request) (*http.Response, error) {
+ return autorest.SendWithSender(client, req,
+ azure.DoRetryWithRegistration(client.Client))
+}
+
+// ListSiteDetectorResponsesSlotResponder handles the response to the ListSiteDetectorResponsesSlot request. The method always
+// closes the http.Response Body.
+func (client DiagnosticsClient) ListSiteDetectorResponsesSlotResponder(resp *http.Response) (result DetectorResponseCollection, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listSiteDetectorResponsesSlotNextResults retrieves the next set of results, if any.
+func (client DiagnosticsClient) listSiteDetectorResponsesSlotNextResults(lastResults DetectorResponseCollection) (result DetectorResponseCollection, err error) {
+ req, err := lastResults.detectorResponseCollectionPreparer()
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "web.DiagnosticsClient", "listSiteDetectorResponsesSlotNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListSiteDetectorResponsesSlotSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "web.DiagnosticsClient", "listSiteDetectorResponsesSlotNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListSiteDetectorResponsesSlotResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "web.DiagnosticsClient", "listSiteDetectorResponsesSlotNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListSiteDetectorResponsesSlotComplete enumerates all values, automatically crossing page boundaries as required.
+func (client DiagnosticsClient) ListSiteDetectorResponsesSlotComplete(ctx context.Context, resourceGroupName string, siteName string, slot string) (result DetectorResponseCollectionIterator, err error) {
+ result.page, err = client.ListSiteDetectorResponsesSlot(ctx, resourceGroupName, siteName, slot)
+ return
+}
+
// ListSiteDetectors get Detectors
// Parameters:
// resourceGroupName - name of the resource group to which the resource belongs.
diff --git a/services/web/mgmt/2018-02-01/web/models.go b/services/web/mgmt/2018-02-01/web/models.go
index 692456de6208..2e2c3018a1c9 100644
--- a/services/web/mgmt/2018-02-01/web/models.go
+++ b/services/web/mgmt/2018-02-01/web/models.go
@@ -639,6 +639,21 @@ func PossibleInternalLoadBalancingModeValues() []InternalLoadBalancingMode {
return []InternalLoadBalancingMode{InternalLoadBalancingModeNone, InternalLoadBalancingModePublishing, InternalLoadBalancingModeWeb}
}
+// IPFilterTag enumerates the values for ip filter tag.
+type IPFilterTag string
+
+const (
+ // Default ...
+ Default IPFilterTag = "Default"
+ // XffProxy ...
+ XffProxy IPFilterTag = "XffProxy"
+)
+
+// PossibleIPFilterTagValues returns an array of possible values for the IPFilterTag const type.
+func PossibleIPFilterTagValues() []IPFilterTag {
+ return []IPFilterTag{Default, XffProxy}
+}
+
// IssueType enumerates the values for issue type.
type IssueType string
@@ -913,6 +928,25 @@ func PossiblePublishingProfileFormatValues() []PublishingProfileFormat {
return []PublishingProfileFormat{FileZilla3, Ftp, WebDeploy}
}
+// RenderingType enumerates the values for rendering type.
+type RenderingType string
+
+const (
+ // NoGraph ...
+ NoGraph RenderingType = "NoGraph"
+ // Table ...
+ Table RenderingType = "Table"
+ // TimeSeries ...
+ TimeSeries RenderingType = "TimeSeries"
+ // TimeSeriesPerInstance ...
+ TimeSeriesPerInstance RenderingType = "TimeSeriesPerInstance"
+)
+
+// PossibleRenderingTypeValues returns an array of possible values for the RenderingType const type.
+func PossibleRenderingTypeValues() []RenderingType {
+ return []RenderingType{NoGraph, Table, TimeSeries, TimeSeriesPerInstance}
+}
+
// ResourceScopeType enumerates the values for resource scope type.
type ResourceScopeType string
@@ -1198,25 +1232,25 @@ func PossibleValidateResourceTypesValues() []ValidateResourceTypes {
type WorkerSizeOptions string
const (
- // D1 ...
- D1 WorkerSizeOptions = "D1"
- // D2 ...
- D2 WorkerSizeOptions = "D2"
- // D3 ...
- D3 WorkerSizeOptions = "D3"
- // Default ...
- Default WorkerSizeOptions = "Default"
- // Large ...
- Large WorkerSizeOptions = "Large"
- // Medium ...
- Medium WorkerSizeOptions = "Medium"
- // Small ...
- Small WorkerSizeOptions = "Small"
+ // WorkerSizeOptionsD1 ...
+ WorkerSizeOptionsD1 WorkerSizeOptions = "D1"
+ // WorkerSizeOptionsD2 ...
+ WorkerSizeOptionsD2 WorkerSizeOptions = "D2"
+ // WorkerSizeOptionsD3 ...
+ WorkerSizeOptionsD3 WorkerSizeOptions = "D3"
+ // WorkerSizeOptionsDefault ...
+ WorkerSizeOptionsDefault WorkerSizeOptions = "Default"
+ // WorkerSizeOptionsLarge ...
+ WorkerSizeOptionsLarge WorkerSizeOptions = "Large"
+ // WorkerSizeOptionsMedium ...
+ WorkerSizeOptionsMedium WorkerSizeOptions = "Medium"
+ // WorkerSizeOptionsSmall ...
+ WorkerSizeOptionsSmall WorkerSizeOptions = "Small"
)
// PossibleWorkerSizeOptionsValues returns an array of possible values for the WorkerSizeOptions const type.
func PossibleWorkerSizeOptionsValues() []WorkerSizeOptions {
- return []WorkerSizeOptions{D1, D2, D3, Default, Large, Medium, Small}
+ return []WorkerSizeOptions{WorkerSizeOptionsD1, WorkerSizeOptionsD2, WorkerSizeOptionsD3, WorkerSizeOptionsDefault, WorkerSizeOptionsLarge, WorkerSizeOptionsMedium, WorkerSizeOptionsSmall}
}
// AbnormalTimePeriod class representing Abnormal Time Period identified in diagnosis
@@ -3002,6 +3036,10 @@ type AppServiceEnvironment struct {
UserWhitelistedIPRanges *[]string `json:"userWhitelistedIpRanges,omitempty"`
// HasLinuxWorkers - Flag that displays whether an ASE has linux workers or not
HasLinuxWorkers *bool `json:"hasLinuxWorkers,omitempty"`
+ // SslCertKeyVaultID - Key Vault ID for ILB App Service Environment default SSL certificate
+ SslCertKeyVaultID *string `json:"sslCertKeyVaultId,omitempty"`
+ // SslCertKeyVaultSecretName - Key Vault Secret Name for ILB App Service Environment default SSL certificate
+ SslCertKeyVaultSecretName *string `json:"sslCertKeyVaultSecretName,omitempty"`
}
// AppServiceEnvironmentCollection collection of App Service Environments.
@@ -3969,6 +4007,8 @@ type AppServicePlanPatchResourceProperties struct {
IsSpot *bool `json:"isSpot,omitempty"`
// SpotExpirationTime - The time when the server farm expires. Valid only if it is a spot server farm.
SpotExpirationTime *date.Time `json:"spotExpirationTime,omitempty"`
+ // FreeOfferExpirationTime - The time when the server farm free offer expires.
+ FreeOfferExpirationTime *date.Time `json:"freeOfferExpirationTime,omitempty"`
// ResourceGroup - Resource group of the App Service plan.
ResourceGroup *string `json:"resourceGroup,omitempty"`
// Reserved - If Linux app service plan true
, false
otherwise.
@@ -4008,6 +4048,8 @@ type AppServicePlanProperties struct {
IsSpot *bool `json:"isSpot,omitempty"`
// SpotExpirationTime - The time when the server farm expires. Valid only if it is a spot server farm.
SpotExpirationTime *date.Time `json:"spotExpirationTime,omitempty"`
+ // FreeOfferExpirationTime - The time when the server farm free offer expires.
+ FreeOfferExpirationTime *date.Time `json:"freeOfferExpirationTime,omitempty"`
// ResourceGroup - Resource group of the App Service plan.
ResourceGroup *string `json:"resourceGroup,omitempty"`
// Reserved - If Linux app service plan true
, false
otherwise.
@@ -5086,6 +5128,8 @@ type BillingMeterProperties struct {
FriendlyName *string `json:"friendlyName,omitempty"`
// ResourceType - App Service ResourceType meter used for
ResourceType *string `json:"resourceType,omitempty"`
+ // OsType - App Service OS type meter used for
+ OsType *string `json:"osType,omitempty"`
}
// Capability describes the capabilities/features allowed for a specific SKU.
@@ -6544,6 +6588,26 @@ type DataSource struct {
DataSourceURI *[]NameValuePair `json:"dataSourceUri,omitempty"`
}
+// DataTableResponseColumn column definition
+type DataTableResponseColumn struct {
+ // ColumnName - Name of the column
+ ColumnName *string `json:"columnName,omitempty"`
+ // DataType - Data type which looks like 'String' or 'Int32'.
+ DataType *string `json:"dataType,omitempty"`
+ // ColumnType - Column Type
+ ColumnType *string `json:"columnType,omitempty"`
+}
+
+// DataTableResponseObject data Table which defines columns and raw row values
+type DataTableResponseObject struct {
+ // TableName - Name of the table
+ TableName *string `json:"tableName,omitempty"`
+ // Columns - List of columns with data types
+ Columns *[]DataTableResponseColumn `json:"columns,omitempty"`
+ // Rows - Raw row values
+ Rows *[][]string `json:"rows,omitempty"`
+}
+
// DefaultErrorResponse app Service error response.
type DefaultErrorResponse struct {
// Error - Error model.
@@ -7157,6 +7221,224 @@ type DetectorDefinitionProperties struct {
IsEnabled *bool `json:"isEnabled,omitempty"`
}
+// DetectorInfo definition of Detector
+type DetectorInfo struct {
+ // Description - Short description of the detector and its purpose
+ Description *string `json:"description,omitempty"`
+ // Category - Support Category
+ Category *string `json:"category,omitempty"`
+ // SubCategory - Support Sub Category
+ SubCategory *string `json:"subCategory,omitempty"`
+ // SupportTopicID - Support Topic Id
+ SupportTopicID *string `json:"supportTopicId,omitempty"`
+}
+
+// DetectorResponse class representing Response from Detector
+type DetectorResponse struct {
+ autorest.Response `json:"-"`
+ // DetectorResponseProperties - DetectorResponse resource specific properties
+ *DetectorResponseProperties `json:"properties,omitempty"`
+ // ID - Resource Id.
+ ID *string `json:"id,omitempty"`
+ // Name - Resource Name.
+ Name *string `json:"name,omitempty"`
+ // Kind - Kind of resource.
+ Kind *string `json:"kind,omitempty"`
+ // Type - Resource type.
+ Type *string `json:"type,omitempty"`
+}
+
+// MarshalJSON is the custom marshaler for DetectorResponse.
+func (dr DetectorResponse) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ if dr.DetectorResponseProperties != nil {
+ objectMap["properties"] = dr.DetectorResponseProperties
+ }
+ if dr.ID != nil {
+ objectMap["id"] = dr.ID
+ }
+ if dr.Name != nil {
+ objectMap["name"] = dr.Name
+ }
+ if dr.Kind != nil {
+ objectMap["kind"] = dr.Kind
+ }
+ if dr.Type != nil {
+ objectMap["type"] = dr.Type
+ }
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON is the custom unmarshaler for DetectorResponse struct.
+func (dr *DetectorResponse) 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 detectorResponseProperties DetectorResponseProperties
+ err = json.Unmarshal(*v, &detectorResponseProperties)
+ if err != nil {
+ return err
+ }
+ dr.DetectorResponseProperties = &detectorResponseProperties
+ }
+ case "id":
+ if v != nil {
+ var ID string
+ err = json.Unmarshal(*v, &ID)
+ if err != nil {
+ return err
+ }
+ dr.ID = &ID
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ dr.Name = &name
+ }
+ case "kind":
+ if v != nil {
+ var kind string
+ err = json.Unmarshal(*v, &kind)
+ if err != nil {
+ return err
+ }
+ dr.Kind = &kind
+ }
+ case "type":
+ if v != nil {
+ var typeVar string
+ err = json.Unmarshal(*v, &typeVar)
+ if err != nil {
+ return err
+ }
+ dr.Type = &typeVar
+ }
+ }
+ }
+
+ return nil
+}
+
+// DetectorResponseCollection collection of detector responses
+type DetectorResponseCollection struct {
+ autorest.Response `json:"-"`
+ // Value - Collection of resources.
+ Value *[]DetectorResponse `json:"value,omitempty"`
+ // NextLink - Link to next page of resources.
+ NextLink *string `json:"nextLink,omitempty"`
+}
+
+// DetectorResponseCollectionIterator provides access to a complete listing of DetectorResponse values.
+type DetectorResponseCollectionIterator struct {
+ i int
+ page DetectorResponseCollectionPage
+}
+
+// Next advances to the next value. If there was an error making
+// the request the iterator does not advance and the error is returned.
+func (iter *DetectorResponseCollectionIterator) Next() error {
+ iter.i++
+ if iter.i < len(iter.page.Values()) {
+ return nil
+ }
+ err := iter.page.Next()
+ if err != nil {
+ iter.i--
+ return err
+ }
+ iter.i = 0
+ return nil
+}
+
+// NotDone returns true if the enumeration should be started or is not yet complete.
+func (iter DetectorResponseCollectionIterator) NotDone() bool {
+ return iter.page.NotDone() && iter.i < len(iter.page.Values())
+}
+
+// Response returns the raw server response from the last page request.
+func (iter DetectorResponseCollectionIterator) Response() DetectorResponseCollection {
+ return iter.page.Response()
+}
+
+// Value returns the current value or a zero-initialized value if the
+// iterator has advanced beyond the end of the collection.
+func (iter DetectorResponseCollectionIterator) Value() DetectorResponse {
+ if !iter.page.NotDone() {
+ return DetectorResponse{}
+ }
+ return iter.page.Values()[iter.i]
+}
+
+// IsEmpty returns true if the ListResult contains no values.
+func (drc DetectorResponseCollection) IsEmpty() bool {
+ return drc.Value == nil || len(*drc.Value) == 0
+}
+
+// detectorResponseCollectionPreparer prepares a request to retrieve the next set of results.
+// It returns nil if no more results exist.
+func (drc DetectorResponseCollection) detectorResponseCollectionPreparer() (*http.Request, error) {
+ if drc.NextLink == nil || len(to.String(drc.NextLink)) < 1 {
+ return nil, nil
+ }
+ return autorest.Prepare(&http.Request{},
+ autorest.AsJSON(),
+ autorest.AsGet(),
+ autorest.WithBaseURL(to.String(drc.NextLink)))
+}
+
+// DetectorResponseCollectionPage contains a page of DetectorResponse values.
+type DetectorResponseCollectionPage struct {
+ fn func(DetectorResponseCollection) (DetectorResponseCollection, error)
+ drc DetectorResponseCollection
+}
+
+// Next advances to the next page of values. If there was an error making
+// the request the page does not advance and the error is returned.
+func (page *DetectorResponseCollectionPage) Next() error {
+ next, err := page.fn(page.drc)
+ if err != nil {
+ return err
+ }
+ page.drc = next
+ return nil
+}
+
+// NotDone returns true if the page enumeration should be started or is not yet complete.
+func (page DetectorResponseCollectionPage) NotDone() bool {
+ return !page.drc.IsEmpty()
+}
+
+// Response returns the raw server response from the last page request.
+func (page DetectorResponseCollectionPage) Response() DetectorResponseCollection {
+ return page.drc
+}
+
+// Values returns the slice of values for the current page or nil if there are no values.
+func (page DetectorResponseCollectionPage) Values() []DetectorResponse {
+ if page.drc.IsEmpty() {
+ return nil
+ }
+ return *page.drc.Value
+}
+
+// DetectorResponseProperties detectorResponse resource specific properties
+type DetectorResponseProperties struct {
+ // Metadata - metadata for the detector
+ Metadata *DetectorInfo `json:"metadata,omitempty"`
+ // Dataset - Data Set
+ Dataset *[]DiagnosticData `json:"dataset,omitempty"`
+}
+
// DiagnosticAnalysis class representing a diagnostic analysis done on an application
type DiagnosticAnalysis struct {
autorest.Response `json:"-"`
@@ -7573,6 +7855,14 @@ type DiagnosticCategoryProperties struct {
Description *string `json:"description,omitempty"`
}
+// DiagnosticData set of data with rendering instructions
+type DiagnosticData struct {
+ // Table - Data in table form
+ Table *DataTableResponseObject `json:"table,omitempty"`
+ // RenderingProperties - Properties that describe how the table should be rendered
+ RenderingProperties *Rendering `json:"renderingProperties,omitempty"`
+}
+
// DiagnosticDetectorCollection collection of Diagnostic Detectors
type DiagnosticDetectorCollection struct {
autorest.Response `json:"-"`
@@ -10079,9 +10369,22 @@ type IdentifierProperties struct {
// IPSecurityRestriction IP security restriction on an app.
type IPSecurityRestriction struct {
// IPAddress - IP address the security restriction is valid for.
+ // It can be in form of pure ipv4 address (required SubnetMask property) or
+ // CIDR notation such as ipv4/mask (leading bit match). For CIDR,
+ // SubnetMask property must not be specified.
IPAddress *string `json:"ipAddress,omitempty"`
// SubnetMask - Subnet mask for the range of IP addresses the restriction is valid for.
SubnetMask *string `json:"subnetMask,omitempty"`
+ // Action - Allow or Deny access for this IP range.
+ Action *string `json:"action,omitempty"`
+ // Tag - Defines what this IP filter will be used for. This is to support IP filtering on proxies. Possible values include: 'Default', 'XffProxy'
+ Tag IPFilterTag `json:"tag,omitempty"`
+ // Priority - Priority of IP restriction rule.
+ Priority *int32 `json:"priority,omitempty"`
+ // Name - IP restriction rule name.
+ Name *string `json:"name,omitempty"`
+ // Description - IP restriction rule description.
+ Description *string `json:"description,omitempty"`
}
// Job web Job Information.
@@ -10377,6 +10680,13 @@ type LocalizableString struct {
LocalizedValue *string `json:"localizedValue,omitempty"`
}
+// LogSpecification log Definition of a single resource metric.
+type LogSpecification struct {
+ Name *string `json:"name,omitempty"`
+ DisplayName *string `json:"displayName,omitempty"`
+ BlobDuration *string `json:"blobDuration,omitempty"`
+}
+
// ManagedServiceIdentity managed service identity.
type ManagedServiceIdentity struct {
// Type - Type of managed service identity. Possible values include: 'SystemAssigned', 'UserAssigned'
@@ -11843,6 +12153,115 @@ type PremierAddOnOfferProperties struct {
MarketplaceOffer *string `json:"marketplaceOffer,omitempty"`
}
+// PremierAddOnPatchResource ARM resource for a PremierAddOn.
+type PremierAddOnPatchResource struct {
+ // PremierAddOnPatchResourceProperties - PremierAddOnPatchResource resource specific properties
+ *PremierAddOnPatchResourceProperties `json:"properties,omitempty"`
+ // ID - Resource Id.
+ ID *string `json:"id,omitempty"`
+ // Name - Resource Name.
+ Name *string `json:"name,omitempty"`
+ // Kind - Kind of resource.
+ Kind *string `json:"kind,omitempty"`
+ // Type - Resource type.
+ Type *string `json:"type,omitempty"`
+}
+
+// MarshalJSON is the custom marshaler for PremierAddOnPatchResource.
+func (paopr PremierAddOnPatchResource) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ if paopr.PremierAddOnPatchResourceProperties != nil {
+ objectMap["properties"] = paopr.PremierAddOnPatchResourceProperties
+ }
+ if paopr.ID != nil {
+ objectMap["id"] = paopr.ID
+ }
+ if paopr.Name != nil {
+ objectMap["name"] = paopr.Name
+ }
+ if paopr.Kind != nil {
+ objectMap["kind"] = paopr.Kind
+ }
+ if paopr.Type != nil {
+ objectMap["type"] = paopr.Type
+ }
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON is the custom unmarshaler for PremierAddOnPatchResource struct.
+func (paopr *PremierAddOnPatchResource) 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 premierAddOnPatchResourceProperties PremierAddOnPatchResourceProperties
+ err = json.Unmarshal(*v, &premierAddOnPatchResourceProperties)
+ if err != nil {
+ return err
+ }
+ paopr.PremierAddOnPatchResourceProperties = &premierAddOnPatchResourceProperties
+ }
+ case "id":
+ if v != nil {
+ var ID string
+ err = json.Unmarshal(*v, &ID)
+ if err != nil {
+ return err
+ }
+ paopr.ID = &ID
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ paopr.Name = &name
+ }
+ case "kind":
+ if v != nil {
+ var kind string
+ err = json.Unmarshal(*v, &kind)
+ if err != nil {
+ return err
+ }
+ paopr.Kind = &kind
+ }
+ case "type":
+ if v != nil {
+ var typeVar string
+ err = json.Unmarshal(*v, &typeVar)
+ if err != nil {
+ return err
+ }
+ paopr.Type = &typeVar
+ }
+ }
+ }
+
+ return nil
+}
+
+// PremierAddOnPatchResourceProperties premierAddOnPatchResource resource specific properties
+type PremierAddOnPatchResourceProperties struct {
+ // Sku - Premier add on SKU.
+ Sku *string `json:"sku,omitempty"`
+ // Product - Premier add on Product.
+ Product *string `json:"product,omitempty"`
+ // Vendor - Premier add on Vendor.
+ Vendor *string `json:"vendor,omitempty"`
+ // MarketplacePublisher - Premier add on Marketplace publisher.
+ MarketplacePublisher *string `json:"marketplacePublisher,omitempty"`
+ // MarketplaceOffer - Premier add on Marketplace offer.
+ MarketplaceOffer *string `json:"marketplaceOffer,omitempty"`
+}
+
// PremierAddOnProperties premierAddOn resource specific properties
type PremierAddOnProperties struct {
// Sku - Premier add on SKU.
@@ -13770,6 +14189,16 @@ type RelayServiceConnectionEntityProperties struct {
BiztalkURI *string `json:"biztalkUri,omitempty"`
}
+// Rendering instructions for rendering the data
+type Rendering struct {
+ // Type - Rendering Type. Possible values include: 'NoGraph', 'Table', 'TimeSeries', 'TimeSeriesPerInstance'
+ Type RenderingType `json:"type,omitempty"`
+ // Title - Title of data
+ Title *string `json:"title,omitempty"`
+ // Description - Description of the data that will help it be interpreted
+ Description *string `json:"description,omitempty"`
+}
+
// RenewCertificateOrderRequest class representing certificate renew request.
type RenewCertificateOrderRequest struct {
// RenewCertificateOrderRequestProperties - RenewCertificateOrderRequest resource specific properties
@@ -14577,6 +15006,7 @@ type RestoreRequestProperties struct {
// ServiceSpecification resource metrics service provided by Microsoft.Insights resource provider.
type ServiceSpecification struct {
MetricSpecifications *[]MetricSpecification `json:"metricSpecifications,omitempty"`
+ LogSpecifications *[]LogSpecification `json:"logSpecifications,omitempty"`
}
// SetObject ...
@@ -14949,8 +15379,8 @@ type SiteConfig struct {
NodeVersion *string `json:"nodeVersion,omitempty"`
// LinuxFxVersion - Linux App Framework and version
LinuxFxVersion *string `json:"linuxFxVersion,omitempty"`
- // XenonFxVersion - Xenon App Framework and version
- XenonFxVersion *string `json:"xenonFxVersion,omitempty"`
+ // WindowsFxVersion - Xenon App Framework and version
+ WindowsFxVersion *string `json:"windowsFxVersion,omitempty"`
// RequestTracingEnabled - true
if request tracing is enabled; otherwise, false
.
RequestTracingEnabled *bool `json:"requestTracingEnabled,omitempty"`
// RequestTracingExpirationTime - Request tracing expiration time.
@@ -15033,6 +15463,9 @@ type SiteConfig struct {
MinTLSVersion SupportedTLSVersions `json:"minTlsVersion,omitempty"`
// FtpsState - State of FTP / FTPS service. Possible values include: 'AllAllowed', 'FtpsOnly', 'Disabled'
FtpsState FtpsState `json:"ftpsState,omitempty"`
+ // ReservedInstanceCount - Number of reserved instances.
+ // This setting only applies to the Consumption Plan
+ ReservedInstanceCount *int32 `json:"reservedInstanceCount,omitempty"`
}
// SiteConfigResource web app configuration ARM resource.
@@ -16066,8 +16499,6 @@ type SitePatchResourceProperties struct {
MaxNumberOfWorkers *int32 `json:"maxNumberOfWorkers,omitempty"`
// CloningInfo - If specified during app creation, the app is cloned from a source app.
CloningInfo *CloningInfo `json:"cloningInfo,omitempty"`
- // SnapshotInfo - If specified during app creation, the app is created from a previous snapshot.
- SnapshotInfo *SnapshotRecoveryRequest `json:"snapshotInfo,omitempty"`
// ResourceGroup - Name of the resource group the app belongs to. Read-only.
ResourceGroup *string `json:"resourceGroup,omitempty"`
// IsDefaultContainer - true
if the app is a default container; otherwise, false
.
@@ -16248,8 +16679,6 @@ type SiteProperties struct {
MaxNumberOfWorkers *int32 `json:"maxNumberOfWorkers,omitempty"`
// CloningInfo - If specified during app creation, the app is cloned from a source app.
CloningInfo *CloningInfo `json:"cloningInfo,omitempty"`
- // SnapshotInfo - If specified during app creation, the app is created from a previous snapshot.
- SnapshotInfo *SnapshotRecoveryRequest `json:"snapshotInfo,omitempty"`
// ResourceGroup - Name of the resource group the app belongs to. Read-only.
ResourceGroup *string `json:"resourceGroup,omitempty"`
// IsDefaultContainer - true
if the app is a default container; otherwise, false
.
@@ -17085,116 +17514,6 @@ type SnapshotProperties struct {
Time *string `json:"time,omitempty"`
}
-// SnapshotRecoveryRequest details about app recovery operation.
-type SnapshotRecoveryRequest struct {
- // SnapshotRecoveryRequestProperties - SnapshotRecoveryRequest resource specific properties
- *SnapshotRecoveryRequestProperties `json:"properties,omitempty"`
- // ID - Resource Id.
- ID *string `json:"id,omitempty"`
- // Name - Resource Name.
- Name *string `json:"name,omitempty"`
- // Kind - Kind of resource.
- Kind *string `json:"kind,omitempty"`
- // Type - Resource type.
- Type *string `json:"type,omitempty"`
-}
-
-// MarshalJSON is the custom marshaler for SnapshotRecoveryRequest.
-func (srr SnapshotRecoveryRequest) MarshalJSON() ([]byte, error) {
- objectMap := make(map[string]interface{})
- if srr.SnapshotRecoveryRequestProperties != nil {
- objectMap["properties"] = srr.SnapshotRecoveryRequestProperties
- }
- if srr.ID != nil {
- objectMap["id"] = srr.ID
- }
- if srr.Name != nil {
- objectMap["name"] = srr.Name
- }
- if srr.Kind != nil {
- objectMap["kind"] = srr.Kind
- }
- if srr.Type != nil {
- objectMap["type"] = srr.Type
- }
- return json.Marshal(objectMap)
-}
-
-// UnmarshalJSON is the custom unmarshaler for SnapshotRecoveryRequest struct.
-func (srr *SnapshotRecoveryRequest) 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 snapshotRecoveryRequestProperties SnapshotRecoveryRequestProperties
- err = json.Unmarshal(*v, &snapshotRecoveryRequestProperties)
- if err != nil {
- return err
- }
- srr.SnapshotRecoveryRequestProperties = &snapshotRecoveryRequestProperties
- }
- case "id":
- if v != nil {
- var ID string
- err = json.Unmarshal(*v, &ID)
- if err != nil {
- return err
- }
- srr.ID = &ID
- }
- case "name":
- if v != nil {
- var name string
- err = json.Unmarshal(*v, &name)
- if err != nil {
- return err
- }
- srr.Name = &name
- }
- case "kind":
- if v != nil {
- var kind string
- err = json.Unmarshal(*v, &kind)
- if err != nil {
- return err
- }
- srr.Kind = &kind
- }
- case "type":
- if v != nil {
- var typeVar string
- err = json.Unmarshal(*v, &typeVar)
- if err != nil {
- return err
- }
- srr.Type = &typeVar
- }
- }
- }
-
- return nil
-}
-
-// SnapshotRecoveryRequestProperties snapshotRecoveryRequest resource specific properties
-type SnapshotRecoveryRequestProperties struct {
- // SnapshotTime - Point in time in which the app recovery should be attempted, formatted as a DateTime string.
- SnapshotTime *string `json:"snapshotTime,omitempty"`
- // RecoveryTarget - Specifies the web app that snapshot contents will be written to.
- RecoveryTarget *SnapshotRecoveryTarget `json:"recoveryTarget,omitempty"`
- // Overwrite - If true
the recovery operation can overwrite source app; otherwise, false
.
- Overwrite *bool `json:"overwrite,omitempty"`
- // RecoverConfiguration - If true, site configuration, in addition to content, will be reverted.
- RecoverConfiguration *bool `json:"recoverConfiguration,omitempty"`
- // IgnoreConflictingHostNames - If true, custom hostname conflicts will be ignored when recovering to a target web app.
- // This setting is only necessary when RecoverConfiguration is enabled.
- IgnoreConflictingHostNames *bool `json:"ignoreConflictingHostNames,omitempty"`
-}
-
// SnapshotRecoverySource specifies the web app that snapshot contents will be retrieved from.
type SnapshotRecoverySource struct {
// Location - Geographical location of the source web app, e.g. SouthEastAsia, SouthCentralUS
@@ -17205,16 +17524,6 @@ type SnapshotRecoverySource struct {
ID *string `json:"id,omitempty"`
}
-// SnapshotRecoveryTarget specifies the web app that snapshot contents will be written to.
-type SnapshotRecoveryTarget struct {
- // Location - Geographical location of the target web app, e.g. SouthEastAsia, SouthCentralUS
- Location *string `json:"location,omitempty"`
- // ID - ARM resource ID of the target app.
- // /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName} for production slots and
- // /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slotName} for other slots.
- ID *string `json:"id,omitempty"`
-}
-
// SnapshotRestoreRequest details about app recovery operation.
type SnapshotRestoreRequest struct {
// SnapshotRestoreRequestProperties - SnapshotRestoreRequest resource specific properties
@@ -17588,7 +17897,7 @@ type StampCapacity struct {
Unit *string `json:"unit,omitempty"`
// ComputeMode - Shared/dedicated workers. Possible values include: 'ComputeModeOptionsShared', 'ComputeModeOptionsDedicated', 'ComputeModeOptionsDynamic'
ComputeMode ComputeModeOptions `json:"computeMode,omitempty"`
- // WorkerSize - Size of the machines. Possible values include: 'Small', 'Medium', 'Large', 'D1', 'D2', 'D3', 'Default'
+ // WorkerSize - Size of the machines. Possible values include: 'WorkerSizeOptionsSmall', 'WorkerSizeOptionsMedium', 'WorkerSizeOptionsLarge', 'WorkerSizeOptionsD1', 'WorkerSizeOptionsD2', 'WorkerSizeOptionsD3', 'WorkerSizeOptionsDefault'
WorkerSize WorkerSizeOptions `json:"workerSize,omitempty"`
// WorkerSizeID - Size ID of machines:
// 0 - Small
@@ -17973,6 +18282,111 @@ func (sd StringDictionary) MarshalJSON() ([]byte, error) {
return json.Marshal(objectMap)
}
+// SwiftVirtualNetwork swift Virtual Network Contract. This is used to enable the new Swift way of doing virtual
+// network integration.
+type SwiftVirtualNetwork struct {
+ autorest.Response `json:"-"`
+ // SwiftVirtualNetworkProperties - SwiftVirtualNetwork resource specific properties
+ *SwiftVirtualNetworkProperties `json:"properties,omitempty"`
+ // ID - Resource Id.
+ ID *string `json:"id,omitempty"`
+ // Name - Resource Name.
+ Name *string `json:"name,omitempty"`
+ // Kind - Kind of resource.
+ Kind *string `json:"kind,omitempty"`
+ // Type - Resource type.
+ Type *string `json:"type,omitempty"`
+}
+
+// MarshalJSON is the custom marshaler for SwiftVirtualNetwork.
+func (svn SwiftVirtualNetwork) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ if svn.SwiftVirtualNetworkProperties != nil {
+ objectMap["properties"] = svn.SwiftVirtualNetworkProperties
+ }
+ if svn.ID != nil {
+ objectMap["id"] = svn.ID
+ }
+ if svn.Name != nil {
+ objectMap["name"] = svn.Name
+ }
+ if svn.Kind != nil {
+ objectMap["kind"] = svn.Kind
+ }
+ if svn.Type != nil {
+ objectMap["type"] = svn.Type
+ }
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON is the custom unmarshaler for SwiftVirtualNetwork struct.
+func (svn *SwiftVirtualNetwork) 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 swiftVirtualNetworkProperties SwiftVirtualNetworkProperties
+ err = json.Unmarshal(*v, &swiftVirtualNetworkProperties)
+ if err != nil {
+ return err
+ }
+ svn.SwiftVirtualNetworkProperties = &swiftVirtualNetworkProperties
+ }
+ case "id":
+ if v != nil {
+ var ID string
+ err = json.Unmarshal(*v, &ID)
+ if err != nil {
+ return err
+ }
+ svn.ID = &ID
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ svn.Name = &name
+ }
+ case "kind":
+ if v != nil {
+ var kind string
+ err = json.Unmarshal(*v, &kind)
+ if err != nil {
+ return err
+ }
+ svn.Kind = &kind
+ }
+ case "type":
+ if v != nil {
+ var typeVar string
+ err = json.Unmarshal(*v, &typeVar)
+ if err != nil {
+ return err
+ }
+ svn.Type = &typeVar
+ }
+ }
+ }
+
+ return nil
+}
+
+// SwiftVirtualNetworkProperties swiftVirtualNetwork resource specific properties
+type SwiftVirtualNetworkProperties struct {
+ // SubnetResourceID - The Virtual Network subnet's resource ID. This is the subnet that this Web App will join. This subnet must have a delegation to Microsoft.Web/serverFarms defined first.
+ SubnetResourceID *string `json:"subnetResourceId,omitempty"`
+ // SwiftSupported - A flag that specifies if the scale unit this Web App is on supports Swift integration.
+ SwiftSupported *bool `json:"swiftSupported,omitempty"`
+}
+
// TldLegalAgreement legal agreement for a top level domain.
type TldLegalAgreement struct {
// AgreementKey - Unique identifier for the agreement.
@@ -19223,6 +19637,8 @@ type ValidateProperties struct {
Capacity *int32 `json:"capacity,omitempty"`
// HostingEnvironment - Name of App Service Environment where app or App Service plan should be created.
HostingEnvironment *string `json:"hostingEnvironment,omitempty"`
+ // IsXenon - true
if App Service plan is running as a windows container
+ IsXenon *bool `json:"isXenon,omitempty"`
}
// ValidateRequest resource validation request content.