true
indicates name is valid and available. false
indicates the name is invalid, unavailable, or both.
+ IsAvailable *bool `json:"isAvailable,omitempty"`
+ // Reason - Invalid
indicates the name provided does not match Azure App Service naming requirements. AlreadyExists
indicates that the name is already in use and is therefore unavailable. Possible values include: 'Invalid', 'AlreadyExists'
+ Reason InAvailabilityReasonType `json:"reason,omitempty"`
+ // Message - If reason == invalid, provide the user with the reason why the given name is invalid, and provide the resource naming requirements so that the user can select a valid name. If reason == AlreadyExists, explain that resource name is already in use, and direct them to select a different name.
+ Message *string `json:"message,omitempty"`
+}
+
+// ResourceNameAvailabilityRequest resource name availability request content.
+type ResourceNameAvailabilityRequest struct {
+ // Name - Resource name to verify.
+ Name *string `json:"name,omitempty"`
+ // Type - Resource type used for verification. Possible values include: 'MicrosoftNetAppnetAppAccounts', 'MicrosoftNetAppnetAppAccountscapacityPools', 'MicrosoftNetAppnetAppAccountscapacityPoolsvolumes', 'MicrosoftNetAppnetAppAccountscapacityPoolsvolumessnapshots'
+ Type CheckNameResourceTypes `json:"type,omitempty"`
+ // ResourceGroup - Resource group name.
+ ResourceGroup *string `json:"resourceGroup,omitempty"`
+}
+
+// ServiceSpecification one property of operation, include metric specifications.
+type ServiceSpecification struct {
+ // MetricSpecifications - Metric specifications of operation.
+ MetricSpecifications *[]MetricSpecification `json:"metricSpecifications,omitempty"`
+}
+
+// Snapshot snapshot of a Volume
+type Snapshot struct {
+ autorest.Response `json:"-"`
+ // Location - Resource location
+ Location *string `json:"location,omitempty"`
+ // ID - READ-ONLY; Resource Id
+ ID *string `json:"id,omitempty"`
+ // Name - READ-ONLY; Resource name
+ Name *string `json:"name,omitempty"`
+ // Type - READ-ONLY; Resource type
+ Type *string `json:"type,omitempty"`
+ // SnapshotProperties - Snapshot Properties
+ *SnapshotProperties `json:"properties,omitempty"`
+}
+
+// MarshalJSON is the custom marshaler for Snapshot.
+func (s Snapshot) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ if s.Location != nil {
+ objectMap["location"] = s.Location
+ }
+ if s.SnapshotProperties != nil {
+ objectMap["properties"] = s.SnapshotProperties
+ }
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON is the custom unmarshaler for Snapshot struct.
+func (s *Snapshot) 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 "location":
+ if v != nil {
+ var location string
+ err = json.Unmarshal(*v, &location)
+ if err != nil {
+ return err
+ }
+ s.Location = &location
+ }
+ case "id":
+ if v != nil {
+ var ID string
+ err = json.Unmarshal(*v, &ID)
+ if err != nil {
+ return err
+ }
+ s.ID = &ID
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ s.Name = &name
+ }
+ case "type":
+ if v != nil {
+ var typeVar string
+ err = json.Unmarshal(*v, &typeVar)
+ if err != nil {
+ return err
+ }
+ s.Type = &typeVar
+ }
+ case "properties":
+ if v != nil {
+ var snapshotProperties SnapshotProperties
+ err = json.Unmarshal(*v, &snapshotProperties)
+ if err != nil {
+ return err
+ }
+ s.SnapshotProperties = &snapshotProperties
+ }
+ }
+ }
+
+ return nil
+}
+
+// SnapshotProperties snapshot properties
+type SnapshotProperties struct {
+ // SnapshotID - READ-ONLY; UUID v4 used to identify the Snapshot
+ SnapshotID *string `json:"snapshotId,omitempty"`
+ // FileSystemID - UUID v4 used to identify the FileSystem
+ FileSystemID *string `json:"fileSystemId,omitempty"`
+ // Created - READ-ONLY; The creation date of the snapshot
+ Created *date.Time `json:"created,omitempty"`
+ // ProvisioningState - READ-ONLY; Azure lifecycle management
+ ProvisioningState *string `json:"provisioningState,omitempty"`
+}
+
+// SnapshotsCreateFuture an abstraction for monitoring and retrieving the results of a long-running
+// operation.
+type SnapshotsCreateFuture struct {
+ azure.Future
+}
+
+// Result returns the result of the asynchronous operation.
+// If the operation has not completed it will return an error.
+func (future *SnapshotsCreateFuture) Result(client SnapshotsClient) (s Snapshot, err error) {
+ var done bool
+ done, err = future.DoneWithContext(context.Background(), client)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "netapp.SnapshotsCreateFuture", "Result", future.Response(), "Polling failure")
+ return
+ }
+ if !done {
+ err = azure.NewAsyncOpIncompleteError("netapp.SnapshotsCreateFuture")
+ return
+ }
+ sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ if s.Response.Response, err = future.GetResult(sender); err == nil && s.Response.Response.StatusCode != http.StatusNoContent {
+ s, err = client.CreateResponder(s.Response.Response)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "netapp.SnapshotsCreateFuture", "Result", s.Response.Response, "Failure responding to request")
+ }
+ }
+ return
+}
+
+// SnapshotsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running
+// operation.
+type SnapshotsDeleteFuture struct {
+ azure.Future
+}
+
+// Result returns the result of the asynchronous operation.
+// If the operation has not completed it will return an error.
+func (future *SnapshotsDeleteFuture) Result(client SnapshotsClient) (ar autorest.Response, err error) {
+ var done bool
+ done, err = future.DoneWithContext(context.Background(), client)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "netapp.SnapshotsDeleteFuture", "Result", future.Response(), "Polling failure")
+ return
+ }
+ if !done {
+ err = azure.NewAsyncOpIncompleteError("netapp.SnapshotsDeleteFuture")
+ return
+ }
+ ar.Response = future.Response()
+ return
+}
+
+// SnapshotsList list of Snapshots
+type SnapshotsList struct {
+ autorest.Response `json:"-"`
+ // Value - A list of Snapshots
+ Value *[]Snapshot `json:"value,omitempty"`
+}
+
+// SnapshotsUpdateFuture an abstraction for monitoring and retrieving the results of a long-running
+// operation.
+type SnapshotsUpdateFuture struct {
+ azure.Future
+}
+
+// Result returns the result of the asynchronous operation.
+// If the operation has not completed it will return an error.
+func (future *SnapshotsUpdateFuture) Result(client SnapshotsClient) (s Snapshot, err error) {
+ var done bool
+ done, err = future.DoneWithContext(context.Background(), client)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "netapp.SnapshotsUpdateFuture", "Result", future.Response(), "Polling failure")
+ return
+ }
+ if !done {
+ err = azure.NewAsyncOpIncompleteError("netapp.SnapshotsUpdateFuture")
+ return
+ }
+ sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ if s.Response.Response, err = future.GetResult(sender); err == nil && s.Response.Response.StatusCode != http.StatusNoContent {
+ s, err = client.UpdateResponder(s.Response.Response)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "netapp.SnapshotsUpdateFuture", "Result", s.Response.Response, "Failure responding to request")
+ }
+ }
+ return
+}
+
+// Volume volume resource
+type Volume struct {
+ autorest.Response `json:"-"`
+ // Location - Resource location
+ Location *string `json:"location,omitempty"`
+ // ID - READ-ONLY; Resource Id
+ ID *string `json:"id,omitempty"`
+ // Name - READ-ONLY; Resource name
+ Name *string `json:"name,omitempty"`
+ // Type - READ-ONLY; Resource type
+ Type *string `json:"type,omitempty"`
+ // Tags - Resource tags
+ Tags map[string]*string `json:"tags"`
+ // VolumeProperties - Volume properties
+ *VolumeProperties `json:"properties,omitempty"`
+}
+
+// MarshalJSON is the custom marshaler for Volume.
+func (vVar Volume) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ if vVar.Location != nil {
+ objectMap["location"] = vVar.Location
+ }
+ if vVar.Tags != nil {
+ objectMap["tags"] = vVar.Tags
+ }
+ if vVar.VolumeProperties != nil {
+ objectMap["properties"] = vVar.VolumeProperties
+ }
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON is the custom unmarshaler for Volume struct.
+func (vVar *Volume) 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 "location":
+ if v != nil {
+ var location string
+ err = json.Unmarshal(*v, &location)
+ if err != nil {
+ return err
+ }
+ vVar.Location = &location
+ }
+ case "id":
+ if v != nil {
+ var ID string
+ err = json.Unmarshal(*v, &ID)
+ if err != nil {
+ return err
+ }
+ vVar.ID = &ID
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ vVar.Name = &name
+ }
+ case "type":
+ if v != nil {
+ var typeVar string
+ err = json.Unmarshal(*v, &typeVar)
+ if err != nil {
+ return err
+ }
+ vVar.Type = &typeVar
+ }
+ case "tags":
+ if v != nil {
+ var tags map[string]*string
+ err = json.Unmarshal(*v, &tags)
+ if err != nil {
+ return err
+ }
+ vVar.Tags = tags
+ }
+ case "properties":
+ if v != nil {
+ var volumeProperties VolumeProperties
+ err = json.Unmarshal(*v, &volumeProperties)
+ if err != nil {
+ return err
+ }
+ vVar.VolumeProperties = &volumeProperties
+ }
+ }
+ }
+
+ return nil
+}
+
+// VolumeList list of volume resources
+type VolumeList struct {
+ autorest.Response `json:"-"`
+ // Value - List of volumes
+ Value *[]Volume `json:"value,omitempty"`
+}
+
+// VolumePatch volume patch resource
+type VolumePatch struct {
+ // Location - Resource location
+ Location *string `json:"location,omitempty"`
+ // ID - READ-ONLY; Resource Id
+ ID *string `json:"id,omitempty"`
+ // Name - READ-ONLY; Resource name
+ Name *string `json:"name,omitempty"`
+ // Type - READ-ONLY; Resource type
+ Type *string `json:"type,omitempty"`
+ // Tags - Resource tags
+ Tags map[string]*string `json:"tags"`
+ // VolumePatchProperties - Patchable volume properties
+ *VolumePatchProperties `json:"properties,omitempty"`
+}
+
+// MarshalJSON is the custom marshaler for VolumePatch.
+func (vp VolumePatch) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ if vp.Location != nil {
+ objectMap["location"] = vp.Location
+ }
+ if vp.Tags != nil {
+ objectMap["tags"] = vp.Tags
+ }
+ if vp.VolumePatchProperties != nil {
+ objectMap["properties"] = vp.VolumePatchProperties
+ }
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON is the custom unmarshaler for VolumePatch struct.
+func (vp *VolumePatch) 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 "location":
+ if v != nil {
+ var location string
+ err = json.Unmarshal(*v, &location)
+ if err != nil {
+ return err
+ }
+ vp.Location = &location
+ }
+ case "id":
+ if v != nil {
+ var ID string
+ err = json.Unmarshal(*v, &ID)
+ if err != nil {
+ return err
+ }
+ vp.ID = &ID
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ vp.Name = &name
+ }
+ case "type":
+ if v != nil {
+ var typeVar string
+ err = json.Unmarshal(*v, &typeVar)
+ if err != nil {
+ return err
+ }
+ vp.Type = &typeVar
+ }
+ case "tags":
+ if v != nil {
+ var tags map[string]*string
+ err = json.Unmarshal(*v, &tags)
+ if err != nil {
+ return err
+ }
+ vp.Tags = tags
+ }
+ case "properties":
+ if v != nil {
+ var volumePatchProperties VolumePatchProperties
+ err = json.Unmarshal(*v, &volumePatchProperties)
+ if err != nil {
+ return err
+ }
+ vp.VolumePatchProperties = &volumePatchProperties
+ }
+ }
+ }
+
+ return nil
+}
+
+// VolumePatchProperties patchable volume properties
+type VolumePatchProperties struct {
+ // ServiceLevel - The service level of the file system. Possible values include: 'Standard', 'Premium', 'Ultra'
+ ServiceLevel ServiceLevel `json:"serviceLevel,omitempty"`
+ // UsageThreshold - Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting only. Minimum size is 100 GiB. Upper limit is 100TiB. Specified in bytes.
+ UsageThreshold *int64 `json:"usageThreshold,omitempty"`
+ // ExportPolicy - Set of export policy rules
+ ExportPolicy *VolumePatchPropertiesExportPolicy `json:"exportPolicy,omitempty"`
+}
+
+// VolumePatchPropertiesExportPolicy set of export policy rules
+type VolumePatchPropertiesExportPolicy struct {
+ // Rules - Export policy rule
+ Rules *[]ExportPolicyRule `json:"rules,omitempty"`
+}
+
+// VolumeProperties volume properties
+type VolumeProperties struct {
+ // FileSystemID - READ-ONLY; Unique FileSystem Identifier.
+ FileSystemID *string `json:"fileSystemId,omitempty"`
+ // CreationToken - A unique file path for the volume. Used when creating mount targets
+ CreationToken *string `json:"creationToken,omitempty"`
+ // ServiceLevel - The service level of the file system. Possible values include: 'Standard', 'Premium', 'Ultra'
+ ServiceLevel ServiceLevel `json:"serviceLevel,omitempty"`
+ // UsageThreshold - Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting only. Minimum size is 100 GiB. Upper limit is 100TiB. Specified in bytes.
+ UsageThreshold *int64 `json:"usageThreshold,omitempty"`
+ // ExportPolicy - Set of export policy rules
+ ExportPolicy *VolumePropertiesExportPolicy `json:"exportPolicy,omitempty"`
+ // ProtocolTypes - Set of protocol types
+ ProtocolTypes *[]string `json:"protocolTypes,omitempty"`
+ // ProvisioningState - READ-ONLY; Azure lifecycle management
+ ProvisioningState *string `json:"provisioningState,omitempty"`
+ // SnapshotID - UUID v4 or resource identifier used to identify the Snapshot.
+ SnapshotID *string `json:"snapshotId,omitempty"`
+ // BaremetalTenantID - READ-ONLY; Unique Baremetal Tenant Identifier.
+ BaremetalTenantID *string `json:"baremetalTenantId,omitempty"`
+ // SubnetID - The Azure Resource URI for a delegated subnet. Must have the delegation Microsoft.NetApp/volumes
+ SubnetID *string `json:"subnetId,omitempty"`
+ // MountTargets - List of mount targets
+ MountTargets interface{} `json:"mountTargets,omitempty"`
+ // VolumeType - What type of volume is this
+ VolumeType *string `json:"volumeType,omitempty"`
+ // DataProtection - DataProtection type volumes include an object containing details of the replication
+ DataProtection *VolumePropertiesDataProtection `json:"dataProtection,omitempty"`
+ // IsRestoring - Restoring
+ IsRestoring *bool `json:"isRestoring,omitempty"`
+}
+
+// VolumePropertiesDataProtection dataProtection type volumes include an object containing details of the
+// replication
+type VolumePropertiesDataProtection struct {
+ // Replication - Replication properties
+ Replication *ReplicationObject `json:"replication,omitempty"`
+}
+
+// VolumePropertiesExportPolicy set of export policy rules
+type VolumePropertiesExportPolicy struct {
+ // Rules - Export policy rule
+ Rules *[]ExportPolicyRule `json:"rules,omitempty"`
+}
+
+// VolumeRevert revert a volume to the snapshot
+type VolumeRevert struct {
+ // SnapshotID - Resource id of the snapshot
+ SnapshotID *string `json:"snapshotId,omitempty"`
+}
+
+// VolumesAuthorizeReplicationFuture an abstraction for monitoring and retrieving the results of a
+// long-running operation.
+type VolumesAuthorizeReplicationFuture struct {
+ azure.Future
+}
+
+// Result returns the result of the asynchronous operation.
+// If the operation has not completed it will return an error.
+func (future *VolumesAuthorizeReplicationFuture) Result(client VolumesClient) (ar autorest.Response, err error) {
+ var done bool
+ done, err = future.DoneWithContext(context.Background(), client)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "netapp.VolumesAuthorizeReplicationFuture", "Result", future.Response(), "Polling failure")
+ return
+ }
+ if !done {
+ err = azure.NewAsyncOpIncompleteError("netapp.VolumesAuthorizeReplicationFuture")
+ return
+ }
+ ar.Response = future.Response()
+ return
+}
+
+// VolumesBreakReplicationFuture an abstraction for monitoring and retrieving the results of a long-running
+// operation.
+type VolumesBreakReplicationFuture struct {
+ azure.Future
+}
+
+// Result returns the result of the asynchronous operation.
+// If the operation has not completed it will return an error.
+func (future *VolumesBreakReplicationFuture) Result(client VolumesClient) (ar autorest.Response, err error) {
+ var done bool
+ done, err = future.DoneWithContext(context.Background(), client)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "netapp.VolumesBreakReplicationFuture", "Result", future.Response(), "Polling failure")
+ return
+ }
+ if !done {
+ err = azure.NewAsyncOpIncompleteError("netapp.VolumesBreakReplicationFuture")
+ return
+ }
+ ar.Response = future.Response()
+ return
+}
+
+// VolumesCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running
+// operation.
+type VolumesCreateOrUpdateFuture struct {
+ azure.Future
+}
+
+// Result returns the result of the asynchronous operation.
+// If the operation has not completed it will return an error.
+func (future *VolumesCreateOrUpdateFuture) Result(client VolumesClient) (vVar Volume, err error) {
+ var done bool
+ done, err = future.DoneWithContext(context.Background(), client)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "netapp.VolumesCreateOrUpdateFuture", "Result", future.Response(), "Polling failure")
+ return
+ }
+ if !done {
+ err = azure.NewAsyncOpIncompleteError("netapp.VolumesCreateOrUpdateFuture")
+ return
+ }
+ sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ if vVar.Response.Response, err = future.GetResult(sender); err == nil && vVar.Response.Response.StatusCode != http.StatusNoContent {
+ vVar, err = client.CreateOrUpdateResponder(vVar.Response.Response)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "netapp.VolumesCreateOrUpdateFuture", "Result", vVar.Response.Response, "Failure responding to request")
+ }
+ }
+ return
+}
+
+// VolumesDeleteFuture an abstraction for monitoring and retrieving the results of a long-running
+// operation.
+type VolumesDeleteFuture struct {
+ azure.Future
+}
+
+// Result returns the result of the asynchronous operation.
+// If the operation has not completed it will return an error.
+func (future *VolumesDeleteFuture) Result(client VolumesClient) (ar autorest.Response, err error) {
+ var done bool
+ done, err = future.DoneWithContext(context.Background(), client)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "netapp.VolumesDeleteFuture", "Result", future.Response(), "Polling failure")
+ return
+ }
+ if !done {
+ err = azure.NewAsyncOpIncompleteError("netapp.VolumesDeleteFuture")
+ return
+ }
+ ar.Response = future.Response()
+ return
+}
+
+// VolumesDeleteReplicationFuture an abstraction for monitoring and retrieving the results of a
+// long-running operation.
+type VolumesDeleteReplicationFuture struct {
+ azure.Future
+}
+
+// Result returns the result of the asynchronous operation.
+// If the operation has not completed it will return an error.
+func (future *VolumesDeleteReplicationFuture) Result(client VolumesClient) (ar autorest.Response, err error) {
+ var done bool
+ done, err = future.DoneWithContext(context.Background(), client)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "netapp.VolumesDeleteReplicationFuture", "Result", future.Response(), "Polling failure")
+ return
+ }
+ if !done {
+ err = azure.NewAsyncOpIncompleteError("netapp.VolumesDeleteReplicationFuture")
+ return
+ }
+ ar.Response = future.Response()
+ return
+}
+
+// VolumesResyncReplicationFuture an abstraction for monitoring and retrieving the results of a
+// long-running operation.
+type VolumesResyncReplicationFuture struct {
+ azure.Future
+}
+
+// Result returns the result of the asynchronous operation.
+// If the operation has not completed it will return an error.
+func (future *VolumesResyncReplicationFuture) Result(client VolumesClient) (ar autorest.Response, err error) {
+ var done bool
+ done, err = future.DoneWithContext(context.Background(), client)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "netapp.VolumesResyncReplicationFuture", "Result", future.Response(), "Polling failure")
+ return
+ }
+ if !done {
+ err = azure.NewAsyncOpIncompleteError("netapp.VolumesResyncReplicationFuture")
+ return
+ }
+ ar.Response = future.Response()
+ return
+}
+
+// VolumesRevertFuture an abstraction for monitoring and retrieving the results of a long-running
+// operation.
+type VolumesRevertFuture struct {
+ azure.Future
+}
+
+// Result returns the result of the asynchronous operation.
+// If the operation has not completed it will return an error.
+func (future *VolumesRevertFuture) Result(client VolumesClient) (ar autorest.Response, err error) {
+ var done bool
+ done, err = future.DoneWithContext(context.Background(), client)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "netapp.VolumesRevertFuture", "Result", future.Response(), "Polling failure")
+ return
+ }
+ if !done {
+ err = azure.NewAsyncOpIncompleteError("netapp.VolumesRevertFuture")
+ return
+ }
+ ar.Response = future.Response()
+ return
+}
+
+// VolumesUpdateFuture an abstraction for monitoring and retrieving the results of a long-running
+// operation.
+type VolumesUpdateFuture struct {
+ azure.Future
+}
+
+// Result returns the result of the asynchronous operation.
+// If the operation has not completed it will return an error.
+func (future *VolumesUpdateFuture) Result(client VolumesClient) (vVar Volume, err error) {
+ var done bool
+ done, err = future.DoneWithContext(context.Background(), client)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "netapp.VolumesUpdateFuture", "Result", future.Response(), "Polling failure")
+ return
+ }
+ if !done {
+ err = azure.NewAsyncOpIncompleteError("netapp.VolumesUpdateFuture")
+ return
+ }
+ sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ if vVar.Response.Response, err = future.GetResult(sender); err == nil && vVar.Response.Response.StatusCode != http.StatusNoContent {
+ vVar, err = client.UpdateResponder(vVar.Response.Response)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "netapp.VolumesUpdateFuture", "Result", vVar.Response.Response, "Failure responding to request")
+ }
+ }
+ return
+}
diff --git a/services/netapp/mgmt/2019-11-01/netapp/netappapi/interfaces.go b/services/netapp/mgmt/2019-11-01/netapp/netappapi/interfaces.go
new file mode 100644
index 000000000000..f40c98862292
--- /dev/null
+++ b/services/netapp/mgmt/2019-11-01/netapp/netappapi/interfaces.go
@@ -0,0 +1,88 @@
+package netappapi
+
+// Copyright (c) Microsoft and contributors. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+ "context"
+ "github.com/Azure/azure-sdk-for-go/services/netapp/mgmt/2019-11-01/netapp"
+)
+
+// OperationsClientAPI contains the set of methods on the OperationsClient type.
+type OperationsClientAPI interface {
+ List(ctx context.Context) (result netapp.OperationListResult, err error)
+}
+
+var _ OperationsClientAPI = (*netapp.OperationsClient)(nil)
+
+// ResourceClientAPI contains the set of methods on the ResourceClient type.
+type ResourceClientAPI interface {
+ CheckFilePathAvailability(ctx context.Context, body netapp.ResourceNameAvailabilityRequest, location string) (result netapp.ResourceNameAvailability, err error)
+ CheckNameAvailability(ctx context.Context, body netapp.ResourceNameAvailabilityRequest, location string) (result netapp.ResourceNameAvailability, err error)
+}
+
+var _ ResourceClientAPI = (*netapp.ResourceClient)(nil)
+
+// AccountsClientAPI contains the set of methods on the AccountsClient type.
+type AccountsClientAPI interface {
+ CreateOrUpdate(ctx context.Context, body netapp.Account, resourceGroupName string, accountName string) (result netapp.AccountsCreateOrUpdateFuture, err error)
+ Delete(ctx context.Context, resourceGroupName string, accountName string) (result netapp.AccountsDeleteFuture, err error)
+ Get(ctx context.Context, resourceGroupName string, accountName string) (result netapp.Account, err error)
+ List(ctx context.Context, resourceGroupName string) (result netapp.AccountList, err error)
+ Update(ctx context.Context, body netapp.AccountPatch, resourceGroupName string, accountName string) (result netapp.Account, err error)
+}
+
+var _ AccountsClientAPI = (*netapp.AccountsClient)(nil)
+
+// PoolsClientAPI contains the set of methods on the PoolsClient type.
+type PoolsClientAPI interface {
+ CreateOrUpdate(ctx context.Context, body netapp.CapacityPool, resourceGroupName string, accountName string, poolName string) (result netapp.PoolsCreateOrUpdateFuture, err error)
+ Delete(ctx context.Context, resourceGroupName string, accountName string, poolName string) (result netapp.PoolsDeleteFuture, err error)
+ Get(ctx context.Context, resourceGroupName string, accountName string, poolName string) (result netapp.CapacityPool, err error)
+ List(ctx context.Context, resourceGroupName string, accountName string) (result netapp.CapacityPoolList, err error)
+ Update(ctx context.Context, body netapp.CapacityPoolPatch, resourceGroupName string, accountName string, poolName string) (result netapp.PoolsUpdateFuture, err error)
+}
+
+var _ PoolsClientAPI = (*netapp.PoolsClient)(nil)
+
+// VolumesClientAPI contains the set of methods on the VolumesClient type.
+type VolumesClientAPI interface {
+ AuthorizeReplication(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, body netapp.AuthorizeRequest) (result netapp.VolumesAuthorizeReplicationFuture, err error)
+ BreakReplication(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string) (result netapp.VolumesBreakReplicationFuture, err error)
+ CreateOrUpdate(ctx context.Context, body netapp.Volume, resourceGroupName string, accountName string, poolName string, volumeName string) (result netapp.VolumesCreateOrUpdateFuture, err error)
+ Delete(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string) (result netapp.VolumesDeleteFuture, err error)
+ DeleteReplication(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string) (result netapp.VolumesDeleteReplicationFuture, err error)
+ Get(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string) (result netapp.Volume, err error)
+ List(ctx context.Context, resourceGroupName string, accountName string, poolName string) (result netapp.VolumeList, err error)
+ ReplicationStatusMethod(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string) (result netapp.ReplicationStatus, err error)
+ ResyncReplication(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string) (result netapp.VolumesResyncReplicationFuture, err error)
+ Revert(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, body netapp.VolumeRevert) (result netapp.VolumesRevertFuture, err error)
+ Update(ctx context.Context, body netapp.VolumePatch, resourceGroupName string, accountName string, poolName string, volumeName string) (result netapp.VolumesUpdateFuture, err error)
+}
+
+var _ VolumesClientAPI = (*netapp.VolumesClient)(nil)
+
+// SnapshotsClientAPI contains the set of methods on the SnapshotsClient type.
+type SnapshotsClientAPI interface {
+ Create(ctx context.Context, body netapp.Snapshot, resourceGroupName string, accountName string, poolName string, volumeName string, snapshotName string) (result netapp.SnapshotsCreateFuture, err error)
+ Delete(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, snapshotName string) (result netapp.SnapshotsDeleteFuture, err error)
+ Get(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, snapshotName string) (result netapp.Snapshot, err error)
+ List(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string) (result netapp.SnapshotsList, err error)
+ Update(ctx context.Context, body interface{}, resourceGroupName string, accountName string, poolName string, volumeName string, snapshotName string) (result netapp.SnapshotsUpdateFuture, err error)
+}
+
+var _ SnapshotsClientAPI = (*netapp.SnapshotsClient)(nil)
diff --git a/services/netapp/mgmt/2019-11-01/netapp/operations.go b/services/netapp/mgmt/2019-11-01/netapp/operations.go
new file mode 100644
index 000000000000..85e57bb47a88
--- /dev/null
+++ b/services/netapp/mgmt/2019-11-01/netapp/operations.go
@@ -0,0 +1,110 @@
+package netapp
+
+// Copyright (c) Microsoft and contributors. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+ "context"
+ "github.com/Azure/go-autorest/autorest"
+ "github.com/Azure/go-autorest/autorest/azure"
+ "github.com/Azure/go-autorest/tracing"
+ "net/http"
+)
+
+// OperationsClient is the microsoft NetApp Azure Resource Provider specification
+type OperationsClient struct {
+ BaseClient
+}
+
+// NewOperationsClient creates an instance of the OperationsClient client.
+func NewOperationsClient(subscriptionID string) OperationsClient {
+ return NewOperationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
+}
+
+// NewOperationsClientWithBaseURI creates an instance of the OperationsClient client using a custom endpoint. Use this
+// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
+func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient {
+ return OperationsClient{NewWithBaseURI(baseURI, subscriptionID)}
+}
+
+// List lists all of the available Microsoft.NetApp Rest API operations
+func (client OperationsClient) List(ctx context.Context) (result OperationListResult, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/OperationsClient.List")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.ListPreparer(ctx)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "netapp.OperationsClient", "List", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "netapp.OperationsClient", "List", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "netapp.OperationsClient", "List", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListPreparer prepares the List request.
+func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, error) {
+ const APIVersion = "2019-11-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPath("/providers/Microsoft.NetApp/operations"),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListSender sends the List request. The method will close the
+// http.Response Body if it receives an error.
+func (client OperationsClient) ListSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListResponder handles the response to the List request. The method always
+// closes the http.Response Body.
+func (client OperationsClient) ListResponder(resp *http.Response) (result OperationListResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
diff --git a/services/netapp/mgmt/2019-11-01/netapp/pools.go b/services/netapp/mgmt/2019-11-01/netapp/pools.go
new file mode 100644
index 000000000000..93e62c463fa6
--- /dev/null
+++ b/services/netapp/mgmt/2019-11-01/netapp/pools.go
@@ -0,0 +1,516 @@
+package netapp
+
+// Copyright (c) Microsoft and contributors. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+ "context"
+ "github.com/Azure/go-autorest/autorest"
+ "github.com/Azure/go-autorest/autorest/azure"
+ "github.com/Azure/go-autorest/autorest/validation"
+ "github.com/Azure/go-autorest/tracing"
+ "net/http"
+)
+
+// PoolsClient is the microsoft NetApp Azure Resource Provider specification
+type PoolsClient struct {
+ BaseClient
+}
+
+// NewPoolsClient creates an instance of the PoolsClient client.
+func NewPoolsClient(subscriptionID string) PoolsClient {
+ return NewPoolsClientWithBaseURI(DefaultBaseURI, subscriptionID)
+}
+
+// NewPoolsClientWithBaseURI creates an instance of the PoolsClient client using a custom endpoint. Use this when
+// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
+func NewPoolsClientWithBaseURI(baseURI string, subscriptionID string) PoolsClient {
+ return PoolsClient{NewWithBaseURI(baseURI, subscriptionID)}
+}
+
+// CreateOrUpdate create or Update a capacity pool
+// Parameters:
+// body - capacity pool object supplied in the body of the operation.
+// resourceGroupName - the name of the resource group.
+// accountName - the name of the NetApp account
+// poolName - the name of the capacity pool
+func (client PoolsClient) CreateOrUpdate(ctx context.Context, body CapacityPool, resourceGroupName string, accountName string, poolName string) (result PoolsCreateOrUpdateFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/PoolsClient.CreateOrUpdate")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: body,
+ Constraints: []validation.Constraint{{Target: "body.Location", Name: validation.Null, Rule: true, Chain: nil},
+ {Target: "body.PoolProperties", Name: validation.Null, Rule: true,
+ Chain: []validation.Constraint{{Target: "body.PoolProperties.PoolID", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "body.PoolProperties.PoolID", Name: validation.MaxLength, Rule: 36, Chain: nil},
+ {Target: "body.PoolProperties.PoolID", Name: validation.MinLength, Rule: 36, Chain: nil},
+ {Target: "body.PoolProperties.PoolID", Name: validation.Pattern, Rule: `^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$`, Chain: nil},
+ }},
+ {Target: "body.PoolProperties.Size", Name: validation.Null, Rule: true,
+ Chain: []validation.Constraint{{Target: "body.PoolProperties.Size", Name: validation.InclusiveMaximum, Rule: int64(549755813888000), Chain: nil},
+ {Target: "body.PoolProperties.Size", Name: validation.InclusiveMinimum, Rule: int64(4398046511104), Chain: nil},
+ }},
+ }}}},
+ {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: poolName,
+ Constraints: []validation.Constraint{{Target: "poolName", Name: validation.MaxLength, Rule: 64, Chain: nil},
+ {Target: "poolName", Name: validation.MinLength, Rule: 1, Chain: nil},
+ {Target: "poolName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,63}$`, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("netapp.PoolsClient", "CreateOrUpdate", err.Error())
+ }
+
+ req, err := client.CreateOrUpdatePreparer(ctx, body, resourceGroupName, accountName, poolName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "netapp.PoolsClient", "CreateOrUpdate", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.CreateOrUpdateSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "netapp.PoolsClient", "CreateOrUpdate", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// CreateOrUpdatePreparer prepares the CreateOrUpdate request.
+func (client PoolsClient) CreateOrUpdatePreparer(ctx context.Context, body CapacityPool, resourceGroupName string, accountName string, poolName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "accountName": autorest.Encode("path", accountName),
+ "poolName": autorest.Encode("path", poolName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ body.ID = nil
+ body.Name = nil
+ body.Type = nil
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPut(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}", pathParameters),
+ autorest.WithJSON(body),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the
+// http.Response Body if it receives an error.
+func (client PoolsClient) CreateOrUpdateSender(req *http.Request) (future PoolsCreateOrUpdateFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always
+// closes the http.Response Body.
+func (client PoolsClient) CreateOrUpdateResponder(resp *http.Response) (result CapacityPool, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated, http.StatusAccepted),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// Delete delete the specified capacity pool
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// accountName - the name of the NetApp account
+// poolName - the name of the capacity pool
+func (client PoolsClient) Delete(ctx context.Context, resourceGroupName string, accountName string, poolName string) (result PoolsDeleteFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/PoolsClient.Delete")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ 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: poolName,
+ Constraints: []validation.Constraint{{Target: "poolName", Name: validation.MaxLength, Rule: 64, Chain: nil},
+ {Target: "poolName", Name: validation.MinLength, Rule: 1, Chain: nil},
+ {Target: "poolName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,63}$`, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("netapp.PoolsClient", "Delete", err.Error())
+ }
+
+ req, err := client.DeletePreparer(ctx, resourceGroupName, accountName, poolName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "netapp.PoolsClient", "Delete", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.DeleteSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "netapp.PoolsClient", "Delete", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// DeletePreparer prepares the Delete request.
+func (client PoolsClient) DeletePreparer(ctx context.Context, resourceGroupName string, accountName string, poolName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "accountName": autorest.Encode("path", accountName),
+ "poolName": autorest.Encode("path", poolName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// DeleteSender sends the Delete request. The method will close the
+// http.Response Body if it receives an error.
+func (client PoolsClient) DeleteSender(req *http.Request) (future PoolsDeleteFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// DeleteResponder handles the response to the Delete request. The method always
+// closes the http.Response Body.
+func (client PoolsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent),
+ autorest.ByClosing())
+ result.Response = resp
+ return
+}
+
+// Get get details of the specified capacity pool
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// accountName - the name of the NetApp account
+// poolName - the name of the capacity pool
+func (client PoolsClient) Get(ctx context.Context, resourceGroupName string, accountName string, poolName string) (result CapacityPool, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/PoolsClient.Get")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ 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: poolName,
+ Constraints: []validation.Constraint{{Target: "poolName", Name: validation.MaxLength, Rule: 64, Chain: nil},
+ {Target: "poolName", Name: validation.MinLength, Rule: 1, Chain: nil},
+ {Target: "poolName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,63}$`, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("netapp.PoolsClient", "Get", err.Error())
+ }
+
+ req, err := client.GetPreparer(ctx, resourceGroupName, accountName, poolName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "netapp.PoolsClient", "Get", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "netapp.PoolsClient", "Get", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "netapp.PoolsClient", "Get", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetPreparer prepares the Get request.
+func (client PoolsClient) GetPreparer(ctx context.Context, resourceGroupName string, accountName string, poolName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "accountName": autorest.Encode("path", accountName),
+ "poolName": autorest.Encode("path", poolName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetSender sends the Get request. The method will close the
+// http.Response Body if it receives an error.
+func (client PoolsClient) GetSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetResponder handles the response to the Get request. The method always
+// closes the http.Response Body.
+func (client PoolsClient) GetResponder(resp *http.Response) (result CapacityPool, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// List list all capacity pools in the NetApp Account
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// accountName - the name of the NetApp account
+func (client PoolsClient) List(ctx context.Context, resourceGroupName string, accountName string) (result CapacityPoolList, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/PoolsClient.List")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ 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("netapp.PoolsClient", "List", err.Error())
+ }
+
+ req, err := client.ListPreparer(ctx, resourceGroupName, accountName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "netapp.PoolsClient", "List", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "netapp.PoolsClient", "List", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "netapp.PoolsClient", "List", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListPreparer prepares the List request.
+func (client PoolsClient) ListPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "accountName": autorest.Encode("path", accountName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.NetApp/netAppAccounts/{accountName}/capacityPools", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListSender sends the List request. The method will close the
+// http.Response Body if it receives an error.
+func (client PoolsClient) ListSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListResponder handles the response to the List request. The method always
+// closes the http.Response Body.
+func (client PoolsClient) ListResponder(resp *http.Response) (result CapacityPoolList, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// Update patch the specified capacity pool
+// Parameters:
+// body - capacity pool object supplied in the body of the operation.
+// resourceGroupName - the name of the resource group.
+// accountName - the name of the NetApp account
+// poolName - the name of the capacity pool
+func (client PoolsClient) Update(ctx context.Context, body CapacityPoolPatch, resourceGroupName string, accountName string, poolName string) (result PoolsUpdateFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/PoolsClient.Update")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ 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: poolName,
+ Constraints: []validation.Constraint{{Target: "poolName", Name: validation.MaxLength, Rule: 64, Chain: nil},
+ {Target: "poolName", Name: validation.MinLength, Rule: 1, Chain: nil},
+ {Target: "poolName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,63}$`, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("netapp.PoolsClient", "Update", err.Error())
+ }
+
+ req, err := client.UpdatePreparer(ctx, body, resourceGroupName, accountName, poolName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "netapp.PoolsClient", "Update", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.UpdateSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "netapp.PoolsClient", "Update", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// UpdatePreparer prepares the Update request.
+func (client PoolsClient) UpdatePreparer(ctx context.Context, body CapacityPoolPatch, resourceGroupName string, accountName string, poolName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "accountName": autorest.Encode("path", accountName),
+ "poolName": autorest.Encode("path", poolName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ body.ID = nil
+ body.Name = nil
+ body.Type = nil
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPatch(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}", pathParameters),
+ autorest.WithJSON(body),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// UpdateSender sends the Update request. The method will close the
+// http.Response Body if it receives an error.
+func (client PoolsClient) UpdateSender(req *http.Request) (future PoolsUpdateFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// UpdateResponder handles the response to the Update request. The method always
+// closes the http.Response Body.
+func (client PoolsClient) UpdateResponder(resp *http.Response) (result CapacityPool, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
diff --git a/services/netapp/mgmt/2019-11-01/netapp/resource.go b/services/netapp/mgmt/2019-11-01/netapp/resource.go
new file mode 100644
index 000000000000..d6b828f8d484
--- /dev/null
+++ b/services/netapp/mgmt/2019-11-01/netapp/resource.go
@@ -0,0 +1,213 @@
+package netapp
+
+// Copyright (c) Microsoft and contributors. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+ "context"
+ "github.com/Azure/go-autorest/autorest"
+ "github.com/Azure/go-autorest/autorest/azure"
+ "github.com/Azure/go-autorest/autorest/validation"
+ "github.com/Azure/go-autorest/tracing"
+ "net/http"
+)
+
+// ResourceClient is the microsoft NetApp Azure Resource Provider specification
+type ResourceClient struct {
+ BaseClient
+}
+
+// NewResourceClient creates an instance of the ResourceClient client.
+func NewResourceClient(subscriptionID string) ResourceClient {
+ return NewResourceClientWithBaseURI(DefaultBaseURI, subscriptionID)
+}
+
+// NewResourceClientWithBaseURI creates an instance of the ResourceClient client using a custom endpoint. Use this
+// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
+func NewResourceClientWithBaseURI(baseURI string, subscriptionID string) ResourceClient {
+ return ResourceClient{NewWithBaseURI(baseURI, subscriptionID)}
+}
+
+// CheckFilePathAvailability check if a file path is available.
+// Parameters:
+// body - file path availability request.
+// location - the location
+func (client ResourceClient) CheckFilePathAvailability(ctx context.Context, body ResourceNameAvailabilityRequest, location string) (result ResourceNameAvailability, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ResourceClient.CheckFilePathAvailability")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: body,
+ Constraints: []validation.Constraint{{Target: "body.Name", Name: validation.Null, Rule: true, Chain: nil},
+ {Target: "body.ResourceGroup", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("netapp.ResourceClient", "CheckFilePathAvailability", err.Error())
+ }
+
+ req, err := client.CheckFilePathAvailabilityPreparer(ctx, body, location)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "netapp.ResourceClient", "CheckFilePathAvailability", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.CheckFilePathAvailabilitySender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "netapp.ResourceClient", "CheckFilePathAvailability", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.CheckFilePathAvailabilityResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "netapp.ResourceClient", "CheckFilePathAvailability", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// CheckFilePathAvailabilityPreparer prepares the CheckFilePathAvailability request.
+func (client ResourceClient) CheckFilePathAvailabilityPreparer(ctx context.Context, body ResourceNameAvailabilityRequest, location string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "location": autorest.Encode("path", location),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPost(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/checkFilePathAvailability", pathParameters),
+ autorest.WithJSON(body),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// CheckFilePathAvailabilitySender sends the CheckFilePathAvailability request. The method will close the
+// http.Response Body if it receives an error.
+func (client ResourceClient) CheckFilePathAvailabilitySender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// CheckFilePathAvailabilityResponder handles the response to the CheckFilePathAvailability request. The method always
+// closes the http.Response Body.
+func (client ResourceClient) CheckFilePathAvailabilityResponder(resp *http.Response) (result ResourceNameAvailability, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// CheckNameAvailability check if a resource name is available.
+// Parameters:
+// body - name availability request.
+// location - the location
+func (client ResourceClient) CheckNameAvailability(ctx context.Context, body ResourceNameAvailabilityRequest, location string) (result ResourceNameAvailability, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ResourceClient.CheckNameAvailability")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: body,
+ Constraints: []validation.Constraint{{Target: "body.Name", Name: validation.Null, Rule: true, Chain: nil},
+ {Target: "body.ResourceGroup", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("netapp.ResourceClient", "CheckNameAvailability", err.Error())
+ }
+
+ req, err := client.CheckNameAvailabilityPreparer(ctx, body, location)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "netapp.ResourceClient", "CheckNameAvailability", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.CheckNameAvailabilitySender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "netapp.ResourceClient", "CheckNameAvailability", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.CheckNameAvailabilityResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "netapp.ResourceClient", "CheckNameAvailability", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// CheckNameAvailabilityPreparer prepares the CheckNameAvailability request.
+func (client ResourceClient) CheckNameAvailabilityPreparer(ctx context.Context, body ResourceNameAvailabilityRequest, location string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "location": autorest.Encode("path", location),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPost(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/checkNameAvailability", pathParameters),
+ autorest.WithJSON(body),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// CheckNameAvailabilitySender sends the CheckNameAvailability request. The method will close the
+// http.Response Body if it receives an error.
+func (client ResourceClient) CheckNameAvailabilitySender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// CheckNameAvailabilityResponder handles the response to the CheckNameAvailability request. The method always
+// closes the http.Response Body.
+func (client ResourceClient) CheckNameAvailabilityResponder(resp *http.Response) (result ResourceNameAvailability, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
diff --git a/services/netapp/mgmt/2019-11-01/netapp/snapshots.go b/services/netapp/mgmt/2019-11-01/netapp/snapshots.go
new file mode 100644
index 000000000000..8c78d7ab8d48
--- /dev/null
+++ b/services/netapp/mgmt/2019-11-01/netapp/snapshots.go
@@ -0,0 +1,558 @@
+package netapp
+
+// Copyright (c) Microsoft and contributors. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+ "context"
+ "github.com/Azure/go-autorest/autorest"
+ "github.com/Azure/go-autorest/autorest/azure"
+ "github.com/Azure/go-autorest/autorest/validation"
+ "github.com/Azure/go-autorest/tracing"
+ "net/http"
+)
+
+// SnapshotsClient is the microsoft NetApp Azure Resource Provider specification
+type SnapshotsClient struct {
+ BaseClient
+}
+
+// NewSnapshotsClient creates an instance of the SnapshotsClient client.
+func NewSnapshotsClient(subscriptionID string) SnapshotsClient {
+ return NewSnapshotsClientWithBaseURI(DefaultBaseURI, subscriptionID)
+}
+
+// NewSnapshotsClientWithBaseURI creates an instance of the SnapshotsClient client using a custom endpoint. Use this
+// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
+func NewSnapshotsClientWithBaseURI(baseURI string, subscriptionID string) SnapshotsClient {
+ return SnapshotsClient{NewWithBaseURI(baseURI, subscriptionID)}
+}
+
+// Create create the specified snapshot within the given volume
+// Parameters:
+// body - snapshot object supplied in the body of the operation.
+// resourceGroupName - the name of the resource group.
+// accountName - the name of the NetApp account
+// poolName - the name of the capacity pool
+// volumeName - the name of the volume
+// snapshotName - the name of the mount target
+func (client SnapshotsClient) Create(ctx context.Context, body Snapshot, resourceGroupName string, accountName string, poolName string, volumeName string, snapshotName string) (result SnapshotsCreateFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/SnapshotsClient.Create")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: body,
+ Constraints: []validation.Constraint{{Target: "body.Location", Name: validation.Null, Rule: true, Chain: nil},
+ {Target: "body.SnapshotProperties", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "body.SnapshotProperties.SnapshotID", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "body.SnapshotProperties.SnapshotID", Name: validation.MaxLength, Rule: 36, Chain: nil},
+ {Target: "body.SnapshotProperties.SnapshotID", Name: validation.MinLength, Rule: 36, Chain: nil},
+ {Target: "body.SnapshotProperties.SnapshotID", Name: validation.Pattern, Rule: `^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$`, Chain: nil},
+ }},
+ {Target: "body.SnapshotProperties.FileSystemID", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "body.SnapshotProperties.FileSystemID", Name: validation.MaxLength, Rule: 36, Chain: nil},
+ {Target: "body.SnapshotProperties.FileSystemID", Name: validation.MinLength, Rule: 36, Chain: nil},
+ {Target: "body.SnapshotProperties.FileSystemID", Name: validation.Pattern, Rule: `^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$`, Chain: nil},
+ }},
+ }}}},
+ {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: poolName,
+ Constraints: []validation.Constraint{{Target: "poolName", Name: validation.MaxLength, Rule: 64, Chain: nil},
+ {Target: "poolName", Name: validation.MinLength, Rule: 1, Chain: nil},
+ {Target: "poolName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,63}$`, Chain: nil}}},
+ {TargetValue: volumeName,
+ Constraints: []validation.Constraint{{Target: "volumeName", Name: validation.MaxLength, Rule: 64, Chain: nil},
+ {Target: "volumeName", Name: validation.MinLength, Rule: 1, Chain: nil},
+ {Target: "volumeName", Name: validation.Pattern, Rule: `^[a-zA-Z][a-zA-Z0-9\-_]{0,63}$`, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("netapp.SnapshotsClient", "Create", err.Error())
+ }
+
+ req, err := client.CreatePreparer(ctx, body, resourceGroupName, accountName, poolName, volumeName, snapshotName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "netapp.SnapshotsClient", "Create", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.CreateSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "netapp.SnapshotsClient", "Create", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// CreatePreparer prepares the Create request.
+func (client SnapshotsClient) CreatePreparer(ctx context.Context, body Snapshot, resourceGroupName string, accountName string, poolName string, volumeName string, snapshotName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "accountName": autorest.Encode("path", accountName),
+ "poolName": autorest.Encode("path", poolName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "snapshotName": autorest.Encode("path", snapshotName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ "volumeName": autorest.Encode("path", volumeName),
+ }
+
+ const APIVersion = "2019-11-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ body.ID = nil
+ body.Name = nil
+ body.Type = nil
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPut(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots/{snapshotName}", pathParameters),
+ autorest.WithJSON(body),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// CreateSender sends the Create request. The method will close the
+// http.Response Body if it receives an error.
+func (client SnapshotsClient) CreateSender(req *http.Request) (future SnapshotsCreateFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// CreateResponder handles the response to the Create request. The method always
+// closes the http.Response Body.
+func (client SnapshotsClient) CreateResponder(resp *http.Response) (result Snapshot, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated, http.StatusAccepted),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// Delete delete snapshot
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// accountName - the name of the NetApp account
+// poolName - the name of the capacity pool
+// volumeName - the name of the volume
+// snapshotName - the name of the mount target
+func (client SnapshotsClient) Delete(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, snapshotName string) (result SnapshotsDeleteFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/SnapshotsClient.Delete")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ 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: poolName,
+ Constraints: []validation.Constraint{{Target: "poolName", Name: validation.MaxLength, Rule: 64, Chain: nil},
+ {Target: "poolName", Name: validation.MinLength, Rule: 1, Chain: nil},
+ {Target: "poolName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,63}$`, Chain: nil}}},
+ {TargetValue: volumeName,
+ Constraints: []validation.Constraint{{Target: "volumeName", Name: validation.MaxLength, Rule: 64, Chain: nil},
+ {Target: "volumeName", Name: validation.MinLength, Rule: 1, Chain: nil},
+ {Target: "volumeName", Name: validation.Pattern, Rule: `^[a-zA-Z][a-zA-Z0-9\-_]{0,63}$`, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("netapp.SnapshotsClient", "Delete", err.Error())
+ }
+
+ req, err := client.DeletePreparer(ctx, resourceGroupName, accountName, poolName, volumeName, snapshotName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "netapp.SnapshotsClient", "Delete", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.DeleteSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "netapp.SnapshotsClient", "Delete", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// DeletePreparer prepares the Delete request.
+func (client SnapshotsClient) DeletePreparer(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, snapshotName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "accountName": autorest.Encode("path", accountName),
+ "poolName": autorest.Encode("path", poolName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "snapshotName": autorest.Encode("path", snapshotName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ "volumeName": autorest.Encode("path", volumeName),
+ }
+
+ const APIVersion = "2019-11-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.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots/{snapshotName}", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// DeleteSender sends the Delete request. The method will close the
+// http.Response Body if it receives an error.
+func (client SnapshotsClient) DeleteSender(req *http.Request) (future SnapshotsDeleteFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// DeleteResponder handles the response to the Delete request. The method always
+// closes the http.Response Body.
+func (client SnapshotsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent),
+ autorest.ByClosing())
+ result.Response = resp
+ return
+}
+
+// Get get details of the specified snapshot
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// accountName - the name of the NetApp account
+// poolName - the name of the capacity pool
+// volumeName - the name of the volume
+// snapshotName - the name of the mount target
+func (client SnapshotsClient) Get(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, snapshotName string) (result Snapshot, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/SnapshotsClient.Get")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ 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: poolName,
+ Constraints: []validation.Constraint{{Target: "poolName", Name: validation.MaxLength, Rule: 64, Chain: nil},
+ {Target: "poolName", Name: validation.MinLength, Rule: 1, Chain: nil},
+ {Target: "poolName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,63}$`, Chain: nil}}},
+ {TargetValue: volumeName,
+ Constraints: []validation.Constraint{{Target: "volumeName", Name: validation.MaxLength, Rule: 64, Chain: nil},
+ {Target: "volumeName", Name: validation.MinLength, Rule: 1, Chain: nil},
+ {Target: "volumeName", Name: validation.Pattern, Rule: `^[a-zA-Z][a-zA-Z0-9\-_]{0,63}$`, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("netapp.SnapshotsClient", "Get", err.Error())
+ }
+
+ req, err := client.GetPreparer(ctx, resourceGroupName, accountName, poolName, volumeName, snapshotName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "netapp.SnapshotsClient", "Get", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "netapp.SnapshotsClient", "Get", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "netapp.SnapshotsClient", "Get", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetPreparer prepares the Get request.
+func (client SnapshotsClient) GetPreparer(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, snapshotName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "accountName": autorest.Encode("path", accountName),
+ "poolName": autorest.Encode("path", poolName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "snapshotName": autorest.Encode("path", snapshotName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ "volumeName": autorest.Encode("path", volumeName),
+ }
+
+ const APIVersion = "2019-11-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.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots/{snapshotName}", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetSender sends the Get request. The method will close the
+// http.Response Body if it receives an error.
+func (client SnapshotsClient) GetSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetResponder handles the response to the Get request. The method always
+// closes the http.Response Body.
+func (client SnapshotsClient) GetResponder(resp *http.Response) (result Snapshot, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// List list all snapshots associated with the volume
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// accountName - the name of the NetApp account
+// poolName - the name of the capacity pool
+// volumeName - the name of the volume
+func (client SnapshotsClient) List(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string) (result SnapshotsList, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/SnapshotsClient.List")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ 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: poolName,
+ Constraints: []validation.Constraint{{Target: "poolName", Name: validation.MaxLength, Rule: 64, Chain: nil},
+ {Target: "poolName", Name: validation.MinLength, Rule: 1, Chain: nil},
+ {Target: "poolName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,63}$`, Chain: nil}}},
+ {TargetValue: volumeName,
+ Constraints: []validation.Constraint{{Target: "volumeName", Name: validation.MaxLength, Rule: 64, Chain: nil},
+ {Target: "volumeName", Name: validation.MinLength, Rule: 1, Chain: nil},
+ {Target: "volumeName", Name: validation.Pattern, Rule: `^[a-zA-Z][a-zA-Z0-9\-_]{0,63}$`, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("netapp.SnapshotsClient", "List", err.Error())
+ }
+
+ req, err := client.ListPreparer(ctx, resourceGroupName, accountName, poolName, volumeName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "netapp.SnapshotsClient", "List", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "netapp.SnapshotsClient", "List", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "netapp.SnapshotsClient", "List", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListPreparer prepares the List request.
+func (client SnapshotsClient) ListPreparer(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "accountName": autorest.Encode("path", accountName),
+ "poolName": autorest.Encode("path", poolName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ "volumeName": autorest.Encode("path", volumeName),
+ }
+
+ const APIVersion = "2019-11-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.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListSender sends the List request. The method will close the
+// http.Response Body if it receives an error.
+func (client SnapshotsClient) ListSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListResponder handles the response to the List request. The method always
+// closes the http.Response Body.
+func (client SnapshotsClient) ListResponder(resp *http.Response) (result SnapshotsList, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// Update patch a snapshot
+// Parameters:
+// body - snapshot object supplied in the body of the operation.
+// resourceGroupName - the name of the resource group.
+// accountName - the name of the NetApp account
+// poolName - the name of the capacity pool
+// volumeName - the name of the volume
+// snapshotName - the name of the mount target
+func (client SnapshotsClient) Update(ctx context.Context, body interface{}, resourceGroupName string, accountName string, poolName string, volumeName string, snapshotName string) (result SnapshotsUpdateFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/SnapshotsClient.Update")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ 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: poolName,
+ Constraints: []validation.Constraint{{Target: "poolName", Name: validation.MaxLength, Rule: 64, Chain: nil},
+ {Target: "poolName", Name: validation.MinLength, Rule: 1, Chain: nil},
+ {Target: "poolName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,63}$`, Chain: nil}}},
+ {TargetValue: volumeName,
+ Constraints: []validation.Constraint{{Target: "volumeName", Name: validation.MaxLength, Rule: 64, Chain: nil},
+ {Target: "volumeName", Name: validation.MinLength, Rule: 1, Chain: nil},
+ {Target: "volumeName", Name: validation.Pattern, Rule: `^[a-zA-Z][a-zA-Z0-9\-_]{0,63}$`, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("netapp.SnapshotsClient", "Update", err.Error())
+ }
+
+ req, err := client.UpdatePreparer(ctx, body, resourceGroupName, accountName, poolName, volumeName, snapshotName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "netapp.SnapshotsClient", "Update", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.UpdateSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "netapp.SnapshotsClient", "Update", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// UpdatePreparer prepares the Update request.
+func (client SnapshotsClient) UpdatePreparer(ctx context.Context, body interface{}, resourceGroupName string, accountName string, poolName string, volumeName string, snapshotName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "accountName": autorest.Encode("path", accountName),
+ "poolName": autorest.Encode("path", poolName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "snapshotName": autorest.Encode("path", snapshotName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ "volumeName": autorest.Encode("path", volumeName),
+ }
+
+ const APIVersion = "2019-11-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.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots/{snapshotName}", pathParameters),
+ autorest.WithJSON(body),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// UpdateSender sends the Update request. The method will close the
+// http.Response Body if it receives an error.
+func (client SnapshotsClient) UpdateSender(req *http.Request) (future SnapshotsUpdateFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// UpdateResponder handles the response to the Update request. The method always
+// closes the http.Response Body.
+func (client SnapshotsClient) UpdateResponder(resp *http.Response) (result Snapshot, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
diff --git a/services/netapp/mgmt/2019-11-01/netapp/version.go b/services/netapp/mgmt/2019-11-01/netapp/version.go
new file mode 100644
index 000000000000..2dd52af6e6aa
--- /dev/null
+++ b/services/netapp/mgmt/2019-11-01/netapp/version.go
@@ -0,0 +1,30 @@
+package netapp
+
+import "github.com/Azure/azure-sdk-for-go/version"
+
+// Copyright (c) Microsoft and contributors. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// UserAgent returns the UserAgent string to use when sending http.Requests.
+func UserAgent() string {
+ return "Azure-SDK-For-Go/" + version.Number + " netapp/2019-11-01"
+}
+
+// Version returns the semantic version (see http://semver.org) of the client.
+func Version() string {
+ return version.Number
+}
diff --git a/services/netapp/mgmt/2019-11-01/netapp/volumes.go b/services/netapp/mgmt/2019-11-01/netapp/volumes.go
new file mode 100644
index 000000000000..e65ce5ceeb05
--- /dev/null
+++ b/services/netapp/mgmt/2019-11-01/netapp/volumes.go
@@ -0,0 +1,1151 @@
+package netapp
+
+// Copyright (c) Microsoft and contributors. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+ "context"
+ "github.com/Azure/go-autorest/autorest"
+ "github.com/Azure/go-autorest/autorest/azure"
+ "github.com/Azure/go-autorest/autorest/validation"
+ "github.com/Azure/go-autorest/tracing"
+ "net/http"
+)
+
+// VolumesClient is the microsoft NetApp Azure Resource Provider specification
+type VolumesClient struct {
+ BaseClient
+}
+
+// NewVolumesClient creates an instance of the VolumesClient client.
+func NewVolumesClient(subscriptionID string) VolumesClient {
+ return NewVolumesClientWithBaseURI(DefaultBaseURI, subscriptionID)
+}
+
+// NewVolumesClientWithBaseURI creates an instance of the VolumesClient client using a custom endpoint. Use this when
+// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
+func NewVolumesClientWithBaseURI(baseURI string, subscriptionID string) VolumesClient {
+ return VolumesClient{NewWithBaseURI(baseURI, subscriptionID)}
+}
+
+// AuthorizeReplication authorize the replication connection on the source volume
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// accountName - the name of the NetApp account
+// poolName - the name of the capacity pool
+// volumeName - the name of the volume
+// body - authorize request object supplied in the body of the operation.
+func (client VolumesClient) AuthorizeReplication(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, body AuthorizeRequest) (result VolumesAuthorizeReplicationFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/VolumesClient.AuthorizeReplication")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ 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: poolName,
+ Constraints: []validation.Constraint{{Target: "poolName", Name: validation.MaxLength, Rule: 64, Chain: nil},
+ {Target: "poolName", Name: validation.MinLength, Rule: 1, Chain: nil},
+ {Target: "poolName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,63}$`, Chain: nil}}},
+ {TargetValue: volumeName,
+ Constraints: []validation.Constraint{{Target: "volumeName", Name: validation.MaxLength, Rule: 64, Chain: nil},
+ {Target: "volumeName", Name: validation.MinLength, Rule: 1, Chain: nil},
+ {Target: "volumeName", Name: validation.Pattern, Rule: `^[a-zA-Z][a-zA-Z0-9\-_]{0,63}$`, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("netapp.VolumesClient", "AuthorizeReplication", err.Error())
+ }
+
+ req, err := client.AuthorizeReplicationPreparer(ctx, resourceGroupName, accountName, poolName, volumeName, body)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "netapp.VolumesClient", "AuthorizeReplication", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.AuthorizeReplicationSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "netapp.VolumesClient", "AuthorizeReplication", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// AuthorizeReplicationPreparer prepares the AuthorizeReplication request.
+func (client VolumesClient) AuthorizeReplicationPreparer(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, body AuthorizeRequest) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "accountName": autorest.Encode("path", accountName),
+ "poolName": autorest.Encode("path", poolName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ "volumeName": autorest.Encode("path", volumeName),
+ }
+
+ const APIVersion = "2019-11-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPost(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/authorizeReplication", pathParameters),
+ autorest.WithJSON(body),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// AuthorizeReplicationSender sends the AuthorizeReplication request. The method will close the
+// http.Response Body if it receives an error.
+func (client VolumesClient) AuthorizeReplicationSender(req *http.Request) (future VolumesAuthorizeReplicationFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// AuthorizeReplicationResponder handles the response to the AuthorizeReplication request. The method always
+// closes the http.Response Body.
+func (client VolumesClient) AuthorizeReplicationResponder(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
+}
+
+// BreakReplication break the replication connection on the destination volume
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// accountName - the name of the NetApp account
+// poolName - the name of the capacity pool
+// volumeName - the name of the volume
+func (client VolumesClient) BreakReplication(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string) (result VolumesBreakReplicationFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/VolumesClient.BreakReplication")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ 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: poolName,
+ Constraints: []validation.Constraint{{Target: "poolName", Name: validation.MaxLength, Rule: 64, Chain: nil},
+ {Target: "poolName", Name: validation.MinLength, Rule: 1, Chain: nil},
+ {Target: "poolName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,63}$`, Chain: nil}}},
+ {TargetValue: volumeName,
+ Constraints: []validation.Constraint{{Target: "volumeName", Name: validation.MaxLength, Rule: 64, Chain: nil},
+ {Target: "volumeName", Name: validation.MinLength, Rule: 1, Chain: nil},
+ {Target: "volumeName", Name: validation.Pattern, Rule: `^[a-zA-Z][a-zA-Z0-9\-_]{0,63}$`, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("netapp.VolumesClient", "BreakReplication", err.Error())
+ }
+
+ req, err := client.BreakReplicationPreparer(ctx, resourceGroupName, accountName, poolName, volumeName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "netapp.VolumesClient", "BreakReplication", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.BreakReplicationSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "netapp.VolumesClient", "BreakReplication", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// BreakReplicationPreparer prepares the BreakReplication request.
+func (client VolumesClient) BreakReplicationPreparer(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "accountName": autorest.Encode("path", accountName),
+ "poolName": autorest.Encode("path", poolName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ "volumeName": autorest.Encode("path", volumeName),
+ }
+
+ const APIVersion = "2019-11-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.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/breakReplication", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// BreakReplicationSender sends the BreakReplication request. The method will close the
+// http.Response Body if it receives an error.
+func (client VolumesClient) BreakReplicationSender(req *http.Request) (future VolumesBreakReplicationFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// BreakReplicationResponder handles the response to the BreakReplication request. The method always
+// closes the http.Response Body.
+func (client VolumesClient) BreakReplicationResponder(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
+}
+
+// CreateOrUpdate create or update the specified volume within the capacity pool
+// Parameters:
+// body - volume object supplied in the body of the operation.
+// resourceGroupName - the name of the resource group.
+// accountName - the name of the NetApp account
+// poolName - the name of the capacity pool
+// volumeName - the name of the volume
+func (client VolumesClient) CreateOrUpdate(ctx context.Context, body Volume, resourceGroupName string, accountName string, poolName string, volumeName string) (result VolumesCreateOrUpdateFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/VolumesClient.CreateOrUpdate")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: body,
+ Constraints: []validation.Constraint{{Target: "body.Location", Name: validation.Null, Rule: true, Chain: nil},
+ {Target: "body.VolumeProperties", Name: validation.Null, Rule: true,
+ Chain: []validation.Constraint{{Target: "body.VolumeProperties.FileSystemID", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "body.VolumeProperties.FileSystemID", Name: validation.MaxLength, Rule: 36, Chain: nil},
+ {Target: "body.VolumeProperties.FileSystemID", Name: validation.MinLength, Rule: 36, Chain: nil},
+ {Target: "body.VolumeProperties.FileSystemID", Name: validation.Pattern, Rule: `^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$`, Chain: nil},
+ }},
+ {Target: "body.VolumeProperties.CreationToken", Name: validation.Null, Rule: true,
+ Chain: []validation.Constraint{{Target: "body.VolumeProperties.CreationToken", Name: validation.MaxLength, Rule: 80, Chain: nil},
+ {Target: "body.VolumeProperties.CreationToken", Name: validation.MinLength, Rule: 1, Chain: nil},
+ {Target: "body.VolumeProperties.CreationToken", Name: validation.Pattern, Rule: `^[a-zA-Z][a-zA-Z0-9\-]{0,79}$`, Chain: nil},
+ }},
+ {Target: "body.VolumeProperties.UsageThreshold", Name: validation.Null, Rule: true,
+ Chain: []validation.Constraint{{Target: "body.VolumeProperties.UsageThreshold", Name: validation.InclusiveMaximum, Rule: int64(109951162777600), Chain: nil},
+ {Target: "body.VolumeProperties.UsageThreshold", Name: validation.InclusiveMinimum, Rule: int64(107374182400), Chain: nil},
+ }},
+ {Target: "body.VolumeProperties.SnapshotID", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "body.VolumeProperties.SnapshotID", Name: validation.MaxLength, Rule: 36, Chain: nil},
+ {Target: "body.VolumeProperties.SnapshotID", Name: validation.MinLength, Rule: 36, Chain: nil},
+ {Target: "body.VolumeProperties.SnapshotID", Name: validation.Pattern, Rule: `^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}|(\\?([^\/]*[\/])*)([^\/]+)$`, Chain: nil},
+ }},
+ {Target: "body.VolumeProperties.BaremetalTenantID", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "body.VolumeProperties.BaremetalTenantID", Name: validation.MaxLength, Rule: 36, Chain: nil},
+ {Target: "body.VolumeProperties.BaremetalTenantID", Name: validation.MinLength, Rule: 36, Chain: nil},
+ {Target: "body.VolumeProperties.BaremetalTenantID", Name: validation.Pattern, Rule: `^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$`, Chain: nil},
+ }},
+ {Target: "body.VolumeProperties.SubnetID", Name: validation.Null, Rule: true, Chain: nil},
+ {Target: "body.VolumeProperties.DataProtection", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "body.VolumeProperties.DataProtection.Replication", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "body.VolumeProperties.DataProtection.Replication.RemoteVolumeResourceID", Name: validation.Null, Rule: true, Chain: nil}}},
+ }},
+ }}}},
+ {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: poolName,
+ Constraints: []validation.Constraint{{Target: "poolName", Name: validation.MaxLength, Rule: 64, Chain: nil},
+ {Target: "poolName", Name: validation.MinLength, Rule: 1, Chain: nil},
+ {Target: "poolName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,63}$`, Chain: nil}}},
+ {TargetValue: volumeName,
+ Constraints: []validation.Constraint{{Target: "volumeName", Name: validation.MaxLength, Rule: 64, Chain: nil},
+ {Target: "volumeName", Name: validation.MinLength, Rule: 1, Chain: nil},
+ {Target: "volumeName", Name: validation.Pattern, Rule: `^[a-zA-Z][a-zA-Z0-9\-_]{0,63}$`, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("netapp.VolumesClient", "CreateOrUpdate", err.Error())
+ }
+
+ req, err := client.CreateOrUpdatePreparer(ctx, body, resourceGroupName, accountName, poolName, volumeName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "netapp.VolumesClient", "CreateOrUpdate", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.CreateOrUpdateSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "netapp.VolumesClient", "CreateOrUpdate", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// CreateOrUpdatePreparer prepares the CreateOrUpdate request.
+func (client VolumesClient) CreateOrUpdatePreparer(ctx context.Context, body Volume, resourceGroupName string, accountName string, poolName string, volumeName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "accountName": autorest.Encode("path", accountName),
+ "poolName": autorest.Encode("path", poolName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ "volumeName": autorest.Encode("path", volumeName),
+ }
+
+ const APIVersion = "2019-11-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ body.ID = nil
+ body.Name = nil
+ body.Type = nil
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPut(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}", pathParameters),
+ autorest.WithJSON(body),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the
+// http.Response Body if it receives an error.
+func (client VolumesClient) CreateOrUpdateSender(req *http.Request) (future VolumesCreateOrUpdateFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always
+// closes the http.Response Body.
+func (client VolumesClient) CreateOrUpdateResponder(resp *http.Response) (result Volume, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated, http.StatusAccepted),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// Delete delete the specified volume
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// accountName - the name of the NetApp account
+// poolName - the name of the capacity pool
+// volumeName - the name of the volume
+func (client VolumesClient) Delete(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string) (result VolumesDeleteFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/VolumesClient.Delete")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ 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: poolName,
+ Constraints: []validation.Constraint{{Target: "poolName", Name: validation.MaxLength, Rule: 64, Chain: nil},
+ {Target: "poolName", Name: validation.MinLength, Rule: 1, Chain: nil},
+ {Target: "poolName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,63}$`, Chain: nil}}},
+ {TargetValue: volumeName,
+ Constraints: []validation.Constraint{{Target: "volumeName", Name: validation.MaxLength, Rule: 64, Chain: nil},
+ {Target: "volumeName", Name: validation.MinLength, Rule: 1, Chain: nil},
+ {Target: "volumeName", Name: validation.Pattern, Rule: `^[a-zA-Z][a-zA-Z0-9\-_]{0,63}$`, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("netapp.VolumesClient", "Delete", err.Error())
+ }
+
+ req, err := client.DeletePreparer(ctx, resourceGroupName, accountName, poolName, volumeName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "netapp.VolumesClient", "Delete", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.DeleteSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "netapp.VolumesClient", "Delete", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// DeletePreparer prepares the Delete request.
+func (client VolumesClient) DeletePreparer(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "accountName": autorest.Encode("path", accountName),
+ "poolName": autorest.Encode("path", poolName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ "volumeName": autorest.Encode("path", volumeName),
+ }
+
+ const APIVersion = "2019-11-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.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// DeleteSender sends the Delete request. The method will close the
+// http.Response Body if it receives an error.
+func (client VolumesClient) DeleteSender(req *http.Request) (future VolumesDeleteFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// DeleteResponder handles the response to the Delete request. The method always
+// closes the http.Response Body.
+func (client VolumesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent),
+ autorest.ByClosing())
+ result.Response = resp
+ return
+}
+
+// DeleteReplication delete the replication connection on the destination volume, and send release to the source
+// replication
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// accountName - the name of the NetApp account
+// poolName - the name of the capacity pool
+// volumeName - the name of the volume
+func (client VolumesClient) DeleteReplication(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string) (result VolumesDeleteReplicationFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/VolumesClient.DeleteReplication")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ 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: poolName,
+ Constraints: []validation.Constraint{{Target: "poolName", Name: validation.MaxLength, Rule: 64, Chain: nil},
+ {Target: "poolName", Name: validation.MinLength, Rule: 1, Chain: nil},
+ {Target: "poolName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,63}$`, Chain: nil}}},
+ {TargetValue: volumeName,
+ Constraints: []validation.Constraint{{Target: "volumeName", Name: validation.MaxLength, Rule: 64, Chain: nil},
+ {Target: "volumeName", Name: validation.MinLength, Rule: 1, Chain: nil},
+ {Target: "volumeName", Name: validation.Pattern, Rule: `^[a-zA-Z][a-zA-Z0-9\-_]{0,63}$`, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("netapp.VolumesClient", "DeleteReplication", err.Error())
+ }
+
+ req, err := client.DeleteReplicationPreparer(ctx, resourceGroupName, accountName, poolName, volumeName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "netapp.VolumesClient", "DeleteReplication", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.DeleteReplicationSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "netapp.VolumesClient", "DeleteReplication", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// DeleteReplicationPreparer prepares the DeleteReplication request.
+func (client VolumesClient) DeleteReplicationPreparer(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "accountName": autorest.Encode("path", accountName),
+ "poolName": autorest.Encode("path", poolName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ "volumeName": autorest.Encode("path", volumeName),
+ }
+
+ const APIVersion = "2019-11-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.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/deleteReplication", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// DeleteReplicationSender sends the DeleteReplication request. The method will close the
+// http.Response Body if it receives an error.
+func (client VolumesClient) DeleteReplicationSender(req *http.Request) (future VolumesDeleteReplicationFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// DeleteReplicationResponder handles the response to the DeleteReplication request. The method always
+// closes the http.Response Body.
+func (client VolumesClient) DeleteReplicationResponder(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
+}
+
+// Get get the details of the specified volume
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// accountName - the name of the NetApp account
+// poolName - the name of the capacity pool
+// volumeName - the name of the volume
+func (client VolumesClient) Get(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string) (result Volume, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/VolumesClient.Get")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ 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: poolName,
+ Constraints: []validation.Constraint{{Target: "poolName", Name: validation.MaxLength, Rule: 64, Chain: nil},
+ {Target: "poolName", Name: validation.MinLength, Rule: 1, Chain: nil},
+ {Target: "poolName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,63}$`, Chain: nil}}},
+ {TargetValue: volumeName,
+ Constraints: []validation.Constraint{{Target: "volumeName", Name: validation.MaxLength, Rule: 64, Chain: nil},
+ {Target: "volumeName", Name: validation.MinLength, Rule: 1, Chain: nil},
+ {Target: "volumeName", Name: validation.Pattern, Rule: `^[a-zA-Z][a-zA-Z0-9\-_]{0,63}$`, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("netapp.VolumesClient", "Get", err.Error())
+ }
+
+ req, err := client.GetPreparer(ctx, resourceGroupName, accountName, poolName, volumeName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "netapp.VolumesClient", "Get", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "netapp.VolumesClient", "Get", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "netapp.VolumesClient", "Get", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetPreparer prepares the Get request.
+func (client VolumesClient) GetPreparer(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "accountName": autorest.Encode("path", accountName),
+ "poolName": autorest.Encode("path", poolName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ "volumeName": autorest.Encode("path", volumeName),
+ }
+
+ const APIVersion = "2019-11-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.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetSender sends the Get request. The method will close the
+// http.Response Body if it receives an error.
+func (client VolumesClient) GetSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetResponder handles the response to the Get request. The method always
+// closes the http.Response Body.
+func (client VolumesClient) GetResponder(resp *http.Response) (result Volume, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// List list all volumes within the capacity pool
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// accountName - the name of the NetApp account
+// poolName - the name of the capacity pool
+func (client VolumesClient) List(ctx context.Context, resourceGroupName string, accountName string, poolName string) (result VolumeList, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/VolumesClient.List")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ 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: poolName,
+ Constraints: []validation.Constraint{{Target: "poolName", Name: validation.MaxLength, Rule: 64, Chain: nil},
+ {Target: "poolName", Name: validation.MinLength, Rule: 1, Chain: nil},
+ {Target: "poolName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,63}$`, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("netapp.VolumesClient", "List", err.Error())
+ }
+
+ req, err := client.ListPreparer(ctx, resourceGroupName, accountName, poolName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "netapp.VolumesClient", "List", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "netapp.VolumesClient", "List", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "netapp.VolumesClient", "List", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListPreparer prepares the List request.
+func (client VolumesClient) ListPreparer(ctx context.Context, resourceGroupName string, accountName string, poolName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "accountName": autorest.Encode("path", accountName),
+ "poolName": autorest.Encode("path", poolName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListSender sends the List request. The method will close the
+// http.Response Body if it receives an error.
+func (client VolumesClient) ListSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListResponder handles the response to the List request. The method always
+// closes the http.Response Body.
+func (client VolumesClient) ListResponder(resp *http.Response) (result VolumeList, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// ReplicationStatusMethod get the status of the replication
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// accountName - the name of the NetApp account
+// poolName - the name of the capacity pool
+// volumeName - the name of the volume
+func (client VolumesClient) ReplicationStatusMethod(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string) (result ReplicationStatus, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/VolumesClient.ReplicationStatusMethod")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ 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: poolName,
+ Constraints: []validation.Constraint{{Target: "poolName", Name: validation.MaxLength, Rule: 64, Chain: nil},
+ {Target: "poolName", Name: validation.MinLength, Rule: 1, Chain: nil},
+ {Target: "poolName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,63}$`, Chain: nil}}},
+ {TargetValue: volumeName,
+ Constraints: []validation.Constraint{{Target: "volumeName", Name: validation.MaxLength, Rule: 64, Chain: nil},
+ {Target: "volumeName", Name: validation.MinLength, Rule: 1, Chain: nil},
+ {Target: "volumeName", Name: validation.Pattern, Rule: `^[a-zA-Z][a-zA-Z0-9\-_]{0,63}$`, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("netapp.VolumesClient", "ReplicationStatusMethod", err.Error())
+ }
+
+ req, err := client.ReplicationStatusMethodPreparer(ctx, resourceGroupName, accountName, poolName, volumeName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "netapp.VolumesClient", "ReplicationStatusMethod", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ReplicationStatusMethodSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "netapp.VolumesClient", "ReplicationStatusMethod", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.ReplicationStatusMethodResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "netapp.VolumesClient", "ReplicationStatusMethod", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ReplicationStatusMethodPreparer prepares the ReplicationStatusMethod request.
+func (client VolumesClient) ReplicationStatusMethodPreparer(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "accountName": autorest.Encode("path", accountName),
+ "poolName": autorest.Encode("path", poolName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ "volumeName": autorest.Encode("path", volumeName),
+ }
+
+ const APIVersion = "2019-11-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.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/replicationStatus", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ReplicationStatusMethodSender sends the ReplicationStatusMethod request. The method will close the
+// http.Response Body if it receives an error.
+func (client VolumesClient) ReplicationStatusMethodSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ReplicationStatusMethodResponder handles the response to the ReplicationStatusMethod request. The method always
+// closes the http.Response Body.
+func (client VolumesClient) ReplicationStatusMethodResponder(resp *http.Response) (result ReplicationStatus, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// ResyncReplication resync the connection on the destination volume. If the operation is ran on the source volume it
+// will reverse-resync the connection and sync from source to destination.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// accountName - the name of the NetApp account
+// poolName - the name of the capacity pool
+// volumeName - the name of the volume
+func (client VolumesClient) ResyncReplication(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string) (result VolumesResyncReplicationFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/VolumesClient.ResyncReplication")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ 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: poolName,
+ Constraints: []validation.Constraint{{Target: "poolName", Name: validation.MaxLength, Rule: 64, Chain: nil},
+ {Target: "poolName", Name: validation.MinLength, Rule: 1, Chain: nil},
+ {Target: "poolName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,63}$`, Chain: nil}}},
+ {TargetValue: volumeName,
+ Constraints: []validation.Constraint{{Target: "volumeName", Name: validation.MaxLength, Rule: 64, Chain: nil},
+ {Target: "volumeName", Name: validation.MinLength, Rule: 1, Chain: nil},
+ {Target: "volumeName", Name: validation.Pattern, Rule: `^[a-zA-Z][a-zA-Z0-9\-_]{0,63}$`, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("netapp.VolumesClient", "ResyncReplication", err.Error())
+ }
+
+ req, err := client.ResyncReplicationPreparer(ctx, resourceGroupName, accountName, poolName, volumeName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "netapp.VolumesClient", "ResyncReplication", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.ResyncReplicationSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "netapp.VolumesClient", "ResyncReplication", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// ResyncReplicationPreparer prepares the ResyncReplication request.
+func (client VolumesClient) ResyncReplicationPreparer(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "accountName": autorest.Encode("path", accountName),
+ "poolName": autorest.Encode("path", poolName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ "volumeName": autorest.Encode("path", volumeName),
+ }
+
+ const APIVersion = "2019-11-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.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/resyncReplication", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ResyncReplicationSender sends the ResyncReplication request. The method will close the
+// http.Response Body if it receives an error.
+func (client VolumesClient) ResyncReplicationSender(req *http.Request) (future VolumesResyncReplicationFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// ResyncReplicationResponder handles the response to the ResyncReplication request. The method always
+// closes the http.Response Body.
+func (client VolumesClient) ResyncReplicationResponder(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
+}
+
+// Revert revert a volume to the snapshot specified in the body
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// accountName - the name of the NetApp account
+// poolName - the name of the capacity pool
+// volumeName - the name of the volume
+// body - object for snapshot to revert supplied in the body of the operation.
+func (client VolumesClient) Revert(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, body VolumeRevert) (result VolumesRevertFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/VolumesClient.Revert")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ 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: poolName,
+ Constraints: []validation.Constraint{{Target: "poolName", Name: validation.MaxLength, Rule: 64, Chain: nil},
+ {Target: "poolName", Name: validation.MinLength, Rule: 1, Chain: nil},
+ {Target: "poolName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,63}$`, Chain: nil}}},
+ {TargetValue: volumeName,
+ Constraints: []validation.Constraint{{Target: "volumeName", Name: validation.MaxLength, Rule: 64, Chain: nil},
+ {Target: "volumeName", Name: validation.MinLength, Rule: 1, Chain: nil},
+ {Target: "volumeName", Name: validation.Pattern, Rule: `^[a-zA-Z][a-zA-Z0-9\-_]{0,63}$`, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("netapp.VolumesClient", "Revert", err.Error())
+ }
+
+ req, err := client.RevertPreparer(ctx, resourceGroupName, accountName, poolName, volumeName, body)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "netapp.VolumesClient", "Revert", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.RevertSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "netapp.VolumesClient", "Revert", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// RevertPreparer prepares the Revert request.
+func (client VolumesClient) RevertPreparer(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, body VolumeRevert) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "accountName": autorest.Encode("path", accountName),
+ "poolName": autorest.Encode("path", poolName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ "volumeName": autorest.Encode("path", volumeName),
+ }
+
+ const APIVersion = "2019-11-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPost(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/revert", pathParameters),
+ autorest.WithJSON(body),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// RevertSender sends the Revert request. The method will close the
+// http.Response Body if it receives an error.
+func (client VolumesClient) RevertSender(req *http.Request) (future VolumesRevertFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// RevertResponder handles the response to the Revert request. The method always
+// closes the http.Response Body.
+func (client VolumesClient) RevertResponder(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 patch the specified volume
+// Parameters:
+// body - volume object supplied in the body of the operation.
+// resourceGroupName - the name of the resource group.
+// accountName - the name of the NetApp account
+// poolName - the name of the capacity pool
+// volumeName - the name of the volume
+func (client VolumesClient) Update(ctx context.Context, body VolumePatch, resourceGroupName string, accountName string, poolName string, volumeName string) (result VolumesUpdateFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/VolumesClient.Update")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ 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: poolName,
+ Constraints: []validation.Constraint{{Target: "poolName", Name: validation.MaxLength, Rule: 64, Chain: nil},
+ {Target: "poolName", Name: validation.MinLength, Rule: 1, Chain: nil},
+ {Target: "poolName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,63}$`, Chain: nil}}},
+ {TargetValue: volumeName,
+ Constraints: []validation.Constraint{{Target: "volumeName", Name: validation.MaxLength, Rule: 64, Chain: nil},
+ {Target: "volumeName", Name: validation.MinLength, Rule: 1, Chain: nil},
+ {Target: "volumeName", Name: validation.Pattern, Rule: `^[a-zA-Z][a-zA-Z0-9\-_]{0,63}$`, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("netapp.VolumesClient", "Update", err.Error())
+ }
+
+ req, err := client.UpdatePreparer(ctx, body, resourceGroupName, accountName, poolName, volumeName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "netapp.VolumesClient", "Update", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.UpdateSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "netapp.VolumesClient", "Update", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// UpdatePreparer prepares the Update request.
+func (client VolumesClient) UpdatePreparer(ctx context.Context, body VolumePatch, resourceGroupName string, accountName string, poolName string, volumeName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "accountName": autorest.Encode("path", accountName),
+ "poolName": autorest.Encode("path", poolName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ "volumeName": autorest.Encode("path", volumeName),
+ }
+
+ const APIVersion = "2019-11-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ body.ID = nil
+ body.Name = nil
+ body.Type = nil
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPatch(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}", pathParameters),
+ autorest.WithJSON(body),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// UpdateSender sends the Update request. The method will close the
+// http.Response Body if it receives an error.
+func (client VolumesClient) UpdateSender(req *http.Request) (future VolumesUpdateFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// UpdateResponder handles the response to the Update request. The method always
+// closes the http.Response Body.
+func (client VolumesClient) UpdateResponder(resp *http.Response) (result Volume, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
diff --git a/services/network/mgmt/2015-06-15/network/applicationgateways.go b/services/network/mgmt/2015-06-15/network/applicationgateways.go
index f02c887e63d5..5d70fdd9d288 100644
--- a/services/network/mgmt/2015-06-15/network/applicationgateways.go
+++ b/services/network/mgmt/2015-06-15/network/applicationgateways.go
@@ -35,7 +35,9 @@ func NewApplicationGatewaysClient(subscriptionID string) ApplicationGatewaysClie
return NewApplicationGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewApplicationGatewaysClientWithBaseURI creates an instance of the ApplicationGatewaysClient client.
+// NewApplicationGatewaysClientWithBaseURI creates an instance of the ApplicationGatewaysClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewApplicationGatewaysClientWithBaseURI(baseURI string, subscriptionID string) ApplicationGatewaysClient {
return ApplicationGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2015-06-15/network/client.go b/services/network/mgmt/2015-06-15/network/client.go
index 8a41870069f3..4f6d5ca5c232 100644
--- a/services/network/mgmt/2015-06-15/network/client.go
+++ b/services/network/mgmt/2015-06-15/network/client.go
@@ -45,7 +45,8 @@ func New(subscriptionID string) BaseClient {
return NewWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewWithBaseURI creates an instance of the BaseClient client.
+// NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with
+// an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient {
return BaseClient{
Client: autorest.NewClientWithUserAgent(UserAgent()),
diff --git a/services/network/mgmt/2015-06-15/network/expressroutecircuitauthorizations.go b/services/network/mgmt/2015-06-15/network/expressroutecircuitauthorizations.go
index 52155a321975..9e683dafa2a2 100644
--- a/services/network/mgmt/2015-06-15/network/expressroutecircuitauthorizations.go
+++ b/services/network/mgmt/2015-06-15/network/expressroutecircuitauthorizations.go
@@ -37,7 +37,8 @@ func NewExpressRouteCircuitAuthorizationsClient(subscriptionID string) ExpressRo
}
// NewExpressRouteCircuitAuthorizationsClientWithBaseURI creates an instance of the
-// ExpressRouteCircuitAuthorizationsClient client.
+// ExpressRouteCircuitAuthorizationsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewExpressRouteCircuitAuthorizationsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCircuitAuthorizationsClient {
return ExpressRouteCircuitAuthorizationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2015-06-15/network/expressroutecircuitpeerings.go b/services/network/mgmt/2015-06-15/network/expressroutecircuitpeerings.go
index 81252fe0cd0c..c8d29eab3a27 100644
--- a/services/network/mgmt/2015-06-15/network/expressroutecircuitpeerings.go
+++ b/services/network/mgmt/2015-06-15/network/expressroutecircuitpeerings.go
@@ -35,7 +35,9 @@ func NewExpressRouteCircuitPeeringsClient(subscriptionID string) ExpressRouteCir
return NewExpressRouteCircuitPeeringsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewExpressRouteCircuitPeeringsClientWithBaseURI creates an instance of the ExpressRouteCircuitPeeringsClient client.
+// NewExpressRouteCircuitPeeringsClientWithBaseURI creates an instance of the ExpressRouteCircuitPeeringsClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewExpressRouteCircuitPeeringsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCircuitPeeringsClient {
return ExpressRouteCircuitPeeringsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2015-06-15/network/expressroutecircuits.go b/services/network/mgmt/2015-06-15/network/expressroutecircuits.go
index 893e8e468359..b8fcde7f004a 100644
--- a/services/network/mgmt/2015-06-15/network/expressroutecircuits.go
+++ b/services/network/mgmt/2015-06-15/network/expressroutecircuits.go
@@ -35,7 +35,9 @@ func NewExpressRouteCircuitsClient(subscriptionID string) ExpressRouteCircuitsCl
return NewExpressRouteCircuitsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewExpressRouteCircuitsClientWithBaseURI creates an instance of the ExpressRouteCircuitsClient client.
+// NewExpressRouteCircuitsClientWithBaseURI creates an instance of the ExpressRouteCircuitsClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewExpressRouteCircuitsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCircuitsClient {
return ExpressRouteCircuitsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2015-06-15/network/expressrouteserviceproviders.go b/services/network/mgmt/2015-06-15/network/expressrouteserviceproviders.go
index 680b36c9153c..8efbd083446a 100644
--- a/services/network/mgmt/2015-06-15/network/expressrouteserviceproviders.go
+++ b/services/network/mgmt/2015-06-15/network/expressrouteserviceproviders.go
@@ -36,7 +36,8 @@ func NewExpressRouteServiceProvidersClient(subscriptionID string) ExpressRouteSe
}
// NewExpressRouteServiceProvidersClientWithBaseURI creates an instance of the ExpressRouteServiceProvidersClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewExpressRouteServiceProvidersClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteServiceProvidersClient {
return ExpressRouteServiceProvidersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2015-06-15/network/interfacesgroup.go b/services/network/mgmt/2015-06-15/network/interfacesgroup.go
index cef9933f56ba..91899dadc256 100644
--- a/services/network/mgmt/2015-06-15/network/interfacesgroup.go
+++ b/services/network/mgmt/2015-06-15/network/interfacesgroup.go
@@ -35,7 +35,8 @@ func NewInterfacesClient(subscriptionID string) InterfacesClient {
return NewInterfacesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewInterfacesClientWithBaseURI creates an instance of the InterfacesClient client.
+// NewInterfacesClientWithBaseURI creates an instance of the InterfacesClient client using a custom endpoint. Use this
+// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewInterfacesClientWithBaseURI(baseURI string, subscriptionID string) InterfacesClient {
return InterfacesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2015-06-15/network/loadbalancers.go b/services/network/mgmt/2015-06-15/network/loadbalancers.go
index 200eeea9c480..ae7920631eb8 100644
--- a/services/network/mgmt/2015-06-15/network/loadbalancers.go
+++ b/services/network/mgmt/2015-06-15/network/loadbalancers.go
@@ -35,7 +35,8 @@ func NewLoadBalancersClient(subscriptionID string) LoadBalancersClient {
return NewLoadBalancersClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewLoadBalancersClientWithBaseURI creates an instance of the LoadBalancersClient client.
+// NewLoadBalancersClientWithBaseURI creates an instance of the LoadBalancersClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewLoadBalancersClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancersClient {
return LoadBalancersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2015-06-15/network/localnetworkgateways.go b/services/network/mgmt/2015-06-15/network/localnetworkgateways.go
index 7806579d1bce..558282a24967 100644
--- a/services/network/mgmt/2015-06-15/network/localnetworkgateways.go
+++ b/services/network/mgmt/2015-06-15/network/localnetworkgateways.go
@@ -35,7 +35,9 @@ func NewLocalNetworkGatewaysClient(subscriptionID string) LocalNetworkGatewaysCl
return NewLocalNetworkGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewLocalNetworkGatewaysClientWithBaseURI creates an instance of the LocalNetworkGatewaysClient client.
+// NewLocalNetworkGatewaysClientWithBaseURI creates an instance of the LocalNetworkGatewaysClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewLocalNetworkGatewaysClientWithBaseURI(baseURI string, subscriptionID string) LocalNetworkGatewaysClient {
return LocalNetworkGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2015-06-15/network/networkapi/interfaces.go b/services/network/mgmt/2015-06-15/network/networkapi/interfaces.go
index 4cbabd9f0c41..b17456253181 100644
--- a/services/network/mgmt/2015-06-15/network/networkapi/interfaces.go
+++ b/services/network/mgmt/2015-06-15/network/networkapi/interfaces.go
@@ -35,7 +35,9 @@ type ApplicationGatewaysClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result network.ApplicationGatewaysDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result network.ApplicationGateway, err error)
List(ctx context.Context, resourceGroupName string) (result network.ApplicationGatewayListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.ApplicationGatewayListResultIterator, err error)
ListAll(ctx context.Context) (result network.ApplicationGatewayListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.ApplicationGatewayListResultIterator, err error)
Start(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result network.ApplicationGatewaysStartFuture, err error)
Stop(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result network.ApplicationGatewaysStopFuture, err error)
}
@@ -48,6 +50,7 @@ type ExpressRouteCircuitAuthorizationsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, circuitName string, authorizationName string) (result network.ExpressRouteCircuitAuthorizationsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, circuitName string, authorizationName string) (result network.ExpressRouteCircuitAuthorization, err error)
List(ctx context.Context, resourceGroupName string, circuitName string) (result network.AuthorizationListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, circuitName string) (result network.AuthorizationListResultIterator, err error)
}
var _ ExpressRouteCircuitAuthorizationsClientAPI = (*network.ExpressRouteCircuitAuthorizationsClient)(nil)
@@ -58,6 +61,7 @@ type ExpressRouteCircuitPeeringsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.ExpressRouteCircuitPeeringsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.ExpressRouteCircuitPeering, err error)
List(ctx context.Context, resourceGroupName string, circuitName string) (result network.ExpressRouteCircuitPeeringListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, circuitName string) (result network.ExpressRouteCircuitPeeringListResultIterator, err error)
}
var _ ExpressRouteCircuitPeeringsClientAPI = (*network.ExpressRouteCircuitPeeringsClient)(nil)
@@ -68,10 +72,15 @@ type ExpressRouteCircuitsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, circuitName string) (result network.ExpressRouteCircuitsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, circuitName string) (result network.ExpressRouteCircuit, err error)
List(ctx context.Context, resourceGroupName string) (result network.ExpressRouteCircuitListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.ExpressRouteCircuitListResultIterator, err error)
ListAll(ctx context.Context) (result network.ExpressRouteCircuitListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.ExpressRouteCircuitListResultIterator, err error)
ListArpTable(ctx context.Context, resourceGroupName string, circuitName string) (result network.ExpressRouteCircuitsArpTableListResultPage, err error)
+ ListArpTableComplete(ctx context.Context, resourceGroupName string, circuitName string) (result network.ExpressRouteCircuitsArpTableListResultIterator, err error)
ListRoutesTable(ctx context.Context, resourceGroupName string, circuitName string) (result network.ExpressRouteCircuitsRoutesTableListResultPage, err error)
+ ListRoutesTableComplete(ctx context.Context, resourceGroupName string, circuitName string) (result network.ExpressRouteCircuitsRoutesTableListResultIterator, err error)
ListStats(ctx context.Context, resourceGroupName string, circuitName string) (result network.ExpressRouteCircuitsStatsListResultPage, err error)
+ ListStatsComplete(ctx context.Context, resourceGroupName string, circuitName string) (result network.ExpressRouteCircuitsStatsListResultIterator, err error)
}
var _ ExpressRouteCircuitsClientAPI = (*network.ExpressRouteCircuitsClient)(nil)
@@ -79,6 +88,7 @@ var _ ExpressRouteCircuitsClientAPI = (*network.ExpressRouteCircuitsClient)(nil)
// ExpressRouteServiceProvidersClientAPI contains the set of methods on the ExpressRouteServiceProvidersClient type.
type ExpressRouteServiceProvidersClientAPI interface {
List(ctx context.Context) (result network.ExpressRouteServiceProviderListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ExpressRouteServiceProviderListResultIterator, err error)
}
var _ ExpressRouteServiceProvidersClientAPI = (*network.ExpressRouteServiceProvidersClient)(nil)
@@ -89,7 +99,9 @@ type LoadBalancersClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancersDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, expand string) (result network.LoadBalancer, err error)
List(ctx context.Context, resourceGroupName string) (result network.LoadBalancerListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.LoadBalancerListResultIterator, err error)
ListAll(ctx context.Context) (result network.LoadBalancerListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.LoadBalancerListResultIterator, err error)
}
var _ LoadBalancersClientAPI = (*network.LoadBalancersClient)(nil)
@@ -101,9 +113,13 @@ type InterfacesClientAPI interface {
Get(ctx context.Context, resourceGroupName string, networkInterfaceName string, expand string) (result network.Interface, err error)
GetVirtualMachineScaleSetNetworkInterface(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, expand string) (result network.Interface, err error)
List(ctx context.Context, resourceGroupName string) (result network.InterfaceListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.InterfaceListResultIterator, err error)
ListAll(ctx context.Context) (result network.InterfaceListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.InterfaceListResultIterator, err error)
ListVirtualMachineScaleSetNetworkInterfaces(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result network.InterfaceListResultPage, err error)
+ ListVirtualMachineScaleSetNetworkInterfacesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result network.InterfaceListResultIterator, err error)
ListVirtualMachineScaleSetVMNetworkInterfaces(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string) (result network.InterfaceListResultPage, err error)
+ ListVirtualMachineScaleSetVMNetworkInterfacesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string) (result network.InterfaceListResultIterator, err error)
}
var _ InterfacesClientAPI = (*network.InterfacesClient)(nil)
@@ -114,7 +130,9 @@ type SecurityGroupsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityGroupsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, expand string) (result network.SecurityGroup, err error)
List(ctx context.Context, resourceGroupName string) (result network.SecurityGroupListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.SecurityGroupListResultIterator, err error)
ListAll(ctx context.Context) (result network.SecurityGroupListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.SecurityGroupListResultIterator, err error)
}
var _ SecurityGroupsClientAPI = (*network.SecurityGroupsClient)(nil)
@@ -125,6 +143,7 @@ type SecurityRulesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, securityRuleName string) (result network.SecurityRulesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, securityRuleName string) (result network.SecurityRule, err error)
List(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityRuleListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityRuleListResultIterator, err error)
}
var _ SecurityRulesClientAPI = (*network.SecurityRulesClient)(nil)
@@ -135,7 +154,9 @@ type PublicIPAddressesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, publicIPAddressName string) (result network.PublicIPAddressesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, publicIPAddressName string, expand string) (result network.PublicIPAddress, err error)
List(ctx context.Context, resourceGroupName string) (result network.PublicIPAddressListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.PublicIPAddressListResultIterator, err error)
ListAll(ctx context.Context) (result network.PublicIPAddressListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.PublicIPAddressListResultIterator, err error)
}
var _ PublicIPAddressesClientAPI = (*network.PublicIPAddressesClient)(nil)
@@ -146,7 +167,9 @@ type RouteTablesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, routeTableName string) (result network.RouteTablesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, routeTableName string, expand string) (result network.RouteTable, err error)
List(ctx context.Context, resourceGroupName string) (result network.RouteTableListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.RouteTableListResultIterator, err error)
ListAll(ctx context.Context) (result network.RouteTableListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.RouteTableListResultIterator, err error)
}
var _ RouteTablesClientAPI = (*network.RouteTablesClient)(nil)
@@ -157,6 +180,7 @@ type RoutesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, routeTableName string, routeName string) (result network.RoutesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, routeTableName string, routeName string) (result network.Route, err error)
List(ctx context.Context, resourceGroupName string, routeTableName string) (result network.RouteListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, routeTableName string) (result network.RouteListResultIterator, err error)
}
var _ RoutesClientAPI = (*network.RoutesClient)(nil)
@@ -164,6 +188,7 @@ var _ RoutesClientAPI = (*network.RoutesClient)(nil)
// UsagesClientAPI contains the set of methods on the UsagesClient type.
type UsagesClientAPI interface {
List(ctx context.Context, location string) (result network.UsagesListResultPage, err error)
+ ListComplete(ctx context.Context, location string) (result network.UsagesListResultIterator, err error)
}
var _ UsagesClientAPI = (*network.UsagesClient)(nil)
@@ -174,7 +199,9 @@ type VirtualNetworksClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworksDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualNetworkName string, expand string) (result network.VirtualNetwork, err error)
List(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkListResultIterator, err error)
ListAll(ctx context.Context) (result network.VirtualNetworkListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.VirtualNetworkListResultIterator, err error)
}
var _ VirtualNetworksClientAPI = (*network.VirtualNetworksClient)(nil)
@@ -185,6 +212,7 @@ type SubnetsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualNetworkName string, subnetName string) (result network.SubnetsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualNetworkName string, subnetName string, expand string) (result network.Subnet, err error)
List(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.SubnetListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.SubnetListResultIterator, err error)
}
var _ SubnetsClientAPI = (*network.SubnetsClient)(nil)
@@ -196,6 +224,7 @@ type VirtualNetworkGatewaysClientAPI interface {
Generatevpnclientpackage(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, parameters network.VpnClientParameters) (result network.VirtualNetworkGatewaysGeneratevpnclientpackageFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGateway, err error)
List(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayListResultIterator, err error)
Reset(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, parameters network.VirtualNetworkGateway) (result network.VirtualNetworkGatewaysResetFuture, err error)
}
@@ -208,6 +237,7 @@ type VirtualNetworkGatewayConnectionsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string) (result network.VirtualNetworkGatewayConnection, err error)
GetSharedKey(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string) (result network.ConnectionSharedKeyResult, err error)
List(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayConnectionListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayConnectionListResultIterator, err error)
ResetSharedKey(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string, parameters network.ConnectionResetSharedKey) (result network.VirtualNetworkGatewayConnectionsResetSharedKeyFuture, err error)
SetSharedKey(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string, parameters network.ConnectionSharedKey) (result network.VirtualNetworkGatewayConnectionsSetSharedKeyFuture, err error)
}
@@ -220,6 +250,7 @@ type LocalNetworkGatewaysClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, localNetworkGatewayName string) (result network.LocalNetworkGatewaysDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, localNetworkGatewayName string) (result network.LocalNetworkGateway, err error)
List(ctx context.Context, resourceGroupName string) (result network.LocalNetworkGatewayListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.LocalNetworkGatewayListResultIterator, err error)
}
var _ LocalNetworkGatewaysClientAPI = (*network.LocalNetworkGatewaysClient)(nil)
diff --git a/services/network/mgmt/2015-06-15/network/publicipaddresses.go b/services/network/mgmt/2015-06-15/network/publicipaddresses.go
index 2eb805666a0a..d2395ae08855 100644
--- a/services/network/mgmt/2015-06-15/network/publicipaddresses.go
+++ b/services/network/mgmt/2015-06-15/network/publicipaddresses.go
@@ -36,7 +36,9 @@ func NewPublicIPAddressesClient(subscriptionID string) PublicIPAddressesClient {
return NewPublicIPAddressesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewPublicIPAddressesClientWithBaseURI creates an instance of the PublicIPAddressesClient client.
+// NewPublicIPAddressesClientWithBaseURI creates an instance of the PublicIPAddressesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewPublicIPAddressesClientWithBaseURI(baseURI string, subscriptionID string) PublicIPAddressesClient {
return PublicIPAddressesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2015-06-15/network/routes.go b/services/network/mgmt/2015-06-15/network/routes.go
index d25923ad0244..f0ffc9ac50db 100644
--- a/services/network/mgmt/2015-06-15/network/routes.go
+++ b/services/network/mgmt/2015-06-15/network/routes.go
@@ -35,7 +35,8 @@ func NewRoutesClient(subscriptionID string) RoutesClient {
return NewRoutesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewRoutesClientWithBaseURI creates an instance of the RoutesClient client.
+// NewRoutesClientWithBaseURI creates an instance of the RoutesClient client using a custom endpoint. Use this when
+// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewRoutesClientWithBaseURI(baseURI string, subscriptionID string) RoutesClient {
return RoutesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2015-06-15/network/routetables.go b/services/network/mgmt/2015-06-15/network/routetables.go
index e4dbd6bbe0f7..366188c5af8a 100644
--- a/services/network/mgmt/2015-06-15/network/routetables.go
+++ b/services/network/mgmt/2015-06-15/network/routetables.go
@@ -35,7 +35,8 @@ func NewRouteTablesClient(subscriptionID string) RouteTablesClient {
return NewRouteTablesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewRouteTablesClientWithBaseURI creates an instance of the RouteTablesClient client.
+// NewRouteTablesClientWithBaseURI creates an instance of the RouteTablesClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewRouteTablesClientWithBaseURI(baseURI string, subscriptionID string) RouteTablesClient {
return RouteTablesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2015-06-15/network/securitygroups.go b/services/network/mgmt/2015-06-15/network/securitygroups.go
index 3cd8cb5a0fe3..52ae201e8ad8 100644
--- a/services/network/mgmt/2015-06-15/network/securitygroups.go
+++ b/services/network/mgmt/2015-06-15/network/securitygroups.go
@@ -35,7 +35,8 @@ func NewSecurityGroupsClient(subscriptionID string) SecurityGroupsClient {
return NewSecurityGroupsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewSecurityGroupsClientWithBaseURI creates an instance of the SecurityGroupsClient client.
+// NewSecurityGroupsClientWithBaseURI creates an instance of the SecurityGroupsClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewSecurityGroupsClientWithBaseURI(baseURI string, subscriptionID string) SecurityGroupsClient {
return SecurityGroupsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2015-06-15/network/securityrules.go b/services/network/mgmt/2015-06-15/network/securityrules.go
index a220095940df..2bf171b978e6 100644
--- a/services/network/mgmt/2015-06-15/network/securityrules.go
+++ b/services/network/mgmt/2015-06-15/network/securityrules.go
@@ -36,7 +36,8 @@ func NewSecurityRulesClient(subscriptionID string) SecurityRulesClient {
return NewSecurityRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewSecurityRulesClientWithBaseURI creates an instance of the SecurityRulesClient client.
+// NewSecurityRulesClientWithBaseURI creates an instance of the SecurityRulesClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewSecurityRulesClientWithBaseURI(baseURI string, subscriptionID string) SecurityRulesClient {
return SecurityRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2015-06-15/network/subnets.go b/services/network/mgmt/2015-06-15/network/subnets.go
index c389547c9269..cd9c7ec7dc42 100644
--- a/services/network/mgmt/2015-06-15/network/subnets.go
+++ b/services/network/mgmt/2015-06-15/network/subnets.go
@@ -35,7 +35,8 @@ func NewSubnetsClient(subscriptionID string) SubnetsClient {
return NewSubnetsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewSubnetsClientWithBaseURI creates an instance of the SubnetsClient client.
+// NewSubnetsClientWithBaseURI creates an instance of the SubnetsClient client using a custom endpoint. Use this when
+// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewSubnetsClientWithBaseURI(baseURI string, subscriptionID string) SubnetsClient {
return SubnetsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2015-06-15/network/usages.go b/services/network/mgmt/2015-06-15/network/usages.go
index f3de0561d2ce..2d41f221f343 100644
--- a/services/network/mgmt/2015-06-15/network/usages.go
+++ b/services/network/mgmt/2015-06-15/network/usages.go
@@ -36,7 +36,8 @@ func NewUsagesClient(subscriptionID string) UsagesClient {
return NewUsagesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewUsagesClientWithBaseURI creates an instance of the UsagesClient client.
+// NewUsagesClientWithBaseURI creates an instance of the UsagesClient client using a custom endpoint. Use this when
+// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewUsagesClientWithBaseURI(baseURI string, subscriptionID string) UsagesClient {
return UsagesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2015-06-15/network/virtualnetworkgatewayconnections.go b/services/network/mgmt/2015-06-15/network/virtualnetworkgatewayconnections.go
index 1c7f86a58e3c..ee76cd7d9f93 100644
--- a/services/network/mgmt/2015-06-15/network/virtualnetworkgatewayconnections.go
+++ b/services/network/mgmt/2015-06-15/network/virtualnetworkgatewayconnections.go
@@ -36,7 +36,8 @@ func NewVirtualNetworkGatewayConnectionsClient(subscriptionID string) VirtualNet
}
// NewVirtualNetworkGatewayConnectionsClientWithBaseURI creates an instance of the
-// VirtualNetworkGatewayConnectionsClient client.
+// VirtualNetworkGatewayConnectionsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVirtualNetworkGatewayConnectionsClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworkGatewayConnectionsClient {
return VirtualNetworkGatewayConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2015-06-15/network/virtualnetworkgateways.go b/services/network/mgmt/2015-06-15/network/virtualnetworkgateways.go
index 5498c9bf8ec8..cec51916c673 100644
--- a/services/network/mgmt/2015-06-15/network/virtualnetworkgateways.go
+++ b/services/network/mgmt/2015-06-15/network/virtualnetworkgateways.go
@@ -35,7 +35,9 @@ func NewVirtualNetworkGatewaysClient(subscriptionID string) VirtualNetworkGatewa
return NewVirtualNetworkGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualNetworkGatewaysClientWithBaseURI creates an instance of the VirtualNetworkGatewaysClient client.
+// NewVirtualNetworkGatewaysClientWithBaseURI creates an instance of the VirtualNetworkGatewaysClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewVirtualNetworkGatewaysClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworkGatewaysClient {
return VirtualNetworkGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2015-06-15/network/virtualnetworks.go b/services/network/mgmt/2015-06-15/network/virtualnetworks.go
index b5e5b0206cfd..abaa2d5991a0 100644
--- a/services/network/mgmt/2015-06-15/network/virtualnetworks.go
+++ b/services/network/mgmt/2015-06-15/network/virtualnetworks.go
@@ -35,7 +35,8 @@ func NewVirtualNetworksClient(subscriptionID string) VirtualNetworksClient {
return NewVirtualNetworksClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualNetworksClientWithBaseURI creates an instance of the VirtualNetworksClient client.
+// NewVirtualNetworksClientWithBaseURI creates an instance of the VirtualNetworksClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVirtualNetworksClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworksClient {
return VirtualNetworksClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2016-03-30/network/applicationgateways.go b/services/network/mgmt/2016-03-30/network/applicationgateways.go
index 0c8960247e4a..2019d9932038 100644
--- a/services/network/mgmt/2016-03-30/network/applicationgateways.go
+++ b/services/network/mgmt/2016-03-30/network/applicationgateways.go
@@ -35,7 +35,9 @@ func NewApplicationGatewaysClient(subscriptionID string) ApplicationGatewaysClie
return NewApplicationGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewApplicationGatewaysClientWithBaseURI creates an instance of the ApplicationGatewaysClient client.
+// NewApplicationGatewaysClientWithBaseURI creates an instance of the ApplicationGatewaysClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewApplicationGatewaysClientWithBaseURI(baseURI string, subscriptionID string) ApplicationGatewaysClient {
return ApplicationGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2016-03-30/network/client.go b/services/network/mgmt/2016-03-30/network/client.go
index cbeb68bd15e3..3bd5f0109a82 100644
--- a/services/network/mgmt/2016-03-30/network/client.go
+++ b/services/network/mgmt/2016-03-30/network/client.go
@@ -45,7 +45,8 @@ func New(subscriptionID string) BaseClient {
return NewWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewWithBaseURI creates an instance of the BaseClient client.
+// NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with
+// an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient {
return BaseClient{
Client: autorest.NewClientWithUserAgent(UserAgent()),
diff --git a/services/network/mgmt/2016-03-30/network/expressroutecircuitauthorizations.go b/services/network/mgmt/2016-03-30/network/expressroutecircuitauthorizations.go
index 0c00467972a5..247ee8cfe14b 100644
--- a/services/network/mgmt/2016-03-30/network/expressroutecircuitauthorizations.go
+++ b/services/network/mgmt/2016-03-30/network/expressroutecircuitauthorizations.go
@@ -37,7 +37,8 @@ func NewExpressRouteCircuitAuthorizationsClient(subscriptionID string) ExpressRo
}
// NewExpressRouteCircuitAuthorizationsClientWithBaseURI creates an instance of the
-// ExpressRouteCircuitAuthorizationsClient client.
+// ExpressRouteCircuitAuthorizationsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewExpressRouteCircuitAuthorizationsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCircuitAuthorizationsClient {
return ExpressRouteCircuitAuthorizationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2016-03-30/network/expressroutecircuitpeerings.go b/services/network/mgmt/2016-03-30/network/expressroutecircuitpeerings.go
index 23d6532f91c7..915149150b4c 100644
--- a/services/network/mgmt/2016-03-30/network/expressroutecircuitpeerings.go
+++ b/services/network/mgmt/2016-03-30/network/expressroutecircuitpeerings.go
@@ -35,7 +35,9 @@ func NewExpressRouteCircuitPeeringsClient(subscriptionID string) ExpressRouteCir
return NewExpressRouteCircuitPeeringsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewExpressRouteCircuitPeeringsClientWithBaseURI creates an instance of the ExpressRouteCircuitPeeringsClient client.
+// NewExpressRouteCircuitPeeringsClientWithBaseURI creates an instance of the ExpressRouteCircuitPeeringsClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewExpressRouteCircuitPeeringsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCircuitPeeringsClient {
return ExpressRouteCircuitPeeringsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2016-03-30/network/expressroutecircuits.go b/services/network/mgmt/2016-03-30/network/expressroutecircuits.go
index 515778936d8e..d24d51e74e31 100644
--- a/services/network/mgmt/2016-03-30/network/expressroutecircuits.go
+++ b/services/network/mgmt/2016-03-30/network/expressroutecircuits.go
@@ -35,7 +35,9 @@ func NewExpressRouteCircuitsClient(subscriptionID string) ExpressRouteCircuitsCl
return NewExpressRouteCircuitsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewExpressRouteCircuitsClientWithBaseURI creates an instance of the ExpressRouteCircuitsClient client.
+// NewExpressRouteCircuitsClientWithBaseURI creates an instance of the ExpressRouteCircuitsClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewExpressRouteCircuitsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCircuitsClient {
return ExpressRouteCircuitsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2016-03-30/network/expressrouteserviceproviders.go b/services/network/mgmt/2016-03-30/network/expressrouteserviceproviders.go
index 9bfd39887fa3..c1dee7ce98af 100644
--- a/services/network/mgmt/2016-03-30/network/expressrouteserviceproviders.go
+++ b/services/network/mgmt/2016-03-30/network/expressrouteserviceproviders.go
@@ -36,7 +36,8 @@ func NewExpressRouteServiceProvidersClient(subscriptionID string) ExpressRouteSe
}
// NewExpressRouteServiceProvidersClientWithBaseURI creates an instance of the ExpressRouteServiceProvidersClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewExpressRouteServiceProvidersClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteServiceProvidersClient {
return ExpressRouteServiceProvidersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2016-03-30/network/interfacesgroup.go b/services/network/mgmt/2016-03-30/network/interfacesgroup.go
index fcc2dcb7f57e..7fe2a44053aa 100644
--- a/services/network/mgmt/2016-03-30/network/interfacesgroup.go
+++ b/services/network/mgmt/2016-03-30/network/interfacesgroup.go
@@ -35,7 +35,8 @@ func NewInterfacesClient(subscriptionID string) InterfacesClient {
return NewInterfacesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewInterfacesClientWithBaseURI creates an instance of the InterfacesClient client.
+// NewInterfacesClientWithBaseURI creates an instance of the InterfacesClient client using a custom endpoint. Use this
+// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewInterfacesClientWithBaseURI(baseURI string, subscriptionID string) InterfacesClient {
return InterfacesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2016-03-30/network/loadbalancers.go b/services/network/mgmt/2016-03-30/network/loadbalancers.go
index bd5d3359f9e5..24e20dce5e03 100644
--- a/services/network/mgmt/2016-03-30/network/loadbalancers.go
+++ b/services/network/mgmt/2016-03-30/network/loadbalancers.go
@@ -35,7 +35,8 @@ func NewLoadBalancersClient(subscriptionID string) LoadBalancersClient {
return NewLoadBalancersClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewLoadBalancersClientWithBaseURI creates an instance of the LoadBalancersClient client.
+// NewLoadBalancersClientWithBaseURI creates an instance of the LoadBalancersClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewLoadBalancersClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancersClient {
return LoadBalancersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2016-03-30/network/localnetworkgateways.go b/services/network/mgmt/2016-03-30/network/localnetworkgateways.go
index ecbf1b94d035..1a5ac8f4ab02 100644
--- a/services/network/mgmt/2016-03-30/network/localnetworkgateways.go
+++ b/services/network/mgmt/2016-03-30/network/localnetworkgateways.go
@@ -35,7 +35,9 @@ func NewLocalNetworkGatewaysClient(subscriptionID string) LocalNetworkGatewaysCl
return NewLocalNetworkGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewLocalNetworkGatewaysClientWithBaseURI creates an instance of the LocalNetworkGatewaysClient client.
+// NewLocalNetworkGatewaysClientWithBaseURI creates an instance of the LocalNetworkGatewaysClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewLocalNetworkGatewaysClientWithBaseURI(baseURI string, subscriptionID string) LocalNetworkGatewaysClient {
return LocalNetworkGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2016-03-30/network/networkapi/interfaces.go b/services/network/mgmt/2016-03-30/network/networkapi/interfaces.go
index 96deea32ff2a..7b04dbece523 100644
--- a/services/network/mgmt/2016-03-30/network/networkapi/interfaces.go
+++ b/services/network/mgmt/2016-03-30/network/networkapi/interfaces.go
@@ -35,7 +35,9 @@ type ApplicationGatewaysClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result network.ApplicationGatewaysDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result network.ApplicationGateway, err error)
List(ctx context.Context, resourceGroupName string) (result network.ApplicationGatewayListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.ApplicationGatewayListResultIterator, err error)
ListAll(ctx context.Context) (result network.ApplicationGatewayListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.ApplicationGatewayListResultIterator, err error)
Start(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result network.ApplicationGatewaysStartFuture, err error)
Stop(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result network.ApplicationGatewaysStopFuture, err error)
}
@@ -48,6 +50,7 @@ type ExpressRouteCircuitAuthorizationsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, circuitName string, authorizationName string) (result network.ExpressRouteCircuitAuthorizationsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, circuitName string, authorizationName string) (result network.ExpressRouteCircuitAuthorization, err error)
List(ctx context.Context, resourceGroupName string, circuitName string) (result network.AuthorizationListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, circuitName string) (result network.AuthorizationListResultIterator, err error)
}
var _ ExpressRouteCircuitAuthorizationsClientAPI = (*network.ExpressRouteCircuitAuthorizationsClient)(nil)
@@ -58,6 +61,7 @@ type ExpressRouteCircuitPeeringsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.ExpressRouteCircuitPeeringsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.ExpressRouteCircuitPeering, err error)
List(ctx context.Context, resourceGroupName string, circuitName string) (result network.ExpressRouteCircuitPeeringListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, circuitName string) (result network.ExpressRouteCircuitPeeringListResultIterator, err error)
}
var _ ExpressRouteCircuitPeeringsClientAPI = (*network.ExpressRouteCircuitPeeringsClient)(nil)
@@ -70,7 +74,9 @@ type ExpressRouteCircuitsClientAPI interface {
GetPeeringStats(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.ExpressRouteCircuitStats, err error)
GetStats(ctx context.Context, resourceGroupName string, circuitName string) (result network.ExpressRouteCircuitStats, err error)
List(ctx context.Context, resourceGroupName string) (result network.ExpressRouteCircuitListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.ExpressRouteCircuitListResultIterator, err error)
ListAll(ctx context.Context) (result network.ExpressRouteCircuitListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.ExpressRouteCircuitListResultIterator, err error)
ListArpTable(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, devicePath string) (result network.ExpressRouteCircuitsListArpTableFuture, err error)
ListRoutesTable(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, devicePath string) (result network.ExpressRouteCircuitsListRoutesTableFuture, err error)
ListRoutesTableSummary(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, devicePath string) (result network.ExpressRouteCircuitsListRoutesTableSummaryFuture, err error)
@@ -81,6 +87,7 @@ var _ ExpressRouteCircuitsClientAPI = (*network.ExpressRouteCircuitsClient)(nil)
// ExpressRouteServiceProvidersClientAPI contains the set of methods on the ExpressRouteServiceProvidersClient type.
type ExpressRouteServiceProvidersClientAPI interface {
List(ctx context.Context) (result network.ExpressRouteServiceProviderListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ExpressRouteServiceProviderListResultIterator, err error)
}
var _ ExpressRouteServiceProvidersClientAPI = (*network.ExpressRouteServiceProvidersClient)(nil)
@@ -91,7 +98,9 @@ type LoadBalancersClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancersDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, expand string) (result network.LoadBalancer, err error)
List(ctx context.Context, resourceGroupName string) (result network.LoadBalancerListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.LoadBalancerListResultIterator, err error)
ListAll(ctx context.Context) (result network.LoadBalancerListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.LoadBalancerListResultIterator, err error)
}
var _ LoadBalancersClientAPI = (*network.LoadBalancersClient)(nil)
@@ -102,6 +111,7 @@ type LocalNetworkGatewaysClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, localNetworkGatewayName string) (result network.LocalNetworkGatewaysDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, localNetworkGatewayName string) (result network.LocalNetworkGateway, err error)
List(ctx context.Context, resourceGroupName string) (result network.LocalNetworkGatewayListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.LocalNetworkGatewayListResultIterator, err error)
}
var _ LocalNetworkGatewaysClientAPI = (*network.LocalNetworkGatewaysClient)(nil)
@@ -113,9 +123,13 @@ type InterfacesClientAPI interface {
Get(ctx context.Context, resourceGroupName string, networkInterfaceName string, expand string) (result network.Interface, err error)
GetVirtualMachineScaleSetNetworkInterface(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, expand string) (result network.Interface, err error)
List(ctx context.Context, resourceGroupName string) (result network.InterfaceListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.InterfaceListResultIterator, err error)
ListAll(ctx context.Context) (result network.InterfaceListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.InterfaceListResultIterator, err error)
ListVirtualMachineScaleSetNetworkInterfaces(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result network.InterfaceListResultPage, err error)
+ ListVirtualMachineScaleSetNetworkInterfacesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result network.InterfaceListResultIterator, err error)
ListVirtualMachineScaleSetVMNetworkInterfaces(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string) (result network.InterfaceListResultPage, err error)
+ ListVirtualMachineScaleSetVMNetworkInterfacesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string) (result network.InterfaceListResultIterator, err error)
}
var _ InterfacesClientAPI = (*network.InterfacesClient)(nil)
@@ -126,7 +140,9 @@ type SecurityGroupsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityGroupsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, expand string) (result network.SecurityGroup, err error)
List(ctx context.Context, resourceGroupName string) (result network.SecurityGroupListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.SecurityGroupListResultIterator, err error)
ListAll(ctx context.Context) (result network.SecurityGroupListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.SecurityGroupListResultIterator, err error)
}
var _ SecurityGroupsClientAPI = (*network.SecurityGroupsClient)(nil)
@@ -137,7 +153,9 @@ type PublicIPAddressesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, publicIPAddressName string) (result network.PublicIPAddressesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, publicIPAddressName string, expand string) (result network.PublicIPAddress, err error)
List(ctx context.Context, resourceGroupName string) (result network.PublicIPAddressListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.PublicIPAddressListResultIterator, err error)
ListAll(ctx context.Context) (result network.PublicIPAddressListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.PublicIPAddressListResultIterator, err error)
}
var _ PublicIPAddressesClientAPI = (*network.PublicIPAddressesClient)(nil)
@@ -148,7 +166,9 @@ type RouteTablesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, routeTableName string) (result network.RouteTablesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, routeTableName string, expand string) (result network.RouteTable, err error)
List(ctx context.Context, resourceGroupName string) (result network.RouteTableListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.RouteTableListResultIterator, err error)
ListAll(ctx context.Context) (result network.RouteTableListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.RouteTableListResultIterator, err error)
}
var _ RouteTablesClientAPI = (*network.RouteTablesClient)(nil)
@@ -159,6 +179,7 @@ type RoutesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, routeTableName string, routeName string) (result network.RoutesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, routeTableName string, routeName string) (result network.Route, err error)
List(ctx context.Context, resourceGroupName string, routeTableName string) (result network.RouteListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, routeTableName string) (result network.RouteListResultIterator, err error)
}
var _ RoutesClientAPI = (*network.RoutesClient)(nil)
@@ -169,6 +190,7 @@ type SecurityRulesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, securityRuleName string) (result network.SecurityRulesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, securityRuleName string) (result network.SecurityRule, err error)
List(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityRuleListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityRuleListResultIterator, err error)
}
var _ SecurityRulesClientAPI = (*network.SecurityRulesClient)(nil)
@@ -179,6 +201,7 @@ type SubnetsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualNetworkName string, subnetName string) (result network.SubnetsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualNetworkName string, subnetName string, expand string) (result network.Subnet, err error)
List(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.SubnetListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.SubnetListResultIterator, err error)
}
var _ SubnetsClientAPI = (*network.SubnetsClient)(nil)
@@ -197,6 +220,7 @@ type VirtualNetworkGatewayConnectionsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string) (result network.VirtualNetworkGatewayConnection, err error)
GetSharedKey(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string) (result network.ConnectionSharedKeyResult, err error)
List(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayConnectionListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayConnectionListResultIterator, err error)
ResetSharedKey(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string, parameters network.ConnectionResetSharedKey) (result network.VirtualNetworkGatewayConnectionsResetSharedKeyFuture, err error)
SetSharedKey(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string, parameters network.ConnectionSharedKey) (result network.VirtualNetworkGatewayConnectionsSetSharedKeyFuture, err error)
}
@@ -210,6 +234,7 @@ type VirtualNetworkGatewaysClientAPI interface {
Generatevpnclientpackage(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, parameters network.VpnClientParameters) (result network.String, err error)
Get(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGateway, err error)
List(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayListResultIterator, err error)
Reset(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, parameters network.VirtualNetworkGateway) (result network.VirtualNetworkGatewaysResetFuture, err error)
}
@@ -221,7 +246,9 @@ type VirtualNetworksClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworksDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualNetworkName string, expand string) (result network.VirtualNetwork, err error)
List(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkListResultIterator, err error)
ListAll(ctx context.Context) (result network.VirtualNetworkListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.VirtualNetworkListResultIterator, err error)
}
var _ VirtualNetworksClientAPI = (*network.VirtualNetworksClient)(nil)
diff --git a/services/network/mgmt/2016-03-30/network/publicipaddresses.go b/services/network/mgmt/2016-03-30/network/publicipaddresses.go
index 2c997981fc17..0b70f027f5b4 100644
--- a/services/network/mgmt/2016-03-30/network/publicipaddresses.go
+++ b/services/network/mgmt/2016-03-30/network/publicipaddresses.go
@@ -36,7 +36,9 @@ func NewPublicIPAddressesClient(subscriptionID string) PublicIPAddressesClient {
return NewPublicIPAddressesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewPublicIPAddressesClientWithBaseURI creates an instance of the PublicIPAddressesClient client.
+// NewPublicIPAddressesClientWithBaseURI creates an instance of the PublicIPAddressesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewPublicIPAddressesClientWithBaseURI(baseURI string, subscriptionID string) PublicIPAddressesClient {
return PublicIPAddressesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2016-03-30/network/routes.go b/services/network/mgmt/2016-03-30/network/routes.go
index 1db4a02131a1..ec395e33a749 100644
--- a/services/network/mgmt/2016-03-30/network/routes.go
+++ b/services/network/mgmt/2016-03-30/network/routes.go
@@ -35,7 +35,8 @@ func NewRoutesClient(subscriptionID string) RoutesClient {
return NewRoutesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewRoutesClientWithBaseURI creates an instance of the RoutesClient client.
+// NewRoutesClientWithBaseURI creates an instance of the RoutesClient client using a custom endpoint. Use this when
+// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewRoutesClientWithBaseURI(baseURI string, subscriptionID string) RoutesClient {
return RoutesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2016-03-30/network/routetables.go b/services/network/mgmt/2016-03-30/network/routetables.go
index e6d59fe7d402..5de12e7dcc55 100644
--- a/services/network/mgmt/2016-03-30/network/routetables.go
+++ b/services/network/mgmt/2016-03-30/network/routetables.go
@@ -35,7 +35,8 @@ func NewRouteTablesClient(subscriptionID string) RouteTablesClient {
return NewRouteTablesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewRouteTablesClientWithBaseURI creates an instance of the RouteTablesClient client.
+// NewRouteTablesClientWithBaseURI creates an instance of the RouteTablesClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewRouteTablesClientWithBaseURI(baseURI string, subscriptionID string) RouteTablesClient {
return RouteTablesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2016-03-30/network/securitygroups.go b/services/network/mgmt/2016-03-30/network/securitygroups.go
index 335df8c401f7..defe2c50f5c8 100644
--- a/services/network/mgmt/2016-03-30/network/securitygroups.go
+++ b/services/network/mgmt/2016-03-30/network/securitygroups.go
@@ -35,7 +35,8 @@ func NewSecurityGroupsClient(subscriptionID string) SecurityGroupsClient {
return NewSecurityGroupsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewSecurityGroupsClientWithBaseURI creates an instance of the SecurityGroupsClient client.
+// NewSecurityGroupsClientWithBaseURI creates an instance of the SecurityGroupsClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewSecurityGroupsClientWithBaseURI(baseURI string, subscriptionID string) SecurityGroupsClient {
return SecurityGroupsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2016-03-30/network/securityrules.go b/services/network/mgmt/2016-03-30/network/securityrules.go
index 35252feedd70..1fe559d2eb64 100644
--- a/services/network/mgmt/2016-03-30/network/securityrules.go
+++ b/services/network/mgmt/2016-03-30/network/securityrules.go
@@ -36,7 +36,8 @@ func NewSecurityRulesClient(subscriptionID string) SecurityRulesClient {
return NewSecurityRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewSecurityRulesClientWithBaseURI creates an instance of the SecurityRulesClient client.
+// NewSecurityRulesClientWithBaseURI creates an instance of the SecurityRulesClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewSecurityRulesClientWithBaseURI(baseURI string, subscriptionID string) SecurityRulesClient {
return SecurityRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2016-03-30/network/subnets.go b/services/network/mgmt/2016-03-30/network/subnets.go
index 437acd8daf8c..e103bf966a18 100644
--- a/services/network/mgmt/2016-03-30/network/subnets.go
+++ b/services/network/mgmt/2016-03-30/network/subnets.go
@@ -35,7 +35,8 @@ func NewSubnetsClient(subscriptionID string) SubnetsClient {
return NewSubnetsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewSubnetsClientWithBaseURI creates an instance of the SubnetsClient client.
+// NewSubnetsClientWithBaseURI creates an instance of the SubnetsClient client using a custom endpoint. Use this when
+// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewSubnetsClientWithBaseURI(baseURI string, subscriptionID string) SubnetsClient {
return SubnetsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2016-03-30/network/usages.go b/services/network/mgmt/2016-03-30/network/usages.go
index 0d568ac3e2f2..31ac5d895bf0 100644
--- a/services/network/mgmt/2016-03-30/network/usages.go
+++ b/services/network/mgmt/2016-03-30/network/usages.go
@@ -36,7 +36,8 @@ func NewUsagesClient(subscriptionID string) UsagesClient {
return NewUsagesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewUsagesClientWithBaseURI creates an instance of the UsagesClient client.
+// NewUsagesClientWithBaseURI creates an instance of the UsagesClient client using a custom endpoint. Use this when
+// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewUsagesClientWithBaseURI(baseURI string, subscriptionID string) UsagesClient {
return UsagesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2016-03-30/network/virtualnetworkgatewayconnections.go b/services/network/mgmt/2016-03-30/network/virtualnetworkgatewayconnections.go
index 1a94d019b6bf..1056a542f098 100644
--- a/services/network/mgmt/2016-03-30/network/virtualnetworkgatewayconnections.go
+++ b/services/network/mgmt/2016-03-30/network/virtualnetworkgatewayconnections.go
@@ -36,7 +36,8 @@ func NewVirtualNetworkGatewayConnectionsClient(subscriptionID string) VirtualNet
}
// NewVirtualNetworkGatewayConnectionsClientWithBaseURI creates an instance of the
-// VirtualNetworkGatewayConnectionsClient client.
+// VirtualNetworkGatewayConnectionsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVirtualNetworkGatewayConnectionsClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworkGatewayConnectionsClient {
return VirtualNetworkGatewayConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2016-03-30/network/virtualnetworkgateways.go b/services/network/mgmt/2016-03-30/network/virtualnetworkgateways.go
index 18080de9c8ff..4690d933a7db 100644
--- a/services/network/mgmt/2016-03-30/network/virtualnetworkgateways.go
+++ b/services/network/mgmt/2016-03-30/network/virtualnetworkgateways.go
@@ -35,7 +35,9 @@ func NewVirtualNetworkGatewaysClient(subscriptionID string) VirtualNetworkGatewa
return NewVirtualNetworkGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualNetworkGatewaysClientWithBaseURI creates an instance of the VirtualNetworkGatewaysClient client.
+// NewVirtualNetworkGatewaysClientWithBaseURI creates an instance of the VirtualNetworkGatewaysClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewVirtualNetworkGatewaysClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworkGatewaysClient {
return VirtualNetworkGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2016-03-30/network/virtualnetworks.go b/services/network/mgmt/2016-03-30/network/virtualnetworks.go
index 8ce7c3418f85..b7dbe7929f7f 100644
--- a/services/network/mgmt/2016-03-30/network/virtualnetworks.go
+++ b/services/network/mgmt/2016-03-30/network/virtualnetworks.go
@@ -35,7 +35,8 @@ func NewVirtualNetworksClient(subscriptionID string) VirtualNetworksClient {
return NewVirtualNetworksClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualNetworksClientWithBaseURI creates an instance of the VirtualNetworksClient client.
+// NewVirtualNetworksClientWithBaseURI creates an instance of the VirtualNetworksClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVirtualNetworksClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworksClient {
return VirtualNetworksClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2016-06-01/network/applicationgateways.go b/services/network/mgmt/2016-06-01/network/applicationgateways.go
index 880febe6e5f6..2dc7bfc35afd 100644
--- a/services/network/mgmt/2016-06-01/network/applicationgateways.go
+++ b/services/network/mgmt/2016-06-01/network/applicationgateways.go
@@ -35,7 +35,9 @@ func NewApplicationGatewaysClient(subscriptionID string) ApplicationGatewaysClie
return NewApplicationGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewApplicationGatewaysClientWithBaseURI creates an instance of the ApplicationGatewaysClient client.
+// NewApplicationGatewaysClientWithBaseURI creates an instance of the ApplicationGatewaysClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewApplicationGatewaysClientWithBaseURI(baseURI string, subscriptionID string) ApplicationGatewaysClient {
return ApplicationGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2016-06-01/network/client.go b/services/network/mgmt/2016-06-01/network/client.go
index cd409c6ef766..2682faeddf56 100644
--- a/services/network/mgmt/2016-06-01/network/client.go
+++ b/services/network/mgmt/2016-06-01/network/client.go
@@ -45,7 +45,8 @@ func New(subscriptionID string) BaseClient {
return NewWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewWithBaseURI creates an instance of the BaseClient client.
+// NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with
+// an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient {
return BaseClient{
Client: autorest.NewClientWithUserAgent(UserAgent()),
diff --git a/services/network/mgmt/2016-06-01/network/expressroutecircuitauthorizations.go b/services/network/mgmt/2016-06-01/network/expressroutecircuitauthorizations.go
index 54eaf58c3d1a..e38f971bd940 100644
--- a/services/network/mgmt/2016-06-01/network/expressroutecircuitauthorizations.go
+++ b/services/network/mgmt/2016-06-01/network/expressroutecircuitauthorizations.go
@@ -37,7 +37,8 @@ func NewExpressRouteCircuitAuthorizationsClient(subscriptionID string) ExpressRo
}
// NewExpressRouteCircuitAuthorizationsClientWithBaseURI creates an instance of the
-// ExpressRouteCircuitAuthorizationsClient client.
+// ExpressRouteCircuitAuthorizationsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewExpressRouteCircuitAuthorizationsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCircuitAuthorizationsClient {
return ExpressRouteCircuitAuthorizationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2016-06-01/network/expressroutecircuitpeerings.go b/services/network/mgmt/2016-06-01/network/expressroutecircuitpeerings.go
index 1c60737f55f9..da6c455d1075 100644
--- a/services/network/mgmt/2016-06-01/network/expressroutecircuitpeerings.go
+++ b/services/network/mgmt/2016-06-01/network/expressroutecircuitpeerings.go
@@ -35,7 +35,9 @@ func NewExpressRouteCircuitPeeringsClient(subscriptionID string) ExpressRouteCir
return NewExpressRouteCircuitPeeringsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewExpressRouteCircuitPeeringsClientWithBaseURI creates an instance of the ExpressRouteCircuitPeeringsClient client.
+// NewExpressRouteCircuitPeeringsClientWithBaseURI creates an instance of the ExpressRouteCircuitPeeringsClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewExpressRouteCircuitPeeringsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCircuitPeeringsClient {
return ExpressRouteCircuitPeeringsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2016-06-01/network/expressroutecircuits.go b/services/network/mgmt/2016-06-01/network/expressroutecircuits.go
index 8e9c4d427a6a..3d8fca5f699a 100644
--- a/services/network/mgmt/2016-06-01/network/expressroutecircuits.go
+++ b/services/network/mgmt/2016-06-01/network/expressroutecircuits.go
@@ -35,7 +35,9 @@ func NewExpressRouteCircuitsClient(subscriptionID string) ExpressRouteCircuitsCl
return NewExpressRouteCircuitsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewExpressRouteCircuitsClientWithBaseURI creates an instance of the ExpressRouteCircuitsClient client.
+// NewExpressRouteCircuitsClientWithBaseURI creates an instance of the ExpressRouteCircuitsClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewExpressRouteCircuitsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCircuitsClient {
return ExpressRouteCircuitsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2016-06-01/network/expressrouteserviceproviders.go b/services/network/mgmt/2016-06-01/network/expressrouteserviceproviders.go
index 2e9977710477..607584d9c1b0 100644
--- a/services/network/mgmt/2016-06-01/network/expressrouteserviceproviders.go
+++ b/services/network/mgmt/2016-06-01/network/expressrouteserviceproviders.go
@@ -36,7 +36,8 @@ func NewExpressRouteServiceProvidersClient(subscriptionID string) ExpressRouteSe
}
// NewExpressRouteServiceProvidersClientWithBaseURI creates an instance of the ExpressRouteServiceProvidersClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewExpressRouteServiceProvidersClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteServiceProvidersClient {
return ExpressRouteServiceProvidersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2016-06-01/network/interfacesgroup.go b/services/network/mgmt/2016-06-01/network/interfacesgroup.go
index f5ac80886957..6adb854fd3cb 100644
--- a/services/network/mgmt/2016-06-01/network/interfacesgroup.go
+++ b/services/network/mgmt/2016-06-01/network/interfacesgroup.go
@@ -35,7 +35,8 @@ func NewInterfacesClient(subscriptionID string) InterfacesClient {
return NewInterfacesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewInterfacesClientWithBaseURI creates an instance of the InterfacesClient client.
+// NewInterfacesClientWithBaseURI creates an instance of the InterfacesClient client using a custom endpoint. Use this
+// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewInterfacesClientWithBaseURI(baseURI string, subscriptionID string) InterfacesClient {
return InterfacesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2016-06-01/network/loadbalancers.go b/services/network/mgmt/2016-06-01/network/loadbalancers.go
index bec55c6524a2..faf2b17b0e84 100644
--- a/services/network/mgmt/2016-06-01/network/loadbalancers.go
+++ b/services/network/mgmt/2016-06-01/network/loadbalancers.go
@@ -35,7 +35,8 @@ func NewLoadBalancersClient(subscriptionID string) LoadBalancersClient {
return NewLoadBalancersClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewLoadBalancersClientWithBaseURI creates an instance of the LoadBalancersClient client.
+// NewLoadBalancersClientWithBaseURI creates an instance of the LoadBalancersClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewLoadBalancersClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancersClient {
return LoadBalancersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2016-06-01/network/localnetworkgateways.go b/services/network/mgmt/2016-06-01/network/localnetworkgateways.go
index ff47b7be4672..6320c3ca5804 100644
--- a/services/network/mgmt/2016-06-01/network/localnetworkgateways.go
+++ b/services/network/mgmt/2016-06-01/network/localnetworkgateways.go
@@ -35,7 +35,9 @@ func NewLocalNetworkGatewaysClient(subscriptionID string) LocalNetworkGatewaysCl
return NewLocalNetworkGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewLocalNetworkGatewaysClientWithBaseURI creates an instance of the LocalNetworkGatewaysClient client.
+// NewLocalNetworkGatewaysClientWithBaseURI creates an instance of the LocalNetworkGatewaysClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewLocalNetworkGatewaysClientWithBaseURI(baseURI string, subscriptionID string) LocalNetworkGatewaysClient {
return LocalNetworkGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2016-06-01/network/networkapi/interfaces.go b/services/network/mgmt/2016-06-01/network/networkapi/interfaces.go
index 393339b641fc..f38a9ef8ef6e 100644
--- a/services/network/mgmt/2016-06-01/network/networkapi/interfaces.go
+++ b/services/network/mgmt/2016-06-01/network/networkapi/interfaces.go
@@ -35,7 +35,9 @@ type ApplicationGatewaysClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result network.ApplicationGatewaysDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result network.ApplicationGateway, err error)
List(ctx context.Context, resourceGroupName string) (result network.ApplicationGatewayListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.ApplicationGatewayListResultIterator, err error)
ListAll(ctx context.Context) (result network.ApplicationGatewayListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.ApplicationGatewayListResultIterator, err error)
Start(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result network.ApplicationGatewaysStartFuture, err error)
Stop(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result network.ApplicationGatewaysStopFuture, err error)
}
@@ -48,6 +50,7 @@ type ExpressRouteCircuitAuthorizationsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, circuitName string, authorizationName string) (result network.ExpressRouteCircuitAuthorizationsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, circuitName string, authorizationName string) (result network.ExpressRouteCircuitAuthorization, err error)
List(ctx context.Context, resourceGroupName string, circuitName string) (result network.AuthorizationListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, circuitName string) (result network.AuthorizationListResultIterator, err error)
}
var _ ExpressRouteCircuitAuthorizationsClientAPI = (*network.ExpressRouteCircuitAuthorizationsClient)(nil)
@@ -58,6 +61,7 @@ type ExpressRouteCircuitPeeringsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.ExpressRouteCircuitPeeringsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.ExpressRouteCircuitPeering, err error)
List(ctx context.Context, resourceGroupName string, circuitName string) (result network.ExpressRouteCircuitPeeringListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, circuitName string) (result network.ExpressRouteCircuitPeeringListResultIterator, err error)
}
var _ ExpressRouteCircuitPeeringsClientAPI = (*network.ExpressRouteCircuitPeeringsClient)(nil)
@@ -70,7 +74,9 @@ type ExpressRouteCircuitsClientAPI interface {
GetPeeringStats(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.ExpressRouteCircuitStats, err error)
GetStats(ctx context.Context, resourceGroupName string, circuitName string) (result network.ExpressRouteCircuitStats, err error)
List(ctx context.Context, resourceGroupName string) (result network.ExpressRouteCircuitListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.ExpressRouteCircuitListResultIterator, err error)
ListAll(ctx context.Context) (result network.ExpressRouteCircuitListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.ExpressRouteCircuitListResultIterator, err error)
ListArpTable(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, devicePath string) (result network.ExpressRouteCircuitsListArpTableFuture, err error)
ListRoutesTable(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, devicePath string) (result network.ExpressRouteCircuitsListRoutesTableFuture, err error)
ListRoutesTableSummary(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, devicePath string) (result network.ExpressRouteCircuitsListRoutesTableSummaryFuture, err error)
@@ -81,6 +87,7 @@ var _ ExpressRouteCircuitsClientAPI = (*network.ExpressRouteCircuitsClient)(nil)
// ExpressRouteServiceProvidersClientAPI contains the set of methods on the ExpressRouteServiceProvidersClient type.
type ExpressRouteServiceProvidersClientAPI interface {
List(ctx context.Context) (result network.ExpressRouteServiceProviderListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ExpressRouteServiceProviderListResultIterator, err error)
}
var _ ExpressRouteServiceProvidersClientAPI = (*network.ExpressRouteServiceProvidersClient)(nil)
@@ -91,7 +98,9 @@ type LoadBalancersClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancersDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, expand string) (result network.LoadBalancer, err error)
List(ctx context.Context, resourceGroupName string) (result network.LoadBalancerListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.LoadBalancerListResultIterator, err error)
ListAll(ctx context.Context) (result network.LoadBalancerListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.LoadBalancerListResultIterator, err error)
}
var _ LoadBalancersClientAPI = (*network.LoadBalancersClient)(nil)
@@ -102,6 +111,7 @@ type LocalNetworkGatewaysClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, localNetworkGatewayName string) (result network.LocalNetworkGatewaysDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, localNetworkGatewayName string) (result network.LocalNetworkGateway, err error)
List(ctx context.Context, resourceGroupName string) (result network.LocalNetworkGatewayListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.LocalNetworkGatewayListResultIterator, err error)
}
var _ LocalNetworkGatewaysClientAPI = (*network.LocalNetworkGatewaysClient)(nil)
@@ -114,10 +124,14 @@ type InterfacesClientAPI interface {
GetEffectiveRouteTable(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfacesGetEffectiveRouteTableFuture, err error)
GetVirtualMachineScaleSetNetworkInterface(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, expand string) (result network.Interface, err error)
List(ctx context.Context, resourceGroupName string) (result network.InterfaceListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.InterfaceListResultIterator, err error)
ListAll(ctx context.Context) (result network.InterfaceListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.InterfaceListResultIterator, err error)
ListEffectiveNetworkSecurityGroups(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfacesListEffectiveNetworkSecurityGroupsFuture, err error)
ListVirtualMachineScaleSetNetworkInterfaces(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result network.InterfaceListResultPage, err error)
+ ListVirtualMachineScaleSetNetworkInterfacesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result network.InterfaceListResultIterator, err error)
ListVirtualMachineScaleSetVMNetworkInterfaces(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string) (result network.InterfaceListResultPage, err error)
+ ListVirtualMachineScaleSetVMNetworkInterfacesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string) (result network.InterfaceListResultIterator, err error)
}
var _ InterfacesClientAPI = (*network.InterfacesClient)(nil)
@@ -128,7 +142,9 @@ type SecurityGroupsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityGroupsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, expand string) (result network.SecurityGroup, err error)
List(ctx context.Context, resourceGroupName string) (result network.SecurityGroupListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.SecurityGroupListResultIterator, err error)
ListAll(ctx context.Context) (result network.SecurityGroupListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.SecurityGroupListResultIterator, err error)
}
var _ SecurityGroupsClientAPI = (*network.SecurityGroupsClient)(nil)
@@ -139,7 +155,9 @@ type PublicIPAddressesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, publicIPAddressName string) (result network.PublicIPAddressesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, publicIPAddressName string, expand string) (result network.PublicIPAddress, err error)
List(ctx context.Context, resourceGroupName string) (result network.PublicIPAddressListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.PublicIPAddressListResultIterator, err error)
ListAll(ctx context.Context) (result network.PublicIPAddressListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.PublicIPAddressListResultIterator, err error)
}
var _ PublicIPAddressesClientAPI = (*network.PublicIPAddressesClient)(nil)
@@ -150,7 +168,9 @@ type RouteTablesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, routeTableName string) (result network.RouteTablesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, routeTableName string, expand string) (result network.RouteTable, err error)
List(ctx context.Context, resourceGroupName string) (result network.RouteTableListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.RouteTableListResultIterator, err error)
ListAll(ctx context.Context) (result network.RouteTableListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.RouteTableListResultIterator, err error)
}
var _ RouteTablesClientAPI = (*network.RouteTablesClient)(nil)
@@ -161,6 +181,7 @@ type RoutesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, routeTableName string, routeName string) (result network.RoutesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, routeTableName string, routeName string) (result network.Route, err error)
List(ctx context.Context, resourceGroupName string, routeTableName string) (result network.RouteListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, routeTableName string) (result network.RouteListResultIterator, err error)
}
var _ RoutesClientAPI = (*network.RoutesClient)(nil)
@@ -171,6 +192,7 @@ type SecurityRulesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, securityRuleName string) (result network.SecurityRulesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, securityRuleName string) (result network.SecurityRule, err error)
List(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityRuleListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityRuleListResultIterator, err error)
}
var _ SecurityRulesClientAPI = (*network.SecurityRulesClient)(nil)
@@ -181,6 +203,7 @@ type SubnetsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualNetworkName string, subnetName string) (result network.SubnetsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualNetworkName string, subnetName string, expand string) (result network.Subnet, err error)
List(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.SubnetListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.SubnetListResultIterator, err error)
}
var _ SubnetsClientAPI = (*network.SubnetsClient)(nil)
@@ -191,6 +214,7 @@ type VirtualNetworkPeeringsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualNetworkName string, virtualNetworkPeeringName string) (result network.VirtualNetworkPeeringsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualNetworkName string, virtualNetworkPeeringName string) (result network.VirtualNetworkPeering, err error)
List(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworkPeeringListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworkPeeringListResultIterator, err error)
}
var _ VirtualNetworkPeeringsClientAPI = (*network.VirtualNetworkPeeringsClient)(nil)
@@ -198,6 +222,7 @@ var _ VirtualNetworkPeeringsClientAPI = (*network.VirtualNetworkPeeringsClient)(
// UsagesClientAPI contains the set of methods on the UsagesClient type.
type UsagesClientAPI interface {
List(ctx context.Context, location string) (result network.UsagesListResultPage, err error)
+ ListComplete(ctx context.Context, location string) (result network.UsagesListResultIterator, err error)
}
var _ UsagesClientAPI = (*network.UsagesClient)(nil)
@@ -209,6 +234,7 @@ type VirtualNetworkGatewayConnectionsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string) (result network.VirtualNetworkGatewayConnection, err error)
GetSharedKey(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string) (result network.ConnectionSharedKeyResult, err error)
List(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayConnectionListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayConnectionListResultIterator, err error)
ResetSharedKey(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string, parameters network.ConnectionResetSharedKey) (result network.VirtualNetworkGatewayConnectionsResetSharedKeyFuture, err error)
SetSharedKey(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string, parameters network.ConnectionSharedKey) (result network.VirtualNetworkGatewayConnectionsSetSharedKeyFuture, err error)
}
@@ -222,6 +248,7 @@ type VirtualNetworkGatewaysClientAPI interface {
Generatevpnclientpackage(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, parameters network.VpnClientParameters) (result network.String, err error)
Get(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGateway, err error)
List(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayListResultIterator, err error)
Reset(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, parameters network.VirtualNetworkGateway) (result network.VirtualNetworkGatewaysResetFuture, err error)
}
@@ -234,7 +261,9 @@ type VirtualNetworksClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworksDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualNetworkName string, expand string) (result network.VirtualNetwork, err error)
List(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkListResultIterator, err error)
ListAll(ctx context.Context) (result network.VirtualNetworkListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.VirtualNetworkListResultIterator, err error)
}
var _ VirtualNetworksClientAPI = (*network.VirtualNetworksClient)(nil)
diff --git a/services/network/mgmt/2016-06-01/network/publicipaddresses.go b/services/network/mgmt/2016-06-01/network/publicipaddresses.go
index 1a5a469856ba..419a8852e8c9 100644
--- a/services/network/mgmt/2016-06-01/network/publicipaddresses.go
+++ b/services/network/mgmt/2016-06-01/network/publicipaddresses.go
@@ -36,7 +36,9 @@ func NewPublicIPAddressesClient(subscriptionID string) PublicIPAddressesClient {
return NewPublicIPAddressesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewPublicIPAddressesClientWithBaseURI creates an instance of the PublicIPAddressesClient client.
+// NewPublicIPAddressesClientWithBaseURI creates an instance of the PublicIPAddressesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewPublicIPAddressesClientWithBaseURI(baseURI string, subscriptionID string) PublicIPAddressesClient {
return PublicIPAddressesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2016-06-01/network/routes.go b/services/network/mgmt/2016-06-01/network/routes.go
index 77bad02408a9..f50c5841f02b 100644
--- a/services/network/mgmt/2016-06-01/network/routes.go
+++ b/services/network/mgmt/2016-06-01/network/routes.go
@@ -35,7 +35,8 @@ func NewRoutesClient(subscriptionID string) RoutesClient {
return NewRoutesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewRoutesClientWithBaseURI creates an instance of the RoutesClient client.
+// NewRoutesClientWithBaseURI creates an instance of the RoutesClient client using a custom endpoint. Use this when
+// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewRoutesClientWithBaseURI(baseURI string, subscriptionID string) RoutesClient {
return RoutesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2016-06-01/network/routetables.go b/services/network/mgmt/2016-06-01/network/routetables.go
index 32de7f60a425..ef5ed3a4a251 100644
--- a/services/network/mgmt/2016-06-01/network/routetables.go
+++ b/services/network/mgmt/2016-06-01/network/routetables.go
@@ -35,7 +35,8 @@ func NewRouteTablesClient(subscriptionID string) RouteTablesClient {
return NewRouteTablesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewRouteTablesClientWithBaseURI creates an instance of the RouteTablesClient client.
+// NewRouteTablesClientWithBaseURI creates an instance of the RouteTablesClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewRouteTablesClientWithBaseURI(baseURI string, subscriptionID string) RouteTablesClient {
return RouteTablesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2016-06-01/network/securitygroups.go b/services/network/mgmt/2016-06-01/network/securitygroups.go
index 63371feb2b0e..bebcfcacb4e6 100644
--- a/services/network/mgmt/2016-06-01/network/securitygroups.go
+++ b/services/network/mgmt/2016-06-01/network/securitygroups.go
@@ -35,7 +35,8 @@ func NewSecurityGroupsClient(subscriptionID string) SecurityGroupsClient {
return NewSecurityGroupsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewSecurityGroupsClientWithBaseURI creates an instance of the SecurityGroupsClient client.
+// NewSecurityGroupsClientWithBaseURI creates an instance of the SecurityGroupsClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewSecurityGroupsClientWithBaseURI(baseURI string, subscriptionID string) SecurityGroupsClient {
return SecurityGroupsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2016-06-01/network/securityrules.go b/services/network/mgmt/2016-06-01/network/securityrules.go
index 328fbfae56b1..61b010b16c58 100644
--- a/services/network/mgmt/2016-06-01/network/securityrules.go
+++ b/services/network/mgmt/2016-06-01/network/securityrules.go
@@ -36,7 +36,8 @@ func NewSecurityRulesClient(subscriptionID string) SecurityRulesClient {
return NewSecurityRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewSecurityRulesClientWithBaseURI creates an instance of the SecurityRulesClient client.
+// NewSecurityRulesClientWithBaseURI creates an instance of the SecurityRulesClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewSecurityRulesClientWithBaseURI(baseURI string, subscriptionID string) SecurityRulesClient {
return SecurityRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2016-06-01/network/subnets.go b/services/network/mgmt/2016-06-01/network/subnets.go
index 7212fb6db4f2..c1201539aef0 100644
--- a/services/network/mgmt/2016-06-01/network/subnets.go
+++ b/services/network/mgmt/2016-06-01/network/subnets.go
@@ -35,7 +35,8 @@ func NewSubnetsClient(subscriptionID string) SubnetsClient {
return NewSubnetsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewSubnetsClientWithBaseURI creates an instance of the SubnetsClient client.
+// NewSubnetsClientWithBaseURI creates an instance of the SubnetsClient client using a custom endpoint. Use this when
+// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewSubnetsClientWithBaseURI(baseURI string, subscriptionID string) SubnetsClient {
return SubnetsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2016-06-01/network/usages.go b/services/network/mgmt/2016-06-01/network/usages.go
index 4ae91c6f5f70..1c0fcf6d262e 100644
--- a/services/network/mgmt/2016-06-01/network/usages.go
+++ b/services/network/mgmt/2016-06-01/network/usages.go
@@ -36,7 +36,8 @@ func NewUsagesClient(subscriptionID string) UsagesClient {
return NewUsagesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewUsagesClientWithBaseURI creates an instance of the UsagesClient client.
+// NewUsagesClientWithBaseURI creates an instance of the UsagesClient client using a custom endpoint. Use this when
+// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewUsagesClientWithBaseURI(baseURI string, subscriptionID string) UsagesClient {
return UsagesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2016-06-01/network/virtualnetworkgatewayconnections.go b/services/network/mgmt/2016-06-01/network/virtualnetworkgatewayconnections.go
index 903e2858f00a..eba41bac18e4 100644
--- a/services/network/mgmt/2016-06-01/network/virtualnetworkgatewayconnections.go
+++ b/services/network/mgmt/2016-06-01/network/virtualnetworkgatewayconnections.go
@@ -36,7 +36,8 @@ func NewVirtualNetworkGatewayConnectionsClient(subscriptionID string) VirtualNet
}
// NewVirtualNetworkGatewayConnectionsClientWithBaseURI creates an instance of the
-// VirtualNetworkGatewayConnectionsClient client.
+// VirtualNetworkGatewayConnectionsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVirtualNetworkGatewayConnectionsClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworkGatewayConnectionsClient {
return VirtualNetworkGatewayConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2016-06-01/network/virtualnetworkgateways.go b/services/network/mgmt/2016-06-01/network/virtualnetworkgateways.go
index 679c1ed1dd76..7b9480a8faac 100644
--- a/services/network/mgmt/2016-06-01/network/virtualnetworkgateways.go
+++ b/services/network/mgmt/2016-06-01/network/virtualnetworkgateways.go
@@ -35,7 +35,9 @@ func NewVirtualNetworkGatewaysClient(subscriptionID string) VirtualNetworkGatewa
return NewVirtualNetworkGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualNetworkGatewaysClientWithBaseURI creates an instance of the VirtualNetworkGatewaysClient client.
+// NewVirtualNetworkGatewaysClientWithBaseURI creates an instance of the VirtualNetworkGatewaysClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewVirtualNetworkGatewaysClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworkGatewaysClient {
return VirtualNetworkGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2016-06-01/network/virtualnetworkpeerings.go b/services/network/mgmt/2016-06-01/network/virtualnetworkpeerings.go
index a6d998698f07..1365a24b34bd 100644
--- a/services/network/mgmt/2016-06-01/network/virtualnetworkpeerings.go
+++ b/services/network/mgmt/2016-06-01/network/virtualnetworkpeerings.go
@@ -35,7 +35,9 @@ func NewVirtualNetworkPeeringsClient(subscriptionID string) VirtualNetworkPeerin
return NewVirtualNetworkPeeringsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualNetworkPeeringsClientWithBaseURI creates an instance of the VirtualNetworkPeeringsClient client.
+// NewVirtualNetworkPeeringsClientWithBaseURI creates an instance of the VirtualNetworkPeeringsClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewVirtualNetworkPeeringsClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworkPeeringsClient {
return VirtualNetworkPeeringsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2016-06-01/network/virtualnetworks.go b/services/network/mgmt/2016-06-01/network/virtualnetworks.go
index 43251c3183c1..6a7fe3a14537 100644
--- a/services/network/mgmt/2016-06-01/network/virtualnetworks.go
+++ b/services/network/mgmt/2016-06-01/network/virtualnetworks.go
@@ -35,7 +35,8 @@ func NewVirtualNetworksClient(subscriptionID string) VirtualNetworksClient {
return NewVirtualNetworksClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualNetworksClientWithBaseURI creates an instance of the VirtualNetworksClient client.
+// NewVirtualNetworksClientWithBaseURI creates an instance of the VirtualNetworksClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVirtualNetworksClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworksClient {
return VirtualNetworksClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2016-09-01/network/applicationgateways.go b/services/network/mgmt/2016-09-01/network/applicationgateways.go
index 768876c9ebf0..f82a16679360 100644
--- a/services/network/mgmt/2016-09-01/network/applicationgateways.go
+++ b/services/network/mgmt/2016-09-01/network/applicationgateways.go
@@ -36,7 +36,9 @@ func NewApplicationGatewaysClient(subscriptionID string) ApplicationGatewaysClie
return NewApplicationGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewApplicationGatewaysClientWithBaseURI creates an instance of the ApplicationGatewaysClient client.
+// NewApplicationGatewaysClientWithBaseURI creates an instance of the ApplicationGatewaysClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewApplicationGatewaysClientWithBaseURI(baseURI string, subscriptionID string) ApplicationGatewaysClient {
return ApplicationGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2016-09-01/network/client.go b/services/network/mgmt/2016-09-01/network/client.go
index dddef1626a47..12f777faaa4c 100644
--- a/services/network/mgmt/2016-09-01/network/client.go
+++ b/services/network/mgmt/2016-09-01/network/client.go
@@ -45,7 +45,8 @@ func New(subscriptionID string) BaseClient {
return NewWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewWithBaseURI creates an instance of the BaseClient client.
+// NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with
+// an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient {
return BaseClient{
Client: autorest.NewClientWithUserAgent(UserAgent()),
diff --git a/services/network/mgmt/2016-09-01/network/expressroutecircuitauthorizations.go b/services/network/mgmt/2016-09-01/network/expressroutecircuitauthorizations.go
index 74b8cae54d81..6a7e5c2bd671 100644
--- a/services/network/mgmt/2016-09-01/network/expressroutecircuitauthorizations.go
+++ b/services/network/mgmt/2016-09-01/network/expressroutecircuitauthorizations.go
@@ -37,7 +37,8 @@ func NewExpressRouteCircuitAuthorizationsClient(subscriptionID string) ExpressRo
}
// NewExpressRouteCircuitAuthorizationsClientWithBaseURI creates an instance of the
-// ExpressRouteCircuitAuthorizationsClient client.
+// ExpressRouteCircuitAuthorizationsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewExpressRouteCircuitAuthorizationsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCircuitAuthorizationsClient {
return ExpressRouteCircuitAuthorizationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2016-09-01/network/expressroutecircuitpeerings.go b/services/network/mgmt/2016-09-01/network/expressroutecircuitpeerings.go
index abbb8b503aa1..14122d1c527e 100644
--- a/services/network/mgmt/2016-09-01/network/expressroutecircuitpeerings.go
+++ b/services/network/mgmt/2016-09-01/network/expressroutecircuitpeerings.go
@@ -35,7 +35,9 @@ func NewExpressRouteCircuitPeeringsClient(subscriptionID string) ExpressRouteCir
return NewExpressRouteCircuitPeeringsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewExpressRouteCircuitPeeringsClientWithBaseURI creates an instance of the ExpressRouteCircuitPeeringsClient client.
+// NewExpressRouteCircuitPeeringsClientWithBaseURI creates an instance of the ExpressRouteCircuitPeeringsClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewExpressRouteCircuitPeeringsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCircuitPeeringsClient {
return ExpressRouteCircuitPeeringsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2016-09-01/network/expressroutecircuits.go b/services/network/mgmt/2016-09-01/network/expressroutecircuits.go
index 456470ebfce7..5a0a07ec4938 100644
--- a/services/network/mgmt/2016-09-01/network/expressroutecircuits.go
+++ b/services/network/mgmt/2016-09-01/network/expressroutecircuits.go
@@ -35,7 +35,9 @@ func NewExpressRouteCircuitsClient(subscriptionID string) ExpressRouteCircuitsCl
return NewExpressRouteCircuitsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewExpressRouteCircuitsClientWithBaseURI creates an instance of the ExpressRouteCircuitsClient client.
+// NewExpressRouteCircuitsClientWithBaseURI creates an instance of the ExpressRouteCircuitsClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewExpressRouteCircuitsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCircuitsClient {
return ExpressRouteCircuitsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2016-09-01/network/expressrouteserviceproviders.go b/services/network/mgmt/2016-09-01/network/expressrouteserviceproviders.go
index 05e62fa64847..f2f866ad9ab1 100644
--- a/services/network/mgmt/2016-09-01/network/expressrouteserviceproviders.go
+++ b/services/network/mgmt/2016-09-01/network/expressrouteserviceproviders.go
@@ -36,7 +36,8 @@ func NewExpressRouteServiceProvidersClient(subscriptionID string) ExpressRouteSe
}
// NewExpressRouteServiceProvidersClientWithBaseURI creates an instance of the ExpressRouteServiceProvidersClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewExpressRouteServiceProvidersClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteServiceProvidersClient {
return ExpressRouteServiceProvidersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2016-09-01/network/interfacesgroup.go b/services/network/mgmt/2016-09-01/network/interfacesgroup.go
index 66c0aabdc59d..8f93605e2c04 100644
--- a/services/network/mgmt/2016-09-01/network/interfacesgroup.go
+++ b/services/network/mgmt/2016-09-01/network/interfacesgroup.go
@@ -35,7 +35,8 @@ func NewInterfacesClient(subscriptionID string) InterfacesClient {
return NewInterfacesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewInterfacesClientWithBaseURI creates an instance of the InterfacesClient client.
+// NewInterfacesClientWithBaseURI creates an instance of the InterfacesClient client using a custom endpoint. Use this
+// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewInterfacesClientWithBaseURI(baseURI string, subscriptionID string) InterfacesClient {
return InterfacesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2016-09-01/network/loadbalancers.go b/services/network/mgmt/2016-09-01/network/loadbalancers.go
index 4cef506c2e61..f6acad237734 100644
--- a/services/network/mgmt/2016-09-01/network/loadbalancers.go
+++ b/services/network/mgmt/2016-09-01/network/loadbalancers.go
@@ -35,7 +35,8 @@ func NewLoadBalancersClient(subscriptionID string) LoadBalancersClient {
return NewLoadBalancersClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewLoadBalancersClientWithBaseURI creates an instance of the LoadBalancersClient client.
+// NewLoadBalancersClientWithBaseURI creates an instance of the LoadBalancersClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewLoadBalancersClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancersClient {
return LoadBalancersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2016-09-01/network/localnetworkgateways.go b/services/network/mgmt/2016-09-01/network/localnetworkgateways.go
index 197c62f47791..cfd8bdb0ddef 100644
--- a/services/network/mgmt/2016-09-01/network/localnetworkgateways.go
+++ b/services/network/mgmt/2016-09-01/network/localnetworkgateways.go
@@ -36,7 +36,9 @@ func NewLocalNetworkGatewaysClient(subscriptionID string) LocalNetworkGatewaysCl
return NewLocalNetworkGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewLocalNetworkGatewaysClientWithBaseURI creates an instance of the LocalNetworkGatewaysClient client.
+// NewLocalNetworkGatewaysClientWithBaseURI creates an instance of the LocalNetworkGatewaysClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewLocalNetworkGatewaysClientWithBaseURI(baseURI string, subscriptionID string) LocalNetworkGatewaysClient {
return LocalNetworkGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2016-09-01/network/networkapi/interfaces.go b/services/network/mgmt/2016-09-01/network/networkapi/interfaces.go
index 9a55f3083938..e99a74aa8e62 100644
--- a/services/network/mgmt/2016-09-01/network/networkapi/interfaces.go
+++ b/services/network/mgmt/2016-09-01/network/networkapi/interfaces.go
@@ -37,10 +37,14 @@ type InterfacesClientAPI interface {
GetEffectiveRouteTable(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfacesGetEffectiveRouteTableFuture, err error)
GetVirtualMachineScaleSetNetworkInterface(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, expand string) (result network.Interface, err error)
List(ctx context.Context, resourceGroupName string) (result network.InterfaceListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.InterfaceListResultIterator, err error)
ListAll(ctx context.Context) (result network.InterfaceListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.InterfaceListResultIterator, err error)
ListEffectiveNetworkSecurityGroups(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfacesListEffectiveNetworkSecurityGroupsFuture, err error)
ListVirtualMachineScaleSetNetworkInterfaces(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result network.InterfaceListResultPage, err error)
+ ListVirtualMachineScaleSetNetworkInterfacesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result network.InterfaceListResultIterator, err error)
ListVirtualMachineScaleSetVMNetworkInterfaces(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string) (result network.InterfaceListResultPage, err error)
+ ListVirtualMachineScaleSetVMNetworkInterfacesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string) (result network.InterfaceListResultIterator, err error)
}
var _ InterfacesClientAPI = (*network.InterfacesClient)(nil)
@@ -52,7 +56,9 @@ type ApplicationGatewaysClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result network.ApplicationGatewaysDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result network.ApplicationGateway, err error)
List(ctx context.Context, resourceGroupName string) (result network.ApplicationGatewayListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.ApplicationGatewayListResultIterator, err error)
ListAll(ctx context.Context) (result network.ApplicationGatewayListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.ApplicationGatewayListResultIterator, err error)
Start(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result network.ApplicationGatewaysStartFuture, err error)
Stop(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result network.ApplicationGatewaysStopFuture, err error)
}
@@ -65,6 +71,7 @@ type ExpressRouteCircuitAuthorizationsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, circuitName string, authorizationName string) (result network.ExpressRouteCircuitAuthorizationsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, circuitName string, authorizationName string) (result network.ExpressRouteCircuitAuthorization, err error)
List(ctx context.Context, resourceGroupName string, circuitName string) (result network.AuthorizationListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, circuitName string) (result network.AuthorizationListResultIterator, err error)
}
var _ ExpressRouteCircuitAuthorizationsClientAPI = (*network.ExpressRouteCircuitAuthorizationsClient)(nil)
@@ -75,6 +82,7 @@ type ExpressRouteCircuitPeeringsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.ExpressRouteCircuitPeeringsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.ExpressRouteCircuitPeering, err error)
List(ctx context.Context, resourceGroupName string, circuitName string) (result network.ExpressRouteCircuitPeeringListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, circuitName string) (result network.ExpressRouteCircuitPeeringListResultIterator, err error)
}
var _ ExpressRouteCircuitPeeringsClientAPI = (*network.ExpressRouteCircuitPeeringsClient)(nil)
@@ -87,7 +95,9 @@ type ExpressRouteCircuitsClientAPI interface {
GetPeeringStats(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.ExpressRouteCircuitStats, err error)
GetStats(ctx context.Context, resourceGroupName string, circuitName string) (result network.ExpressRouteCircuitStats, err error)
List(ctx context.Context, resourceGroupName string) (result network.ExpressRouteCircuitListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.ExpressRouteCircuitListResultIterator, err error)
ListAll(ctx context.Context) (result network.ExpressRouteCircuitListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.ExpressRouteCircuitListResultIterator, err error)
ListArpTable(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, devicePath string) (result network.ExpressRouteCircuitsListArpTableFuture, err error)
ListRoutesTable(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, devicePath string) (result network.ExpressRouteCircuitsListRoutesTableFuture, err error)
ListRoutesTableSummary(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, devicePath string) (result network.ExpressRouteCircuitsListRoutesTableSummaryFuture, err error)
@@ -98,6 +108,7 @@ var _ ExpressRouteCircuitsClientAPI = (*network.ExpressRouteCircuitsClient)(nil)
// ExpressRouteServiceProvidersClientAPI contains the set of methods on the ExpressRouteServiceProvidersClient type.
type ExpressRouteServiceProvidersClientAPI interface {
List(ctx context.Context) (result network.ExpressRouteServiceProviderListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ExpressRouteServiceProviderListResultIterator, err error)
}
var _ ExpressRouteServiceProvidersClientAPI = (*network.ExpressRouteServiceProvidersClient)(nil)
@@ -108,7 +119,9 @@ type LoadBalancersClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancersDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, expand string) (result network.LoadBalancer, err error)
List(ctx context.Context, resourceGroupName string) (result network.LoadBalancerListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.LoadBalancerListResultIterator, err error)
ListAll(ctx context.Context) (result network.LoadBalancerListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.LoadBalancerListResultIterator, err error)
}
var _ LoadBalancersClientAPI = (*network.LoadBalancersClient)(nil)
@@ -119,7 +132,9 @@ type SecurityGroupsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityGroupsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, expand string) (result network.SecurityGroup, err error)
List(ctx context.Context, resourceGroupName string) (result network.SecurityGroupListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.SecurityGroupListResultIterator, err error)
ListAll(ctx context.Context) (result network.SecurityGroupListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.SecurityGroupListResultIterator, err error)
}
var _ SecurityGroupsClientAPI = (*network.SecurityGroupsClient)(nil)
@@ -130,6 +145,7 @@ type SecurityRulesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, securityRuleName string) (result network.SecurityRulesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, securityRuleName string) (result network.SecurityRule, err error)
List(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityRuleListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityRuleListResultIterator, err error)
}
var _ SecurityRulesClientAPI = (*network.SecurityRulesClient)(nil)
@@ -171,7 +187,9 @@ type PublicIPAddressesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, publicIPAddressName string) (result network.PublicIPAddressesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, publicIPAddressName string, expand string) (result network.PublicIPAddress, err error)
List(ctx context.Context, resourceGroupName string) (result network.PublicIPAddressListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.PublicIPAddressListResultIterator, err error)
ListAll(ctx context.Context) (result network.PublicIPAddressListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.PublicIPAddressListResultIterator, err error)
}
var _ PublicIPAddressesClientAPI = (*network.PublicIPAddressesClient)(nil)
@@ -182,7 +200,9 @@ type RouteTablesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, routeTableName string) (result network.RouteTablesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, routeTableName string, expand string) (result network.RouteTable, err error)
List(ctx context.Context, resourceGroupName string) (result network.RouteTableListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.RouteTableListResultIterator, err error)
ListAll(ctx context.Context) (result network.RouteTableListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.RouteTableListResultIterator, err error)
}
var _ RouteTablesClientAPI = (*network.RouteTablesClient)(nil)
@@ -193,6 +213,7 @@ type RoutesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, routeTableName string, routeName string) (result network.RoutesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, routeTableName string, routeName string) (result network.Route, err error)
List(ctx context.Context, resourceGroupName string, routeTableName string) (result network.RouteListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, routeTableName string) (result network.RouteListResultIterator, err error)
}
var _ RoutesClientAPI = (*network.RoutesClient)(nil)
@@ -200,6 +221,7 @@ var _ RoutesClientAPI = (*network.RoutesClient)(nil)
// UsagesClientAPI contains the set of methods on the UsagesClient type.
type UsagesClientAPI interface {
List(ctx context.Context, location string) (result network.UsagesListResultPage, err error)
+ ListComplete(ctx context.Context, location string) (result network.UsagesListResultIterator, err error)
}
var _ UsagesClientAPI = (*network.UsagesClient)(nil)
@@ -211,7 +233,9 @@ type VirtualNetworksClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworksDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualNetworkName string, expand string) (result network.VirtualNetwork, err error)
List(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkListResultIterator, err error)
ListAll(ctx context.Context) (result network.VirtualNetworkListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.VirtualNetworkListResultIterator, err error)
}
var _ VirtualNetworksClientAPI = (*network.VirtualNetworksClient)(nil)
@@ -222,6 +246,7 @@ type SubnetsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualNetworkName string, subnetName string) (result network.SubnetsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualNetworkName string, subnetName string, expand string) (result network.Subnet, err error)
List(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.SubnetListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.SubnetListResultIterator, err error)
}
var _ SubnetsClientAPI = (*network.SubnetsClient)(nil)
@@ -232,6 +257,7 @@ type VirtualNetworkPeeringsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualNetworkName string, virtualNetworkPeeringName string) (result network.VirtualNetworkPeeringsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualNetworkName string, virtualNetworkPeeringName string) (result network.VirtualNetworkPeering, err error)
List(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworkPeeringListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworkPeeringListResultIterator, err error)
}
var _ VirtualNetworkPeeringsClientAPI = (*network.VirtualNetworkPeeringsClient)(nil)
@@ -246,6 +272,7 @@ type VirtualNetworkGatewaysClientAPI interface {
GetBgpPeerStatus(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, peer string) (result network.VirtualNetworkGatewaysGetBgpPeerStatusFuture, err error)
GetLearnedRoutes(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGatewaysGetLearnedRoutesFuture, err error)
List(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayListResultIterator, err error)
Reset(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, gatewayVip string) (result network.VirtualNetworkGatewaysResetFuture, err error)
}
@@ -258,6 +285,7 @@ type VirtualNetworkGatewayConnectionsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string) (result network.VirtualNetworkGatewayConnection, err error)
GetSharedKey(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string) (result network.ConnectionSharedKey, err error)
List(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayConnectionListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayConnectionListResultIterator, err error)
ResetSharedKey(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string, parameters network.ConnectionResetSharedKey) (result network.VirtualNetworkGatewayConnectionsResetSharedKeyFuture, err error)
SetSharedKey(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string, parameters network.ConnectionSharedKey) (result network.VirtualNetworkGatewayConnectionsSetSharedKeyFuture, err error)
}
@@ -270,6 +298,7 @@ type LocalNetworkGatewaysClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, localNetworkGatewayName string) (result network.LocalNetworkGatewaysDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, localNetworkGatewayName string) (result network.LocalNetworkGateway, err error)
List(ctx context.Context, resourceGroupName string) (result network.LocalNetworkGatewayListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.LocalNetworkGatewayListResultIterator, err error)
}
var _ LocalNetworkGatewaysClientAPI = (*network.LocalNetworkGatewaysClient)(nil)
diff --git a/services/network/mgmt/2016-09-01/network/packetcaptures.go b/services/network/mgmt/2016-09-01/network/packetcaptures.go
index 9cda37c96298..0ec7e11b41da 100644
--- a/services/network/mgmt/2016-09-01/network/packetcaptures.go
+++ b/services/network/mgmt/2016-09-01/network/packetcaptures.go
@@ -36,7 +36,8 @@ func NewPacketCapturesClient(subscriptionID string) PacketCapturesClient {
return NewPacketCapturesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewPacketCapturesClientWithBaseURI creates an instance of the PacketCapturesClient client.
+// NewPacketCapturesClientWithBaseURI creates an instance of the PacketCapturesClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewPacketCapturesClientWithBaseURI(baseURI string, subscriptionID string) PacketCapturesClient {
return PacketCapturesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2016-09-01/network/publicipaddresses.go b/services/network/mgmt/2016-09-01/network/publicipaddresses.go
index a1c40703b3ff..46d4850d17c0 100644
--- a/services/network/mgmt/2016-09-01/network/publicipaddresses.go
+++ b/services/network/mgmt/2016-09-01/network/publicipaddresses.go
@@ -36,7 +36,9 @@ func NewPublicIPAddressesClient(subscriptionID string) PublicIPAddressesClient {
return NewPublicIPAddressesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewPublicIPAddressesClientWithBaseURI creates an instance of the PublicIPAddressesClient client.
+// NewPublicIPAddressesClientWithBaseURI creates an instance of the PublicIPAddressesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewPublicIPAddressesClientWithBaseURI(baseURI string, subscriptionID string) PublicIPAddressesClient {
return PublicIPAddressesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2016-09-01/network/routes.go b/services/network/mgmt/2016-09-01/network/routes.go
index 779cecaf2cde..4eb32e98e68a 100644
--- a/services/network/mgmt/2016-09-01/network/routes.go
+++ b/services/network/mgmt/2016-09-01/network/routes.go
@@ -35,7 +35,8 @@ func NewRoutesClient(subscriptionID string) RoutesClient {
return NewRoutesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewRoutesClientWithBaseURI creates an instance of the RoutesClient client.
+// NewRoutesClientWithBaseURI creates an instance of the RoutesClient client using a custom endpoint. Use this when
+// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewRoutesClientWithBaseURI(baseURI string, subscriptionID string) RoutesClient {
return RoutesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2016-09-01/network/routetables.go b/services/network/mgmt/2016-09-01/network/routetables.go
index 72d87f47231b..9bd24ab97174 100644
--- a/services/network/mgmt/2016-09-01/network/routetables.go
+++ b/services/network/mgmt/2016-09-01/network/routetables.go
@@ -35,7 +35,8 @@ func NewRouteTablesClient(subscriptionID string) RouteTablesClient {
return NewRouteTablesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewRouteTablesClientWithBaseURI creates an instance of the RouteTablesClient client.
+// NewRouteTablesClientWithBaseURI creates an instance of the RouteTablesClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewRouteTablesClientWithBaseURI(baseURI string, subscriptionID string) RouteTablesClient {
return RouteTablesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2016-09-01/network/securitygroups.go b/services/network/mgmt/2016-09-01/network/securitygroups.go
index 6197b5604cd3..f3fdb978012f 100644
--- a/services/network/mgmt/2016-09-01/network/securitygroups.go
+++ b/services/network/mgmt/2016-09-01/network/securitygroups.go
@@ -35,7 +35,8 @@ func NewSecurityGroupsClient(subscriptionID string) SecurityGroupsClient {
return NewSecurityGroupsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewSecurityGroupsClientWithBaseURI creates an instance of the SecurityGroupsClient client.
+// NewSecurityGroupsClientWithBaseURI creates an instance of the SecurityGroupsClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewSecurityGroupsClientWithBaseURI(baseURI string, subscriptionID string) SecurityGroupsClient {
return SecurityGroupsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2016-09-01/network/securityrules.go b/services/network/mgmt/2016-09-01/network/securityrules.go
index 436694e2fadc..7fa30d3b6c94 100644
--- a/services/network/mgmt/2016-09-01/network/securityrules.go
+++ b/services/network/mgmt/2016-09-01/network/securityrules.go
@@ -36,7 +36,8 @@ func NewSecurityRulesClient(subscriptionID string) SecurityRulesClient {
return NewSecurityRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewSecurityRulesClientWithBaseURI creates an instance of the SecurityRulesClient client.
+// NewSecurityRulesClientWithBaseURI creates an instance of the SecurityRulesClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewSecurityRulesClientWithBaseURI(baseURI string, subscriptionID string) SecurityRulesClient {
return SecurityRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2016-09-01/network/subnets.go b/services/network/mgmt/2016-09-01/network/subnets.go
index 28b5764544c8..f13fc535369d 100644
--- a/services/network/mgmt/2016-09-01/network/subnets.go
+++ b/services/network/mgmt/2016-09-01/network/subnets.go
@@ -35,7 +35,8 @@ func NewSubnetsClient(subscriptionID string) SubnetsClient {
return NewSubnetsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewSubnetsClientWithBaseURI creates an instance of the SubnetsClient client.
+// NewSubnetsClientWithBaseURI creates an instance of the SubnetsClient client using a custom endpoint. Use this when
+// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewSubnetsClientWithBaseURI(baseURI string, subscriptionID string) SubnetsClient {
return SubnetsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2016-09-01/network/usages.go b/services/network/mgmt/2016-09-01/network/usages.go
index 401a49cfa800..eb71a0ffaf8f 100644
--- a/services/network/mgmt/2016-09-01/network/usages.go
+++ b/services/network/mgmt/2016-09-01/network/usages.go
@@ -36,7 +36,8 @@ func NewUsagesClient(subscriptionID string) UsagesClient {
return NewUsagesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewUsagesClientWithBaseURI creates an instance of the UsagesClient client.
+// NewUsagesClientWithBaseURI creates an instance of the UsagesClient client using a custom endpoint. Use this when
+// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewUsagesClientWithBaseURI(baseURI string, subscriptionID string) UsagesClient {
return UsagesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2016-09-01/network/virtualnetworkgatewayconnections.go b/services/network/mgmt/2016-09-01/network/virtualnetworkgatewayconnections.go
index f8a727d961c2..8d26546a8ff9 100644
--- a/services/network/mgmt/2016-09-01/network/virtualnetworkgatewayconnections.go
+++ b/services/network/mgmt/2016-09-01/network/virtualnetworkgatewayconnections.go
@@ -37,7 +37,8 @@ func NewVirtualNetworkGatewayConnectionsClient(subscriptionID string) VirtualNet
}
// NewVirtualNetworkGatewayConnectionsClientWithBaseURI creates an instance of the
-// VirtualNetworkGatewayConnectionsClient client.
+// VirtualNetworkGatewayConnectionsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVirtualNetworkGatewayConnectionsClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworkGatewayConnectionsClient {
return VirtualNetworkGatewayConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2016-09-01/network/virtualnetworkgateways.go b/services/network/mgmt/2016-09-01/network/virtualnetworkgateways.go
index c8d80ebbc57c..479d7211739f 100644
--- a/services/network/mgmt/2016-09-01/network/virtualnetworkgateways.go
+++ b/services/network/mgmt/2016-09-01/network/virtualnetworkgateways.go
@@ -36,7 +36,9 @@ func NewVirtualNetworkGatewaysClient(subscriptionID string) VirtualNetworkGatewa
return NewVirtualNetworkGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualNetworkGatewaysClientWithBaseURI creates an instance of the VirtualNetworkGatewaysClient client.
+// NewVirtualNetworkGatewaysClientWithBaseURI creates an instance of the VirtualNetworkGatewaysClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewVirtualNetworkGatewaysClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworkGatewaysClient {
return VirtualNetworkGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2016-09-01/network/virtualnetworkpeerings.go b/services/network/mgmt/2016-09-01/network/virtualnetworkpeerings.go
index 6b0caabfd66e..aeaf30b86715 100644
--- a/services/network/mgmt/2016-09-01/network/virtualnetworkpeerings.go
+++ b/services/network/mgmt/2016-09-01/network/virtualnetworkpeerings.go
@@ -35,7 +35,9 @@ func NewVirtualNetworkPeeringsClient(subscriptionID string) VirtualNetworkPeerin
return NewVirtualNetworkPeeringsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualNetworkPeeringsClientWithBaseURI creates an instance of the VirtualNetworkPeeringsClient client.
+// NewVirtualNetworkPeeringsClientWithBaseURI creates an instance of the VirtualNetworkPeeringsClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewVirtualNetworkPeeringsClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworkPeeringsClient {
return VirtualNetworkPeeringsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2016-09-01/network/virtualnetworks.go b/services/network/mgmt/2016-09-01/network/virtualnetworks.go
index 039782ca6d8e..1fdc6a2a6873 100644
--- a/services/network/mgmt/2016-09-01/network/virtualnetworks.go
+++ b/services/network/mgmt/2016-09-01/network/virtualnetworks.go
@@ -35,7 +35,8 @@ func NewVirtualNetworksClient(subscriptionID string) VirtualNetworksClient {
return NewVirtualNetworksClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualNetworksClientWithBaseURI creates an instance of the VirtualNetworksClient client.
+// NewVirtualNetworksClientWithBaseURI creates an instance of the VirtualNetworksClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVirtualNetworksClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworksClient {
return VirtualNetworksClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2016-09-01/network/watchers.go b/services/network/mgmt/2016-09-01/network/watchers.go
index 41486f0cae91..531d498d1326 100644
--- a/services/network/mgmt/2016-09-01/network/watchers.go
+++ b/services/network/mgmt/2016-09-01/network/watchers.go
@@ -36,7 +36,8 @@ func NewWatchersClient(subscriptionID string) WatchersClient {
return NewWatchersClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewWatchersClientWithBaseURI creates an instance of the WatchersClient client.
+// NewWatchersClientWithBaseURI creates an instance of the WatchersClient client using a custom endpoint. Use this
+// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewWatchersClientWithBaseURI(baseURI string, subscriptionID string) WatchersClient {
return WatchersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2016-12-01/network/applicationgateways.go b/services/network/mgmt/2016-12-01/network/applicationgateways.go
index fba678df0dcb..23e488b42d67 100644
--- a/services/network/mgmt/2016-12-01/network/applicationgateways.go
+++ b/services/network/mgmt/2016-12-01/network/applicationgateways.go
@@ -36,7 +36,9 @@ func NewApplicationGatewaysClient(subscriptionID string) ApplicationGatewaysClie
return NewApplicationGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewApplicationGatewaysClientWithBaseURI creates an instance of the ApplicationGatewaysClient client.
+// NewApplicationGatewaysClientWithBaseURI creates an instance of the ApplicationGatewaysClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewApplicationGatewaysClientWithBaseURI(baseURI string, subscriptionID string) ApplicationGatewaysClient {
return ApplicationGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2016-12-01/network/bgpservicecommunities.go b/services/network/mgmt/2016-12-01/network/bgpservicecommunities.go
index a25681155f80..b7a364864954 100644
--- a/services/network/mgmt/2016-12-01/network/bgpservicecommunities.go
+++ b/services/network/mgmt/2016-12-01/network/bgpservicecommunities.go
@@ -35,7 +35,9 @@ func NewBgpServiceCommunitiesClient(subscriptionID string) BgpServiceCommunities
return NewBgpServiceCommunitiesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewBgpServiceCommunitiesClientWithBaseURI creates an instance of the BgpServiceCommunitiesClient client.
+// NewBgpServiceCommunitiesClientWithBaseURI creates an instance of the BgpServiceCommunitiesClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewBgpServiceCommunitiesClientWithBaseURI(baseURI string, subscriptionID string) BgpServiceCommunitiesClient {
return BgpServiceCommunitiesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2016-12-01/network/client.go b/services/network/mgmt/2016-12-01/network/client.go
index 861f6fe9a4ac..fff5c4b95c19 100644
--- a/services/network/mgmt/2016-12-01/network/client.go
+++ b/services/network/mgmt/2016-12-01/network/client.go
@@ -45,7 +45,8 @@ func New(subscriptionID string) BaseClient {
return NewWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewWithBaseURI creates an instance of the BaseClient client.
+// NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with
+// an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient {
return BaseClient{
Client: autorest.NewClientWithUserAgent(UserAgent()),
diff --git a/services/network/mgmt/2016-12-01/network/expressroutecircuitauthorizations.go b/services/network/mgmt/2016-12-01/network/expressroutecircuitauthorizations.go
index f39bde62ca8f..33a95aaa7801 100644
--- a/services/network/mgmt/2016-12-01/network/expressroutecircuitauthorizations.go
+++ b/services/network/mgmt/2016-12-01/network/expressroutecircuitauthorizations.go
@@ -37,7 +37,8 @@ func NewExpressRouteCircuitAuthorizationsClient(subscriptionID string) ExpressRo
}
// NewExpressRouteCircuitAuthorizationsClientWithBaseURI creates an instance of the
-// ExpressRouteCircuitAuthorizationsClient client.
+// ExpressRouteCircuitAuthorizationsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewExpressRouteCircuitAuthorizationsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCircuitAuthorizationsClient {
return ExpressRouteCircuitAuthorizationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2016-12-01/network/expressroutecircuitpeerings.go b/services/network/mgmt/2016-12-01/network/expressroutecircuitpeerings.go
index fb355fcaa005..32833d15cca7 100644
--- a/services/network/mgmt/2016-12-01/network/expressroutecircuitpeerings.go
+++ b/services/network/mgmt/2016-12-01/network/expressroutecircuitpeerings.go
@@ -35,7 +35,9 @@ func NewExpressRouteCircuitPeeringsClient(subscriptionID string) ExpressRouteCir
return NewExpressRouteCircuitPeeringsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewExpressRouteCircuitPeeringsClientWithBaseURI creates an instance of the ExpressRouteCircuitPeeringsClient client.
+// NewExpressRouteCircuitPeeringsClientWithBaseURI creates an instance of the ExpressRouteCircuitPeeringsClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewExpressRouteCircuitPeeringsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCircuitPeeringsClient {
return ExpressRouteCircuitPeeringsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2016-12-01/network/expressroutecircuits.go b/services/network/mgmt/2016-12-01/network/expressroutecircuits.go
index 08df09abca93..0c8c6a2f1cba 100644
--- a/services/network/mgmt/2016-12-01/network/expressroutecircuits.go
+++ b/services/network/mgmt/2016-12-01/network/expressroutecircuits.go
@@ -35,7 +35,9 @@ func NewExpressRouteCircuitsClient(subscriptionID string) ExpressRouteCircuitsCl
return NewExpressRouteCircuitsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewExpressRouteCircuitsClientWithBaseURI creates an instance of the ExpressRouteCircuitsClient client.
+// NewExpressRouteCircuitsClientWithBaseURI creates an instance of the ExpressRouteCircuitsClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewExpressRouteCircuitsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCircuitsClient {
return ExpressRouteCircuitsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2016-12-01/network/expressrouteserviceproviders.go b/services/network/mgmt/2016-12-01/network/expressrouteserviceproviders.go
index b9325771cd04..d0d3c964c12a 100644
--- a/services/network/mgmt/2016-12-01/network/expressrouteserviceproviders.go
+++ b/services/network/mgmt/2016-12-01/network/expressrouteserviceproviders.go
@@ -36,7 +36,8 @@ func NewExpressRouteServiceProvidersClient(subscriptionID string) ExpressRouteSe
}
// NewExpressRouteServiceProvidersClientWithBaseURI creates an instance of the ExpressRouteServiceProvidersClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewExpressRouteServiceProvidersClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteServiceProvidersClient {
return ExpressRouteServiceProvidersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2016-12-01/network/interfacesgroup.go b/services/network/mgmt/2016-12-01/network/interfacesgroup.go
index f6719dc956f4..1e61ed0419b1 100644
--- a/services/network/mgmt/2016-12-01/network/interfacesgroup.go
+++ b/services/network/mgmt/2016-12-01/network/interfacesgroup.go
@@ -35,7 +35,8 @@ func NewInterfacesClient(subscriptionID string) InterfacesClient {
return NewInterfacesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewInterfacesClientWithBaseURI creates an instance of the InterfacesClient client.
+// NewInterfacesClientWithBaseURI creates an instance of the InterfacesClient client using a custom endpoint. Use this
+// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewInterfacesClientWithBaseURI(baseURI string, subscriptionID string) InterfacesClient {
return InterfacesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2016-12-01/network/loadbalancers.go b/services/network/mgmt/2016-12-01/network/loadbalancers.go
index aaabf489a80f..ddb204779ee5 100644
--- a/services/network/mgmt/2016-12-01/network/loadbalancers.go
+++ b/services/network/mgmt/2016-12-01/network/loadbalancers.go
@@ -35,7 +35,8 @@ func NewLoadBalancersClient(subscriptionID string) LoadBalancersClient {
return NewLoadBalancersClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewLoadBalancersClientWithBaseURI creates an instance of the LoadBalancersClient client.
+// NewLoadBalancersClientWithBaseURI creates an instance of the LoadBalancersClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewLoadBalancersClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancersClient {
return LoadBalancersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2016-12-01/network/localnetworkgateways.go b/services/network/mgmt/2016-12-01/network/localnetworkgateways.go
index 6aa663024f33..833875bfbdd0 100644
--- a/services/network/mgmt/2016-12-01/network/localnetworkgateways.go
+++ b/services/network/mgmt/2016-12-01/network/localnetworkgateways.go
@@ -36,7 +36,9 @@ func NewLocalNetworkGatewaysClient(subscriptionID string) LocalNetworkGatewaysCl
return NewLocalNetworkGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewLocalNetworkGatewaysClientWithBaseURI creates an instance of the LocalNetworkGatewaysClient client.
+// NewLocalNetworkGatewaysClientWithBaseURI creates an instance of the LocalNetworkGatewaysClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewLocalNetworkGatewaysClientWithBaseURI(baseURI string, subscriptionID string) LocalNetworkGatewaysClient {
return LocalNetworkGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2016-12-01/network/networkapi/interfaces.go b/services/network/mgmt/2016-12-01/network/networkapi/interfaces.go
index d9434461b08e..8fd4faa7f265 100644
--- a/services/network/mgmt/2016-12-01/network/networkapi/interfaces.go
+++ b/services/network/mgmt/2016-12-01/network/networkapi/interfaces.go
@@ -37,10 +37,14 @@ type InterfacesClientAPI interface {
GetEffectiveRouteTable(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfacesGetEffectiveRouteTableFuture, err error)
GetVirtualMachineScaleSetNetworkInterface(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, expand string) (result network.Interface, err error)
List(ctx context.Context, resourceGroupName string) (result network.InterfaceListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.InterfaceListResultIterator, err error)
ListAll(ctx context.Context) (result network.InterfaceListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.InterfaceListResultIterator, err error)
ListEffectiveNetworkSecurityGroups(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfacesListEffectiveNetworkSecurityGroupsFuture, err error)
ListVirtualMachineScaleSetNetworkInterfaces(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result network.InterfaceListResultPage, err error)
+ ListVirtualMachineScaleSetNetworkInterfacesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result network.InterfaceListResultIterator, err error)
ListVirtualMachineScaleSetVMNetworkInterfaces(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string) (result network.InterfaceListResultPage, err error)
+ ListVirtualMachineScaleSetVMNetworkInterfacesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string) (result network.InterfaceListResultIterator, err error)
}
var _ InterfacesClientAPI = (*network.InterfacesClient)(nil)
@@ -52,7 +56,9 @@ type ApplicationGatewaysClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result network.ApplicationGatewaysDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result network.ApplicationGateway, err error)
List(ctx context.Context, resourceGroupName string) (result network.ApplicationGatewayListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.ApplicationGatewayListResultIterator, err error)
ListAll(ctx context.Context) (result network.ApplicationGatewayListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.ApplicationGatewayListResultIterator, err error)
Start(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result network.ApplicationGatewaysStartFuture, err error)
Stop(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result network.ApplicationGatewaysStopFuture, err error)
}
@@ -65,6 +71,7 @@ type ExpressRouteCircuitAuthorizationsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, circuitName string, authorizationName string) (result network.ExpressRouteCircuitAuthorizationsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, circuitName string, authorizationName string) (result network.ExpressRouteCircuitAuthorization, err error)
List(ctx context.Context, resourceGroupName string, circuitName string) (result network.AuthorizationListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, circuitName string) (result network.AuthorizationListResultIterator, err error)
}
var _ ExpressRouteCircuitAuthorizationsClientAPI = (*network.ExpressRouteCircuitAuthorizationsClient)(nil)
@@ -75,6 +82,7 @@ type ExpressRouteCircuitPeeringsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.ExpressRouteCircuitPeeringsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.ExpressRouteCircuitPeering, err error)
List(ctx context.Context, resourceGroupName string, circuitName string) (result network.ExpressRouteCircuitPeeringListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, circuitName string) (result network.ExpressRouteCircuitPeeringListResultIterator, err error)
}
var _ ExpressRouteCircuitPeeringsClientAPI = (*network.ExpressRouteCircuitPeeringsClient)(nil)
@@ -87,7 +95,9 @@ type ExpressRouteCircuitsClientAPI interface {
GetPeeringStats(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.ExpressRouteCircuitStats, err error)
GetStats(ctx context.Context, resourceGroupName string, circuitName string) (result network.ExpressRouteCircuitStats, err error)
List(ctx context.Context, resourceGroupName string) (result network.ExpressRouteCircuitListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.ExpressRouteCircuitListResultIterator, err error)
ListAll(ctx context.Context) (result network.ExpressRouteCircuitListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.ExpressRouteCircuitListResultIterator, err error)
ListArpTable(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, devicePath string) (result network.ExpressRouteCircuitsListArpTableFuture, err error)
ListRoutesTable(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, devicePath string) (result network.ExpressRouteCircuitsListRoutesTableFuture, err error)
ListRoutesTableSummary(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, devicePath string) (result network.ExpressRouteCircuitsListRoutesTableSummaryFuture, err error)
@@ -98,6 +108,7 @@ var _ ExpressRouteCircuitsClientAPI = (*network.ExpressRouteCircuitsClient)(nil)
// ExpressRouteServiceProvidersClientAPI contains the set of methods on the ExpressRouteServiceProvidersClient type.
type ExpressRouteServiceProvidersClientAPI interface {
List(ctx context.Context) (result network.ExpressRouteServiceProviderListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ExpressRouteServiceProviderListResultIterator, err error)
}
var _ ExpressRouteServiceProvidersClientAPI = (*network.ExpressRouteServiceProvidersClient)(nil)
@@ -108,7 +119,9 @@ type LoadBalancersClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancersDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, expand string) (result network.LoadBalancer, err error)
List(ctx context.Context, resourceGroupName string) (result network.LoadBalancerListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.LoadBalancerListResultIterator, err error)
ListAll(ctx context.Context) (result network.LoadBalancerListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.LoadBalancerListResultIterator, err error)
}
var _ LoadBalancersClientAPI = (*network.LoadBalancersClient)(nil)
@@ -119,7 +132,9 @@ type SecurityGroupsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityGroupsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, expand string) (result network.SecurityGroup, err error)
List(ctx context.Context, resourceGroupName string) (result network.SecurityGroupListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.SecurityGroupListResultIterator, err error)
ListAll(ctx context.Context) (result network.SecurityGroupListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.SecurityGroupListResultIterator, err error)
}
var _ SecurityGroupsClientAPI = (*network.SecurityGroupsClient)(nil)
@@ -130,6 +145,7 @@ type SecurityRulesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, securityRuleName string) (result network.SecurityRulesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, securityRuleName string) (result network.SecurityRule, err error)
List(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityRuleListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityRuleListResultIterator, err error)
}
var _ SecurityRulesClientAPI = (*network.SecurityRulesClient)(nil)
@@ -171,7 +187,9 @@ type PublicIPAddressesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, publicIPAddressName string) (result network.PublicIPAddressesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, publicIPAddressName string, expand string) (result network.PublicIPAddress, err error)
List(ctx context.Context, resourceGroupName string) (result network.PublicIPAddressListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.PublicIPAddressListResultIterator, err error)
ListAll(ctx context.Context) (result network.PublicIPAddressListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.PublicIPAddressListResultIterator, err error)
}
var _ PublicIPAddressesClientAPI = (*network.PublicIPAddressesClient)(nil)
@@ -182,7 +200,9 @@ type RouteFiltersClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, routeFilterName string) (result network.RouteFiltersDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, routeFilterName string, expand string) (result network.RouteFilter, err error)
List(ctx context.Context) (result network.RouteFilterListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.RouteFilterListResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.RouteFilterListResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.RouteFilterListResultIterator, err error)
Update(ctx context.Context, resourceGroupName string, routeFilterName string, routeFilterParameters network.PatchRouteFilter) (result network.RouteFiltersUpdateFuture, err error)
}
@@ -194,6 +214,7 @@ type RouteFilterRulesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, routeFilterName string, ruleName string) (result network.RouteFilterRulesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, routeFilterName string, ruleName string) (result network.RouteFilterRule, err error)
ListByRouteFilter(ctx context.Context, resourceGroupName string, routeFilterName string) (result network.RouteFilterRuleListResultPage, err error)
+ ListByRouteFilterComplete(ctx context.Context, resourceGroupName string, routeFilterName string) (result network.RouteFilterRuleListResultIterator, err error)
Update(ctx context.Context, resourceGroupName string, routeFilterName string, ruleName string, routeFilterRuleParameters network.PatchRouteFilterRule) (result network.RouteFilterRulesUpdateFuture, err error)
}
@@ -205,7 +226,9 @@ type RouteTablesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, routeTableName string) (result network.RouteTablesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, routeTableName string, expand string) (result network.RouteTable, err error)
List(ctx context.Context, resourceGroupName string) (result network.RouteTableListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.RouteTableListResultIterator, err error)
ListAll(ctx context.Context) (result network.RouteTableListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.RouteTableListResultIterator, err error)
}
var _ RouteTablesClientAPI = (*network.RouteTablesClient)(nil)
@@ -216,6 +239,7 @@ type RoutesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, routeTableName string, routeName string) (result network.RoutesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, routeTableName string, routeName string) (result network.Route, err error)
List(ctx context.Context, resourceGroupName string, routeTableName string) (result network.RouteListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, routeTableName string) (result network.RouteListResultIterator, err error)
}
var _ RoutesClientAPI = (*network.RoutesClient)(nil)
@@ -223,6 +247,7 @@ var _ RoutesClientAPI = (*network.RoutesClient)(nil)
// BgpServiceCommunitiesClientAPI contains the set of methods on the BgpServiceCommunitiesClient type.
type BgpServiceCommunitiesClientAPI interface {
List(ctx context.Context) (result network.BgpServiceCommunityListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.BgpServiceCommunityListResultIterator, err error)
}
var _ BgpServiceCommunitiesClientAPI = (*network.BgpServiceCommunitiesClient)(nil)
@@ -230,6 +255,7 @@ var _ BgpServiceCommunitiesClientAPI = (*network.BgpServiceCommunitiesClient)(ni
// UsagesClientAPI contains the set of methods on the UsagesClient type.
type UsagesClientAPI interface {
List(ctx context.Context, location string) (result network.UsagesListResultPage, err error)
+ ListComplete(ctx context.Context, location string) (result network.UsagesListResultIterator, err error)
}
var _ UsagesClientAPI = (*network.UsagesClient)(nil)
@@ -241,7 +267,9 @@ type VirtualNetworksClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworksDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualNetworkName string, expand string) (result network.VirtualNetwork, err error)
List(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkListResultIterator, err error)
ListAll(ctx context.Context) (result network.VirtualNetworkListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.VirtualNetworkListResultIterator, err error)
}
var _ VirtualNetworksClientAPI = (*network.VirtualNetworksClient)(nil)
@@ -252,6 +280,7 @@ type SubnetsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualNetworkName string, subnetName string) (result network.SubnetsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualNetworkName string, subnetName string, expand string) (result network.Subnet, err error)
List(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.SubnetListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.SubnetListResultIterator, err error)
}
var _ SubnetsClientAPI = (*network.SubnetsClient)(nil)
@@ -262,6 +291,7 @@ type VirtualNetworkPeeringsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualNetworkName string, virtualNetworkPeeringName string) (result network.VirtualNetworkPeeringsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualNetworkName string, virtualNetworkPeeringName string) (result network.VirtualNetworkPeering, err error)
List(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworkPeeringListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworkPeeringListResultIterator, err error)
}
var _ VirtualNetworkPeeringsClientAPI = (*network.VirtualNetworkPeeringsClient)(nil)
@@ -276,6 +306,7 @@ type VirtualNetworkGatewaysClientAPI interface {
GetBgpPeerStatus(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, peer string) (result network.VirtualNetworkGatewaysGetBgpPeerStatusFuture, err error)
GetLearnedRoutes(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGatewaysGetLearnedRoutesFuture, err error)
List(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayListResultIterator, err error)
Reset(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, gatewayVip string) (result network.VirtualNetworkGatewaysResetFuture, err error)
}
@@ -288,6 +319,7 @@ type VirtualNetworkGatewayConnectionsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string) (result network.VirtualNetworkGatewayConnection, err error)
GetSharedKey(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string) (result network.ConnectionSharedKey, err error)
List(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayConnectionListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayConnectionListResultIterator, err error)
ResetSharedKey(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string, parameters network.ConnectionResetSharedKey) (result network.VirtualNetworkGatewayConnectionsResetSharedKeyFuture, err error)
SetSharedKey(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string, parameters network.ConnectionSharedKey) (result network.VirtualNetworkGatewayConnectionsSetSharedKeyFuture, err error)
}
@@ -300,6 +332,7 @@ type LocalNetworkGatewaysClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, localNetworkGatewayName string) (result network.LocalNetworkGatewaysDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, localNetworkGatewayName string) (result network.LocalNetworkGateway, err error)
List(ctx context.Context, resourceGroupName string) (result network.LocalNetworkGatewayListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.LocalNetworkGatewayListResultIterator, err error)
}
var _ LocalNetworkGatewaysClientAPI = (*network.LocalNetworkGatewaysClient)(nil)
diff --git a/services/network/mgmt/2016-12-01/network/packetcaptures.go b/services/network/mgmt/2016-12-01/network/packetcaptures.go
index c6fa63b86cf7..4c8f77802ed6 100644
--- a/services/network/mgmt/2016-12-01/network/packetcaptures.go
+++ b/services/network/mgmt/2016-12-01/network/packetcaptures.go
@@ -36,7 +36,8 @@ func NewPacketCapturesClient(subscriptionID string) PacketCapturesClient {
return NewPacketCapturesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewPacketCapturesClientWithBaseURI creates an instance of the PacketCapturesClient client.
+// NewPacketCapturesClientWithBaseURI creates an instance of the PacketCapturesClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewPacketCapturesClientWithBaseURI(baseURI string, subscriptionID string) PacketCapturesClient {
return PacketCapturesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2016-12-01/network/publicipaddresses.go b/services/network/mgmt/2016-12-01/network/publicipaddresses.go
index c75a4afc50ae..9025828fc413 100644
--- a/services/network/mgmt/2016-12-01/network/publicipaddresses.go
+++ b/services/network/mgmt/2016-12-01/network/publicipaddresses.go
@@ -36,7 +36,9 @@ func NewPublicIPAddressesClient(subscriptionID string) PublicIPAddressesClient {
return NewPublicIPAddressesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewPublicIPAddressesClientWithBaseURI creates an instance of the PublicIPAddressesClient client.
+// NewPublicIPAddressesClientWithBaseURI creates an instance of the PublicIPAddressesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewPublicIPAddressesClientWithBaseURI(baseURI string, subscriptionID string) PublicIPAddressesClient {
return PublicIPAddressesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2016-12-01/network/routefilterrules.go b/services/network/mgmt/2016-12-01/network/routefilterrules.go
index fd9694202b95..9efcc96ba809 100644
--- a/services/network/mgmt/2016-12-01/network/routefilterrules.go
+++ b/services/network/mgmt/2016-12-01/network/routefilterrules.go
@@ -36,7 +36,9 @@ func NewRouteFilterRulesClient(subscriptionID string) RouteFilterRulesClient {
return NewRouteFilterRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewRouteFilterRulesClientWithBaseURI creates an instance of the RouteFilterRulesClient client.
+// NewRouteFilterRulesClientWithBaseURI creates an instance of the RouteFilterRulesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewRouteFilterRulesClientWithBaseURI(baseURI string, subscriptionID string) RouteFilterRulesClient {
return RouteFilterRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2016-12-01/network/routefilters.go b/services/network/mgmt/2016-12-01/network/routefilters.go
index f85a94769bd4..269d164277d9 100644
--- a/services/network/mgmt/2016-12-01/network/routefilters.go
+++ b/services/network/mgmt/2016-12-01/network/routefilters.go
@@ -35,7 +35,8 @@ func NewRouteFiltersClient(subscriptionID string) RouteFiltersClient {
return NewRouteFiltersClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewRouteFiltersClientWithBaseURI creates an instance of the RouteFiltersClient client.
+// NewRouteFiltersClientWithBaseURI creates an instance of the RouteFiltersClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewRouteFiltersClientWithBaseURI(baseURI string, subscriptionID string) RouteFiltersClient {
return RouteFiltersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2016-12-01/network/routes.go b/services/network/mgmt/2016-12-01/network/routes.go
index ca601a7f21f4..171e6e9a731f 100644
--- a/services/network/mgmt/2016-12-01/network/routes.go
+++ b/services/network/mgmt/2016-12-01/network/routes.go
@@ -35,7 +35,8 @@ func NewRoutesClient(subscriptionID string) RoutesClient {
return NewRoutesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewRoutesClientWithBaseURI creates an instance of the RoutesClient client.
+// NewRoutesClientWithBaseURI creates an instance of the RoutesClient client using a custom endpoint. Use this when
+// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewRoutesClientWithBaseURI(baseURI string, subscriptionID string) RoutesClient {
return RoutesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2016-12-01/network/routetables.go b/services/network/mgmt/2016-12-01/network/routetables.go
index 0342d94ad8e4..ce12d60b0b9a 100644
--- a/services/network/mgmt/2016-12-01/network/routetables.go
+++ b/services/network/mgmt/2016-12-01/network/routetables.go
@@ -35,7 +35,8 @@ func NewRouteTablesClient(subscriptionID string) RouteTablesClient {
return NewRouteTablesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewRouteTablesClientWithBaseURI creates an instance of the RouteTablesClient client.
+// NewRouteTablesClientWithBaseURI creates an instance of the RouteTablesClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewRouteTablesClientWithBaseURI(baseURI string, subscriptionID string) RouteTablesClient {
return RouteTablesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2016-12-01/network/securitygroups.go b/services/network/mgmt/2016-12-01/network/securitygroups.go
index fc2a8c285244..4b244f61332c 100644
--- a/services/network/mgmt/2016-12-01/network/securitygroups.go
+++ b/services/network/mgmt/2016-12-01/network/securitygroups.go
@@ -35,7 +35,8 @@ func NewSecurityGroupsClient(subscriptionID string) SecurityGroupsClient {
return NewSecurityGroupsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewSecurityGroupsClientWithBaseURI creates an instance of the SecurityGroupsClient client.
+// NewSecurityGroupsClientWithBaseURI creates an instance of the SecurityGroupsClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewSecurityGroupsClientWithBaseURI(baseURI string, subscriptionID string) SecurityGroupsClient {
return SecurityGroupsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2016-12-01/network/securityrules.go b/services/network/mgmt/2016-12-01/network/securityrules.go
index 34c74df1369f..b1389de2f042 100644
--- a/services/network/mgmt/2016-12-01/network/securityrules.go
+++ b/services/network/mgmt/2016-12-01/network/securityrules.go
@@ -36,7 +36,8 @@ func NewSecurityRulesClient(subscriptionID string) SecurityRulesClient {
return NewSecurityRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewSecurityRulesClientWithBaseURI creates an instance of the SecurityRulesClient client.
+// NewSecurityRulesClientWithBaseURI creates an instance of the SecurityRulesClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewSecurityRulesClientWithBaseURI(baseURI string, subscriptionID string) SecurityRulesClient {
return SecurityRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2016-12-01/network/subnets.go b/services/network/mgmt/2016-12-01/network/subnets.go
index 0f577c1684f5..d8ced3cadeb6 100644
--- a/services/network/mgmt/2016-12-01/network/subnets.go
+++ b/services/network/mgmt/2016-12-01/network/subnets.go
@@ -35,7 +35,8 @@ func NewSubnetsClient(subscriptionID string) SubnetsClient {
return NewSubnetsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewSubnetsClientWithBaseURI creates an instance of the SubnetsClient client.
+// NewSubnetsClientWithBaseURI creates an instance of the SubnetsClient client using a custom endpoint. Use this when
+// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewSubnetsClientWithBaseURI(baseURI string, subscriptionID string) SubnetsClient {
return SubnetsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2016-12-01/network/usages.go b/services/network/mgmt/2016-12-01/network/usages.go
index 6241ab7048b1..411472f9430e 100644
--- a/services/network/mgmt/2016-12-01/network/usages.go
+++ b/services/network/mgmt/2016-12-01/network/usages.go
@@ -36,7 +36,8 @@ func NewUsagesClient(subscriptionID string) UsagesClient {
return NewUsagesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewUsagesClientWithBaseURI creates an instance of the UsagesClient client.
+// NewUsagesClientWithBaseURI creates an instance of the UsagesClient client using a custom endpoint. Use this when
+// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewUsagesClientWithBaseURI(baseURI string, subscriptionID string) UsagesClient {
return UsagesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2016-12-01/network/virtualnetworkgatewayconnections.go b/services/network/mgmt/2016-12-01/network/virtualnetworkgatewayconnections.go
index 9386c13e440b..79bae5d8bd88 100644
--- a/services/network/mgmt/2016-12-01/network/virtualnetworkgatewayconnections.go
+++ b/services/network/mgmt/2016-12-01/network/virtualnetworkgatewayconnections.go
@@ -37,7 +37,8 @@ func NewVirtualNetworkGatewayConnectionsClient(subscriptionID string) VirtualNet
}
// NewVirtualNetworkGatewayConnectionsClientWithBaseURI creates an instance of the
-// VirtualNetworkGatewayConnectionsClient client.
+// VirtualNetworkGatewayConnectionsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVirtualNetworkGatewayConnectionsClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworkGatewayConnectionsClient {
return VirtualNetworkGatewayConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2016-12-01/network/virtualnetworkgateways.go b/services/network/mgmt/2016-12-01/network/virtualnetworkgateways.go
index d84a2c831a70..4b8988783707 100644
--- a/services/network/mgmt/2016-12-01/network/virtualnetworkgateways.go
+++ b/services/network/mgmt/2016-12-01/network/virtualnetworkgateways.go
@@ -36,7 +36,9 @@ func NewVirtualNetworkGatewaysClient(subscriptionID string) VirtualNetworkGatewa
return NewVirtualNetworkGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualNetworkGatewaysClientWithBaseURI creates an instance of the VirtualNetworkGatewaysClient client.
+// NewVirtualNetworkGatewaysClientWithBaseURI creates an instance of the VirtualNetworkGatewaysClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewVirtualNetworkGatewaysClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworkGatewaysClient {
return VirtualNetworkGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2016-12-01/network/virtualnetworkpeerings.go b/services/network/mgmt/2016-12-01/network/virtualnetworkpeerings.go
index 6506b279c619..377edf3bb52f 100644
--- a/services/network/mgmt/2016-12-01/network/virtualnetworkpeerings.go
+++ b/services/network/mgmt/2016-12-01/network/virtualnetworkpeerings.go
@@ -35,7 +35,9 @@ func NewVirtualNetworkPeeringsClient(subscriptionID string) VirtualNetworkPeerin
return NewVirtualNetworkPeeringsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualNetworkPeeringsClientWithBaseURI creates an instance of the VirtualNetworkPeeringsClient client.
+// NewVirtualNetworkPeeringsClientWithBaseURI creates an instance of the VirtualNetworkPeeringsClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewVirtualNetworkPeeringsClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworkPeeringsClient {
return VirtualNetworkPeeringsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2016-12-01/network/virtualnetworks.go b/services/network/mgmt/2016-12-01/network/virtualnetworks.go
index c5e0f97ff346..29551d095bba 100644
--- a/services/network/mgmt/2016-12-01/network/virtualnetworks.go
+++ b/services/network/mgmt/2016-12-01/network/virtualnetworks.go
@@ -35,7 +35,8 @@ func NewVirtualNetworksClient(subscriptionID string) VirtualNetworksClient {
return NewVirtualNetworksClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualNetworksClientWithBaseURI creates an instance of the VirtualNetworksClient client.
+// NewVirtualNetworksClientWithBaseURI creates an instance of the VirtualNetworksClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVirtualNetworksClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworksClient {
return VirtualNetworksClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2016-12-01/network/watchers.go b/services/network/mgmt/2016-12-01/network/watchers.go
index db418cc802d7..64d7fb2cd9f7 100644
--- a/services/network/mgmt/2016-12-01/network/watchers.go
+++ b/services/network/mgmt/2016-12-01/network/watchers.go
@@ -36,7 +36,8 @@ func NewWatchersClient(subscriptionID string) WatchersClient {
return NewWatchersClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewWatchersClientWithBaseURI creates an instance of the WatchersClient client.
+// NewWatchersClientWithBaseURI creates an instance of the WatchersClient client using a custom endpoint. Use this
+// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewWatchersClientWithBaseURI(baseURI string, subscriptionID string) WatchersClient {
return WatchersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-03-01/network/applicationgateways.go b/services/network/mgmt/2017-03-01/network/applicationgateways.go
index 2d2ff801f258..e0a40e599fd7 100644
--- a/services/network/mgmt/2017-03-01/network/applicationgateways.go
+++ b/services/network/mgmt/2017-03-01/network/applicationgateways.go
@@ -36,7 +36,9 @@ func NewApplicationGatewaysClient(subscriptionID string) ApplicationGatewaysClie
return NewApplicationGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewApplicationGatewaysClientWithBaseURI creates an instance of the ApplicationGatewaysClient client.
+// NewApplicationGatewaysClientWithBaseURI creates an instance of the ApplicationGatewaysClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewApplicationGatewaysClientWithBaseURI(baseURI string, subscriptionID string) ApplicationGatewaysClient {
return ApplicationGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-03-01/network/bgpservicecommunities.go b/services/network/mgmt/2017-03-01/network/bgpservicecommunities.go
index 9825336fe52e..a47444ab0442 100644
--- a/services/network/mgmt/2017-03-01/network/bgpservicecommunities.go
+++ b/services/network/mgmt/2017-03-01/network/bgpservicecommunities.go
@@ -35,7 +35,9 @@ func NewBgpServiceCommunitiesClient(subscriptionID string) BgpServiceCommunities
return NewBgpServiceCommunitiesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewBgpServiceCommunitiesClientWithBaseURI creates an instance of the BgpServiceCommunitiesClient client.
+// NewBgpServiceCommunitiesClientWithBaseURI creates an instance of the BgpServiceCommunitiesClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewBgpServiceCommunitiesClientWithBaseURI(baseURI string, subscriptionID string) BgpServiceCommunitiesClient {
return BgpServiceCommunitiesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-03-01/network/client.go b/services/network/mgmt/2017-03-01/network/client.go
index 3eb4349e5384..3bc9ea00811a 100644
--- a/services/network/mgmt/2017-03-01/network/client.go
+++ b/services/network/mgmt/2017-03-01/network/client.go
@@ -45,7 +45,8 @@ func New(subscriptionID string) BaseClient {
return NewWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewWithBaseURI creates an instance of the BaseClient client.
+// NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with
+// an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient {
return BaseClient{
Client: autorest.NewClientWithUserAgent(UserAgent()),
diff --git a/services/network/mgmt/2017-03-01/network/expressroutecircuitauthorizations.go b/services/network/mgmt/2017-03-01/network/expressroutecircuitauthorizations.go
index 84f76559ae4e..94cd720bc40a 100644
--- a/services/network/mgmt/2017-03-01/network/expressroutecircuitauthorizations.go
+++ b/services/network/mgmt/2017-03-01/network/expressroutecircuitauthorizations.go
@@ -37,7 +37,8 @@ func NewExpressRouteCircuitAuthorizationsClient(subscriptionID string) ExpressRo
}
// NewExpressRouteCircuitAuthorizationsClientWithBaseURI creates an instance of the
-// ExpressRouteCircuitAuthorizationsClient client.
+// ExpressRouteCircuitAuthorizationsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewExpressRouteCircuitAuthorizationsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCircuitAuthorizationsClient {
return ExpressRouteCircuitAuthorizationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-03-01/network/expressroutecircuitpeerings.go b/services/network/mgmt/2017-03-01/network/expressroutecircuitpeerings.go
index 53b0b729cc09..17063263fd77 100644
--- a/services/network/mgmt/2017-03-01/network/expressroutecircuitpeerings.go
+++ b/services/network/mgmt/2017-03-01/network/expressroutecircuitpeerings.go
@@ -35,7 +35,9 @@ func NewExpressRouteCircuitPeeringsClient(subscriptionID string) ExpressRouteCir
return NewExpressRouteCircuitPeeringsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewExpressRouteCircuitPeeringsClientWithBaseURI creates an instance of the ExpressRouteCircuitPeeringsClient client.
+// NewExpressRouteCircuitPeeringsClientWithBaseURI creates an instance of the ExpressRouteCircuitPeeringsClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewExpressRouteCircuitPeeringsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCircuitPeeringsClient {
return ExpressRouteCircuitPeeringsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-03-01/network/expressroutecircuits.go b/services/network/mgmt/2017-03-01/network/expressroutecircuits.go
index 9b2afd0aee6b..579e442f6bc2 100644
--- a/services/network/mgmt/2017-03-01/network/expressroutecircuits.go
+++ b/services/network/mgmt/2017-03-01/network/expressroutecircuits.go
@@ -35,7 +35,9 @@ func NewExpressRouteCircuitsClient(subscriptionID string) ExpressRouteCircuitsCl
return NewExpressRouteCircuitsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewExpressRouteCircuitsClientWithBaseURI creates an instance of the ExpressRouteCircuitsClient client.
+// NewExpressRouteCircuitsClientWithBaseURI creates an instance of the ExpressRouteCircuitsClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewExpressRouteCircuitsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCircuitsClient {
return ExpressRouteCircuitsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-03-01/network/expressrouteserviceproviders.go b/services/network/mgmt/2017-03-01/network/expressrouteserviceproviders.go
index be12538fab74..a39ada9108dd 100644
--- a/services/network/mgmt/2017-03-01/network/expressrouteserviceproviders.go
+++ b/services/network/mgmt/2017-03-01/network/expressrouteserviceproviders.go
@@ -36,7 +36,8 @@ func NewExpressRouteServiceProvidersClient(subscriptionID string) ExpressRouteSe
}
// NewExpressRouteServiceProvidersClientWithBaseURI creates an instance of the ExpressRouteServiceProvidersClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewExpressRouteServiceProvidersClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteServiceProvidersClient {
return ExpressRouteServiceProvidersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-03-01/network/interfacesgroup.go b/services/network/mgmt/2017-03-01/network/interfacesgroup.go
index d874c4a297c4..ca30bd07bd85 100644
--- a/services/network/mgmt/2017-03-01/network/interfacesgroup.go
+++ b/services/network/mgmt/2017-03-01/network/interfacesgroup.go
@@ -35,7 +35,8 @@ func NewInterfacesClient(subscriptionID string) InterfacesClient {
return NewInterfacesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewInterfacesClientWithBaseURI creates an instance of the InterfacesClient client.
+// NewInterfacesClientWithBaseURI creates an instance of the InterfacesClient client using a custom endpoint. Use this
+// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewInterfacesClientWithBaseURI(baseURI string, subscriptionID string) InterfacesClient {
return InterfacesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-03-01/network/loadbalancers.go b/services/network/mgmt/2017-03-01/network/loadbalancers.go
index e5b78fe06c6c..56d5380677a1 100644
--- a/services/network/mgmt/2017-03-01/network/loadbalancers.go
+++ b/services/network/mgmt/2017-03-01/network/loadbalancers.go
@@ -35,7 +35,8 @@ func NewLoadBalancersClient(subscriptionID string) LoadBalancersClient {
return NewLoadBalancersClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewLoadBalancersClientWithBaseURI creates an instance of the LoadBalancersClient client.
+// NewLoadBalancersClientWithBaseURI creates an instance of the LoadBalancersClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewLoadBalancersClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancersClient {
return LoadBalancersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-03-01/network/localnetworkgateways.go b/services/network/mgmt/2017-03-01/network/localnetworkgateways.go
index 99897d4d74b1..8ab149420271 100644
--- a/services/network/mgmt/2017-03-01/network/localnetworkgateways.go
+++ b/services/network/mgmt/2017-03-01/network/localnetworkgateways.go
@@ -36,7 +36,9 @@ func NewLocalNetworkGatewaysClient(subscriptionID string) LocalNetworkGatewaysCl
return NewLocalNetworkGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewLocalNetworkGatewaysClientWithBaseURI creates an instance of the LocalNetworkGatewaysClient client.
+// NewLocalNetworkGatewaysClientWithBaseURI creates an instance of the LocalNetworkGatewaysClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewLocalNetworkGatewaysClientWithBaseURI(baseURI string, subscriptionID string) LocalNetworkGatewaysClient {
return LocalNetworkGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-03-01/network/networkapi/interfaces.go b/services/network/mgmt/2017-03-01/network/networkapi/interfaces.go
index 7c210514952f..2a7d619094b4 100644
--- a/services/network/mgmt/2017-03-01/network/networkapi/interfaces.go
+++ b/services/network/mgmt/2017-03-01/network/networkapi/interfaces.go
@@ -36,7 +36,9 @@ type ApplicationGatewaysClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result network.ApplicationGatewaysDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result network.ApplicationGateway, err error)
List(ctx context.Context, resourceGroupName string) (result network.ApplicationGatewayListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.ApplicationGatewayListResultIterator, err error)
ListAll(ctx context.Context) (result network.ApplicationGatewayListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.ApplicationGatewayListResultIterator, err error)
ListAvailableWafRuleSets(ctx context.Context) (result network.ApplicationGatewayAvailableWafRuleSetsResult, err error)
Start(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result network.ApplicationGatewaysStartFuture, err error)
Stop(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result network.ApplicationGatewaysStopFuture, err error)
@@ -50,6 +52,7 @@ type ExpressRouteCircuitAuthorizationsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, circuitName string, authorizationName string) (result network.ExpressRouteCircuitAuthorizationsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, circuitName string, authorizationName string) (result network.ExpressRouteCircuitAuthorization, err error)
List(ctx context.Context, resourceGroupName string, circuitName string) (result network.AuthorizationListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, circuitName string) (result network.AuthorizationListResultIterator, err error)
}
var _ ExpressRouteCircuitAuthorizationsClientAPI = (*network.ExpressRouteCircuitAuthorizationsClient)(nil)
@@ -60,6 +63,7 @@ type ExpressRouteCircuitPeeringsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.ExpressRouteCircuitPeeringsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.ExpressRouteCircuitPeering, err error)
List(ctx context.Context, resourceGroupName string, circuitName string) (result network.ExpressRouteCircuitPeeringListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, circuitName string) (result network.ExpressRouteCircuitPeeringListResultIterator, err error)
}
var _ ExpressRouteCircuitPeeringsClientAPI = (*network.ExpressRouteCircuitPeeringsClient)(nil)
@@ -72,7 +76,9 @@ type ExpressRouteCircuitsClientAPI interface {
GetPeeringStats(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.ExpressRouteCircuitStats, err error)
GetStats(ctx context.Context, resourceGroupName string, circuitName string) (result network.ExpressRouteCircuitStats, err error)
List(ctx context.Context, resourceGroupName string) (result network.ExpressRouteCircuitListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.ExpressRouteCircuitListResultIterator, err error)
ListAll(ctx context.Context) (result network.ExpressRouteCircuitListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.ExpressRouteCircuitListResultIterator, err error)
ListArpTable(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, devicePath string) (result network.ExpressRouteCircuitsListArpTableFuture, err error)
ListRoutesTable(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, devicePath string) (result network.ExpressRouteCircuitsListRoutesTableFuture, err error)
ListRoutesTableSummary(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, devicePath string) (result network.ExpressRouteCircuitsListRoutesTableSummaryFuture, err error)
@@ -83,6 +89,7 @@ var _ ExpressRouteCircuitsClientAPI = (*network.ExpressRouteCircuitsClient)(nil)
// ExpressRouteServiceProvidersClientAPI contains the set of methods on the ExpressRouteServiceProvidersClient type.
type ExpressRouteServiceProvidersClientAPI interface {
List(ctx context.Context) (result network.ExpressRouteServiceProviderListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ExpressRouteServiceProviderListResultIterator, err error)
}
var _ ExpressRouteServiceProvidersClientAPI = (*network.ExpressRouteServiceProvidersClient)(nil)
@@ -93,7 +100,9 @@ type LoadBalancersClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancersDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, expand string) (result network.LoadBalancer, err error)
List(ctx context.Context, resourceGroupName string) (result network.LoadBalancerListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.LoadBalancerListResultIterator, err error)
ListAll(ctx context.Context) (result network.LoadBalancerListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.LoadBalancerListResultIterator, err error)
}
var _ LoadBalancersClientAPI = (*network.LoadBalancersClient)(nil)
@@ -106,10 +115,14 @@ type InterfacesClientAPI interface {
GetEffectiveRouteTable(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfacesGetEffectiveRouteTableFuture, err error)
GetVirtualMachineScaleSetNetworkInterface(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, expand string) (result network.Interface, err error)
List(ctx context.Context, resourceGroupName string) (result network.InterfaceListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.InterfaceListResultIterator, err error)
ListAll(ctx context.Context) (result network.InterfaceListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.InterfaceListResultIterator, err error)
ListEffectiveNetworkSecurityGroups(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfacesListEffectiveNetworkSecurityGroupsFuture, err error)
ListVirtualMachineScaleSetNetworkInterfaces(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result network.InterfaceListResultPage, err error)
+ ListVirtualMachineScaleSetNetworkInterfacesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result network.InterfaceListResultIterator, err error)
ListVirtualMachineScaleSetVMNetworkInterfaces(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string) (result network.InterfaceListResultPage, err error)
+ ListVirtualMachineScaleSetVMNetworkInterfacesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string) (result network.InterfaceListResultIterator, err error)
}
var _ InterfacesClientAPI = (*network.InterfacesClient)(nil)
@@ -120,7 +133,9 @@ type SecurityGroupsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityGroupsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, expand string) (result network.SecurityGroup, err error)
List(ctx context.Context, resourceGroupName string) (result network.SecurityGroupListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.SecurityGroupListResultIterator, err error)
ListAll(ctx context.Context) (result network.SecurityGroupListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.SecurityGroupListResultIterator, err error)
}
var _ SecurityGroupsClientAPI = (*network.SecurityGroupsClient)(nil)
@@ -131,6 +146,7 @@ type SecurityRulesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, securityRuleName string) (result network.SecurityRulesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, securityRuleName string) (result network.SecurityRule, err error)
List(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityRuleListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityRuleListResultIterator, err error)
}
var _ SecurityRulesClientAPI = (*network.SecurityRulesClient)(nil)
@@ -174,9 +190,13 @@ type PublicIPAddressesClientAPI interface {
Get(ctx context.Context, resourceGroupName string, publicIPAddressName string, expand string) (result network.PublicIPAddress, err error)
GetVirtualMachineScaleSetPublicIPAddress(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, IPConfigurationName string, publicIPAddressName string, expand string) (result network.PublicIPAddress, err error)
List(ctx context.Context, resourceGroupName string) (result network.PublicIPAddressListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.PublicIPAddressListResultIterator, err error)
ListAll(ctx context.Context) (result network.PublicIPAddressListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.PublicIPAddressListResultIterator, err error)
ListVirtualMachineScaleSetPublicIPAddresses(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result network.PublicIPAddressListResultPage, err error)
+ ListVirtualMachineScaleSetPublicIPAddressesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result network.PublicIPAddressListResultIterator, err error)
ListVirtualMachineScaleSetVMPublicIPAddresses(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, IPConfigurationName string) (result network.PublicIPAddressListResultPage, err error)
+ ListVirtualMachineScaleSetVMPublicIPAddressesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, IPConfigurationName string) (result network.PublicIPAddressListResultIterator, err error)
}
var _ PublicIPAddressesClientAPI = (*network.PublicIPAddressesClient)(nil)
@@ -187,7 +207,9 @@ type RouteFiltersClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, routeFilterName string) (result network.RouteFiltersDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, routeFilterName string, expand string) (result network.RouteFilter, err error)
List(ctx context.Context) (result network.RouteFilterListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.RouteFilterListResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.RouteFilterListResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.RouteFilterListResultIterator, err error)
Update(ctx context.Context, resourceGroupName string, routeFilterName string, routeFilterParameters network.PatchRouteFilter) (result network.RouteFiltersUpdateFuture, err error)
}
@@ -199,6 +221,7 @@ type RouteFilterRulesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, routeFilterName string, ruleName string) (result network.RouteFilterRulesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, routeFilterName string, ruleName string) (result network.RouteFilterRule, err error)
ListByRouteFilter(ctx context.Context, resourceGroupName string, routeFilterName string) (result network.RouteFilterRuleListResultPage, err error)
+ ListByRouteFilterComplete(ctx context.Context, resourceGroupName string, routeFilterName string) (result network.RouteFilterRuleListResultIterator, err error)
Update(ctx context.Context, resourceGroupName string, routeFilterName string, ruleName string, routeFilterRuleParameters network.PatchRouteFilterRule) (result network.RouteFilterRulesUpdateFuture, err error)
}
@@ -210,7 +233,9 @@ type RouteTablesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, routeTableName string) (result network.RouteTablesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, routeTableName string, expand string) (result network.RouteTable, err error)
List(ctx context.Context, resourceGroupName string) (result network.RouteTableListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.RouteTableListResultIterator, err error)
ListAll(ctx context.Context) (result network.RouteTableListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.RouteTableListResultIterator, err error)
}
var _ RouteTablesClientAPI = (*network.RouteTablesClient)(nil)
@@ -221,6 +246,7 @@ type RoutesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, routeTableName string, routeName string) (result network.RoutesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, routeTableName string, routeName string) (result network.Route, err error)
List(ctx context.Context, resourceGroupName string, routeTableName string) (result network.RouteListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, routeTableName string) (result network.RouteListResultIterator, err error)
}
var _ RoutesClientAPI = (*network.RoutesClient)(nil)
@@ -228,6 +254,7 @@ var _ RoutesClientAPI = (*network.RoutesClient)(nil)
// BgpServiceCommunitiesClientAPI contains the set of methods on the BgpServiceCommunitiesClient type.
type BgpServiceCommunitiesClientAPI interface {
List(ctx context.Context) (result network.BgpServiceCommunityListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.BgpServiceCommunityListResultIterator, err error)
}
var _ BgpServiceCommunitiesClientAPI = (*network.BgpServiceCommunitiesClient)(nil)
@@ -235,6 +262,7 @@ var _ BgpServiceCommunitiesClientAPI = (*network.BgpServiceCommunitiesClient)(ni
// UsagesClientAPI contains the set of methods on the UsagesClient type.
type UsagesClientAPI interface {
List(ctx context.Context, location string) (result network.UsagesListResultPage, err error)
+ ListComplete(ctx context.Context, location string) (result network.UsagesListResultIterator, err error)
}
var _ UsagesClientAPI = (*network.UsagesClient)(nil)
@@ -246,8 +274,11 @@ type VirtualNetworksClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworksDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualNetworkName string, expand string) (result network.VirtualNetwork, err error)
List(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkListResultIterator, err error)
ListAll(ctx context.Context) (result network.VirtualNetworkListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.VirtualNetworkListResultIterator, err error)
ListUsage(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworkListUsageResultPage, err error)
+ ListUsageComplete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworkListUsageResultIterator, err error)
}
var _ VirtualNetworksClientAPI = (*network.VirtualNetworksClient)(nil)
@@ -258,6 +289,7 @@ type SubnetsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualNetworkName string, subnetName string) (result network.SubnetsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualNetworkName string, subnetName string, expand string) (result network.Subnet, err error)
List(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.SubnetListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.SubnetListResultIterator, err error)
}
var _ SubnetsClientAPI = (*network.SubnetsClient)(nil)
@@ -268,6 +300,7 @@ type VirtualNetworkPeeringsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualNetworkName string, virtualNetworkPeeringName string) (result network.VirtualNetworkPeeringsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualNetworkName string, virtualNetworkPeeringName string) (result network.VirtualNetworkPeering, err error)
List(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworkPeeringListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworkPeeringListResultIterator, err error)
}
var _ VirtualNetworkPeeringsClientAPI = (*network.VirtualNetworkPeeringsClient)(nil)
@@ -282,6 +315,7 @@ type VirtualNetworkGatewaysClientAPI interface {
GetBgpPeerStatus(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, peer string) (result network.VirtualNetworkGatewaysGetBgpPeerStatusFuture, err error)
GetLearnedRoutes(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGatewaysGetLearnedRoutesFuture, err error)
List(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayListResultIterator, err error)
Reset(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, gatewayVip string) (result network.VirtualNetworkGatewaysResetFuture, err error)
}
@@ -294,6 +328,7 @@ type VirtualNetworkGatewayConnectionsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string) (result network.VirtualNetworkGatewayConnection, err error)
GetSharedKey(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string) (result network.ConnectionSharedKey, err error)
List(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayConnectionListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayConnectionListResultIterator, err error)
ResetSharedKey(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string, parameters network.ConnectionResetSharedKey) (result network.VirtualNetworkGatewayConnectionsResetSharedKeyFuture, err error)
SetSharedKey(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string, parameters network.ConnectionSharedKey) (result network.VirtualNetworkGatewayConnectionsSetSharedKeyFuture, err error)
}
@@ -306,6 +341,7 @@ type LocalNetworkGatewaysClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, localNetworkGatewayName string) (result network.LocalNetworkGatewaysDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, localNetworkGatewayName string) (result network.LocalNetworkGateway, err error)
List(ctx context.Context, resourceGroupName string) (result network.LocalNetworkGatewayListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.LocalNetworkGatewayListResultIterator, err error)
}
var _ LocalNetworkGatewaysClientAPI = (*network.LocalNetworkGatewaysClient)(nil)
diff --git a/services/network/mgmt/2017-03-01/network/packetcaptures.go b/services/network/mgmt/2017-03-01/network/packetcaptures.go
index 8598ba3223fc..e762d2de46fe 100644
--- a/services/network/mgmt/2017-03-01/network/packetcaptures.go
+++ b/services/network/mgmt/2017-03-01/network/packetcaptures.go
@@ -36,7 +36,8 @@ func NewPacketCapturesClient(subscriptionID string) PacketCapturesClient {
return NewPacketCapturesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewPacketCapturesClientWithBaseURI creates an instance of the PacketCapturesClient client.
+// NewPacketCapturesClientWithBaseURI creates an instance of the PacketCapturesClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewPacketCapturesClientWithBaseURI(baseURI string, subscriptionID string) PacketCapturesClient {
return PacketCapturesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-03-01/network/publicipaddresses.go b/services/network/mgmt/2017-03-01/network/publicipaddresses.go
index 3285c1502666..b6fe38700335 100644
--- a/services/network/mgmt/2017-03-01/network/publicipaddresses.go
+++ b/services/network/mgmt/2017-03-01/network/publicipaddresses.go
@@ -36,7 +36,9 @@ func NewPublicIPAddressesClient(subscriptionID string) PublicIPAddressesClient {
return NewPublicIPAddressesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewPublicIPAddressesClientWithBaseURI creates an instance of the PublicIPAddressesClient client.
+// NewPublicIPAddressesClientWithBaseURI creates an instance of the PublicIPAddressesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewPublicIPAddressesClientWithBaseURI(baseURI string, subscriptionID string) PublicIPAddressesClient {
return PublicIPAddressesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-03-01/network/routefilterrules.go b/services/network/mgmt/2017-03-01/network/routefilterrules.go
index 486825e7a57c..62ad0c2c5edb 100644
--- a/services/network/mgmt/2017-03-01/network/routefilterrules.go
+++ b/services/network/mgmt/2017-03-01/network/routefilterrules.go
@@ -36,7 +36,9 @@ func NewRouteFilterRulesClient(subscriptionID string) RouteFilterRulesClient {
return NewRouteFilterRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewRouteFilterRulesClientWithBaseURI creates an instance of the RouteFilterRulesClient client.
+// NewRouteFilterRulesClientWithBaseURI creates an instance of the RouteFilterRulesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewRouteFilterRulesClientWithBaseURI(baseURI string, subscriptionID string) RouteFilterRulesClient {
return RouteFilterRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-03-01/network/routefilters.go b/services/network/mgmt/2017-03-01/network/routefilters.go
index c2c190e582b0..ccf2d872c63a 100644
--- a/services/network/mgmt/2017-03-01/network/routefilters.go
+++ b/services/network/mgmt/2017-03-01/network/routefilters.go
@@ -35,7 +35,8 @@ func NewRouteFiltersClient(subscriptionID string) RouteFiltersClient {
return NewRouteFiltersClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewRouteFiltersClientWithBaseURI creates an instance of the RouteFiltersClient client.
+// NewRouteFiltersClientWithBaseURI creates an instance of the RouteFiltersClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewRouteFiltersClientWithBaseURI(baseURI string, subscriptionID string) RouteFiltersClient {
return RouteFiltersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-03-01/network/routes.go b/services/network/mgmt/2017-03-01/network/routes.go
index 0f97e4da3ebe..d1b73860d5a2 100644
--- a/services/network/mgmt/2017-03-01/network/routes.go
+++ b/services/network/mgmt/2017-03-01/network/routes.go
@@ -35,7 +35,8 @@ func NewRoutesClient(subscriptionID string) RoutesClient {
return NewRoutesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewRoutesClientWithBaseURI creates an instance of the RoutesClient client.
+// NewRoutesClientWithBaseURI creates an instance of the RoutesClient client using a custom endpoint. Use this when
+// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewRoutesClientWithBaseURI(baseURI string, subscriptionID string) RoutesClient {
return RoutesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-03-01/network/routetables.go b/services/network/mgmt/2017-03-01/network/routetables.go
index a96e7d0e83bb..0e0c3ac7b336 100644
--- a/services/network/mgmt/2017-03-01/network/routetables.go
+++ b/services/network/mgmt/2017-03-01/network/routetables.go
@@ -35,7 +35,8 @@ func NewRouteTablesClient(subscriptionID string) RouteTablesClient {
return NewRouteTablesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewRouteTablesClientWithBaseURI creates an instance of the RouteTablesClient client.
+// NewRouteTablesClientWithBaseURI creates an instance of the RouteTablesClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewRouteTablesClientWithBaseURI(baseURI string, subscriptionID string) RouteTablesClient {
return RouteTablesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-03-01/network/securitygroups.go b/services/network/mgmt/2017-03-01/network/securitygroups.go
index 28c5f6562d69..440380b1d835 100644
--- a/services/network/mgmt/2017-03-01/network/securitygroups.go
+++ b/services/network/mgmt/2017-03-01/network/securitygroups.go
@@ -35,7 +35,8 @@ func NewSecurityGroupsClient(subscriptionID string) SecurityGroupsClient {
return NewSecurityGroupsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewSecurityGroupsClientWithBaseURI creates an instance of the SecurityGroupsClient client.
+// NewSecurityGroupsClientWithBaseURI creates an instance of the SecurityGroupsClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewSecurityGroupsClientWithBaseURI(baseURI string, subscriptionID string) SecurityGroupsClient {
return SecurityGroupsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-03-01/network/securityrules.go b/services/network/mgmt/2017-03-01/network/securityrules.go
index fcbebdfab1cf..70f4c9eef97b 100644
--- a/services/network/mgmt/2017-03-01/network/securityrules.go
+++ b/services/network/mgmt/2017-03-01/network/securityrules.go
@@ -36,7 +36,8 @@ func NewSecurityRulesClient(subscriptionID string) SecurityRulesClient {
return NewSecurityRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewSecurityRulesClientWithBaseURI creates an instance of the SecurityRulesClient client.
+// NewSecurityRulesClientWithBaseURI creates an instance of the SecurityRulesClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewSecurityRulesClientWithBaseURI(baseURI string, subscriptionID string) SecurityRulesClient {
return SecurityRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-03-01/network/subnets.go b/services/network/mgmt/2017-03-01/network/subnets.go
index 5120115b6654..3db693e6bd5f 100644
--- a/services/network/mgmt/2017-03-01/network/subnets.go
+++ b/services/network/mgmt/2017-03-01/network/subnets.go
@@ -35,7 +35,8 @@ func NewSubnetsClient(subscriptionID string) SubnetsClient {
return NewSubnetsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewSubnetsClientWithBaseURI creates an instance of the SubnetsClient client.
+// NewSubnetsClientWithBaseURI creates an instance of the SubnetsClient client using a custom endpoint. Use this when
+// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewSubnetsClientWithBaseURI(baseURI string, subscriptionID string) SubnetsClient {
return SubnetsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-03-01/network/usages.go b/services/network/mgmt/2017-03-01/network/usages.go
index d9b0d87154d9..6baaf2feec33 100644
--- a/services/network/mgmt/2017-03-01/network/usages.go
+++ b/services/network/mgmt/2017-03-01/network/usages.go
@@ -36,7 +36,8 @@ func NewUsagesClient(subscriptionID string) UsagesClient {
return NewUsagesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewUsagesClientWithBaseURI creates an instance of the UsagesClient client.
+// NewUsagesClientWithBaseURI creates an instance of the UsagesClient client using a custom endpoint. Use this when
+// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewUsagesClientWithBaseURI(baseURI string, subscriptionID string) UsagesClient {
return UsagesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-03-01/network/virtualnetworkgatewayconnections.go b/services/network/mgmt/2017-03-01/network/virtualnetworkgatewayconnections.go
index ed1e5b7299af..14954972dc0f 100644
--- a/services/network/mgmt/2017-03-01/network/virtualnetworkgatewayconnections.go
+++ b/services/network/mgmt/2017-03-01/network/virtualnetworkgatewayconnections.go
@@ -37,7 +37,8 @@ func NewVirtualNetworkGatewayConnectionsClient(subscriptionID string) VirtualNet
}
// NewVirtualNetworkGatewayConnectionsClientWithBaseURI creates an instance of the
-// VirtualNetworkGatewayConnectionsClient client.
+// VirtualNetworkGatewayConnectionsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVirtualNetworkGatewayConnectionsClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworkGatewayConnectionsClient {
return VirtualNetworkGatewayConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-03-01/network/virtualnetworkgateways.go b/services/network/mgmt/2017-03-01/network/virtualnetworkgateways.go
index 38f0b4e3581c..575dcd3ec297 100644
--- a/services/network/mgmt/2017-03-01/network/virtualnetworkgateways.go
+++ b/services/network/mgmt/2017-03-01/network/virtualnetworkgateways.go
@@ -36,7 +36,9 @@ func NewVirtualNetworkGatewaysClient(subscriptionID string) VirtualNetworkGatewa
return NewVirtualNetworkGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualNetworkGatewaysClientWithBaseURI creates an instance of the VirtualNetworkGatewaysClient client.
+// NewVirtualNetworkGatewaysClientWithBaseURI creates an instance of the VirtualNetworkGatewaysClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewVirtualNetworkGatewaysClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworkGatewaysClient {
return VirtualNetworkGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-03-01/network/virtualnetworkpeerings.go b/services/network/mgmt/2017-03-01/network/virtualnetworkpeerings.go
index 959e2d0b17a9..cbb6def6c48e 100644
--- a/services/network/mgmt/2017-03-01/network/virtualnetworkpeerings.go
+++ b/services/network/mgmt/2017-03-01/network/virtualnetworkpeerings.go
@@ -35,7 +35,9 @@ func NewVirtualNetworkPeeringsClient(subscriptionID string) VirtualNetworkPeerin
return NewVirtualNetworkPeeringsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualNetworkPeeringsClientWithBaseURI creates an instance of the VirtualNetworkPeeringsClient client.
+// NewVirtualNetworkPeeringsClientWithBaseURI creates an instance of the VirtualNetworkPeeringsClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewVirtualNetworkPeeringsClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworkPeeringsClient {
return VirtualNetworkPeeringsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-03-01/network/virtualnetworks.go b/services/network/mgmt/2017-03-01/network/virtualnetworks.go
index ea08de02dc5e..45efb60433e0 100644
--- a/services/network/mgmt/2017-03-01/network/virtualnetworks.go
+++ b/services/network/mgmt/2017-03-01/network/virtualnetworks.go
@@ -35,7 +35,8 @@ func NewVirtualNetworksClient(subscriptionID string) VirtualNetworksClient {
return NewVirtualNetworksClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualNetworksClientWithBaseURI creates an instance of the VirtualNetworksClient client.
+// NewVirtualNetworksClientWithBaseURI creates an instance of the VirtualNetworksClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVirtualNetworksClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworksClient {
return VirtualNetworksClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-03-01/network/watchers.go b/services/network/mgmt/2017-03-01/network/watchers.go
index 9a1b0dc76ae0..0404919d51c4 100644
--- a/services/network/mgmt/2017-03-01/network/watchers.go
+++ b/services/network/mgmt/2017-03-01/network/watchers.go
@@ -36,7 +36,8 @@ func NewWatchersClient(subscriptionID string) WatchersClient {
return NewWatchersClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewWatchersClientWithBaseURI creates an instance of the WatchersClient client.
+// NewWatchersClientWithBaseURI creates an instance of the WatchersClient client using a custom endpoint. Use this
+// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewWatchersClientWithBaseURI(baseURI string, subscriptionID string) WatchersClient {
return WatchersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-06-01/network/applicationgateways.go b/services/network/mgmt/2017-06-01/network/applicationgateways.go
index 4424f4dbd323..f030d94aebca 100644
--- a/services/network/mgmt/2017-06-01/network/applicationgateways.go
+++ b/services/network/mgmt/2017-06-01/network/applicationgateways.go
@@ -36,7 +36,9 @@ func NewApplicationGatewaysClient(subscriptionID string) ApplicationGatewaysClie
return NewApplicationGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewApplicationGatewaysClientWithBaseURI creates an instance of the ApplicationGatewaysClient client.
+// NewApplicationGatewaysClientWithBaseURI creates an instance of the ApplicationGatewaysClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewApplicationGatewaysClientWithBaseURI(baseURI string, subscriptionID string) ApplicationGatewaysClient {
return ApplicationGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-06-01/network/availableendpointservices.go b/services/network/mgmt/2017-06-01/network/availableendpointservices.go
index cdec2fe640a7..6e28fd2c6d93 100644
--- a/services/network/mgmt/2017-06-01/network/availableendpointservices.go
+++ b/services/network/mgmt/2017-06-01/network/availableendpointservices.go
@@ -35,7 +35,9 @@ func NewAvailableEndpointServicesClient(subscriptionID string) AvailableEndpoint
return NewAvailableEndpointServicesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewAvailableEndpointServicesClientWithBaseURI creates an instance of the AvailableEndpointServicesClient client.
+// NewAvailableEndpointServicesClientWithBaseURI creates an instance of the AvailableEndpointServicesClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewAvailableEndpointServicesClientWithBaseURI(baseURI string, subscriptionID string) AvailableEndpointServicesClient {
return AvailableEndpointServicesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-06-01/network/bgpservicecommunities.go b/services/network/mgmt/2017-06-01/network/bgpservicecommunities.go
index 3107facd6578..1504eac490b6 100644
--- a/services/network/mgmt/2017-06-01/network/bgpservicecommunities.go
+++ b/services/network/mgmt/2017-06-01/network/bgpservicecommunities.go
@@ -35,7 +35,9 @@ func NewBgpServiceCommunitiesClient(subscriptionID string) BgpServiceCommunities
return NewBgpServiceCommunitiesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewBgpServiceCommunitiesClientWithBaseURI creates an instance of the BgpServiceCommunitiesClient client.
+// NewBgpServiceCommunitiesClientWithBaseURI creates an instance of the BgpServiceCommunitiesClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewBgpServiceCommunitiesClientWithBaseURI(baseURI string, subscriptionID string) BgpServiceCommunitiesClient {
return BgpServiceCommunitiesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-06-01/network/client.go b/services/network/mgmt/2017-06-01/network/client.go
index 082ae5e12891..3802a098b6c9 100644
--- a/services/network/mgmt/2017-06-01/network/client.go
+++ b/services/network/mgmt/2017-06-01/network/client.go
@@ -45,7 +45,8 @@ func New(subscriptionID string) BaseClient {
return NewWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewWithBaseURI creates an instance of the BaseClient client.
+// NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with
+// an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient {
return BaseClient{
Client: autorest.NewClientWithUserAgent(UserAgent()),
diff --git a/services/network/mgmt/2017-06-01/network/defaultsecurityrules.go b/services/network/mgmt/2017-06-01/network/defaultsecurityrules.go
index 6489acbd9f98..8e30fc91d4ed 100644
--- a/services/network/mgmt/2017-06-01/network/defaultsecurityrules.go
+++ b/services/network/mgmt/2017-06-01/network/defaultsecurityrules.go
@@ -35,7 +35,9 @@ func NewDefaultSecurityRulesClient(subscriptionID string) DefaultSecurityRulesCl
return NewDefaultSecurityRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewDefaultSecurityRulesClientWithBaseURI creates an instance of the DefaultSecurityRulesClient client.
+// NewDefaultSecurityRulesClientWithBaseURI creates an instance of the DefaultSecurityRulesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewDefaultSecurityRulesClientWithBaseURI(baseURI string, subscriptionID string) DefaultSecurityRulesClient {
return DefaultSecurityRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-06-01/network/expressroutecircuitauthorizations.go b/services/network/mgmt/2017-06-01/network/expressroutecircuitauthorizations.go
index d000a55aa739..df943cdb0dd4 100644
--- a/services/network/mgmt/2017-06-01/network/expressroutecircuitauthorizations.go
+++ b/services/network/mgmt/2017-06-01/network/expressroutecircuitauthorizations.go
@@ -37,7 +37,8 @@ func NewExpressRouteCircuitAuthorizationsClient(subscriptionID string) ExpressRo
}
// NewExpressRouteCircuitAuthorizationsClientWithBaseURI creates an instance of the
-// ExpressRouteCircuitAuthorizationsClient client.
+// ExpressRouteCircuitAuthorizationsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewExpressRouteCircuitAuthorizationsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCircuitAuthorizationsClient {
return ExpressRouteCircuitAuthorizationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-06-01/network/expressroutecircuitpeerings.go b/services/network/mgmt/2017-06-01/network/expressroutecircuitpeerings.go
index 19ca16bb24b1..6147b1f0f8ff 100644
--- a/services/network/mgmt/2017-06-01/network/expressroutecircuitpeerings.go
+++ b/services/network/mgmt/2017-06-01/network/expressroutecircuitpeerings.go
@@ -35,7 +35,9 @@ func NewExpressRouteCircuitPeeringsClient(subscriptionID string) ExpressRouteCir
return NewExpressRouteCircuitPeeringsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewExpressRouteCircuitPeeringsClientWithBaseURI creates an instance of the ExpressRouteCircuitPeeringsClient client.
+// NewExpressRouteCircuitPeeringsClientWithBaseURI creates an instance of the ExpressRouteCircuitPeeringsClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewExpressRouteCircuitPeeringsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCircuitPeeringsClient {
return ExpressRouteCircuitPeeringsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-06-01/network/expressroutecircuits.go b/services/network/mgmt/2017-06-01/network/expressroutecircuits.go
index e501a78808ff..144799ce0040 100644
--- a/services/network/mgmt/2017-06-01/network/expressroutecircuits.go
+++ b/services/network/mgmt/2017-06-01/network/expressroutecircuits.go
@@ -35,7 +35,9 @@ func NewExpressRouteCircuitsClient(subscriptionID string) ExpressRouteCircuitsCl
return NewExpressRouteCircuitsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewExpressRouteCircuitsClientWithBaseURI creates an instance of the ExpressRouteCircuitsClient client.
+// NewExpressRouteCircuitsClientWithBaseURI creates an instance of the ExpressRouteCircuitsClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewExpressRouteCircuitsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCircuitsClient {
return ExpressRouteCircuitsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-06-01/network/expressrouteserviceproviders.go b/services/network/mgmt/2017-06-01/network/expressrouteserviceproviders.go
index 7cf6165a6ad1..255145d9aece 100644
--- a/services/network/mgmt/2017-06-01/network/expressrouteserviceproviders.go
+++ b/services/network/mgmt/2017-06-01/network/expressrouteserviceproviders.go
@@ -36,7 +36,8 @@ func NewExpressRouteServiceProvidersClient(subscriptionID string) ExpressRouteSe
}
// NewExpressRouteServiceProvidersClientWithBaseURI creates an instance of the ExpressRouteServiceProvidersClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewExpressRouteServiceProvidersClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteServiceProvidersClient {
return ExpressRouteServiceProvidersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-06-01/network/inboundnatrules.go b/services/network/mgmt/2017-06-01/network/inboundnatrules.go
index e49394d8aa3d..6da2a1ede966 100644
--- a/services/network/mgmt/2017-06-01/network/inboundnatrules.go
+++ b/services/network/mgmt/2017-06-01/network/inboundnatrules.go
@@ -36,7 +36,8 @@ func NewInboundNatRulesClient(subscriptionID string) InboundNatRulesClient {
return NewInboundNatRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewInboundNatRulesClientWithBaseURI creates an instance of the InboundNatRulesClient client.
+// NewInboundNatRulesClientWithBaseURI creates an instance of the InboundNatRulesClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewInboundNatRulesClientWithBaseURI(baseURI string, subscriptionID string) InboundNatRulesClient {
return InboundNatRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-06-01/network/interfaceipconfigurations.go b/services/network/mgmt/2017-06-01/network/interfaceipconfigurations.go
index d1909718981d..66acdd6da244 100644
--- a/services/network/mgmt/2017-06-01/network/interfaceipconfigurations.go
+++ b/services/network/mgmt/2017-06-01/network/interfaceipconfigurations.go
@@ -35,7 +35,9 @@ func NewInterfaceIPConfigurationsClient(subscriptionID string) InterfaceIPConfig
return NewInterfaceIPConfigurationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewInterfaceIPConfigurationsClientWithBaseURI creates an instance of the InterfaceIPConfigurationsClient client.
+// NewInterfaceIPConfigurationsClientWithBaseURI creates an instance of the InterfaceIPConfigurationsClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewInterfaceIPConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) InterfaceIPConfigurationsClient {
return InterfaceIPConfigurationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-06-01/network/interfaceloadbalancers.go b/services/network/mgmt/2017-06-01/network/interfaceloadbalancers.go
index 2230c750bcbb..928df6496cd9 100644
--- a/services/network/mgmt/2017-06-01/network/interfaceloadbalancers.go
+++ b/services/network/mgmt/2017-06-01/network/interfaceloadbalancers.go
@@ -35,7 +35,9 @@ func NewInterfaceLoadBalancersClient(subscriptionID string) InterfaceLoadBalance
return NewInterfaceLoadBalancersClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewInterfaceLoadBalancersClientWithBaseURI creates an instance of the InterfaceLoadBalancersClient client.
+// NewInterfaceLoadBalancersClientWithBaseURI creates an instance of the InterfaceLoadBalancersClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewInterfaceLoadBalancersClientWithBaseURI(baseURI string, subscriptionID string) InterfaceLoadBalancersClient {
return InterfaceLoadBalancersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-06-01/network/interfacesgroup.go b/services/network/mgmt/2017-06-01/network/interfacesgroup.go
index b67041c3fbbe..42fac5e104de 100644
--- a/services/network/mgmt/2017-06-01/network/interfacesgroup.go
+++ b/services/network/mgmt/2017-06-01/network/interfacesgroup.go
@@ -35,7 +35,8 @@ func NewInterfacesClient(subscriptionID string) InterfacesClient {
return NewInterfacesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewInterfacesClientWithBaseURI creates an instance of the InterfacesClient client.
+// NewInterfacesClientWithBaseURI creates an instance of the InterfacesClient client using a custom endpoint. Use this
+// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewInterfacesClientWithBaseURI(baseURI string, subscriptionID string) InterfacesClient {
return InterfacesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-06-01/network/loadbalancerbackendaddresspools.go b/services/network/mgmt/2017-06-01/network/loadbalancerbackendaddresspools.go
index 030a94fc873c..e1ed6bc5161a 100644
--- a/services/network/mgmt/2017-06-01/network/loadbalancerbackendaddresspools.go
+++ b/services/network/mgmt/2017-06-01/network/loadbalancerbackendaddresspools.go
@@ -36,7 +36,8 @@ func NewLoadBalancerBackendAddressPoolsClient(subscriptionID string) LoadBalance
}
// NewLoadBalancerBackendAddressPoolsClientWithBaseURI creates an instance of the LoadBalancerBackendAddressPoolsClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewLoadBalancerBackendAddressPoolsClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerBackendAddressPoolsClient {
return LoadBalancerBackendAddressPoolsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-06-01/network/loadbalancerfrontendipconfigurations.go b/services/network/mgmt/2017-06-01/network/loadbalancerfrontendipconfigurations.go
index 4adb3b96ca13..07302d64be4e 100644
--- a/services/network/mgmt/2017-06-01/network/loadbalancerfrontendipconfigurations.go
+++ b/services/network/mgmt/2017-06-01/network/loadbalancerfrontendipconfigurations.go
@@ -37,7 +37,8 @@ func NewLoadBalancerFrontendIPConfigurationsClient(subscriptionID string) LoadBa
}
// NewLoadBalancerFrontendIPConfigurationsClientWithBaseURI creates an instance of the
-// LoadBalancerFrontendIPConfigurationsClient client.
+// LoadBalancerFrontendIPConfigurationsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewLoadBalancerFrontendIPConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerFrontendIPConfigurationsClient {
return LoadBalancerFrontendIPConfigurationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-06-01/network/loadbalancerloadbalancingrules.go b/services/network/mgmt/2017-06-01/network/loadbalancerloadbalancingrules.go
index 547014c29239..19f65cb8ae1a 100644
--- a/services/network/mgmt/2017-06-01/network/loadbalancerloadbalancingrules.go
+++ b/services/network/mgmt/2017-06-01/network/loadbalancerloadbalancingrules.go
@@ -36,7 +36,8 @@ func NewLoadBalancerLoadBalancingRulesClient(subscriptionID string) LoadBalancer
}
// NewLoadBalancerLoadBalancingRulesClientWithBaseURI creates an instance of the LoadBalancerLoadBalancingRulesClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewLoadBalancerLoadBalancingRulesClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerLoadBalancingRulesClient {
return LoadBalancerLoadBalancingRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-06-01/network/loadbalancernetworkinterfaces.go b/services/network/mgmt/2017-06-01/network/loadbalancernetworkinterfaces.go
index 7fef622896d7..b8b6802db6fd 100644
--- a/services/network/mgmt/2017-06-01/network/loadbalancernetworkinterfaces.go
+++ b/services/network/mgmt/2017-06-01/network/loadbalancernetworkinterfaces.go
@@ -36,7 +36,8 @@ func NewLoadBalancerNetworkInterfacesClient(subscriptionID string) LoadBalancerN
}
// NewLoadBalancerNetworkInterfacesClientWithBaseURI creates an instance of the LoadBalancerNetworkInterfacesClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewLoadBalancerNetworkInterfacesClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerNetworkInterfacesClient {
return LoadBalancerNetworkInterfacesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-06-01/network/loadbalancerprobes.go b/services/network/mgmt/2017-06-01/network/loadbalancerprobes.go
index 8fa678b2b511..1d134e157117 100644
--- a/services/network/mgmt/2017-06-01/network/loadbalancerprobes.go
+++ b/services/network/mgmt/2017-06-01/network/loadbalancerprobes.go
@@ -35,7 +35,9 @@ func NewLoadBalancerProbesClient(subscriptionID string) LoadBalancerProbesClient
return NewLoadBalancerProbesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewLoadBalancerProbesClientWithBaseURI creates an instance of the LoadBalancerProbesClient client.
+// NewLoadBalancerProbesClientWithBaseURI creates an instance of the LoadBalancerProbesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewLoadBalancerProbesClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerProbesClient {
return LoadBalancerProbesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-06-01/network/loadbalancers.go b/services/network/mgmt/2017-06-01/network/loadbalancers.go
index 7ef63bc29f24..ef16401e01c0 100644
--- a/services/network/mgmt/2017-06-01/network/loadbalancers.go
+++ b/services/network/mgmt/2017-06-01/network/loadbalancers.go
@@ -35,7 +35,8 @@ func NewLoadBalancersClient(subscriptionID string) LoadBalancersClient {
return NewLoadBalancersClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewLoadBalancersClientWithBaseURI creates an instance of the LoadBalancersClient client.
+// NewLoadBalancersClientWithBaseURI creates an instance of the LoadBalancersClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewLoadBalancersClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancersClient {
return LoadBalancersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-06-01/network/localnetworkgateways.go b/services/network/mgmt/2017-06-01/network/localnetworkgateways.go
index 3514e8f554cf..a7ea0a93dc19 100644
--- a/services/network/mgmt/2017-06-01/network/localnetworkgateways.go
+++ b/services/network/mgmt/2017-06-01/network/localnetworkgateways.go
@@ -36,7 +36,9 @@ func NewLocalNetworkGatewaysClient(subscriptionID string) LocalNetworkGatewaysCl
return NewLocalNetworkGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewLocalNetworkGatewaysClientWithBaseURI creates an instance of the LocalNetworkGatewaysClient client.
+// NewLocalNetworkGatewaysClientWithBaseURI creates an instance of the LocalNetworkGatewaysClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewLocalNetworkGatewaysClientWithBaseURI(baseURI string, subscriptionID string) LocalNetworkGatewaysClient {
return LocalNetworkGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-06-01/network/networkapi/interfaces.go b/services/network/mgmt/2017-06-01/network/networkapi/interfaces.go
index 76ce6277b827..27d605436718 100644
--- a/services/network/mgmt/2017-06-01/network/networkapi/interfaces.go
+++ b/services/network/mgmt/2017-06-01/network/networkapi/interfaces.go
@@ -37,9 +37,12 @@ type ApplicationGatewaysClientAPI interface {
Get(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result network.ApplicationGateway, err error)
GetSslPredefinedPolicy(ctx context.Context, predefinedPolicyName string) (result network.ApplicationGatewaySslPredefinedPolicy, err error)
List(ctx context.Context, resourceGroupName string) (result network.ApplicationGatewayListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.ApplicationGatewayListResultIterator, err error)
ListAll(ctx context.Context) (result network.ApplicationGatewayListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.ApplicationGatewayListResultIterator, err error)
ListAvailableSslOptions(ctx context.Context) (result network.ApplicationGatewayAvailableSslOptions, err error)
ListAvailableSslPredefinedPolicies(ctx context.Context) (result network.ApplicationGatewayAvailableSslPredefinedPoliciesPage, err error)
+ ListAvailableSslPredefinedPoliciesComplete(ctx context.Context) (result network.ApplicationGatewayAvailableSslPredefinedPoliciesIterator, err error)
ListAvailableWafRuleSets(ctx context.Context) (result network.ApplicationGatewayAvailableWafRuleSetsResult, err error)
Start(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result network.ApplicationGatewaysStartFuture, err error)
Stop(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result network.ApplicationGatewaysStopFuture, err error)
@@ -50,6 +53,7 @@ var _ ApplicationGatewaysClientAPI = (*network.ApplicationGatewaysClient)(nil)
// AvailableEndpointServicesClientAPI contains the set of methods on the AvailableEndpointServicesClient type.
type AvailableEndpointServicesClientAPI interface {
List(ctx context.Context, location string) (result network.EndpointServicesListResultPage, err error)
+ ListComplete(ctx context.Context, location string) (result network.EndpointServicesListResultIterator, err error)
}
var _ AvailableEndpointServicesClientAPI = (*network.AvailableEndpointServicesClient)(nil)
@@ -60,6 +64,7 @@ type ExpressRouteCircuitAuthorizationsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, circuitName string, authorizationName string) (result network.ExpressRouteCircuitAuthorizationsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, circuitName string, authorizationName string) (result network.ExpressRouteCircuitAuthorization, err error)
List(ctx context.Context, resourceGroupName string, circuitName string) (result network.AuthorizationListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, circuitName string) (result network.AuthorizationListResultIterator, err error)
}
var _ ExpressRouteCircuitAuthorizationsClientAPI = (*network.ExpressRouteCircuitAuthorizationsClient)(nil)
@@ -70,6 +75,7 @@ type ExpressRouteCircuitPeeringsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.ExpressRouteCircuitPeeringsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.ExpressRouteCircuitPeering, err error)
List(ctx context.Context, resourceGroupName string, circuitName string) (result network.ExpressRouteCircuitPeeringListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, circuitName string) (result network.ExpressRouteCircuitPeeringListResultIterator, err error)
}
var _ ExpressRouteCircuitPeeringsClientAPI = (*network.ExpressRouteCircuitPeeringsClient)(nil)
@@ -82,7 +88,9 @@ type ExpressRouteCircuitsClientAPI interface {
GetPeeringStats(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.ExpressRouteCircuitStats, err error)
GetStats(ctx context.Context, resourceGroupName string, circuitName string) (result network.ExpressRouteCircuitStats, err error)
List(ctx context.Context, resourceGroupName string) (result network.ExpressRouteCircuitListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.ExpressRouteCircuitListResultIterator, err error)
ListAll(ctx context.Context) (result network.ExpressRouteCircuitListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.ExpressRouteCircuitListResultIterator, err error)
ListArpTable(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, devicePath string) (result network.ExpressRouteCircuitsListArpTableFuture, err error)
ListRoutesTable(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, devicePath string) (result network.ExpressRouteCircuitsListRoutesTableFuture, err error)
ListRoutesTableSummary(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, devicePath string) (result network.ExpressRouteCircuitsListRoutesTableSummaryFuture, err error)
@@ -93,6 +101,7 @@ var _ ExpressRouteCircuitsClientAPI = (*network.ExpressRouteCircuitsClient)(nil)
// ExpressRouteServiceProvidersClientAPI contains the set of methods on the ExpressRouteServiceProvidersClient type.
type ExpressRouteServiceProvidersClientAPI interface {
List(ctx context.Context) (result network.ExpressRouteServiceProviderListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ExpressRouteServiceProviderListResultIterator, err error)
}
var _ ExpressRouteServiceProvidersClientAPI = (*network.ExpressRouteServiceProvidersClient)(nil)
@@ -103,7 +112,9 @@ type LoadBalancersClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancersDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, expand string) (result network.LoadBalancer, err error)
List(ctx context.Context, resourceGroupName string) (result network.LoadBalancerListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.LoadBalancerListResultIterator, err error)
ListAll(ctx context.Context) (result network.LoadBalancerListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.LoadBalancerListResultIterator, err error)
}
var _ LoadBalancersClientAPI = (*network.LoadBalancersClient)(nil)
@@ -112,6 +123,7 @@ var _ LoadBalancersClientAPI = (*network.LoadBalancersClient)(nil)
type LoadBalancerBackendAddressPoolsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, backendAddressPoolName string) (result network.BackendAddressPool, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerBackendAddressPoolListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerBackendAddressPoolListResultIterator, err error)
}
var _ LoadBalancerBackendAddressPoolsClientAPI = (*network.LoadBalancerBackendAddressPoolsClient)(nil)
@@ -120,6 +132,7 @@ var _ LoadBalancerBackendAddressPoolsClientAPI = (*network.LoadBalancerBackendAd
type LoadBalancerFrontendIPConfigurationsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, frontendIPConfigurationName string) (result network.FrontendIPConfiguration, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerFrontendIPConfigurationListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerFrontendIPConfigurationListResultIterator, err error)
}
var _ LoadBalancerFrontendIPConfigurationsClientAPI = (*network.LoadBalancerFrontendIPConfigurationsClient)(nil)
@@ -130,6 +143,7 @@ type InboundNatRulesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, loadBalancerName string, inboundNatRuleName string) (result network.InboundNatRulesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, inboundNatRuleName string, expand string) (result network.InboundNatRule, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.InboundNatRuleListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.InboundNatRuleListResultIterator, err error)
}
var _ InboundNatRulesClientAPI = (*network.InboundNatRulesClient)(nil)
@@ -138,6 +152,7 @@ var _ InboundNatRulesClientAPI = (*network.InboundNatRulesClient)(nil)
type LoadBalancerLoadBalancingRulesClientAPI interface {
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, loadBalancingRuleName string) (result network.LoadBalancingRule, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerLoadBalancingRuleListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerLoadBalancingRuleListResultIterator, err error)
}
var _ LoadBalancerLoadBalancingRulesClientAPI = (*network.LoadBalancerLoadBalancingRulesClient)(nil)
@@ -145,6 +160,7 @@ var _ LoadBalancerLoadBalancingRulesClientAPI = (*network.LoadBalancerLoadBalanc
// LoadBalancerNetworkInterfacesClientAPI contains the set of methods on the LoadBalancerNetworkInterfacesClient type.
type LoadBalancerNetworkInterfacesClientAPI interface {
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.InterfaceListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.InterfaceListResultIterator, err error)
}
var _ LoadBalancerNetworkInterfacesClientAPI = (*network.LoadBalancerNetworkInterfacesClient)(nil)
@@ -153,6 +169,7 @@ var _ LoadBalancerNetworkInterfacesClientAPI = (*network.LoadBalancerNetworkInte
type LoadBalancerProbesClientAPI interface {
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, probeName string) (result network.Probe, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerProbeListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerProbeListResultIterator, err error)
}
var _ LoadBalancerProbesClientAPI = (*network.LoadBalancerProbesClient)(nil)
@@ -165,10 +182,14 @@ type InterfacesClientAPI interface {
GetEffectiveRouteTable(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfacesGetEffectiveRouteTableFuture, err error)
GetVirtualMachineScaleSetNetworkInterface(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, expand string) (result network.Interface, err error)
List(ctx context.Context, resourceGroupName string) (result network.InterfaceListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.InterfaceListResultIterator, err error)
ListAll(ctx context.Context) (result network.InterfaceListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.InterfaceListResultIterator, err error)
ListEffectiveNetworkSecurityGroups(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfacesListEffectiveNetworkSecurityGroupsFuture, err error)
ListVirtualMachineScaleSetNetworkInterfaces(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result network.InterfaceListResultPage, err error)
+ ListVirtualMachineScaleSetNetworkInterfacesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result network.InterfaceListResultIterator, err error)
ListVirtualMachineScaleSetVMNetworkInterfaces(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string) (result network.InterfaceListResultPage, err error)
+ ListVirtualMachineScaleSetVMNetworkInterfacesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string) (result network.InterfaceListResultIterator, err error)
}
var _ InterfacesClientAPI = (*network.InterfacesClient)(nil)
@@ -177,6 +198,7 @@ var _ InterfacesClientAPI = (*network.InterfacesClient)(nil)
type InterfaceIPConfigurationsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, networkInterfaceName string, IPConfigurationName string) (result network.InterfaceIPConfiguration, err error)
List(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceIPConfigurationListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceIPConfigurationListResultIterator, err error)
}
var _ InterfaceIPConfigurationsClientAPI = (*network.InterfaceIPConfigurationsClient)(nil)
@@ -184,6 +206,7 @@ var _ InterfaceIPConfigurationsClientAPI = (*network.InterfaceIPConfigurationsCl
// InterfaceLoadBalancersClientAPI contains the set of methods on the InterfaceLoadBalancersClient type.
type InterfaceLoadBalancersClientAPI interface {
List(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceLoadBalancerListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceLoadBalancerListResultIterator, err error)
}
var _ InterfaceLoadBalancersClientAPI = (*network.InterfaceLoadBalancersClient)(nil)
@@ -194,7 +217,9 @@ type SecurityGroupsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityGroupsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, expand string) (result network.SecurityGroup, err error)
List(ctx context.Context, resourceGroupName string) (result network.SecurityGroupListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.SecurityGroupListResultIterator, err error)
ListAll(ctx context.Context) (result network.SecurityGroupListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.SecurityGroupListResultIterator, err error)
}
var _ SecurityGroupsClientAPI = (*network.SecurityGroupsClient)(nil)
@@ -205,6 +230,7 @@ type SecurityRulesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, securityRuleName string) (result network.SecurityRulesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, securityRuleName string) (result network.SecurityRule, err error)
List(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityRuleListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityRuleListResultIterator, err error)
}
var _ SecurityRulesClientAPI = (*network.SecurityRulesClient)(nil)
@@ -213,6 +239,7 @@ var _ SecurityRulesClientAPI = (*network.SecurityRulesClient)(nil)
type DefaultSecurityRulesClientAPI interface {
Get(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, defaultSecurityRuleName string) (result network.SecurityRule, err error)
List(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityRuleListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityRuleListResultIterator, err error)
}
var _ DefaultSecurityRulesClientAPI = (*network.DefaultSecurityRulesClient)(nil)
@@ -256,9 +283,13 @@ type PublicIPAddressesClientAPI interface {
Get(ctx context.Context, resourceGroupName string, publicIPAddressName string, expand string) (result network.PublicIPAddress, err error)
GetVirtualMachineScaleSetPublicIPAddress(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, IPConfigurationName string, publicIPAddressName string, expand string) (result network.PublicIPAddress, err error)
List(ctx context.Context, resourceGroupName string) (result network.PublicIPAddressListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.PublicIPAddressListResultIterator, err error)
ListAll(ctx context.Context) (result network.PublicIPAddressListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.PublicIPAddressListResultIterator, err error)
ListVirtualMachineScaleSetPublicIPAddresses(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result network.PublicIPAddressListResultPage, err error)
+ ListVirtualMachineScaleSetPublicIPAddressesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result network.PublicIPAddressListResultIterator, err error)
ListVirtualMachineScaleSetVMPublicIPAddresses(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, IPConfigurationName string) (result network.PublicIPAddressListResultPage, err error)
+ ListVirtualMachineScaleSetVMPublicIPAddressesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, IPConfigurationName string) (result network.PublicIPAddressListResultIterator, err error)
}
var _ PublicIPAddressesClientAPI = (*network.PublicIPAddressesClient)(nil)
@@ -269,7 +300,9 @@ type RouteFiltersClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, routeFilterName string) (result network.RouteFiltersDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, routeFilterName string, expand string) (result network.RouteFilter, err error)
List(ctx context.Context) (result network.RouteFilterListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.RouteFilterListResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.RouteFilterListResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.RouteFilterListResultIterator, err error)
Update(ctx context.Context, resourceGroupName string, routeFilterName string, routeFilterParameters network.PatchRouteFilter) (result network.RouteFiltersUpdateFuture, err error)
}
@@ -281,6 +314,7 @@ type RouteFilterRulesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, routeFilterName string, ruleName string) (result network.RouteFilterRulesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, routeFilterName string, ruleName string) (result network.RouteFilterRule, err error)
ListByRouteFilter(ctx context.Context, resourceGroupName string, routeFilterName string) (result network.RouteFilterRuleListResultPage, err error)
+ ListByRouteFilterComplete(ctx context.Context, resourceGroupName string, routeFilterName string) (result network.RouteFilterRuleListResultIterator, err error)
Update(ctx context.Context, resourceGroupName string, routeFilterName string, ruleName string, routeFilterRuleParameters network.PatchRouteFilterRule) (result network.RouteFilterRulesUpdateFuture, err error)
}
@@ -292,7 +326,9 @@ type RouteTablesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, routeTableName string) (result network.RouteTablesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, routeTableName string, expand string) (result network.RouteTable, err error)
List(ctx context.Context, resourceGroupName string) (result network.RouteTableListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.RouteTableListResultIterator, err error)
ListAll(ctx context.Context) (result network.RouteTableListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.RouteTableListResultIterator, err error)
}
var _ RouteTablesClientAPI = (*network.RouteTablesClient)(nil)
@@ -303,6 +339,7 @@ type RoutesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, routeTableName string, routeName string) (result network.RoutesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, routeTableName string, routeName string) (result network.Route, err error)
List(ctx context.Context, resourceGroupName string, routeTableName string) (result network.RouteListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, routeTableName string) (result network.RouteListResultIterator, err error)
}
var _ RoutesClientAPI = (*network.RoutesClient)(nil)
@@ -310,6 +347,7 @@ var _ RoutesClientAPI = (*network.RoutesClient)(nil)
// BgpServiceCommunitiesClientAPI contains the set of methods on the BgpServiceCommunitiesClient type.
type BgpServiceCommunitiesClientAPI interface {
List(ctx context.Context) (result network.BgpServiceCommunityListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.BgpServiceCommunityListResultIterator, err error)
}
var _ BgpServiceCommunitiesClientAPI = (*network.BgpServiceCommunitiesClient)(nil)
@@ -317,6 +355,7 @@ var _ BgpServiceCommunitiesClientAPI = (*network.BgpServiceCommunitiesClient)(ni
// UsagesClientAPI contains the set of methods on the UsagesClient type.
type UsagesClientAPI interface {
List(ctx context.Context, location string) (result network.UsagesListResultPage, err error)
+ ListComplete(ctx context.Context, location string) (result network.UsagesListResultIterator, err error)
}
var _ UsagesClientAPI = (*network.UsagesClient)(nil)
@@ -328,8 +367,11 @@ type VirtualNetworksClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworksDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualNetworkName string, expand string) (result network.VirtualNetwork, err error)
List(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkListResultIterator, err error)
ListAll(ctx context.Context) (result network.VirtualNetworkListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.VirtualNetworkListResultIterator, err error)
ListUsage(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworkListUsageResultPage, err error)
+ ListUsageComplete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworkListUsageResultIterator, err error)
}
var _ VirtualNetworksClientAPI = (*network.VirtualNetworksClient)(nil)
@@ -340,6 +382,7 @@ type SubnetsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualNetworkName string, subnetName string) (result network.SubnetsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualNetworkName string, subnetName string, expand string) (result network.Subnet, err error)
List(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.SubnetListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.SubnetListResultIterator, err error)
}
var _ SubnetsClientAPI = (*network.SubnetsClient)(nil)
@@ -350,6 +393,7 @@ type VirtualNetworkPeeringsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualNetworkName string, virtualNetworkPeeringName string) (result network.VirtualNetworkPeeringsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualNetworkName string, virtualNetworkPeeringName string) (result network.VirtualNetworkPeering, err error)
List(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworkPeeringListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworkPeeringListResultIterator, err error)
}
var _ VirtualNetworkPeeringsClientAPI = (*network.VirtualNetworkPeeringsClient)(nil)
@@ -365,7 +409,9 @@ type VirtualNetworkGatewaysClientAPI interface {
GetBgpPeerStatus(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, peer string) (result network.VirtualNetworkGatewaysGetBgpPeerStatusFuture, err error)
GetLearnedRoutes(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGatewaysGetLearnedRoutesFuture, err error)
List(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayListResultIterator, err error)
ListConnections(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGatewayListConnectionsResultPage, err error)
+ ListConnectionsComplete(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGatewayListConnectionsResultIterator, err error)
Reset(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, gatewayVip string) (result network.VirtualNetworkGatewaysResetFuture, err error)
}
@@ -378,6 +424,7 @@ type VirtualNetworkGatewayConnectionsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string) (result network.VirtualNetworkGatewayConnection, err error)
GetSharedKey(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string) (result network.ConnectionSharedKey, err error)
List(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayConnectionListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayConnectionListResultIterator, err error)
ResetSharedKey(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string, parameters network.ConnectionResetSharedKey) (result network.VirtualNetworkGatewayConnectionsResetSharedKeyFuture, err error)
SetSharedKey(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string, parameters network.ConnectionSharedKey) (result network.VirtualNetworkGatewayConnectionsSetSharedKeyFuture, err error)
}
@@ -390,6 +437,7 @@ type LocalNetworkGatewaysClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, localNetworkGatewayName string) (result network.LocalNetworkGatewaysDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, localNetworkGatewayName string) (result network.LocalNetworkGateway, err error)
List(ctx context.Context, resourceGroupName string) (result network.LocalNetworkGatewayListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.LocalNetworkGatewayListResultIterator, err error)
}
var _ LocalNetworkGatewaysClientAPI = (*network.LocalNetworkGatewaysClient)(nil)
diff --git a/services/network/mgmt/2017-06-01/network/packetcaptures.go b/services/network/mgmt/2017-06-01/network/packetcaptures.go
index 4d582b6c2f33..29babec8016a 100644
--- a/services/network/mgmt/2017-06-01/network/packetcaptures.go
+++ b/services/network/mgmt/2017-06-01/network/packetcaptures.go
@@ -36,7 +36,8 @@ func NewPacketCapturesClient(subscriptionID string) PacketCapturesClient {
return NewPacketCapturesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewPacketCapturesClientWithBaseURI creates an instance of the PacketCapturesClient client.
+// NewPacketCapturesClientWithBaseURI creates an instance of the PacketCapturesClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewPacketCapturesClientWithBaseURI(baseURI string, subscriptionID string) PacketCapturesClient {
return PacketCapturesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-06-01/network/publicipaddresses.go b/services/network/mgmt/2017-06-01/network/publicipaddresses.go
index a57dfca39a2d..978b63a9c43b 100644
--- a/services/network/mgmt/2017-06-01/network/publicipaddresses.go
+++ b/services/network/mgmt/2017-06-01/network/publicipaddresses.go
@@ -36,7 +36,9 @@ func NewPublicIPAddressesClient(subscriptionID string) PublicIPAddressesClient {
return NewPublicIPAddressesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewPublicIPAddressesClientWithBaseURI creates an instance of the PublicIPAddressesClient client.
+// NewPublicIPAddressesClientWithBaseURI creates an instance of the PublicIPAddressesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewPublicIPAddressesClientWithBaseURI(baseURI string, subscriptionID string) PublicIPAddressesClient {
return PublicIPAddressesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-06-01/network/routefilterrules.go b/services/network/mgmt/2017-06-01/network/routefilterrules.go
index f41bfc508ade..d37e2d1d6754 100644
--- a/services/network/mgmt/2017-06-01/network/routefilterrules.go
+++ b/services/network/mgmt/2017-06-01/network/routefilterrules.go
@@ -36,7 +36,9 @@ func NewRouteFilterRulesClient(subscriptionID string) RouteFilterRulesClient {
return NewRouteFilterRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewRouteFilterRulesClientWithBaseURI creates an instance of the RouteFilterRulesClient client.
+// NewRouteFilterRulesClientWithBaseURI creates an instance of the RouteFilterRulesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewRouteFilterRulesClientWithBaseURI(baseURI string, subscriptionID string) RouteFilterRulesClient {
return RouteFilterRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-06-01/network/routefilters.go b/services/network/mgmt/2017-06-01/network/routefilters.go
index ea31de60fad1..b4bd22329f84 100644
--- a/services/network/mgmt/2017-06-01/network/routefilters.go
+++ b/services/network/mgmt/2017-06-01/network/routefilters.go
@@ -35,7 +35,8 @@ func NewRouteFiltersClient(subscriptionID string) RouteFiltersClient {
return NewRouteFiltersClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewRouteFiltersClientWithBaseURI creates an instance of the RouteFiltersClient client.
+// NewRouteFiltersClientWithBaseURI creates an instance of the RouteFiltersClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewRouteFiltersClientWithBaseURI(baseURI string, subscriptionID string) RouteFiltersClient {
return RouteFiltersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-06-01/network/routes.go b/services/network/mgmt/2017-06-01/network/routes.go
index 00d09de5aaba..1c82ac7f6583 100644
--- a/services/network/mgmt/2017-06-01/network/routes.go
+++ b/services/network/mgmt/2017-06-01/network/routes.go
@@ -35,7 +35,8 @@ func NewRoutesClient(subscriptionID string) RoutesClient {
return NewRoutesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewRoutesClientWithBaseURI creates an instance of the RoutesClient client.
+// NewRoutesClientWithBaseURI creates an instance of the RoutesClient client using a custom endpoint. Use this when
+// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewRoutesClientWithBaseURI(baseURI string, subscriptionID string) RoutesClient {
return RoutesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-06-01/network/routetables.go b/services/network/mgmt/2017-06-01/network/routetables.go
index c22684f8743c..2ea16dc8dbe3 100644
--- a/services/network/mgmt/2017-06-01/network/routetables.go
+++ b/services/network/mgmt/2017-06-01/network/routetables.go
@@ -35,7 +35,8 @@ func NewRouteTablesClient(subscriptionID string) RouteTablesClient {
return NewRouteTablesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewRouteTablesClientWithBaseURI creates an instance of the RouteTablesClient client.
+// NewRouteTablesClientWithBaseURI creates an instance of the RouteTablesClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewRouteTablesClientWithBaseURI(baseURI string, subscriptionID string) RouteTablesClient {
return RouteTablesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-06-01/network/securitygroups.go b/services/network/mgmt/2017-06-01/network/securitygroups.go
index d127ce0dbef5..e6fd5b5ea3e1 100644
--- a/services/network/mgmt/2017-06-01/network/securitygroups.go
+++ b/services/network/mgmt/2017-06-01/network/securitygroups.go
@@ -35,7 +35,8 @@ func NewSecurityGroupsClient(subscriptionID string) SecurityGroupsClient {
return NewSecurityGroupsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewSecurityGroupsClientWithBaseURI creates an instance of the SecurityGroupsClient client.
+// NewSecurityGroupsClientWithBaseURI creates an instance of the SecurityGroupsClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewSecurityGroupsClientWithBaseURI(baseURI string, subscriptionID string) SecurityGroupsClient {
return SecurityGroupsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-06-01/network/securityrules.go b/services/network/mgmt/2017-06-01/network/securityrules.go
index 4d5d72333fcd..cc2a80cb5169 100644
--- a/services/network/mgmt/2017-06-01/network/securityrules.go
+++ b/services/network/mgmt/2017-06-01/network/securityrules.go
@@ -35,7 +35,8 @@ func NewSecurityRulesClient(subscriptionID string) SecurityRulesClient {
return NewSecurityRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewSecurityRulesClientWithBaseURI creates an instance of the SecurityRulesClient client.
+// NewSecurityRulesClientWithBaseURI creates an instance of the SecurityRulesClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewSecurityRulesClientWithBaseURI(baseURI string, subscriptionID string) SecurityRulesClient {
return SecurityRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-06-01/network/subnets.go b/services/network/mgmt/2017-06-01/network/subnets.go
index 282563da9b88..0e07bfa5e6ad 100644
--- a/services/network/mgmt/2017-06-01/network/subnets.go
+++ b/services/network/mgmt/2017-06-01/network/subnets.go
@@ -35,7 +35,8 @@ func NewSubnetsClient(subscriptionID string) SubnetsClient {
return NewSubnetsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewSubnetsClientWithBaseURI creates an instance of the SubnetsClient client.
+// NewSubnetsClientWithBaseURI creates an instance of the SubnetsClient client using a custom endpoint. Use this when
+// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewSubnetsClientWithBaseURI(baseURI string, subscriptionID string) SubnetsClient {
return SubnetsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-06-01/network/usages.go b/services/network/mgmt/2017-06-01/network/usages.go
index 7511df963d18..8106f1a100db 100644
--- a/services/network/mgmt/2017-06-01/network/usages.go
+++ b/services/network/mgmt/2017-06-01/network/usages.go
@@ -36,7 +36,8 @@ func NewUsagesClient(subscriptionID string) UsagesClient {
return NewUsagesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewUsagesClientWithBaseURI creates an instance of the UsagesClient client.
+// NewUsagesClientWithBaseURI creates an instance of the UsagesClient client using a custom endpoint. Use this when
+// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewUsagesClientWithBaseURI(baseURI string, subscriptionID string) UsagesClient {
return UsagesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-06-01/network/virtualnetworkgatewayconnections.go b/services/network/mgmt/2017-06-01/network/virtualnetworkgatewayconnections.go
index d8c1561cf377..3b4892ec37d3 100644
--- a/services/network/mgmt/2017-06-01/network/virtualnetworkgatewayconnections.go
+++ b/services/network/mgmt/2017-06-01/network/virtualnetworkgatewayconnections.go
@@ -37,7 +37,8 @@ func NewVirtualNetworkGatewayConnectionsClient(subscriptionID string) VirtualNet
}
// NewVirtualNetworkGatewayConnectionsClientWithBaseURI creates an instance of the
-// VirtualNetworkGatewayConnectionsClient client.
+// VirtualNetworkGatewayConnectionsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVirtualNetworkGatewayConnectionsClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworkGatewayConnectionsClient {
return VirtualNetworkGatewayConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-06-01/network/virtualnetworkgateways.go b/services/network/mgmt/2017-06-01/network/virtualnetworkgateways.go
index ba7a459fc57d..a12e5f80b03d 100644
--- a/services/network/mgmt/2017-06-01/network/virtualnetworkgateways.go
+++ b/services/network/mgmt/2017-06-01/network/virtualnetworkgateways.go
@@ -36,7 +36,9 @@ func NewVirtualNetworkGatewaysClient(subscriptionID string) VirtualNetworkGatewa
return NewVirtualNetworkGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualNetworkGatewaysClientWithBaseURI creates an instance of the VirtualNetworkGatewaysClient client.
+// NewVirtualNetworkGatewaysClientWithBaseURI creates an instance of the VirtualNetworkGatewaysClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewVirtualNetworkGatewaysClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworkGatewaysClient {
return VirtualNetworkGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-06-01/network/virtualnetworkpeerings.go b/services/network/mgmt/2017-06-01/network/virtualnetworkpeerings.go
index 07ce72a9c405..41b1fb6fe880 100644
--- a/services/network/mgmt/2017-06-01/network/virtualnetworkpeerings.go
+++ b/services/network/mgmt/2017-06-01/network/virtualnetworkpeerings.go
@@ -35,7 +35,9 @@ func NewVirtualNetworkPeeringsClient(subscriptionID string) VirtualNetworkPeerin
return NewVirtualNetworkPeeringsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualNetworkPeeringsClientWithBaseURI creates an instance of the VirtualNetworkPeeringsClient client.
+// NewVirtualNetworkPeeringsClientWithBaseURI creates an instance of the VirtualNetworkPeeringsClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewVirtualNetworkPeeringsClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworkPeeringsClient {
return VirtualNetworkPeeringsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-06-01/network/virtualnetworks.go b/services/network/mgmt/2017-06-01/network/virtualnetworks.go
index f81ea0d18bbd..9d8dfa88b4b1 100644
--- a/services/network/mgmt/2017-06-01/network/virtualnetworks.go
+++ b/services/network/mgmt/2017-06-01/network/virtualnetworks.go
@@ -35,7 +35,8 @@ func NewVirtualNetworksClient(subscriptionID string) VirtualNetworksClient {
return NewVirtualNetworksClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualNetworksClientWithBaseURI creates an instance of the VirtualNetworksClient client.
+// NewVirtualNetworksClientWithBaseURI creates an instance of the VirtualNetworksClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVirtualNetworksClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworksClient {
return VirtualNetworksClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-06-01/network/watchers.go b/services/network/mgmt/2017-06-01/network/watchers.go
index bfcf0a150075..4c3a4e0c1ddb 100644
--- a/services/network/mgmt/2017-06-01/network/watchers.go
+++ b/services/network/mgmt/2017-06-01/network/watchers.go
@@ -36,7 +36,8 @@ func NewWatchersClient(subscriptionID string) WatchersClient {
return NewWatchersClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewWatchersClientWithBaseURI creates an instance of the WatchersClient client.
+// NewWatchersClientWithBaseURI creates an instance of the WatchersClient client using a custom endpoint. Use this
+// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewWatchersClientWithBaseURI(baseURI string, subscriptionID string) WatchersClient {
return WatchersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-08-01/network/applicationgateways.go b/services/network/mgmt/2017-08-01/network/applicationgateways.go
index 541fd8cd11cf..5aa6c0580337 100644
--- a/services/network/mgmt/2017-08-01/network/applicationgateways.go
+++ b/services/network/mgmt/2017-08-01/network/applicationgateways.go
@@ -36,7 +36,9 @@ func NewApplicationGatewaysClient(subscriptionID string) ApplicationGatewaysClie
return NewApplicationGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewApplicationGatewaysClientWithBaseURI creates an instance of the ApplicationGatewaysClient client.
+// NewApplicationGatewaysClientWithBaseURI creates an instance of the ApplicationGatewaysClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewApplicationGatewaysClientWithBaseURI(baseURI string, subscriptionID string) ApplicationGatewaysClient {
return ApplicationGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-08-01/network/availableendpointservices.go b/services/network/mgmt/2017-08-01/network/availableendpointservices.go
index f9e45eebfa03..7a0be0d5ce25 100644
--- a/services/network/mgmt/2017-08-01/network/availableendpointservices.go
+++ b/services/network/mgmt/2017-08-01/network/availableendpointservices.go
@@ -35,7 +35,9 @@ func NewAvailableEndpointServicesClient(subscriptionID string) AvailableEndpoint
return NewAvailableEndpointServicesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewAvailableEndpointServicesClientWithBaseURI creates an instance of the AvailableEndpointServicesClient client.
+// NewAvailableEndpointServicesClientWithBaseURI creates an instance of the AvailableEndpointServicesClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewAvailableEndpointServicesClientWithBaseURI(baseURI string, subscriptionID string) AvailableEndpointServicesClient {
return AvailableEndpointServicesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-08-01/network/bgpservicecommunities.go b/services/network/mgmt/2017-08-01/network/bgpservicecommunities.go
index 6db184a0307b..a013a753440b 100644
--- a/services/network/mgmt/2017-08-01/network/bgpservicecommunities.go
+++ b/services/network/mgmt/2017-08-01/network/bgpservicecommunities.go
@@ -35,7 +35,9 @@ func NewBgpServiceCommunitiesClient(subscriptionID string) BgpServiceCommunities
return NewBgpServiceCommunitiesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewBgpServiceCommunitiesClientWithBaseURI creates an instance of the BgpServiceCommunitiesClient client.
+// NewBgpServiceCommunitiesClientWithBaseURI creates an instance of the BgpServiceCommunitiesClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewBgpServiceCommunitiesClientWithBaseURI(baseURI string, subscriptionID string) BgpServiceCommunitiesClient {
return BgpServiceCommunitiesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-08-01/network/client.go b/services/network/mgmt/2017-08-01/network/client.go
index c2bf0892b869..6928f9db1a70 100644
--- a/services/network/mgmt/2017-08-01/network/client.go
+++ b/services/network/mgmt/2017-08-01/network/client.go
@@ -45,7 +45,8 @@ func New(subscriptionID string) BaseClient {
return NewWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewWithBaseURI creates an instance of the BaseClient client.
+// NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with
+// an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient {
return BaseClient{
Client: autorest.NewClientWithUserAgent(UserAgent()),
diff --git a/services/network/mgmt/2017-08-01/network/defaultsecurityrules.go b/services/network/mgmt/2017-08-01/network/defaultsecurityrules.go
index 4011e842c8ef..13ca54002ca7 100644
--- a/services/network/mgmt/2017-08-01/network/defaultsecurityrules.go
+++ b/services/network/mgmt/2017-08-01/network/defaultsecurityrules.go
@@ -35,7 +35,9 @@ func NewDefaultSecurityRulesClient(subscriptionID string) DefaultSecurityRulesCl
return NewDefaultSecurityRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewDefaultSecurityRulesClientWithBaseURI creates an instance of the DefaultSecurityRulesClient client.
+// NewDefaultSecurityRulesClientWithBaseURI creates an instance of the DefaultSecurityRulesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewDefaultSecurityRulesClientWithBaseURI(baseURI string, subscriptionID string) DefaultSecurityRulesClient {
return DefaultSecurityRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-08-01/network/expressroutecircuitauthorizations.go b/services/network/mgmt/2017-08-01/network/expressroutecircuitauthorizations.go
index 209d555eb38b..eca05f96ee0b 100644
--- a/services/network/mgmt/2017-08-01/network/expressroutecircuitauthorizations.go
+++ b/services/network/mgmt/2017-08-01/network/expressroutecircuitauthorizations.go
@@ -37,7 +37,8 @@ func NewExpressRouteCircuitAuthorizationsClient(subscriptionID string) ExpressRo
}
// NewExpressRouteCircuitAuthorizationsClientWithBaseURI creates an instance of the
-// ExpressRouteCircuitAuthorizationsClient client.
+// ExpressRouteCircuitAuthorizationsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewExpressRouteCircuitAuthorizationsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCircuitAuthorizationsClient {
return ExpressRouteCircuitAuthorizationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-08-01/network/expressroutecircuitpeerings.go b/services/network/mgmt/2017-08-01/network/expressroutecircuitpeerings.go
index 6e66b53a8ace..27e8b6b7a3e5 100644
--- a/services/network/mgmt/2017-08-01/network/expressroutecircuitpeerings.go
+++ b/services/network/mgmt/2017-08-01/network/expressroutecircuitpeerings.go
@@ -35,7 +35,9 @@ func NewExpressRouteCircuitPeeringsClient(subscriptionID string) ExpressRouteCir
return NewExpressRouteCircuitPeeringsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewExpressRouteCircuitPeeringsClientWithBaseURI creates an instance of the ExpressRouteCircuitPeeringsClient client.
+// NewExpressRouteCircuitPeeringsClientWithBaseURI creates an instance of the ExpressRouteCircuitPeeringsClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewExpressRouteCircuitPeeringsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCircuitPeeringsClient {
return ExpressRouteCircuitPeeringsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-08-01/network/expressroutecircuits.go b/services/network/mgmt/2017-08-01/network/expressroutecircuits.go
index 22da30bb14c5..820f0f0c40c3 100644
--- a/services/network/mgmt/2017-08-01/network/expressroutecircuits.go
+++ b/services/network/mgmt/2017-08-01/network/expressroutecircuits.go
@@ -35,7 +35,9 @@ func NewExpressRouteCircuitsClient(subscriptionID string) ExpressRouteCircuitsCl
return NewExpressRouteCircuitsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewExpressRouteCircuitsClientWithBaseURI creates an instance of the ExpressRouteCircuitsClient client.
+// NewExpressRouteCircuitsClientWithBaseURI creates an instance of the ExpressRouteCircuitsClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewExpressRouteCircuitsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCircuitsClient {
return ExpressRouteCircuitsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-08-01/network/expressrouteserviceproviders.go b/services/network/mgmt/2017-08-01/network/expressrouteserviceproviders.go
index 09ae175335e2..c3635fba9f7b 100644
--- a/services/network/mgmt/2017-08-01/network/expressrouteserviceproviders.go
+++ b/services/network/mgmt/2017-08-01/network/expressrouteserviceproviders.go
@@ -36,7 +36,8 @@ func NewExpressRouteServiceProvidersClient(subscriptionID string) ExpressRouteSe
}
// NewExpressRouteServiceProvidersClientWithBaseURI creates an instance of the ExpressRouteServiceProvidersClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewExpressRouteServiceProvidersClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteServiceProvidersClient {
return ExpressRouteServiceProvidersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-08-01/network/inboundnatrules.go b/services/network/mgmt/2017-08-01/network/inboundnatrules.go
index 81e6844b57ec..2091f5c4dc1c 100644
--- a/services/network/mgmt/2017-08-01/network/inboundnatrules.go
+++ b/services/network/mgmt/2017-08-01/network/inboundnatrules.go
@@ -36,7 +36,8 @@ func NewInboundNatRulesClient(subscriptionID string) InboundNatRulesClient {
return NewInboundNatRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewInboundNatRulesClientWithBaseURI creates an instance of the InboundNatRulesClient client.
+// NewInboundNatRulesClientWithBaseURI creates an instance of the InboundNatRulesClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewInboundNatRulesClientWithBaseURI(baseURI string, subscriptionID string) InboundNatRulesClient {
return InboundNatRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-08-01/network/interfaceipconfigurations.go b/services/network/mgmt/2017-08-01/network/interfaceipconfigurations.go
index 5507f885219c..b6b9a02a22b7 100644
--- a/services/network/mgmt/2017-08-01/network/interfaceipconfigurations.go
+++ b/services/network/mgmt/2017-08-01/network/interfaceipconfigurations.go
@@ -35,7 +35,9 @@ func NewInterfaceIPConfigurationsClient(subscriptionID string) InterfaceIPConfig
return NewInterfaceIPConfigurationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewInterfaceIPConfigurationsClientWithBaseURI creates an instance of the InterfaceIPConfigurationsClient client.
+// NewInterfaceIPConfigurationsClientWithBaseURI creates an instance of the InterfaceIPConfigurationsClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewInterfaceIPConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) InterfaceIPConfigurationsClient {
return InterfaceIPConfigurationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-08-01/network/interfaceloadbalancers.go b/services/network/mgmt/2017-08-01/network/interfaceloadbalancers.go
index 6704d33481b4..ff604e2a5369 100644
--- a/services/network/mgmt/2017-08-01/network/interfaceloadbalancers.go
+++ b/services/network/mgmt/2017-08-01/network/interfaceloadbalancers.go
@@ -35,7 +35,9 @@ func NewInterfaceLoadBalancersClient(subscriptionID string) InterfaceLoadBalance
return NewInterfaceLoadBalancersClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewInterfaceLoadBalancersClientWithBaseURI creates an instance of the InterfaceLoadBalancersClient client.
+// NewInterfaceLoadBalancersClientWithBaseURI creates an instance of the InterfaceLoadBalancersClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewInterfaceLoadBalancersClientWithBaseURI(baseURI string, subscriptionID string) InterfaceLoadBalancersClient {
return InterfaceLoadBalancersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-08-01/network/interfacesgroup.go b/services/network/mgmt/2017-08-01/network/interfacesgroup.go
index 9328d7d17c23..302d5a000568 100644
--- a/services/network/mgmt/2017-08-01/network/interfacesgroup.go
+++ b/services/network/mgmt/2017-08-01/network/interfacesgroup.go
@@ -35,7 +35,8 @@ func NewInterfacesClient(subscriptionID string) InterfacesClient {
return NewInterfacesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewInterfacesClientWithBaseURI creates an instance of the InterfacesClient client.
+// NewInterfacesClientWithBaseURI creates an instance of the InterfacesClient client using a custom endpoint. Use this
+// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewInterfacesClientWithBaseURI(baseURI string, subscriptionID string) InterfacesClient {
return InterfacesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-08-01/network/loadbalancerbackendaddresspools.go b/services/network/mgmt/2017-08-01/network/loadbalancerbackendaddresspools.go
index d5f6dce99e64..4b47a8f509cb 100644
--- a/services/network/mgmt/2017-08-01/network/loadbalancerbackendaddresspools.go
+++ b/services/network/mgmt/2017-08-01/network/loadbalancerbackendaddresspools.go
@@ -36,7 +36,8 @@ func NewLoadBalancerBackendAddressPoolsClient(subscriptionID string) LoadBalance
}
// NewLoadBalancerBackendAddressPoolsClientWithBaseURI creates an instance of the LoadBalancerBackendAddressPoolsClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewLoadBalancerBackendAddressPoolsClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerBackendAddressPoolsClient {
return LoadBalancerBackendAddressPoolsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-08-01/network/loadbalancerfrontendipconfigurations.go b/services/network/mgmt/2017-08-01/network/loadbalancerfrontendipconfigurations.go
index e2a706aba68e..9a00ea373064 100644
--- a/services/network/mgmt/2017-08-01/network/loadbalancerfrontendipconfigurations.go
+++ b/services/network/mgmt/2017-08-01/network/loadbalancerfrontendipconfigurations.go
@@ -37,7 +37,8 @@ func NewLoadBalancerFrontendIPConfigurationsClient(subscriptionID string) LoadBa
}
// NewLoadBalancerFrontendIPConfigurationsClientWithBaseURI creates an instance of the
-// LoadBalancerFrontendIPConfigurationsClient client.
+// LoadBalancerFrontendIPConfigurationsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewLoadBalancerFrontendIPConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerFrontendIPConfigurationsClient {
return LoadBalancerFrontendIPConfigurationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-08-01/network/loadbalancerloadbalancingrules.go b/services/network/mgmt/2017-08-01/network/loadbalancerloadbalancingrules.go
index 431073937a41..5cb96b9eece6 100644
--- a/services/network/mgmt/2017-08-01/network/loadbalancerloadbalancingrules.go
+++ b/services/network/mgmt/2017-08-01/network/loadbalancerloadbalancingrules.go
@@ -36,7 +36,8 @@ func NewLoadBalancerLoadBalancingRulesClient(subscriptionID string) LoadBalancer
}
// NewLoadBalancerLoadBalancingRulesClientWithBaseURI creates an instance of the LoadBalancerLoadBalancingRulesClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewLoadBalancerLoadBalancingRulesClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerLoadBalancingRulesClient {
return LoadBalancerLoadBalancingRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-08-01/network/loadbalancernetworkinterfaces.go b/services/network/mgmt/2017-08-01/network/loadbalancernetworkinterfaces.go
index d9c9f3b71663..db818cbc4309 100644
--- a/services/network/mgmt/2017-08-01/network/loadbalancernetworkinterfaces.go
+++ b/services/network/mgmt/2017-08-01/network/loadbalancernetworkinterfaces.go
@@ -36,7 +36,8 @@ func NewLoadBalancerNetworkInterfacesClient(subscriptionID string) LoadBalancerN
}
// NewLoadBalancerNetworkInterfacesClientWithBaseURI creates an instance of the LoadBalancerNetworkInterfacesClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewLoadBalancerNetworkInterfacesClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerNetworkInterfacesClient {
return LoadBalancerNetworkInterfacesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-08-01/network/loadbalancerprobes.go b/services/network/mgmt/2017-08-01/network/loadbalancerprobes.go
index c1a7fd090b68..6b4ea0a46e7e 100644
--- a/services/network/mgmt/2017-08-01/network/loadbalancerprobes.go
+++ b/services/network/mgmt/2017-08-01/network/loadbalancerprobes.go
@@ -35,7 +35,9 @@ func NewLoadBalancerProbesClient(subscriptionID string) LoadBalancerProbesClient
return NewLoadBalancerProbesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewLoadBalancerProbesClientWithBaseURI creates an instance of the LoadBalancerProbesClient client.
+// NewLoadBalancerProbesClientWithBaseURI creates an instance of the LoadBalancerProbesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewLoadBalancerProbesClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerProbesClient {
return LoadBalancerProbesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-08-01/network/loadbalancers.go b/services/network/mgmt/2017-08-01/network/loadbalancers.go
index 5857047f5fc8..41b10f32e30d 100644
--- a/services/network/mgmt/2017-08-01/network/loadbalancers.go
+++ b/services/network/mgmt/2017-08-01/network/loadbalancers.go
@@ -35,7 +35,8 @@ func NewLoadBalancersClient(subscriptionID string) LoadBalancersClient {
return NewLoadBalancersClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewLoadBalancersClientWithBaseURI creates an instance of the LoadBalancersClient client.
+// NewLoadBalancersClientWithBaseURI creates an instance of the LoadBalancersClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewLoadBalancersClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancersClient {
return LoadBalancersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-08-01/network/localnetworkgateways.go b/services/network/mgmt/2017-08-01/network/localnetworkgateways.go
index 6e99ab8aeb83..eb75fb714a25 100644
--- a/services/network/mgmt/2017-08-01/network/localnetworkgateways.go
+++ b/services/network/mgmt/2017-08-01/network/localnetworkgateways.go
@@ -36,7 +36,9 @@ func NewLocalNetworkGatewaysClient(subscriptionID string) LocalNetworkGatewaysCl
return NewLocalNetworkGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewLocalNetworkGatewaysClientWithBaseURI creates an instance of the LocalNetworkGatewaysClient client.
+// NewLocalNetworkGatewaysClientWithBaseURI creates an instance of the LocalNetworkGatewaysClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewLocalNetworkGatewaysClientWithBaseURI(baseURI string, subscriptionID string) LocalNetworkGatewaysClient {
return LocalNetworkGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-08-01/network/networkapi/interfaces.go b/services/network/mgmt/2017-08-01/network/networkapi/interfaces.go
index 3cf3656f5747..0c1ac89361e3 100644
--- a/services/network/mgmt/2017-08-01/network/networkapi/interfaces.go
+++ b/services/network/mgmt/2017-08-01/network/networkapi/interfaces.go
@@ -37,9 +37,12 @@ type ApplicationGatewaysClientAPI interface {
Get(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result network.ApplicationGateway, err error)
GetSslPredefinedPolicy(ctx context.Context, predefinedPolicyName string) (result network.ApplicationGatewaySslPredefinedPolicy, err error)
List(ctx context.Context, resourceGroupName string) (result network.ApplicationGatewayListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.ApplicationGatewayListResultIterator, err error)
ListAll(ctx context.Context) (result network.ApplicationGatewayListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.ApplicationGatewayListResultIterator, err error)
ListAvailableSslOptions(ctx context.Context) (result network.ApplicationGatewayAvailableSslOptions, err error)
ListAvailableSslPredefinedPolicies(ctx context.Context) (result network.ApplicationGatewayAvailableSslPredefinedPoliciesPage, err error)
+ ListAvailableSslPredefinedPoliciesComplete(ctx context.Context) (result network.ApplicationGatewayAvailableSslPredefinedPoliciesIterator, err error)
ListAvailableWafRuleSets(ctx context.Context) (result network.ApplicationGatewayAvailableWafRuleSetsResult, err error)
Start(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result network.ApplicationGatewaysStartFuture, err error)
Stop(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result network.ApplicationGatewaysStopFuture, err error)
@@ -50,6 +53,7 @@ var _ ApplicationGatewaysClientAPI = (*network.ApplicationGatewaysClient)(nil)
// AvailableEndpointServicesClientAPI contains the set of methods on the AvailableEndpointServicesClient type.
type AvailableEndpointServicesClientAPI interface {
List(ctx context.Context, location string) (result network.EndpointServicesListResultPage, err error)
+ ListComplete(ctx context.Context, location string) (result network.EndpointServicesListResultIterator, err error)
}
var _ AvailableEndpointServicesClientAPI = (*network.AvailableEndpointServicesClient)(nil)
@@ -60,6 +64,7 @@ type ExpressRouteCircuitAuthorizationsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, circuitName string, authorizationName string) (result network.ExpressRouteCircuitAuthorizationsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, circuitName string, authorizationName string) (result network.ExpressRouteCircuitAuthorization, err error)
List(ctx context.Context, resourceGroupName string, circuitName string) (result network.AuthorizationListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, circuitName string) (result network.AuthorizationListResultIterator, err error)
}
var _ ExpressRouteCircuitAuthorizationsClientAPI = (*network.ExpressRouteCircuitAuthorizationsClient)(nil)
@@ -70,6 +75,7 @@ type ExpressRouteCircuitPeeringsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.ExpressRouteCircuitPeeringsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.ExpressRouteCircuitPeering, err error)
List(ctx context.Context, resourceGroupName string, circuitName string) (result network.ExpressRouteCircuitPeeringListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, circuitName string) (result network.ExpressRouteCircuitPeeringListResultIterator, err error)
}
var _ ExpressRouteCircuitPeeringsClientAPI = (*network.ExpressRouteCircuitPeeringsClient)(nil)
@@ -82,7 +88,9 @@ type ExpressRouteCircuitsClientAPI interface {
GetPeeringStats(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.ExpressRouteCircuitStats, err error)
GetStats(ctx context.Context, resourceGroupName string, circuitName string) (result network.ExpressRouteCircuitStats, err error)
List(ctx context.Context, resourceGroupName string) (result network.ExpressRouteCircuitListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.ExpressRouteCircuitListResultIterator, err error)
ListAll(ctx context.Context) (result network.ExpressRouteCircuitListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.ExpressRouteCircuitListResultIterator, err error)
ListArpTable(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, devicePath string) (result network.ExpressRouteCircuitsListArpTableFuture, err error)
ListRoutesTable(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, devicePath string) (result network.ExpressRouteCircuitsListRoutesTableFuture, err error)
ListRoutesTableSummary(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, devicePath string) (result network.ExpressRouteCircuitsListRoutesTableSummaryFuture, err error)
@@ -93,6 +101,7 @@ var _ ExpressRouteCircuitsClientAPI = (*network.ExpressRouteCircuitsClient)(nil)
// ExpressRouteServiceProvidersClientAPI contains the set of methods on the ExpressRouteServiceProvidersClient type.
type ExpressRouteServiceProvidersClientAPI interface {
List(ctx context.Context) (result network.ExpressRouteServiceProviderListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ExpressRouteServiceProviderListResultIterator, err error)
}
var _ ExpressRouteServiceProvidersClientAPI = (*network.ExpressRouteServiceProvidersClient)(nil)
@@ -103,7 +112,9 @@ type LoadBalancersClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancersDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, expand string) (result network.LoadBalancer, err error)
List(ctx context.Context, resourceGroupName string) (result network.LoadBalancerListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.LoadBalancerListResultIterator, err error)
ListAll(ctx context.Context) (result network.LoadBalancerListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.LoadBalancerListResultIterator, err error)
}
var _ LoadBalancersClientAPI = (*network.LoadBalancersClient)(nil)
@@ -112,6 +123,7 @@ var _ LoadBalancersClientAPI = (*network.LoadBalancersClient)(nil)
type LoadBalancerBackendAddressPoolsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, backendAddressPoolName string) (result network.BackendAddressPool, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerBackendAddressPoolListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerBackendAddressPoolListResultIterator, err error)
}
var _ LoadBalancerBackendAddressPoolsClientAPI = (*network.LoadBalancerBackendAddressPoolsClient)(nil)
@@ -120,6 +132,7 @@ var _ LoadBalancerBackendAddressPoolsClientAPI = (*network.LoadBalancerBackendAd
type LoadBalancerFrontendIPConfigurationsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, frontendIPConfigurationName string) (result network.FrontendIPConfiguration, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerFrontendIPConfigurationListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerFrontendIPConfigurationListResultIterator, err error)
}
var _ LoadBalancerFrontendIPConfigurationsClientAPI = (*network.LoadBalancerFrontendIPConfigurationsClient)(nil)
@@ -130,6 +143,7 @@ type InboundNatRulesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, loadBalancerName string, inboundNatRuleName string) (result network.InboundNatRulesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, inboundNatRuleName string, expand string) (result network.InboundNatRule, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.InboundNatRuleListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.InboundNatRuleListResultIterator, err error)
}
var _ InboundNatRulesClientAPI = (*network.InboundNatRulesClient)(nil)
@@ -138,6 +152,7 @@ var _ InboundNatRulesClientAPI = (*network.InboundNatRulesClient)(nil)
type LoadBalancerLoadBalancingRulesClientAPI interface {
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, loadBalancingRuleName string) (result network.LoadBalancingRule, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerLoadBalancingRuleListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerLoadBalancingRuleListResultIterator, err error)
}
var _ LoadBalancerLoadBalancingRulesClientAPI = (*network.LoadBalancerLoadBalancingRulesClient)(nil)
@@ -145,6 +160,7 @@ var _ LoadBalancerLoadBalancingRulesClientAPI = (*network.LoadBalancerLoadBalanc
// LoadBalancerNetworkInterfacesClientAPI contains the set of methods on the LoadBalancerNetworkInterfacesClient type.
type LoadBalancerNetworkInterfacesClientAPI interface {
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.InterfaceListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.InterfaceListResultIterator, err error)
}
var _ LoadBalancerNetworkInterfacesClientAPI = (*network.LoadBalancerNetworkInterfacesClient)(nil)
@@ -153,6 +169,7 @@ var _ LoadBalancerNetworkInterfacesClientAPI = (*network.LoadBalancerNetworkInte
type LoadBalancerProbesClientAPI interface {
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, probeName string) (result network.Probe, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerProbeListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerProbeListResultIterator, err error)
}
var _ LoadBalancerProbesClientAPI = (*network.LoadBalancerProbesClient)(nil)
@@ -165,10 +182,14 @@ type InterfacesClientAPI interface {
GetEffectiveRouteTable(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfacesGetEffectiveRouteTableFuture, err error)
GetVirtualMachineScaleSetNetworkInterface(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, expand string) (result network.Interface, err error)
List(ctx context.Context, resourceGroupName string) (result network.InterfaceListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.InterfaceListResultIterator, err error)
ListAll(ctx context.Context) (result network.InterfaceListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.InterfaceListResultIterator, err error)
ListEffectiveNetworkSecurityGroups(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfacesListEffectiveNetworkSecurityGroupsFuture, err error)
ListVirtualMachineScaleSetNetworkInterfaces(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result network.InterfaceListResultPage, err error)
+ ListVirtualMachineScaleSetNetworkInterfacesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result network.InterfaceListResultIterator, err error)
ListVirtualMachineScaleSetVMNetworkInterfaces(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string) (result network.InterfaceListResultPage, err error)
+ ListVirtualMachineScaleSetVMNetworkInterfacesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string) (result network.InterfaceListResultIterator, err error)
}
var _ InterfacesClientAPI = (*network.InterfacesClient)(nil)
@@ -177,6 +198,7 @@ var _ InterfacesClientAPI = (*network.InterfacesClient)(nil)
type InterfaceIPConfigurationsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, networkInterfaceName string, IPConfigurationName string) (result network.InterfaceIPConfiguration, err error)
List(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceIPConfigurationListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceIPConfigurationListResultIterator, err error)
}
var _ InterfaceIPConfigurationsClientAPI = (*network.InterfaceIPConfigurationsClient)(nil)
@@ -184,6 +206,7 @@ var _ InterfaceIPConfigurationsClientAPI = (*network.InterfaceIPConfigurationsCl
// InterfaceLoadBalancersClientAPI contains the set of methods on the InterfaceLoadBalancersClient type.
type InterfaceLoadBalancersClientAPI interface {
List(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceLoadBalancerListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceLoadBalancerListResultIterator, err error)
}
var _ InterfaceLoadBalancersClientAPI = (*network.InterfaceLoadBalancersClient)(nil)
@@ -194,7 +217,9 @@ type SecurityGroupsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityGroupsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, expand string) (result network.SecurityGroup, err error)
List(ctx context.Context, resourceGroupName string) (result network.SecurityGroupListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.SecurityGroupListResultIterator, err error)
ListAll(ctx context.Context) (result network.SecurityGroupListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.SecurityGroupListResultIterator, err error)
}
var _ SecurityGroupsClientAPI = (*network.SecurityGroupsClient)(nil)
@@ -205,6 +230,7 @@ type SecurityRulesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, securityRuleName string) (result network.SecurityRulesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, securityRuleName string) (result network.SecurityRule, err error)
List(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityRuleListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityRuleListResultIterator, err error)
}
var _ SecurityRulesClientAPI = (*network.SecurityRulesClient)(nil)
@@ -213,6 +239,7 @@ var _ SecurityRulesClientAPI = (*network.SecurityRulesClient)(nil)
type DefaultSecurityRulesClientAPI interface {
Get(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, defaultSecurityRuleName string) (result network.SecurityRule, err error)
List(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityRuleListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityRuleListResultIterator, err error)
}
var _ DefaultSecurityRulesClientAPI = (*network.DefaultSecurityRulesClient)(nil)
@@ -256,9 +283,13 @@ type PublicIPAddressesClientAPI interface {
Get(ctx context.Context, resourceGroupName string, publicIPAddressName string, expand string) (result network.PublicIPAddress, err error)
GetVirtualMachineScaleSetPublicIPAddress(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, IPConfigurationName string, publicIPAddressName string, expand string) (result network.PublicIPAddress, err error)
List(ctx context.Context, resourceGroupName string) (result network.PublicIPAddressListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.PublicIPAddressListResultIterator, err error)
ListAll(ctx context.Context) (result network.PublicIPAddressListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.PublicIPAddressListResultIterator, err error)
ListVirtualMachineScaleSetPublicIPAddresses(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result network.PublicIPAddressListResultPage, err error)
+ ListVirtualMachineScaleSetPublicIPAddressesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result network.PublicIPAddressListResultIterator, err error)
ListVirtualMachineScaleSetVMPublicIPAddresses(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, IPConfigurationName string) (result network.PublicIPAddressListResultPage, err error)
+ ListVirtualMachineScaleSetVMPublicIPAddressesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, IPConfigurationName string) (result network.PublicIPAddressListResultIterator, err error)
}
var _ PublicIPAddressesClientAPI = (*network.PublicIPAddressesClient)(nil)
@@ -269,7 +300,9 @@ type RouteFiltersClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, routeFilterName string) (result network.RouteFiltersDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, routeFilterName string, expand string) (result network.RouteFilter, err error)
List(ctx context.Context) (result network.RouteFilterListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.RouteFilterListResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.RouteFilterListResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.RouteFilterListResultIterator, err error)
Update(ctx context.Context, resourceGroupName string, routeFilterName string, routeFilterParameters network.PatchRouteFilter) (result network.RouteFiltersUpdateFuture, err error)
}
@@ -281,6 +314,7 @@ type RouteFilterRulesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, routeFilterName string, ruleName string) (result network.RouteFilterRulesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, routeFilterName string, ruleName string) (result network.RouteFilterRule, err error)
ListByRouteFilter(ctx context.Context, resourceGroupName string, routeFilterName string) (result network.RouteFilterRuleListResultPage, err error)
+ ListByRouteFilterComplete(ctx context.Context, resourceGroupName string, routeFilterName string) (result network.RouteFilterRuleListResultIterator, err error)
Update(ctx context.Context, resourceGroupName string, routeFilterName string, ruleName string, routeFilterRuleParameters network.PatchRouteFilterRule) (result network.RouteFilterRulesUpdateFuture, err error)
}
@@ -292,7 +326,9 @@ type RouteTablesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, routeTableName string) (result network.RouteTablesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, routeTableName string, expand string) (result network.RouteTable, err error)
List(ctx context.Context, resourceGroupName string) (result network.RouteTableListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.RouteTableListResultIterator, err error)
ListAll(ctx context.Context) (result network.RouteTableListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.RouteTableListResultIterator, err error)
}
var _ RouteTablesClientAPI = (*network.RouteTablesClient)(nil)
@@ -303,6 +339,7 @@ type RoutesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, routeTableName string, routeName string) (result network.RoutesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, routeTableName string, routeName string) (result network.Route, err error)
List(ctx context.Context, resourceGroupName string, routeTableName string) (result network.RouteListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, routeTableName string) (result network.RouteListResultIterator, err error)
}
var _ RoutesClientAPI = (*network.RoutesClient)(nil)
@@ -310,6 +347,7 @@ var _ RoutesClientAPI = (*network.RoutesClient)(nil)
// BgpServiceCommunitiesClientAPI contains the set of methods on the BgpServiceCommunitiesClient type.
type BgpServiceCommunitiesClientAPI interface {
List(ctx context.Context) (result network.BgpServiceCommunityListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.BgpServiceCommunityListResultIterator, err error)
}
var _ BgpServiceCommunitiesClientAPI = (*network.BgpServiceCommunitiesClient)(nil)
@@ -317,6 +355,7 @@ var _ BgpServiceCommunitiesClientAPI = (*network.BgpServiceCommunitiesClient)(ni
// UsagesClientAPI contains the set of methods on the UsagesClient type.
type UsagesClientAPI interface {
List(ctx context.Context, location string) (result network.UsagesListResultPage, err error)
+ ListComplete(ctx context.Context, location string) (result network.UsagesListResultIterator, err error)
}
var _ UsagesClientAPI = (*network.UsagesClient)(nil)
@@ -328,8 +367,11 @@ type VirtualNetworksClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworksDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualNetworkName string, expand string) (result network.VirtualNetwork, err error)
List(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkListResultIterator, err error)
ListAll(ctx context.Context) (result network.VirtualNetworkListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.VirtualNetworkListResultIterator, err error)
ListUsage(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworkListUsageResultPage, err error)
+ ListUsageComplete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworkListUsageResultIterator, err error)
}
var _ VirtualNetworksClientAPI = (*network.VirtualNetworksClient)(nil)
@@ -340,6 +382,7 @@ type SubnetsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualNetworkName string, subnetName string) (result network.SubnetsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualNetworkName string, subnetName string, expand string) (result network.Subnet, err error)
List(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.SubnetListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.SubnetListResultIterator, err error)
}
var _ SubnetsClientAPI = (*network.SubnetsClient)(nil)
@@ -350,6 +393,7 @@ type VirtualNetworkPeeringsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualNetworkName string, virtualNetworkPeeringName string) (result network.VirtualNetworkPeeringsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualNetworkName string, virtualNetworkPeeringName string) (result network.VirtualNetworkPeering, err error)
List(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworkPeeringListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworkPeeringListResultIterator, err error)
}
var _ VirtualNetworkPeeringsClientAPI = (*network.VirtualNetworkPeeringsClient)(nil)
@@ -366,7 +410,9 @@ type VirtualNetworkGatewaysClientAPI interface {
GetLearnedRoutes(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGatewaysGetLearnedRoutesFuture, err error)
GetVpnProfilePackageURL(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGatewaysGetVpnProfilePackageURLFuture, err error)
List(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayListResultIterator, err error)
ListConnections(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGatewayListConnectionsResultPage, err error)
+ ListConnectionsComplete(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGatewayListConnectionsResultIterator, err error)
Reset(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, gatewayVip string) (result network.VirtualNetworkGatewaysResetFuture, err error)
}
@@ -379,6 +425,7 @@ type VirtualNetworkGatewayConnectionsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string) (result network.VirtualNetworkGatewayConnection, err error)
GetSharedKey(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string) (result network.ConnectionSharedKey, err error)
List(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayConnectionListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayConnectionListResultIterator, err error)
ResetSharedKey(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string, parameters network.ConnectionResetSharedKey) (result network.VirtualNetworkGatewayConnectionsResetSharedKeyFuture, err error)
SetSharedKey(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string, parameters network.ConnectionSharedKey) (result network.VirtualNetworkGatewayConnectionsSetSharedKeyFuture, err error)
}
@@ -391,6 +438,7 @@ type LocalNetworkGatewaysClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, localNetworkGatewayName string) (result network.LocalNetworkGatewaysDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, localNetworkGatewayName string) (result network.LocalNetworkGateway, err error)
List(ctx context.Context, resourceGroupName string) (result network.LocalNetworkGatewayListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.LocalNetworkGatewayListResultIterator, err error)
}
var _ LocalNetworkGatewaysClientAPI = (*network.LocalNetworkGatewaysClient)(nil)
diff --git a/services/network/mgmt/2017-08-01/network/packetcaptures.go b/services/network/mgmt/2017-08-01/network/packetcaptures.go
index f3cd0dfabc85..42bf36a9991d 100644
--- a/services/network/mgmt/2017-08-01/network/packetcaptures.go
+++ b/services/network/mgmt/2017-08-01/network/packetcaptures.go
@@ -36,7 +36,8 @@ func NewPacketCapturesClient(subscriptionID string) PacketCapturesClient {
return NewPacketCapturesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewPacketCapturesClientWithBaseURI creates an instance of the PacketCapturesClient client.
+// NewPacketCapturesClientWithBaseURI creates an instance of the PacketCapturesClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewPacketCapturesClientWithBaseURI(baseURI string, subscriptionID string) PacketCapturesClient {
return PacketCapturesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-08-01/network/publicipaddresses.go b/services/network/mgmt/2017-08-01/network/publicipaddresses.go
index ac67a0cf36d3..b9836b2c3a10 100644
--- a/services/network/mgmt/2017-08-01/network/publicipaddresses.go
+++ b/services/network/mgmt/2017-08-01/network/publicipaddresses.go
@@ -36,7 +36,9 @@ func NewPublicIPAddressesClient(subscriptionID string) PublicIPAddressesClient {
return NewPublicIPAddressesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewPublicIPAddressesClientWithBaseURI creates an instance of the PublicIPAddressesClient client.
+// NewPublicIPAddressesClientWithBaseURI creates an instance of the PublicIPAddressesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewPublicIPAddressesClientWithBaseURI(baseURI string, subscriptionID string) PublicIPAddressesClient {
return PublicIPAddressesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-08-01/network/routefilterrules.go b/services/network/mgmt/2017-08-01/network/routefilterrules.go
index cefe959a38bf..d572e2d5c425 100644
--- a/services/network/mgmt/2017-08-01/network/routefilterrules.go
+++ b/services/network/mgmt/2017-08-01/network/routefilterrules.go
@@ -36,7 +36,9 @@ func NewRouteFilterRulesClient(subscriptionID string) RouteFilterRulesClient {
return NewRouteFilterRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewRouteFilterRulesClientWithBaseURI creates an instance of the RouteFilterRulesClient client.
+// NewRouteFilterRulesClientWithBaseURI creates an instance of the RouteFilterRulesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewRouteFilterRulesClientWithBaseURI(baseURI string, subscriptionID string) RouteFilterRulesClient {
return RouteFilterRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-08-01/network/routefilters.go b/services/network/mgmt/2017-08-01/network/routefilters.go
index 3dba4843cbf3..c400830f87ab 100644
--- a/services/network/mgmt/2017-08-01/network/routefilters.go
+++ b/services/network/mgmt/2017-08-01/network/routefilters.go
@@ -35,7 +35,8 @@ func NewRouteFiltersClient(subscriptionID string) RouteFiltersClient {
return NewRouteFiltersClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewRouteFiltersClientWithBaseURI creates an instance of the RouteFiltersClient client.
+// NewRouteFiltersClientWithBaseURI creates an instance of the RouteFiltersClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewRouteFiltersClientWithBaseURI(baseURI string, subscriptionID string) RouteFiltersClient {
return RouteFiltersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-08-01/network/routes.go b/services/network/mgmt/2017-08-01/network/routes.go
index be7aeb81b0fa..798866774544 100644
--- a/services/network/mgmt/2017-08-01/network/routes.go
+++ b/services/network/mgmt/2017-08-01/network/routes.go
@@ -35,7 +35,8 @@ func NewRoutesClient(subscriptionID string) RoutesClient {
return NewRoutesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewRoutesClientWithBaseURI creates an instance of the RoutesClient client.
+// NewRoutesClientWithBaseURI creates an instance of the RoutesClient client using a custom endpoint. Use this when
+// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewRoutesClientWithBaseURI(baseURI string, subscriptionID string) RoutesClient {
return RoutesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-08-01/network/routetables.go b/services/network/mgmt/2017-08-01/network/routetables.go
index 47b5acc28dea..7331262b4751 100644
--- a/services/network/mgmt/2017-08-01/network/routetables.go
+++ b/services/network/mgmt/2017-08-01/network/routetables.go
@@ -35,7 +35,8 @@ func NewRouteTablesClient(subscriptionID string) RouteTablesClient {
return NewRouteTablesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewRouteTablesClientWithBaseURI creates an instance of the RouteTablesClient client.
+// NewRouteTablesClientWithBaseURI creates an instance of the RouteTablesClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewRouteTablesClientWithBaseURI(baseURI string, subscriptionID string) RouteTablesClient {
return RouteTablesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-08-01/network/securitygroups.go b/services/network/mgmt/2017-08-01/network/securitygroups.go
index d519dc4eed8a..338f3f219991 100644
--- a/services/network/mgmt/2017-08-01/network/securitygroups.go
+++ b/services/network/mgmt/2017-08-01/network/securitygroups.go
@@ -35,7 +35,8 @@ func NewSecurityGroupsClient(subscriptionID string) SecurityGroupsClient {
return NewSecurityGroupsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewSecurityGroupsClientWithBaseURI creates an instance of the SecurityGroupsClient client.
+// NewSecurityGroupsClientWithBaseURI creates an instance of the SecurityGroupsClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewSecurityGroupsClientWithBaseURI(baseURI string, subscriptionID string) SecurityGroupsClient {
return SecurityGroupsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-08-01/network/securityrules.go b/services/network/mgmt/2017-08-01/network/securityrules.go
index 1084981b3195..17ec77e9c3d4 100644
--- a/services/network/mgmt/2017-08-01/network/securityrules.go
+++ b/services/network/mgmt/2017-08-01/network/securityrules.go
@@ -35,7 +35,8 @@ func NewSecurityRulesClient(subscriptionID string) SecurityRulesClient {
return NewSecurityRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewSecurityRulesClientWithBaseURI creates an instance of the SecurityRulesClient client.
+// NewSecurityRulesClientWithBaseURI creates an instance of the SecurityRulesClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewSecurityRulesClientWithBaseURI(baseURI string, subscriptionID string) SecurityRulesClient {
return SecurityRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-08-01/network/subnets.go b/services/network/mgmt/2017-08-01/network/subnets.go
index 5ac8c0a5b8b8..03900fcde1a4 100644
--- a/services/network/mgmt/2017-08-01/network/subnets.go
+++ b/services/network/mgmt/2017-08-01/network/subnets.go
@@ -35,7 +35,8 @@ func NewSubnetsClient(subscriptionID string) SubnetsClient {
return NewSubnetsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewSubnetsClientWithBaseURI creates an instance of the SubnetsClient client.
+// NewSubnetsClientWithBaseURI creates an instance of the SubnetsClient client using a custom endpoint. Use this when
+// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewSubnetsClientWithBaseURI(baseURI string, subscriptionID string) SubnetsClient {
return SubnetsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-08-01/network/usages.go b/services/network/mgmt/2017-08-01/network/usages.go
index f6e2704f5bba..d19f342862a4 100644
--- a/services/network/mgmt/2017-08-01/network/usages.go
+++ b/services/network/mgmt/2017-08-01/network/usages.go
@@ -36,7 +36,8 @@ func NewUsagesClient(subscriptionID string) UsagesClient {
return NewUsagesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewUsagesClientWithBaseURI creates an instance of the UsagesClient client.
+// NewUsagesClientWithBaseURI creates an instance of the UsagesClient client using a custom endpoint. Use this when
+// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewUsagesClientWithBaseURI(baseURI string, subscriptionID string) UsagesClient {
return UsagesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-08-01/network/virtualnetworkgatewayconnections.go b/services/network/mgmt/2017-08-01/network/virtualnetworkgatewayconnections.go
index 8e9c91f3d1bd..d05626ec1ff4 100644
--- a/services/network/mgmt/2017-08-01/network/virtualnetworkgatewayconnections.go
+++ b/services/network/mgmt/2017-08-01/network/virtualnetworkgatewayconnections.go
@@ -37,7 +37,8 @@ func NewVirtualNetworkGatewayConnectionsClient(subscriptionID string) VirtualNet
}
// NewVirtualNetworkGatewayConnectionsClientWithBaseURI creates an instance of the
-// VirtualNetworkGatewayConnectionsClient client.
+// VirtualNetworkGatewayConnectionsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVirtualNetworkGatewayConnectionsClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworkGatewayConnectionsClient {
return VirtualNetworkGatewayConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-08-01/network/virtualnetworkgateways.go b/services/network/mgmt/2017-08-01/network/virtualnetworkgateways.go
index 7ee10721768b..3a6574e93472 100644
--- a/services/network/mgmt/2017-08-01/network/virtualnetworkgateways.go
+++ b/services/network/mgmt/2017-08-01/network/virtualnetworkgateways.go
@@ -36,7 +36,9 @@ func NewVirtualNetworkGatewaysClient(subscriptionID string) VirtualNetworkGatewa
return NewVirtualNetworkGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualNetworkGatewaysClientWithBaseURI creates an instance of the VirtualNetworkGatewaysClient client.
+// NewVirtualNetworkGatewaysClientWithBaseURI creates an instance of the VirtualNetworkGatewaysClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewVirtualNetworkGatewaysClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworkGatewaysClient {
return VirtualNetworkGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-08-01/network/virtualnetworkpeerings.go b/services/network/mgmt/2017-08-01/network/virtualnetworkpeerings.go
index ce74101760ec..3c86da3c3124 100644
--- a/services/network/mgmt/2017-08-01/network/virtualnetworkpeerings.go
+++ b/services/network/mgmt/2017-08-01/network/virtualnetworkpeerings.go
@@ -35,7 +35,9 @@ func NewVirtualNetworkPeeringsClient(subscriptionID string) VirtualNetworkPeerin
return NewVirtualNetworkPeeringsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualNetworkPeeringsClientWithBaseURI creates an instance of the VirtualNetworkPeeringsClient client.
+// NewVirtualNetworkPeeringsClientWithBaseURI creates an instance of the VirtualNetworkPeeringsClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewVirtualNetworkPeeringsClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworkPeeringsClient {
return VirtualNetworkPeeringsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-08-01/network/virtualnetworks.go b/services/network/mgmt/2017-08-01/network/virtualnetworks.go
index 0b51cf88f2f3..25f95f18e787 100644
--- a/services/network/mgmt/2017-08-01/network/virtualnetworks.go
+++ b/services/network/mgmt/2017-08-01/network/virtualnetworks.go
@@ -35,7 +35,8 @@ func NewVirtualNetworksClient(subscriptionID string) VirtualNetworksClient {
return NewVirtualNetworksClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualNetworksClientWithBaseURI creates an instance of the VirtualNetworksClient client.
+// NewVirtualNetworksClientWithBaseURI creates an instance of the VirtualNetworksClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVirtualNetworksClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworksClient {
return VirtualNetworksClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-08-01/network/watchers.go b/services/network/mgmt/2017-08-01/network/watchers.go
index 5b9b55f85f43..d9dbd4256cf6 100644
--- a/services/network/mgmt/2017-08-01/network/watchers.go
+++ b/services/network/mgmt/2017-08-01/network/watchers.go
@@ -36,7 +36,8 @@ func NewWatchersClient(subscriptionID string) WatchersClient {
return NewWatchersClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewWatchersClientWithBaseURI creates an instance of the WatchersClient client.
+// NewWatchersClientWithBaseURI creates an instance of the WatchersClient client using a custom endpoint. Use this
+// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewWatchersClientWithBaseURI(baseURI string, subscriptionID string) WatchersClient {
return WatchersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-09-01/network/applicationgateways.go b/services/network/mgmt/2017-09-01/network/applicationgateways.go
index 7b9e935a7582..a3a7766fbab4 100644
--- a/services/network/mgmt/2017-09-01/network/applicationgateways.go
+++ b/services/network/mgmt/2017-09-01/network/applicationgateways.go
@@ -36,7 +36,9 @@ func NewApplicationGatewaysClient(subscriptionID string) ApplicationGatewaysClie
return NewApplicationGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewApplicationGatewaysClientWithBaseURI creates an instance of the ApplicationGatewaysClient client.
+// NewApplicationGatewaysClientWithBaseURI creates an instance of the ApplicationGatewaysClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewApplicationGatewaysClientWithBaseURI(baseURI string, subscriptionID string) ApplicationGatewaysClient {
return ApplicationGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-09-01/network/applicationsecuritygroups.go b/services/network/mgmt/2017-09-01/network/applicationsecuritygroups.go
index 87589b2c35b5..8337afedfbd6 100644
--- a/services/network/mgmt/2017-09-01/network/applicationsecuritygroups.go
+++ b/services/network/mgmt/2017-09-01/network/applicationsecuritygroups.go
@@ -35,7 +35,9 @@ func NewApplicationSecurityGroupsClient(subscriptionID string) ApplicationSecuri
return NewApplicationSecurityGroupsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewApplicationSecurityGroupsClientWithBaseURI creates an instance of the ApplicationSecurityGroupsClient client.
+// NewApplicationSecurityGroupsClientWithBaseURI creates an instance of the ApplicationSecurityGroupsClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewApplicationSecurityGroupsClientWithBaseURI(baseURI string, subscriptionID string) ApplicationSecurityGroupsClient {
return ApplicationSecurityGroupsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-09-01/network/availableendpointservices.go b/services/network/mgmt/2017-09-01/network/availableendpointservices.go
index 748a21df63ae..5b8a01af1e75 100644
--- a/services/network/mgmt/2017-09-01/network/availableendpointservices.go
+++ b/services/network/mgmt/2017-09-01/network/availableendpointservices.go
@@ -35,7 +35,9 @@ func NewAvailableEndpointServicesClient(subscriptionID string) AvailableEndpoint
return NewAvailableEndpointServicesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewAvailableEndpointServicesClientWithBaseURI creates an instance of the AvailableEndpointServicesClient client.
+// NewAvailableEndpointServicesClientWithBaseURI creates an instance of the AvailableEndpointServicesClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewAvailableEndpointServicesClientWithBaseURI(baseURI string, subscriptionID string) AvailableEndpointServicesClient {
return AvailableEndpointServicesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-09-01/network/bgpservicecommunities.go b/services/network/mgmt/2017-09-01/network/bgpservicecommunities.go
index db4cc2e1ab5e..2baeccd94eb3 100644
--- a/services/network/mgmt/2017-09-01/network/bgpservicecommunities.go
+++ b/services/network/mgmt/2017-09-01/network/bgpservicecommunities.go
@@ -35,7 +35,9 @@ func NewBgpServiceCommunitiesClient(subscriptionID string) BgpServiceCommunities
return NewBgpServiceCommunitiesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewBgpServiceCommunitiesClientWithBaseURI creates an instance of the BgpServiceCommunitiesClient client.
+// NewBgpServiceCommunitiesClientWithBaseURI creates an instance of the BgpServiceCommunitiesClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewBgpServiceCommunitiesClientWithBaseURI(baseURI string, subscriptionID string) BgpServiceCommunitiesClient {
return BgpServiceCommunitiesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-09-01/network/client.go b/services/network/mgmt/2017-09-01/network/client.go
index dd1bb9b49887..77172c464165 100644
--- a/services/network/mgmt/2017-09-01/network/client.go
+++ b/services/network/mgmt/2017-09-01/network/client.go
@@ -45,7 +45,8 @@ func New(subscriptionID string) BaseClient {
return NewWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewWithBaseURI creates an instance of the BaseClient client.
+// NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with
+// an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient {
return BaseClient{
Client: autorest.NewClientWithUserAgent(UserAgent()),
diff --git a/services/network/mgmt/2017-09-01/network/defaultsecurityrules.go b/services/network/mgmt/2017-09-01/network/defaultsecurityrules.go
index 20f08835e1db..2b31b8884947 100644
--- a/services/network/mgmt/2017-09-01/network/defaultsecurityrules.go
+++ b/services/network/mgmt/2017-09-01/network/defaultsecurityrules.go
@@ -35,7 +35,9 @@ func NewDefaultSecurityRulesClient(subscriptionID string) DefaultSecurityRulesCl
return NewDefaultSecurityRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewDefaultSecurityRulesClientWithBaseURI creates an instance of the DefaultSecurityRulesClient client.
+// NewDefaultSecurityRulesClientWithBaseURI creates an instance of the DefaultSecurityRulesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewDefaultSecurityRulesClientWithBaseURI(baseURI string, subscriptionID string) DefaultSecurityRulesClient {
return DefaultSecurityRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-09-01/network/expressroutecircuitauthorizations.go b/services/network/mgmt/2017-09-01/network/expressroutecircuitauthorizations.go
index 81d3391fe6b0..f5642b346812 100644
--- a/services/network/mgmt/2017-09-01/network/expressroutecircuitauthorizations.go
+++ b/services/network/mgmt/2017-09-01/network/expressroutecircuitauthorizations.go
@@ -37,7 +37,8 @@ func NewExpressRouteCircuitAuthorizationsClient(subscriptionID string) ExpressRo
}
// NewExpressRouteCircuitAuthorizationsClientWithBaseURI creates an instance of the
-// ExpressRouteCircuitAuthorizationsClient client.
+// ExpressRouteCircuitAuthorizationsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewExpressRouteCircuitAuthorizationsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCircuitAuthorizationsClient {
return ExpressRouteCircuitAuthorizationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-09-01/network/expressroutecircuitpeerings.go b/services/network/mgmt/2017-09-01/network/expressroutecircuitpeerings.go
index c9f83fda469b..31c2dc97eb19 100644
--- a/services/network/mgmt/2017-09-01/network/expressroutecircuitpeerings.go
+++ b/services/network/mgmt/2017-09-01/network/expressroutecircuitpeerings.go
@@ -35,7 +35,9 @@ func NewExpressRouteCircuitPeeringsClient(subscriptionID string) ExpressRouteCir
return NewExpressRouteCircuitPeeringsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewExpressRouteCircuitPeeringsClientWithBaseURI creates an instance of the ExpressRouteCircuitPeeringsClient client.
+// NewExpressRouteCircuitPeeringsClientWithBaseURI creates an instance of the ExpressRouteCircuitPeeringsClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewExpressRouteCircuitPeeringsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCircuitPeeringsClient {
return ExpressRouteCircuitPeeringsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-09-01/network/expressroutecircuits.go b/services/network/mgmt/2017-09-01/network/expressroutecircuits.go
index acf3b3fb2766..02ce2533e807 100644
--- a/services/network/mgmt/2017-09-01/network/expressroutecircuits.go
+++ b/services/network/mgmt/2017-09-01/network/expressroutecircuits.go
@@ -35,7 +35,9 @@ func NewExpressRouteCircuitsClient(subscriptionID string) ExpressRouteCircuitsCl
return NewExpressRouteCircuitsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewExpressRouteCircuitsClientWithBaseURI creates an instance of the ExpressRouteCircuitsClient client.
+// NewExpressRouteCircuitsClientWithBaseURI creates an instance of the ExpressRouteCircuitsClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewExpressRouteCircuitsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCircuitsClient {
return ExpressRouteCircuitsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-09-01/network/expressrouteserviceproviders.go b/services/network/mgmt/2017-09-01/network/expressrouteserviceproviders.go
index d80d5bc79185..37f5f4a64f5e 100644
--- a/services/network/mgmt/2017-09-01/network/expressrouteserviceproviders.go
+++ b/services/network/mgmt/2017-09-01/network/expressrouteserviceproviders.go
@@ -36,7 +36,8 @@ func NewExpressRouteServiceProvidersClient(subscriptionID string) ExpressRouteSe
}
// NewExpressRouteServiceProvidersClientWithBaseURI creates an instance of the ExpressRouteServiceProvidersClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewExpressRouteServiceProvidersClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteServiceProvidersClient {
return ExpressRouteServiceProvidersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-09-01/network/inboundnatrules.go b/services/network/mgmt/2017-09-01/network/inboundnatrules.go
index 9fa3d809f43d..ea79f3a1b951 100644
--- a/services/network/mgmt/2017-09-01/network/inboundnatrules.go
+++ b/services/network/mgmt/2017-09-01/network/inboundnatrules.go
@@ -36,7 +36,8 @@ func NewInboundNatRulesClient(subscriptionID string) InboundNatRulesClient {
return NewInboundNatRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewInboundNatRulesClientWithBaseURI creates an instance of the InboundNatRulesClient client.
+// NewInboundNatRulesClientWithBaseURI creates an instance of the InboundNatRulesClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewInboundNatRulesClientWithBaseURI(baseURI string, subscriptionID string) InboundNatRulesClient {
return InboundNatRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-09-01/network/interfaceipconfigurations.go b/services/network/mgmt/2017-09-01/network/interfaceipconfigurations.go
index 9b3b6c388ed6..75b0fe03898f 100644
--- a/services/network/mgmt/2017-09-01/network/interfaceipconfigurations.go
+++ b/services/network/mgmt/2017-09-01/network/interfaceipconfigurations.go
@@ -35,7 +35,9 @@ func NewInterfaceIPConfigurationsClient(subscriptionID string) InterfaceIPConfig
return NewInterfaceIPConfigurationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewInterfaceIPConfigurationsClientWithBaseURI creates an instance of the InterfaceIPConfigurationsClient client.
+// NewInterfaceIPConfigurationsClientWithBaseURI creates an instance of the InterfaceIPConfigurationsClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewInterfaceIPConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) InterfaceIPConfigurationsClient {
return InterfaceIPConfigurationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-09-01/network/interfaceloadbalancers.go b/services/network/mgmt/2017-09-01/network/interfaceloadbalancers.go
index 4b3248aa5615..e5caa906f556 100644
--- a/services/network/mgmt/2017-09-01/network/interfaceloadbalancers.go
+++ b/services/network/mgmt/2017-09-01/network/interfaceloadbalancers.go
@@ -35,7 +35,9 @@ func NewInterfaceLoadBalancersClient(subscriptionID string) InterfaceLoadBalance
return NewInterfaceLoadBalancersClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewInterfaceLoadBalancersClientWithBaseURI creates an instance of the InterfaceLoadBalancersClient client.
+// NewInterfaceLoadBalancersClientWithBaseURI creates an instance of the InterfaceLoadBalancersClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewInterfaceLoadBalancersClientWithBaseURI(baseURI string, subscriptionID string) InterfaceLoadBalancersClient {
return InterfaceLoadBalancersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-09-01/network/interfacesgroup.go b/services/network/mgmt/2017-09-01/network/interfacesgroup.go
index d3613bdea64b..9334ff52903d 100644
--- a/services/network/mgmt/2017-09-01/network/interfacesgroup.go
+++ b/services/network/mgmt/2017-09-01/network/interfacesgroup.go
@@ -35,7 +35,8 @@ func NewInterfacesClient(subscriptionID string) InterfacesClient {
return NewInterfacesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewInterfacesClientWithBaseURI creates an instance of the InterfacesClient client.
+// NewInterfacesClientWithBaseURI creates an instance of the InterfacesClient client using a custom endpoint. Use this
+// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewInterfacesClientWithBaseURI(baseURI string, subscriptionID string) InterfacesClient {
return InterfacesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-09-01/network/loadbalancerbackendaddresspools.go b/services/network/mgmt/2017-09-01/network/loadbalancerbackendaddresspools.go
index dad99bb9b76c..d622602e8c24 100644
--- a/services/network/mgmt/2017-09-01/network/loadbalancerbackendaddresspools.go
+++ b/services/network/mgmt/2017-09-01/network/loadbalancerbackendaddresspools.go
@@ -36,7 +36,8 @@ func NewLoadBalancerBackendAddressPoolsClient(subscriptionID string) LoadBalance
}
// NewLoadBalancerBackendAddressPoolsClientWithBaseURI creates an instance of the LoadBalancerBackendAddressPoolsClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewLoadBalancerBackendAddressPoolsClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerBackendAddressPoolsClient {
return LoadBalancerBackendAddressPoolsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-09-01/network/loadbalancerfrontendipconfigurations.go b/services/network/mgmt/2017-09-01/network/loadbalancerfrontendipconfigurations.go
index 01093140ca3f..df8a26daffb1 100644
--- a/services/network/mgmt/2017-09-01/network/loadbalancerfrontendipconfigurations.go
+++ b/services/network/mgmt/2017-09-01/network/loadbalancerfrontendipconfigurations.go
@@ -37,7 +37,8 @@ func NewLoadBalancerFrontendIPConfigurationsClient(subscriptionID string) LoadBa
}
// NewLoadBalancerFrontendIPConfigurationsClientWithBaseURI creates an instance of the
-// LoadBalancerFrontendIPConfigurationsClient client.
+// LoadBalancerFrontendIPConfigurationsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewLoadBalancerFrontendIPConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerFrontendIPConfigurationsClient {
return LoadBalancerFrontendIPConfigurationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-09-01/network/loadbalancerloadbalancingrules.go b/services/network/mgmt/2017-09-01/network/loadbalancerloadbalancingrules.go
index c046fa3450b4..03737f9291e8 100644
--- a/services/network/mgmt/2017-09-01/network/loadbalancerloadbalancingrules.go
+++ b/services/network/mgmt/2017-09-01/network/loadbalancerloadbalancingrules.go
@@ -36,7 +36,8 @@ func NewLoadBalancerLoadBalancingRulesClient(subscriptionID string) LoadBalancer
}
// NewLoadBalancerLoadBalancingRulesClientWithBaseURI creates an instance of the LoadBalancerLoadBalancingRulesClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewLoadBalancerLoadBalancingRulesClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerLoadBalancingRulesClient {
return LoadBalancerLoadBalancingRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-09-01/network/loadbalancernetworkinterfaces.go b/services/network/mgmt/2017-09-01/network/loadbalancernetworkinterfaces.go
index 1ec6e44b2318..844b9881df49 100644
--- a/services/network/mgmt/2017-09-01/network/loadbalancernetworkinterfaces.go
+++ b/services/network/mgmt/2017-09-01/network/loadbalancernetworkinterfaces.go
@@ -36,7 +36,8 @@ func NewLoadBalancerNetworkInterfacesClient(subscriptionID string) LoadBalancerN
}
// NewLoadBalancerNetworkInterfacesClientWithBaseURI creates an instance of the LoadBalancerNetworkInterfacesClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewLoadBalancerNetworkInterfacesClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerNetworkInterfacesClient {
return LoadBalancerNetworkInterfacesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-09-01/network/loadbalancerprobes.go b/services/network/mgmt/2017-09-01/network/loadbalancerprobes.go
index e68426043bc2..8fb55dc92785 100644
--- a/services/network/mgmt/2017-09-01/network/loadbalancerprobes.go
+++ b/services/network/mgmt/2017-09-01/network/loadbalancerprobes.go
@@ -35,7 +35,9 @@ func NewLoadBalancerProbesClient(subscriptionID string) LoadBalancerProbesClient
return NewLoadBalancerProbesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewLoadBalancerProbesClientWithBaseURI creates an instance of the LoadBalancerProbesClient client.
+// NewLoadBalancerProbesClientWithBaseURI creates an instance of the LoadBalancerProbesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewLoadBalancerProbesClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerProbesClient {
return LoadBalancerProbesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-09-01/network/loadbalancers.go b/services/network/mgmt/2017-09-01/network/loadbalancers.go
index 0a1f805f53c2..47b6657b4425 100644
--- a/services/network/mgmt/2017-09-01/network/loadbalancers.go
+++ b/services/network/mgmt/2017-09-01/network/loadbalancers.go
@@ -35,7 +35,8 @@ func NewLoadBalancersClient(subscriptionID string) LoadBalancersClient {
return NewLoadBalancersClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewLoadBalancersClientWithBaseURI creates an instance of the LoadBalancersClient client.
+// NewLoadBalancersClientWithBaseURI creates an instance of the LoadBalancersClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewLoadBalancersClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancersClient {
return LoadBalancersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-09-01/network/localnetworkgateways.go b/services/network/mgmt/2017-09-01/network/localnetworkgateways.go
index 028bf875e046..983c409f9a80 100644
--- a/services/network/mgmt/2017-09-01/network/localnetworkgateways.go
+++ b/services/network/mgmt/2017-09-01/network/localnetworkgateways.go
@@ -36,7 +36,9 @@ func NewLocalNetworkGatewaysClient(subscriptionID string) LocalNetworkGatewaysCl
return NewLocalNetworkGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewLocalNetworkGatewaysClientWithBaseURI creates an instance of the LocalNetworkGatewaysClient client.
+// NewLocalNetworkGatewaysClientWithBaseURI creates an instance of the LocalNetworkGatewaysClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewLocalNetworkGatewaysClientWithBaseURI(baseURI string, subscriptionID string) LocalNetworkGatewaysClient {
return LocalNetworkGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-09-01/network/networkapi/interfaces.go b/services/network/mgmt/2017-09-01/network/networkapi/interfaces.go
index b3d0f474fd43..081581ce9286 100644
--- a/services/network/mgmt/2017-09-01/network/networkapi/interfaces.go
+++ b/services/network/mgmt/2017-09-01/network/networkapi/interfaces.go
@@ -37,9 +37,12 @@ type ApplicationGatewaysClientAPI interface {
Get(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result network.ApplicationGateway, err error)
GetSslPredefinedPolicy(ctx context.Context, predefinedPolicyName string) (result network.ApplicationGatewaySslPredefinedPolicy, err error)
List(ctx context.Context, resourceGroupName string) (result network.ApplicationGatewayListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.ApplicationGatewayListResultIterator, err error)
ListAll(ctx context.Context) (result network.ApplicationGatewayListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.ApplicationGatewayListResultIterator, err error)
ListAvailableSslOptions(ctx context.Context) (result network.ApplicationGatewayAvailableSslOptions, err error)
ListAvailableSslPredefinedPolicies(ctx context.Context) (result network.ApplicationGatewayAvailableSslPredefinedPoliciesPage, err error)
+ ListAvailableSslPredefinedPoliciesComplete(ctx context.Context) (result network.ApplicationGatewayAvailableSslPredefinedPoliciesIterator, err error)
ListAvailableWafRuleSets(ctx context.Context) (result network.ApplicationGatewayAvailableWafRuleSetsResult, err error)
Start(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result network.ApplicationGatewaysStartFuture, err error)
Stop(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result network.ApplicationGatewaysStopFuture, err error)
@@ -54,7 +57,9 @@ type ApplicationSecurityGroupsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, applicationSecurityGroupName string) (result network.ApplicationSecurityGroupsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, applicationSecurityGroupName string) (result network.ApplicationSecurityGroup, err error)
List(ctx context.Context, resourceGroupName string) (result network.ApplicationSecurityGroupListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.ApplicationSecurityGroupListResultIterator, err error)
ListAll(ctx context.Context) (result network.ApplicationSecurityGroupListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.ApplicationSecurityGroupListResultIterator, err error)
}
var _ ApplicationSecurityGroupsClientAPI = (*network.ApplicationSecurityGroupsClient)(nil)
@@ -62,6 +67,7 @@ var _ ApplicationSecurityGroupsClientAPI = (*network.ApplicationSecurityGroupsCl
// AvailableEndpointServicesClientAPI contains the set of methods on the AvailableEndpointServicesClient type.
type AvailableEndpointServicesClientAPI interface {
List(ctx context.Context, location string) (result network.EndpointServicesListResultPage, err error)
+ ListComplete(ctx context.Context, location string) (result network.EndpointServicesListResultIterator, err error)
}
var _ AvailableEndpointServicesClientAPI = (*network.AvailableEndpointServicesClient)(nil)
@@ -72,6 +78,7 @@ type ExpressRouteCircuitAuthorizationsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, circuitName string, authorizationName string) (result network.ExpressRouteCircuitAuthorizationsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, circuitName string, authorizationName string) (result network.ExpressRouteCircuitAuthorization, err error)
List(ctx context.Context, resourceGroupName string, circuitName string) (result network.AuthorizationListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, circuitName string) (result network.AuthorizationListResultIterator, err error)
}
var _ ExpressRouteCircuitAuthorizationsClientAPI = (*network.ExpressRouteCircuitAuthorizationsClient)(nil)
@@ -82,6 +89,7 @@ type ExpressRouteCircuitPeeringsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.ExpressRouteCircuitPeeringsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.ExpressRouteCircuitPeering, err error)
List(ctx context.Context, resourceGroupName string, circuitName string) (result network.ExpressRouteCircuitPeeringListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, circuitName string) (result network.ExpressRouteCircuitPeeringListResultIterator, err error)
}
var _ ExpressRouteCircuitPeeringsClientAPI = (*network.ExpressRouteCircuitPeeringsClient)(nil)
@@ -94,7 +102,9 @@ type ExpressRouteCircuitsClientAPI interface {
GetPeeringStats(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.ExpressRouteCircuitStats, err error)
GetStats(ctx context.Context, resourceGroupName string, circuitName string) (result network.ExpressRouteCircuitStats, err error)
List(ctx context.Context, resourceGroupName string) (result network.ExpressRouteCircuitListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.ExpressRouteCircuitListResultIterator, err error)
ListAll(ctx context.Context) (result network.ExpressRouteCircuitListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.ExpressRouteCircuitListResultIterator, err error)
ListArpTable(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, devicePath string) (result network.ExpressRouteCircuitsListArpTableFuture, err error)
ListRoutesTable(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, devicePath string) (result network.ExpressRouteCircuitsListRoutesTableFuture, err error)
ListRoutesTableSummary(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, devicePath string) (result network.ExpressRouteCircuitsListRoutesTableSummaryFuture, err error)
@@ -106,6 +116,7 @@ var _ ExpressRouteCircuitsClientAPI = (*network.ExpressRouteCircuitsClient)(nil)
// ExpressRouteServiceProvidersClientAPI contains the set of methods on the ExpressRouteServiceProvidersClient type.
type ExpressRouteServiceProvidersClientAPI interface {
List(ctx context.Context) (result network.ExpressRouteServiceProviderListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ExpressRouteServiceProviderListResultIterator, err error)
}
var _ ExpressRouteServiceProvidersClientAPI = (*network.ExpressRouteServiceProvidersClient)(nil)
@@ -116,7 +127,9 @@ type LoadBalancersClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancersDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, expand string) (result network.LoadBalancer, err error)
List(ctx context.Context, resourceGroupName string) (result network.LoadBalancerListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.LoadBalancerListResultIterator, err error)
ListAll(ctx context.Context) (result network.LoadBalancerListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.LoadBalancerListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, loadBalancerName string, parameters network.TagsObject) (result network.LoadBalancersUpdateTagsFuture, err error)
}
@@ -126,6 +139,7 @@ var _ LoadBalancersClientAPI = (*network.LoadBalancersClient)(nil)
type LoadBalancerBackendAddressPoolsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, backendAddressPoolName string) (result network.BackendAddressPool, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerBackendAddressPoolListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerBackendAddressPoolListResultIterator, err error)
}
var _ LoadBalancerBackendAddressPoolsClientAPI = (*network.LoadBalancerBackendAddressPoolsClient)(nil)
@@ -134,6 +148,7 @@ var _ LoadBalancerBackendAddressPoolsClientAPI = (*network.LoadBalancerBackendAd
type LoadBalancerFrontendIPConfigurationsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, frontendIPConfigurationName string) (result network.FrontendIPConfiguration, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerFrontendIPConfigurationListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerFrontendIPConfigurationListResultIterator, err error)
}
var _ LoadBalancerFrontendIPConfigurationsClientAPI = (*network.LoadBalancerFrontendIPConfigurationsClient)(nil)
@@ -144,6 +159,7 @@ type InboundNatRulesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, loadBalancerName string, inboundNatRuleName string) (result network.InboundNatRulesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, inboundNatRuleName string, expand string) (result network.InboundNatRule, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.InboundNatRuleListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.InboundNatRuleListResultIterator, err error)
}
var _ InboundNatRulesClientAPI = (*network.InboundNatRulesClient)(nil)
@@ -152,6 +168,7 @@ var _ InboundNatRulesClientAPI = (*network.InboundNatRulesClient)(nil)
type LoadBalancerLoadBalancingRulesClientAPI interface {
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, loadBalancingRuleName string) (result network.LoadBalancingRule, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerLoadBalancingRuleListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerLoadBalancingRuleListResultIterator, err error)
}
var _ LoadBalancerLoadBalancingRulesClientAPI = (*network.LoadBalancerLoadBalancingRulesClient)(nil)
@@ -159,6 +176,7 @@ var _ LoadBalancerLoadBalancingRulesClientAPI = (*network.LoadBalancerLoadBalanc
// LoadBalancerNetworkInterfacesClientAPI contains the set of methods on the LoadBalancerNetworkInterfacesClient type.
type LoadBalancerNetworkInterfacesClientAPI interface {
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.InterfaceListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.InterfaceListResultIterator, err error)
}
var _ LoadBalancerNetworkInterfacesClientAPI = (*network.LoadBalancerNetworkInterfacesClient)(nil)
@@ -167,6 +185,7 @@ var _ LoadBalancerNetworkInterfacesClientAPI = (*network.LoadBalancerNetworkInte
type LoadBalancerProbesClientAPI interface {
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, probeName string) (result network.Probe, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerProbeListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerProbeListResultIterator, err error)
}
var _ LoadBalancerProbesClientAPI = (*network.LoadBalancerProbesClient)(nil)
@@ -180,11 +199,16 @@ type InterfacesClientAPI interface {
GetVirtualMachineScaleSetIPConfiguration(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, IPConfigurationName string, expand string) (result network.InterfaceIPConfiguration, err error)
GetVirtualMachineScaleSetNetworkInterface(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, expand string) (result network.Interface, err error)
List(ctx context.Context, resourceGroupName string) (result network.InterfaceListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.InterfaceListResultIterator, err error)
ListAll(ctx context.Context) (result network.InterfaceListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.InterfaceListResultIterator, err error)
ListEffectiveNetworkSecurityGroups(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfacesListEffectiveNetworkSecurityGroupsFuture, err error)
ListVirtualMachineScaleSetIPConfigurations(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, expand string) (result network.InterfaceIPConfigurationListResultPage, err error)
+ ListVirtualMachineScaleSetIPConfigurationsComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, expand string) (result network.InterfaceIPConfigurationListResultIterator, err error)
ListVirtualMachineScaleSetNetworkInterfaces(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result network.InterfaceListResultPage, err error)
+ ListVirtualMachineScaleSetNetworkInterfacesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result network.InterfaceListResultIterator, err error)
ListVirtualMachineScaleSetVMNetworkInterfaces(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string) (result network.InterfaceListResultPage, err error)
+ ListVirtualMachineScaleSetVMNetworkInterfacesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string) (result network.InterfaceListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, networkInterfaceName string, parameters network.TagsObject) (result network.InterfacesUpdateTagsFuture, err error)
}
@@ -194,6 +218,7 @@ var _ InterfacesClientAPI = (*network.InterfacesClient)(nil)
type InterfaceIPConfigurationsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, networkInterfaceName string, IPConfigurationName string) (result network.InterfaceIPConfiguration, err error)
List(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceIPConfigurationListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceIPConfigurationListResultIterator, err error)
}
var _ InterfaceIPConfigurationsClientAPI = (*network.InterfaceIPConfigurationsClient)(nil)
@@ -201,6 +226,7 @@ var _ InterfaceIPConfigurationsClientAPI = (*network.InterfaceIPConfigurationsCl
// InterfaceLoadBalancersClientAPI contains the set of methods on the InterfaceLoadBalancersClient type.
type InterfaceLoadBalancersClientAPI interface {
List(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceLoadBalancerListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceLoadBalancerListResultIterator, err error)
}
var _ InterfaceLoadBalancersClientAPI = (*network.InterfaceLoadBalancersClient)(nil)
@@ -211,7 +237,9 @@ type SecurityGroupsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityGroupsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, expand string) (result network.SecurityGroup, err error)
List(ctx context.Context, resourceGroupName string) (result network.SecurityGroupListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.SecurityGroupListResultIterator, err error)
ListAll(ctx context.Context) (result network.SecurityGroupListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.SecurityGroupListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, parameters network.TagsObject) (result network.SecurityGroupsUpdateTagsFuture, err error)
}
@@ -223,6 +251,7 @@ type SecurityRulesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, securityRuleName string) (result network.SecurityRulesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, securityRuleName string) (result network.SecurityRule, err error)
List(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityRuleListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityRuleListResultIterator, err error)
}
var _ SecurityRulesClientAPI = (*network.SecurityRulesClient)(nil)
@@ -231,6 +260,7 @@ var _ SecurityRulesClientAPI = (*network.SecurityRulesClient)(nil)
type DefaultSecurityRulesClientAPI interface {
Get(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, defaultSecurityRuleName string) (result network.SecurityRule, err error)
List(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityRuleListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityRuleListResultIterator, err error)
}
var _ DefaultSecurityRulesClientAPI = (*network.DefaultSecurityRulesClient)(nil)
@@ -273,6 +303,7 @@ var _ PacketCapturesClientAPI = (*network.PacketCapturesClient)(nil)
// OperationsClientAPI contains the set of methods on the OperationsClient type.
type OperationsClientAPI interface {
List(ctx context.Context) (result network.OperationListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.OperationListResultIterator, err error)
}
var _ OperationsClientAPI = (*network.OperationsClient)(nil)
@@ -284,9 +315,13 @@ type PublicIPAddressesClientAPI interface {
Get(ctx context.Context, resourceGroupName string, publicIPAddressName string, expand string) (result network.PublicIPAddress, err error)
GetVirtualMachineScaleSetPublicIPAddress(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, IPConfigurationName string, publicIPAddressName string, expand string) (result network.PublicIPAddress, err error)
List(ctx context.Context, resourceGroupName string) (result network.PublicIPAddressListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.PublicIPAddressListResultIterator, err error)
ListAll(ctx context.Context) (result network.PublicIPAddressListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.PublicIPAddressListResultIterator, err error)
ListVirtualMachineScaleSetPublicIPAddresses(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result network.PublicIPAddressListResultPage, err error)
+ ListVirtualMachineScaleSetPublicIPAddressesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result network.PublicIPAddressListResultIterator, err error)
ListVirtualMachineScaleSetVMPublicIPAddresses(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, IPConfigurationName string) (result network.PublicIPAddressListResultPage, err error)
+ ListVirtualMachineScaleSetVMPublicIPAddressesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, IPConfigurationName string) (result network.PublicIPAddressListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, publicIPAddressName string, parameters network.TagsObject) (result network.PublicIPAddressesUpdateTagsFuture, err error)
}
@@ -298,7 +333,9 @@ type RouteFiltersClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, routeFilterName string) (result network.RouteFiltersDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, routeFilterName string, expand string) (result network.RouteFilter, err error)
List(ctx context.Context) (result network.RouteFilterListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.RouteFilterListResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.RouteFilterListResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.RouteFilterListResultIterator, err error)
Update(ctx context.Context, resourceGroupName string, routeFilterName string, routeFilterParameters network.PatchRouteFilter) (result network.RouteFiltersUpdateFuture, err error)
}
@@ -310,6 +347,7 @@ type RouteFilterRulesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, routeFilterName string, ruleName string) (result network.RouteFilterRulesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, routeFilterName string, ruleName string) (result network.RouteFilterRule, err error)
ListByRouteFilter(ctx context.Context, resourceGroupName string, routeFilterName string) (result network.RouteFilterRuleListResultPage, err error)
+ ListByRouteFilterComplete(ctx context.Context, resourceGroupName string, routeFilterName string) (result network.RouteFilterRuleListResultIterator, err error)
Update(ctx context.Context, resourceGroupName string, routeFilterName string, ruleName string, routeFilterRuleParameters network.PatchRouteFilterRule) (result network.RouteFilterRulesUpdateFuture, err error)
}
@@ -321,7 +359,9 @@ type RouteTablesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, routeTableName string) (result network.RouteTablesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, routeTableName string, expand string) (result network.RouteTable, err error)
List(ctx context.Context, resourceGroupName string) (result network.RouteTableListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.RouteTableListResultIterator, err error)
ListAll(ctx context.Context) (result network.RouteTableListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.RouteTableListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, routeTableName string, parameters network.TagsObject) (result network.RouteTablesUpdateTagsFuture, err error)
}
@@ -333,6 +373,7 @@ type RoutesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, routeTableName string, routeName string) (result network.RoutesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, routeTableName string, routeName string) (result network.Route, err error)
List(ctx context.Context, resourceGroupName string, routeTableName string) (result network.RouteListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, routeTableName string) (result network.RouteListResultIterator, err error)
}
var _ RoutesClientAPI = (*network.RoutesClient)(nil)
@@ -340,6 +381,7 @@ var _ RoutesClientAPI = (*network.RoutesClient)(nil)
// BgpServiceCommunitiesClientAPI contains the set of methods on the BgpServiceCommunitiesClient type.
type BgpServiceCommunitiesClientAPI interface {
List(ctx context.Context) (result network.BgpServiceCommunityListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.BgpServiceCommunityListResultIterator, err error)
}
var _ BgpServiceCommunitiesClientAPI = (*network.BgpServiceCommunitiesClient)(nil)
@@ -347,6 +389,7 @@ var _ BgpServiceCommunitiesClientAPI = (*network.BgpServiceCommunitiesClient)(ni
// UsagesClientAPI contains the set of methods on the UsagesClient type.
type UsagesClientAPI interface {
List(ctx context.Context, location string) (result network.UsagesListResultPage, err error)
+ ListComplete(ctx context.Context, location string) (result network.UsagesListResultIterator, err error)
}
var _ UsagesClientAPI = (*network.UsagesClient)(nil)
@@ -358,8 +401,11 @@ type VirtualNetworksClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworksDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualNetworkName string, expand string) (result network.VirtualNetwork, err error)
List(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkListResultIterator, err error)
ListAll(ctx context.Context) (result network.VirtualNetworkListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.VirtualNetworkListResultIterator, err error)
ListUsage(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworkListUsageResultPage, err error)
+ ListUsageComplete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworkListUsageResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, virtualNetworkName string, parameters network.TagsObject) (result network.VirtualNetworksUpdateTagsFuture, err error)
}
@@ -371,6 +417,7 @@ type SubnetsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualNetworkName string, subnetName string) (result network.SubnetsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualNetworkName string, subnetName string, expand string) (result network.Subnet, err error)
List(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.SubnetListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.SubnetListResultIterator, err error)
}
var _ SubnetsClientAPI = (*network.SubnetsClient)(nil)
@@ -381,6 +428,7 @@ type VirtualNetworkPeeringsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualNetworkName string, virtualNetworkPeeringName string) (result network.VirtualNetworkPeeringsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualNetworkName string, virtualNetworkPeeringName string) (result network.VirtualNetworkPeering, err error)
List(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworkPeeringListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworkPeeringListResultIterator, err error)
}
var _ VirtualNetworkPeeringsClientAPI = (*network.VirtualNetworkPeeringsClient)(nil)
@@ -397,7 +445,9 @@ type VirtualNetworkGatewaysClientAPI interface {
GetLearnedRoutes(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGatewaysGetLearnedRoutesFuture, err error)
GetVpnProfilePackageURL(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGatewaysGetVpnProfilePackageURLFuture, err error)
List(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayListResultIterator, err error)
ListConnections(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGatewayListConnectionsResultPage, err error)
+ ListConnectionsComplete(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGatewayListConnectionsResultIterator, err error)
Reset(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, gatewayVip string) (result network.VirtualNetworkGatewaysResetFuture, err error)
SupportedVpnDevices(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.String, err error)
UpdateTags(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, parameters network.TagsObject) (result network.VirtualNetworkGatewaysUpdateTagsFuture, err error)
@@ -413,6 +463,7 @@ type VirtualNetworkGatewayConnectionsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string) (result network.VirtualNetworkGatewayConnection, err error)
GetSharedKey(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string) (result network.ConnectionSharedKey, err error)
List(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayConnectionListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayConnectionListResultIterator, err error)
ResetSharedKey(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string, parameters network.ConnectionResetSharedKey) (result network.VirtualNetworkGatewayConnectionsResetSharedKeyFuture, err error)
SetSharedKey(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string, parameters network.ConnectionSharedKey) (result network.VirtualNetworkGatewayConnectionsSetSharedKeyFuture, err error)
UpdateTags(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string, parameters network.TagsObject) (result network.VirtualNetworkGatewayConnectionsUpdateTagsFuture, err error)
@@ -426,6 +477,7 @@ type LocalNetworkGatewaysClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, localNetworkGatewayName string) (result network.LocalNetworkGatewaysDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, localNetworkGatewayName string) (result network.LocalNetworkGateway, err error)
List(ctx context.Context, resourceGroupName string) (result network.LocalNetworkGatewayListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.LocalNetworkGatewayListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, localNetworkGatewayName string, parameters network.TagsObject) (result network.LocalNetworkGatewaysUpdateTagsFuture, err error)
}
diff --git a/services/network/mgmt/2017-09-01/network/operations.go b/services/network/mgmt/2017-09-01/network/operations.go
index 5b69a5082607..fc810f8827c7 100644
--- a/services/network/mgmt/2017-09-01/network/operations.go
+++ b/services/network/mgmt/2017-09-01/network/operations.go
@@ -35,7 +35,8 @@ func NewOperationsClient(subscriptionID string) OperationsClient {
return NewOperationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewOperationsClientWithBaseURI creates an instance of the OperationsClient client.
+// NewOperationsClientWithBaseURI creates an instance of the OperationsClient client using a custom endpoint. Use this
+// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient {
return OperationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-09-01/network/packetcaptures.go b/services/network/mgmt/2017-09-01/network/packetcaptures.go
index 6c334af100b3..9932fd0233b5 100644
--- a/services/network/mgmt/2017-09-01/network/packetcaptures.go
+++ b/services/network/mgmt/2017-09-01/network/packetcaptures.go
@@ -36,7 +36,8 @@ func NewPacketCapturesClient(subscriptionID string) PacketCapturesClient {
return NewPacketCapturesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewPacketCapturesClientWithBaseURI creates an instance of the PacketCapturesClient client.
+// NewPacketCapturesClientWithBaseURI creates an instance of the PacketCapturesClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewPacketCapturesClientWithBaseURI(baseURI string, subscriptionID string) PacketCapturesClient {
return PacketCapturesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-09-01/network/publicipaddresses.go b/services/network/mgmt/2017-09-01/network/publicipaddresses.go
index a9684e69689e..9821079a7d9f 100644
--- a/services/network/mgmt/2017-09-01/network/publicipaddresses.go
+++ b/services/network/mgmt/2017-09-01/network/publicipaddresses.go
@@ -36,7 +36,9 @@ func NewPublicIPAddressesClient(subscriptionID string) PublicIPAddressesClient {
return NewPublicIPAddressesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewPublicIPAddressesClientWithBaseURI creates an instance of the PublicIPAddressesClient client.
+// NewPublicIPAddressesClientWithBaseURI creates an instance of the PublicIPAddressesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewPublicIPAddressesClientWithBaseURI(baseURI string, subscriptionID string) PublicIPAddressesClient {
return PublicIPAddressesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-09-01/network/routefilterrules.go b/services/network/mgmt/2017-09-01/network/routefilterrules.go
index e3ee15d0302a..c91a87aad942 100644
--- a/services/network/mgmt/2017-09-01/network/routefilterrules.go
+++ b/services/network/mgmt/2017-09-01/network/routefilterrules.go
@@ -36,7 +36,9 @@ func NewRouteFilterRulesClient(subscriptionID string) RouteFilterRulesClient {
return NewRouteFilterRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewRouteFilterRulesClientWithBaseURI creates an instance of the RouteFilterRulesClient client.
+// NewRouteFilterRulesClientWithBaseURI creates an instance of the RouteFilterRulesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewRouteFilterRulesClientWithBaseURI(baseURI string, subscriptionID string) RouteFilterRulesClient {
return RouteFilterRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-09-01/network/routefilters.go b/services/network/mgmt/2017-09-01/network/routefilters.go
index 56d3684f3652..995232cc813b 100644
--- a/services/network/mgmt/2017-09-01/network/routefilters.go
+++ b/services/network/mgmt/2017-09-01/network/routefilters.go
@@ -35,7 +35,8 @@ func NewRouteFiltersClient(subscriptionID string) RouteFiltersClient {
return NewRouteFiltersClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewRouteFiltersClientWithBaseURI creates an instance of the RouteFiltersClient client.
+// NewRouteFiltersClientWithBaseURI creates an instance of the RouteFiltersClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewRouteFiltersClientWithBaseURI(baseURI string, subscriptionID string) RouteFiltersClient {
return RouteFiltersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-09-01/network/routes.go b/services/network/mgmt/2017-09-01/network/routes.go
index 6c269672cd6a..a7d4dc9681d7 100644
--- a/services/network/mgmt/2017-09-01/network/routes.go
+++ b/services/network/mgmt/2017-09-01/network/routes.go
@@ -35,7 +35,8 @@ func NewRoutesClient(subscriptionID string) RoutesClient {
return NewRoutesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewRoutesClientWithBaseURI creates an instance of the RoutesClient client.
+// NewRoutesClientWithBaseURI creates an instance of the RoutesClient client using a custom endpoint. Use this when
+// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewRoutesClientWithBaseURI(baseURI string, subscriptionID string) RoutesClient {
return RoutesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-09-01/network/routetables.go b/services/network/mgmt/2017-09-01/network/routetables.go
index cbf45fbd3b2b..fbf4243cdb1e 100644
--- a/services/network/mgmt/2017-09-01/network/routetables.go
+++ b/services/network/mgmt/2017-09-01/network/routetables.go
@@ -35,7 +35,8 @@ func NewRouteTablesClient(subscriptionID string) RouteTablesClient {
return NewRouteTablesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewRouteTablesClientWithBaseURI creates an instance of the RouteTablesClient client.
+// NewRouteTablesClientWithBaseURI creates an instance of the RouteTablesClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewRouteTablesClientWithBaseURI(baseURI string, subscriptionID string) RouteTablesClient {
return RouteTablesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-09-01/network/securitygroups.go b/services/network/mgmt/2017-09-01/network/securitygroups.go
index 9e243986c1c4..2d34fb618576 100644
--- a/services/network/mgmt/2017-09-01/network/securitygroups.go
+++ b/services/network/mgmt/2017-09-01/network/securitygroups.go
@@ -35,7 +35,8 @@ func NewSecurityGroupsClient(subscriptionID string) SecurityGroupsClient {
return NewSecurityGroupsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewSecurityGroupsClientWithBaseURI creates an instance of the SecurityGroupsClient client.
+// NewSecurityGroupsClientWithBaseURI creates an instance of the SecurityGroupsClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewSecurityGroupsClientWithBaseURI(baseURI string, subscriptionID string) SecurityGroupsClient {
return SecurityGroupsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-09-01/network/securityrules.go b/services/network/mgmt/2017-09-01/network/securityrules.go
index ea1cf54927cf..faf3f9e75bb2 100644
--- a/services/network/mgmt/2017-09-01/network/securityrules.go
+++ b/services/network/mgmt/2017-09-01/network/securityrules.go
@@ -35,7 +35,8 @@ func NewSecurityRulesClient(subscriptionID string) SecurityRulesClient {
return NewSecurityRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewSecurityRulesClientWithBaseURI creates an instance of the SecurityRulesClient client.
+// NewSecurityRulesClientWithBaseURI creates an instance of the SecurityRulesClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewSecurityRulesClientWithBaseURI(baseURI string, subscriptionID string) SecurityRulesClient {
return SecurityRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-09-01/network/subnets.go b/services/network/mgmt/2017-09-01/network/subnets.go
index cd83c1241961..1fdd85fcc3a8 100644
--- a/services/network/mgmt/2017-09-01/network/subnets.go
+++ b/services/network/mgmt/2017-09-01/network/subnets.go
@@ -35,7 +35,8 @@ func NewSubnetsClient(subscriptionID string) SubnetsClient {
return NewSubnetsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewSubnetsClientWithBaseURI creates an instance of the SubnetsClient client.
+// NewSubnetsClientWithBaseURI creates an instance of the SubnetsClient client using a custom endpoint. Use this when
+// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewSubnetsClientWithBaseURI(baseURI string, subscriptionID string) SubnetsClient {
return SubnetsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-09-01/network/usages.go b/services/network/mgmt/2017-09-01/network/usages.go
index b1862e8fc679..c6e78ba6ba6f 100644
--- a/services/network/mgmt/2017-09-01/network/usages.go
+++ b/services/network/mgmt/2017-09-01/network/usages.go
@@ -36,7 +36,8 @@ func NewUsagesClient(subscriptionID string) UsagesClient {
return NewUsagesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewUsagesClientWithBaseURI creates an instance of the UsagesClient client.
+// NewUsagesClientWithBaseURI creates an instance of the UsagesClient client using a custom endpoint. Use this when
+// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewUsagesClientWithBaseURI(baseURI string, subscriptionID string) UsagesClient {
return UsagesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-09-01/network/virtualnetworkgatewayconnections.go b/services/network/mgmt/2017-09-01/network/virtualnetworkgatewayconnections.go
index 95f70354b9af..693bebe29010 100644
--- a/services/network/mgmt/2017-09-01/network/virtualnetworkgatewayconnections.go
+++ b/services/network/mgmt/2017-09-01/network/virtualnetworkgatewayconnections.go
@@ -37,7 +37,8 @@ func NewVirtualNetworkGatewayConnectionsClient(subscriptionID string) VirtualNet
}
// NewVirtualNetworkGatewayConnectionsClientWithBaseURI creates an instance of the
-// VirtualNetworkGatewayConnectionsClient client.
+// VirtualNetworkGatewayConnectionsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVirtualNetworkGatewayConnectionsClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworkGatewayConnectionsClient {
return VirtualNetworkGatewayConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-09-01/network/virtualnetworkgateways.go b/services/network/mgmt/2017-09-01/network/virtualnetworkgateways.go
index 0f75fec9e244..feb3cbc328ce 100644
--- a/services/network/mgmt/2017-09-01/network/virtualnetworkgateways.go
+++ b/services/network/mgmt/2017-09-01/network/virtualnetworkgateways.go
@@ -36,7 +36,9 @@ func NewVirtualNetworkGatewaysClient(subscriptionID string) VirtualNetworkGatewa
return NewVirtualNetworkGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualNetworkGatewaysClientWithBaseURI creates an instance of the VirtualNetworkGatewaysClient client.
+// NewVirtualNetworkGatewaysClientWithBaseURI creates an instance of the VirtualNetworkGatewaysClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewVirtualNetworkGatewaysClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworkGatewaysClient {
return VirtualNetworkGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-09-01/network/virtualnetworkpeerings.go b/services/network/mgmt/2017-09-01/network/virtualnetworkpeerings.go
index 6f1a45a006c1..5697f07dbf10 100644
--- a/services/network/mgmt/2017-09-01/network/virtualnetworkpeerings.go
+++ b/services/network/mgmt/2017-09-01/network/virtualnetworkpeerings.go
@@ -35,7 +35,9 @@ func NewVirtualNetworkPeeringsClient(subscriptionID string) VirtualNetworkPeerin
return NewVirtualNetworkPeeringsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualNetworkPeeringsClientWithBaseURI creates an instance of the VirtualNetworkPeeringsClient client.
+// NewVirtualNetworkPeeringsClientWithBaseURI creates an instance of the VirtualNetworkPeeringsClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewVirtualNetworkPeeringsClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworkPeeringsClient {
return VirtualNetworkPeeringsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-09-01/network/virtualnetworks.go b/services/network/mgmt/2017-09-01/network/virtualnetworks.go
index 384a5f59b329..714f23201eeb 100644
--- a/services/network/mgmt/2017-09-01/network/virtualnetworks.go
+++ b/services/network/mgmt/2017-09-01/network/virtualnetworks.go
@@ -35,7 +35,8 @@ func NewVirtualNetworksClient(subscriptionID string) VirtualNetworksClient {
return NewVirtualNetworksClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualNetworksClientWithBaseURI creates an instance of the VirtualNetworksClient client.
+// NewVirtualNetworksClientWithBaseURI creates an instance of the VirtualNetworksClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVirtualNetworksClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworksClient {
return VirtualNetworksClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-09-01/network/watchers.go b/services/network/mgmt/2017-09-01/network/watchers.go
index 7a2ffecde003..23b039a45239 100644
--- a/services/network/mgmt/2017-09-01/network/watchers.go
+++ b/services/network/mgmt/2017-09-01/network/watchers.go
@@ -36,7 +36,8 @@ func NewWatchersClient(subscriptionID string) WatchersClient {
return NewWatchersClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewWatchersClientWithBaseURI creates an instance of the WatchersClient client.
+// NewWatchersClientWithBaseURI creates an instance of the WatchersClient client using a custom endpoint. Use this
+// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewWatchersClientWithBaseURI(baseURI string, subscriptionID string) WatchersClient {
return WatchersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-10-01/network/applicationgateways.go b/services/network/mgmt/2017-10-01/network/applicationgateways.go
index 4d2f51f000b5..314ce2c0f3b7 100644
--- a/services/network/mgmt/2017-10-01/network/applicationgateways.go
+++ b/services/network/mgmt/2017-10-01/network/applicationgateways.go
@@ -36,7 +36,9 @@ func NewApplicationGatewaysClient(subscriptionID string) ApplicationGatewaysClie
return NewApplicationGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewApplicationGatewaysClientWithBaseURI creates an instance of the ApplicationGatewaysClient client.
+// NewApplicationGatewaysClientWithBaseURI creates an instance of the ApplicationGatewaysClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewApplicationGatewaysClientWithBaseURI(baseURI string, subscriptionID string) ApplicationGatewaysClient {
return ApplicationGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-10-01/network/applicationsecuritygroups.go b/services/network/mgmt/2017-10-01/network/applicationsecuritygroups.go
index 0dad204e0fc3..2931dd9bad6a 100644
--- a/services/network/mgmt/2017-10-01/network/applicationsecuritygroups.go
+++ b/services/network/mgmt/2017-10-01/network/applicationsecuritygroups.go
@@ -35,7 +35,9 @@ func NewApplicationSecurityGroupsClient(subscriptionID string) ApplicationSecuri
return NewApplicationSecurityGroupsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewApplicationSecurityGroupsClientWithBaseURI creates an instance of the ApplicationSecurityGroupsClient client.
+// NewApplicationSecurityGroupsClientWithBaseURI creates an instance of the ApplicationSecurityGroupsClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewApplicationSecurityGroupsClientWithBaseURI(baseURI string, subscriptionID string) ApplicationSecurityGroupsClient {
return ApplicationSecurityGroupsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-10-01/network/availableendpointservices.go b/services/network/mgmt/2017-10-01/network/availableendpointservices.go
index 39a81bffc866..a3eac80e8125 100644
--- a/services/network/mgmt/2017-10-01/network/availableendpointservices.go
+++ b/services/network/mgmt/2017-10-01/network/availableendpointservices.go
@@ -35,7 +35,9 @@ func NewAvailableEndpointServicesClient(subscriptionID string) AvailableEndpoint
return NewAvailableEndpointServicesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewAvailableEndpointServicesClientWithBaseURI creates an instance of the AvailableEndpointServicesClient client.
+// NewAvailableEndpointServicesClientWithBaseURI creates an instance of the AvailableEndpointServicesClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewAvailableEndpointServicesClientWithBaseURI(baseURI string, subscriptionID string) AvailableEndpointServicesClient {
return AvailableEndpointServicesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-10-01/network/bgpservicecommunities.go b/services/network/mgmt/2017-10-01/network/bgpservicecommunities.go
index 37a7b7ba5750..add57ee450f1 100644
--- a/services/network/mgmt/2017-10-01/network/bgpservicecommunities.go
+++ b/services/network/mgmt/2017-10-01/network/bgpservicecommunities.go
@@ -35,7 +35,9 @@ func NewBgpServiceCommunitiesClient(subscriptionID string) BgpServiceCommunities
return NewBgpServiceCommunitiesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewBgpServiceCommunitiesClientWithBaseURI creates an instance of the BgpServiceCommunitiesClient client.
+// NewBgpServiceCommunitiesClientWithBaseURI creates an instance of the BgpServiceCommunitiesClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewBgpServiceCommunitiesClientWithBaseURI(baseURI string, subscriptionID string) BgpServiceCommunitiesClient {
return BgpServiceCommunitiesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-10-01/network/client.go b/services/network/mgmt/2017-10-01/network/client.go
index ea006873b7d2..8cfa80e83703 100644
--- a/services/network/mgmt/2017-10-01/network/client.go
+++ b/services/network/mgmt/2017-10-01/network/client.go
@@ -45,7 +45,8 @@ func New(subscriptionID string) BaseClient {
return NewWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewWithBaseURI creates an instance of the BaseClient client.
+// NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with
+// an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient {
return BaseClient{
Client: autorest.NewClientWithUserAgent(UserAgent()),
diff --git a/services/network/mgmt/2017-10-01/network/connectionmonitors.go b/services/network/mgmt/2017-10-01/network/connectionmonitors.go
index 89366cde5711..3e7bdf7faa1d 100644
--- a/services/network/mgmt/2017-10-01/network/connectionmonitors.go
+++ b/services/network/mgmt/2017-10-01/network/connectionmonitors.go
@@ -36,7 +36,9 @@ func NewConnectionMonitorsClient(subscriptionID string) ConnectionMonitorsClient
return NewConnectionMonitorsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewConnectionMonitorsClientWithBaseURI creates an instance of the ConnectionMonitorsClient client.
+// NewConnectionMonitorsClientWithBaseURI creates an instance of the ConnectionMonitorsClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewConnectionMonitorsClientWithBaseURI(baseURI string, subscriptionID string) ConnectionMonitorsClient {
return ConnectionMonitorsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-10-01/network/defaultsecurityrules.go b/services/network/mgmt/2017-10-01/network/defaultsecurityrules.go
index 9b72cbaa6736..e81f717dad8e 100644
--- a/services/network/mgmt/2017-10-01/network/defaultsecurityrules.go
+++ b/services/network/mgmt/2017-10-01/network/defaultsecurityrules.go
@@ -35,7 +35,9 @@ func NewDefaultSecurityRulesClient(subscriptionID string) DefaultSecurityRulesCl
return NewDefaultSecurityRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewDefaultSecurityRulesClientWithBaseURI creates an instance of the DefaultSecurityRulesClient client.
+// NewDefaultSecurityRulesClientWithBaseURI creates an instance of the DefaultSecurityRulesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewDefaultSecurityRulesClientWithBaseURI(baseURI string, subscriptionID string) DefaultSecurityRulesClient {
return DefaultSecurityRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-10-01/network/expressroutecircuitauthorizations.go b/services/network/mgmt/2017-10-01/network/expressroutecircuitauthorizations.go
index 96623ecc8217..066e32fc6c49 100644
--- a/services/network/mgmt/2017-10-01/network/expressroutecircuitauthorizations.go
+++ b/services/network/mgmt/2017-10-01/network/expressroutecircuitauthorizations.go
@@ -37,7 +37,8 @@ func NewExpressRouteCircuitAuthorizationsClient(subscriptionID string) ExpressRo
}
// NewExpressRouteCircuitAuthorizationsClientWithBaseURI creates an instance of the
-// ExpressRouteCircuitAuthorizationsClient client.
+// ExpressRouteCircuitAuthorizationsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewExpressRouteCircuitAuthorizationsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCircuitAuthorizationsClient {
return ExpressRouteCircuitAuthorizationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-10-01/network/expressroutecircuitpeerings.go b/services/network/mgmt/2017-10-01/network/expressroutecircuitpeerings.go
index 21468c98c1b4..2b55ef87460e 100644
--- a/services/network/mgmt/2017-10-01/network/expressroutecircuitpeerings.go
+++ b/services/network/mgmt/2017-10-01/network/expressroutecircuitpeerings.go
@@ -36,7 +36,9 @@ func NewExpressRouteCircuitPeeringsClient(subscriptionID string) ExpressRouteCir
return NewExpressRouteCircuitPeeringsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewExpressRouteCircuitPeeringsClientWithBaseURI creates an instance of the ExpressRouteCircuitPeeringsClient client.
+// NewExpressRouteCircuitPeeringsClientWithBaseURI creates an instance of the ExpressRouteCircuitPeeringsClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewExpressRouteCircuitPeeringsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCircuitPeeringsClient {
return ExpressRouteCircuitPeeringsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-10-01/network/expressroutecircuits.go b/services/network/mgmt/2017-10-01/network/expressroutecircuits.go
index 986bb0da74d4..f0970930a500 100644
--- a/services/network/mgmt/2017-10-01/network/expressroutecircuits.go
+++ b/services/network/mgmt/2017-10-01/network/expressroutecircuits.go
@@ -35,7 +35,9 @@ func NewExpressRouteCircuitsClient(subscriptionID string) ExpressRouteCircuitsCl
return NewExpressRouteCircuitsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewExpressRouteCircuitsClientWithBaseURI creates an instance of the ExpressRouteCircuitsClient client.
+// NewExpressRouteCircuitsClientWithBaseURI creates an instance of the ExpressRouteCircuitsClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewExpressRouteCircuitsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCircuitsClient {
return ExpressRouteCircuitsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-10-01/network/expressrouteserviceproviders.go b/services/network/mgmt/2017-10-01/network/expressrouteserviceproviders.go
index d91b18fe874a..cc0a8fbe512a 100644
--- a/services/network/mgmt/2017-10-01/network/expressrouteserviceproviders.go
+++ b/services/network/mgmt/2017-10-01/network/expressrouteserviceproviders.go
@@ -36,7 +36,8 @@ func NewExpressRouteServiceProvidersClient(subscriptionID string) ExpressRouteSe
}
// NewExpressRouteServiceProvidersClientWithBaseURI creates an instance of the ExpressRouteServiceProvidersClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewExpressRouteServiceProvidersClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteServiceProvidersClient {
return ExpressRouteServiceProvidersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-10-01/network/inboundnatrules.go b/services/network/mgmt/2017-10-01/network/inboundnatrules.go
index 41b70a26d73f..62d4866f9bef 100644
--- a/services/network/mgmt/2017-10-01/network/inboundnatrules.go
+++ b/services/network/mgmt/2017-10-01/network/inboundnatrules.go
@@ -36,7 +36,8 @@ func NewInboundNatRulesClient(subscriptionID string) InboundNatRulesClient {
return NewInboundNatRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewInboundNatRulesClientWithBaseURI creates an instance of the InboundNatRulesClient client.
+// NewInboundNatRulesClientWithBaseURI creates an instance of the InboundNatRulesClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewInboundNatRulesClientWithBaseURI(baseURI string, subscriptionID string) InboundNatRulesClient {
return InboundNatRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-10-01/network/interfaceipconfigurations.go b/services/network/mgmt/2017-10-01/network/interfaceipconfigurations.go
index 52ecb524f9d9..37c0f9c879f3 100644
--- a/services/network/mgmt/2017-10-01/network/interfaceipconfigurations.go
+++ b/services/network/mgmt/2017-10-01/network/interfaceipconfigurations.go
@@ -35,7 +35,9 @@ func NewInterfaceIPConfigurationsClient(subscriptionID string) InterfaceIPConfig
return NewInterfaceIPConfigurationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewInterfaceIPConfigurationsClientWithBaseURI creates an instance of the InterfaceIPConfigurationsClient client.
+// NewInterfaceIPConfigurationsClientWithBaseURI creates an instance of the InterfaceIPConfigurationsClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewInterfaceIPConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) InterfaceIPConfigurationsClient {
return InterfaceIPConfigurationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-10-01/network/interfaceloadbalancers.go b/services/network/mgmt/2017-10-01/network/interfaceloadbalancers.go
index 9415b9bb9449..63c107aa2793 100644
--- a/services/network/mgmt/2017-10-01/network/interfaceloadbalancers.go
+++ b/services/network/mgmt/2017-10-01/network/interfaceloadbalancers.go
@@ -35,7 +35,9 @@ func NewInterfaceLoadBalancersClient(subscriptionID string) InterfaceLoadBalance
return NewInterfaceLoadBalancersClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewInterfaceLoadBalancersClientWithBaseURI creates an instance of the InterfaceLoadBalancersClient client.
+// NewInterfaceLoadBalancersClientWithBaseURI creates an instance of the InterfaceLoadBalancersClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewInterfaceLoadBalancersClientWithBaseURI(baseURI string, subscriptionID string) InterfaceLoadBalancersClient {
return InterfaceLoadBalancersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-10-01/network/interfacesgroup.go b/services/network/mgmt/2017-10-01/network/interfacesgroup.go
index 12695e899ed6..607dd616550a 100644
--- a/services/network/mgmt/2017-10-01/network/interfacesgroup.go
+++ b/services/network/mgmt/2017-10-01/network/interfacesgroup.go
@@ -35,7 +35,8 @@ func NewInterfacesClient(subscriptionID string) InterfacesClient {
return NewInterfacesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewInterfacesClientWithBaseURI creates an instance of the InterfacesClient client.
+// NewInterfacesClientWithBaseURI creates an instance of the InterfacesClient client using a custom endpoint. Use this
+// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewInterfacesClientWithBaseURI(baseURI string, subscriptionID string) InterfacesClient {
return InterfacesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-10-01/network/loadbalancerbackendaddresspools.go b/services/network/mgmt/2017-10-01/network/loadbalancerbackendaddresspools.go
index d5c162ea365b..e29ecd1c1a2d 100644
--- a/services/network/mgmt/2017-10-01/network/loadbalancerbackendaddresspools.go
+++ b/services/network/mgmt/2017-10-01/network/loadbalancerbackendaddresspools.go
@@ -36,7 +36,8 @@ func NewLoadBalancerBackendAddressPoolsClient(subscriptionID string) LoadBalance
}
// NewLoadBalancerBackendAddressPoolsClientWithBaseURI creates an instance of the LoadBalancerBackendAddressPoolsClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewLoadBalancerBackendAddressPoolsClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerBackendAddressPoolsClient {
return LoadBalancerBackendAddressPoolsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-10-01/network/loadbalancerfrontendipconfigurations.go b/services/network/mgmt/2017-10-01/network/loadbalancerfrontendipconfigurations.go
index dd4741f969bc..e3fbcdf03067 100644
--- a/services/network/mgmt/2017-10-01/network/loadbalancerfrontendipconfigurations.go
+++ b/services/network/mgmt/2017-10-01/network/loadbalancerfrontendipconfigurations.go
@@ -37,7 +37,8 @@ func NewLoadBalancerFrontendIPConfigurationsClient(subscriptionID string) LoadBa
}
// NewLoadBalancerFrontendIPConfigurationsClientWithBaseURI creates an instance of the
-// LoadBalancerFrontendIPConfigurationsClient client.
+// LoadBalancerFrontendIPConfigurationsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewLoadBalancerFrontendIPConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerFrontendIPConfigurationsClient {
return LoadBalancerFrontendIPConfigurationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-10-01/network/loadbalancerloadbalancingrules.go b/services/network/mgmt/2017-10-01/network/loadbalancerloadbalancingrules.go
index dc5cb68c0acb..865fd25b0ffe 100644
--- a/services/network/mgmt/2017-10-01/network/loadbalancerloadbalancingrules.go
+++ b/services/network/mgmt/2017-10-01/network/loadbalancerloadbalancingrules.go
@@ -36,7 +36,8 @@ func NewLoadBalancerLoadBalancingRulesClient(subscriptionID string) LoadBalancer
}
// NewLoadBalancerLoadBalancingRulesClientWithBaseURI creates an instance of the LoadBalancerLoadBalancingRulesClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewLoadBalancerLoadBalancingRulesClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerLoadBalancingRulesClient {
return LoadBalancerLoadBalancingRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-10-01/network/loadbalancernetworkinterfaces.go b/services/network/mgmt/2017-10-01/network/loadbalancernetworkinterfaces.go
index f3c306d9ceae..ff4c8b5e7424 100644
--- a/services/network/mgmt/2017-10-01/network/loadbalancernetworkinterfaces.go
+++ b/services/network/mgmt/2017-10-01/network/loadbalancernetworkinterfaces.go
@@ -36,7 +36,8 @@ func NewLoadBalancerNetworkInterfacesClient(subscriptionID string) LoadBalancerN
}
// NewLoadBalancerNetworkInterfacesClientWithBaseURI creates an instance of the LoadBalancerNetworkInterfacesClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewLoadBalancerNetworkInterfacesClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerNetworkInterfacesClient {
return LoadBalancerNetworkInterfacesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-10-01/network/loadbalancerprobes.go b/services/network/mgmt/2017-10-01/network/loadbalancerprobes.go
index b7cd5552bd0c..dd175d5c2a91 100644
--- a/services/network/mgmt/2017-10-01/network/loadbalancerprobes.go
+++ b/services/network/mgmt/2017-10-01/network/loadbalancerprobes.go
@@ -35,7 +35,9 @@ func NewLoadBalancerProbesClient(subscriptionID string) LoadBalancerProbesClient
return NewLoadBalancerProbesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewLoadBalancerProbesClientWithBaseURI creates an instance of the LoadBalancerProbesClient client.
+// NewLoadBalancerProbesClientWithBaseURI creates an instance of the LoadBalancerProbesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewLoadBalancerProbesClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerProbesClient {
return LoadBalancerProbesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-10-01/network/loadbalancers.go b/services/network/mgmt/2017-10-01/network/loadbalancers.go
index 8256010ee632..7847390ed309 100644
--- a/services/network/mgmt/2017-10-01/network/loadbalancers.go
+++ b/services/network/mgmt/2017-10-01/network/loadbalancers.go
@@ -35,7 +35,8 @@ func NewLoadBalancersClient(subscriptionID string) LoadBalancersClient {
return NewLoadBalancersClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewLoadBalancersClientWithBaseURI creates an instance of the LoadBalancersClient client.
+// NewLoadBalancersClientWithBaseURI creates an instance of the LoadBalancersClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewLoadBalancersClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancersClient {
return LoadBalancersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-10-01/network/localnetworkgateways.go b/services/network/mgmt/2017-10-01/network/localnetworkgateways.go
index 1ca2876bacb1..e8d1f344257f 100644
--- a/services/network/mgmt/2017-10-01/network/localnetworkgateways.go
+++ b/services/network/mgmt/2017-10-01/network/localnetworkgateways.go
@@ -36,7 +36,9 @@ func NewLocalNetworkGatewaysClient(subscriptionID string) LocalNetworkGatewaysCl
return NewLocalNetworkGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewLocalNetworkGatewaysClientWithBaseURI creates an instance of the LocalNetworkGatewaysClient client.
+// NewLocalNetworkGatewaysClientWithBaseURI creates an instance of the LocalNetworkGatewaysClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewLocalNetworkGatewaysClientWithBaseURI(baseURI string, subscriptionID string) LocalNetworkGatewaysClient {
return LocalNetworkGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-10-01/network/networkapi/interfaces.go b/services/network/mgmt/2017-10-01/network/networkapi/interfaces.go
index a3aae9a8e44a..7ef36c132e5a 100644
--- a/services/network/mgmt/2017-10-01/network/networkapi/interfaces.go
+++ b/services/network/mgmt/2017-10-01/network/networkapi/interfaces.go
@@ -37,9 +37,12 @@ type ApplicationGatewaysClientAPI interface {
Get(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result network.ApplicationGateway, err error)
GetSslPredefinedPolicy(ctx context.Context, predefinedPolicyName string) (result network.ApplicationGatewaySslPredefinedPolicy, err error)
List(ctx context.Context, resourceGroupName string) (result network.ApplicationGatewayListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.ApplicationGatewayListResultIterator, err error)
ListAll(ctx context.Context) (result network.ApplicationGatewayListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.ApplicationGatewayListResultIterator, err error)
ListAvailableSslOptions(ctx context.Context) (result network.ApplicationGatewayAvailableSslOptions, err error)
ListAvailableSslPredefinedPolicies(ctx context.Context) (result network.ApplicationGatewayAvailableSslPredefinedPoliciesPage, err error)
+ ListAvailableSslPredefinedPoliciesComplete(ctx context.Context) (result network.ApplicationGatewayAvailableSslPredefinedPoliciesIterator, err error)
ListAvailableWafRuleSets(ctx context.Context) (result network.ApplicationGatewayAvailableWafRuleSetsResult, err error)
Start(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result network.ApplicationGatewaysStartFuture, err error)
Stop(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result network.ApplicationGatewaysStopFuture, err error)
@@ -54,7 +57,9 @@ type ApplicationSecurityGroupsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, applicationSecurityGroupName string) (result network.ApplicationSecurityGroupsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, applicationSecurityGroupName string) (result network.ApplicationSecurityGroup, err error)
List(ctx context.Context, resourceGroupName string) (result network.ApplicationSecurityGroupListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.ApplicationSecurityGroupListResultIterator, err error)
ListAll(ctx context.Context) (result network.ApplicationSecurityGroupListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.ApplicationSecurityGroupListResultIterator, err error)
}
var _ ApplicationSecurityGroupsClientAPI = (*network.ApplicationSecurityGroupsClient)(nil)
@@ -62,6 +67,7 @@ var _ ApplicationSecurityGroupsClientAPI = (*network.ApplicationSecurityGroupsCl
// AvailableEndpointServicesClientAPI contains the set of methods on the AvailableEndpointServicesClient type.
type AvailableEndpointServicesClientAPI interface {
List(ctx context.Context, location string) (result network.EndpointServicesListResultPage, err error)
+ ListComplete(ctx context.Context, location string) (result network.EndpointServicesListResultIterator, err error)
}
var _ AvailableEndpointServicesClientAPI = (*network.AvailableEndpointServicesClient)(nil)
@@ -72,6 +78,7 @@ type ExpressRouteCircuitAuthorizationsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, circuitName string, authorizationName string) (result network.ExpressRouteCircuitAuthorizationsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, circuitName string, authorizationName string) (result network.ExpressRouteCircuitAuthorization, err error)
List(ctx context.Context, resourceGroupName string, circuitName string) (result network.AuthorizationListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, circuitName string) (result network.AuthorizationListResultIterator, err error)
}
var _ ExpressRouteCircuitAuthorizationsClientAPI = (*network.ExpressRouteCircuitAuthorizationsClient)(nil)
@@ -82,6 +89,7 @@ type ExpressRouteCircuitPeeringsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.ExpressRouteCircuitPeeringsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.ExpressRouteCircuitPeering, err error)
List(ctx context.Context, resourceGroupName string, circuitName string) (result network.ExpressRouteCircuitPeeringListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, circuitName string) (result network.ExpressRouteCircuitPeeringListResultIterator, err error)
}
var _ ExpressRouteCircuitPeeringsClientAPI = (*network.ExpressRouteCircuitPeeringsClient)(nil)
@@ -94,7 +102,9 @@ type ExpressRouteCircuitsClientAPI interface {
GetPeeringStats(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.ExpressRouteCircuitStats, err error)
GetStats(ctx context.Context, resourceGroupName string, circuitName string) (result network.ExpressRouteCircuitStats, err error)
List(ctx context.Context, resourceGroupName string) (result network.ExpressRouteCircuitListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.ExpressRouteCircuitListResultIterator, err error)
ListAll(ctx context.Context) (result network.ExpressRouteCircuitListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.ExpressRouteCircuitListResultIterator, err error)
ListArpTable(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, devicePath string) (result network.ExpressRouteCircuitsListArpTableFuture, err error)
ListRoutesTable(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, devicePath string) (result network.ExpressRouteCircuitsListRoutesTableFuture, err error)
ListRoutesTableSummary(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, devicePath string) (result network.ExpressRouteCircuitsListRoutesTableSummaryFuture, err error)
@@ -106,6 +116,7 @@ var _ ExpressRouteCircuitsClientAPI = (*network.ExpressRouteCircuitsClient)(nil)
// ExpressRouteServiceProvidersClientAPI contains the set of methods on the ExpressRouteServiceProvidersClient type.
type ExpressRouteServiceProvidersClientAPI interface {
List(ctx context.Context) (result network.ExpressRouteServiceProviderListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ExpressRouteServiceProviderListResultIterator, err error)
}
var _ ExpressRouteServiceProvidersClientAPI = (*network.ExpressRouteServiceProvidersClient)(nil)
@@ -116,7 +127,9 @@ type LoadBalancersClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancersDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, expand string) (result network.LoadBalancer, err error)
List(ctx context.Context, resourceGroupName string) (result network.LoadBalancerListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.LoadBalancerListResultIterator, err error)
ListAll(ctx context.Context) (result network.LoadBalancerListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.LoadBalancerListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, loadBalancerName string, parameters network.TagsObject) (result network.LoadBalancersUpdateTagsFuture, err error)
}
@@ -126,6 +139,7 @@ var _ LoadBalancersClientAPI = (*network.LoadBalancersClient)(nil)
type LoadBalancerBackendAddressPoolsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, backendAddressPoolName string) (result network.BackendAddressPool, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerBackendAddressPoolListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerBackendAddressPoolListResultIterator, err error)
}
var _ LoadBalancerBackendAddressPoolsClientAPI = (*network.LoadBalancerBackendAddressPoolsClient)(nil)
@@ -134,6 +148,7 @@ var _ LoadBalancerBackendAddressPoolsClientAPI = (*network.LoadBalancerBackendAd
type LoadBalancerFrontendIPConfigurationsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, frontendIPConfigurationName string) (result network.FrontendIPConfiguration, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerFrontendIPConfigurationListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerFrontendIPConfigurationListResultIterator, err error)
}
var _ LoadBalancerFrontendIPConfigurationsClientAPI = (*network.LoadBalancerFrontendIPConfigurationsClient)(nil)
@@ -144,6 +159,7 @@ type InboundNatRulesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, loadBalancerName string, inboundNatRuleName string) (result network.InboundNatRulesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, inboundNatRuleName string, expand string) (result network.InboundNatRule, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.InboundNatRuleListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.InboundNatRuleListResultIterator, err error)
}
var _ InboundNatRulesClientAPI = (*network.InboundNatRulesClient)(nil)
@@ -152,6 +168,7 @@ var _ InboundNatRulesClientAPI = (*network.InboundNatRulesClient)(nil)
type LoadBalancerLoadBalancingRulesClientAPI interface {
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, loadBalancingRuleName string) (result network.LoadBalancingRule, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerLoadBalancingRuleListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerLoadBalancingRuleListResultIterator, err error)
}
var _ LoadBalancerLoadBalancingRulesClientAPI = (*network.LoadBalancerLoadBalancingRulesClient)(nil)
@@ -159,6 +176,7 @@ var _ LoadBalancerLoadBalancingRulesClientAPI = (*network.LoadBalancerLoadBalanc
// LoadBalancerNetworkInterfacesClientAPI contains the set of methods on the LoadBalancerNetworkInterfacesClient type.
type LoadBalancerNetworkInterfacesClientAPI interface {
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.InterfaceListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.InterfaceListResultIterator, err error)
}
var _ LoadBalancerNetworkInterfacesClientAPI = (*network.LoadBalancerNetworkInterfacesClient)(nil)
@@ -167,6 +185,7 @@ var _ LoadBalancerNetworkInterfacesClientAPI = (*network.LoadBalancerNetworkInte
type LoadBalancerProbesClientAPI interface {
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, probeName string) (result network.Probe, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerProbeListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerProbeListResultIterator, err error)
}
var _ LoadBalancerProbesClientAPI = (*network.LoadBalancerProbesClient)(nil)
@@ -180,11 +199,16 @@ type InterfacesClientAPI interface {
GetVirtualMachineScaleSetIPConfiguration(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, IPConfigurationName string, expand string) (result network.InterfaceIPConfiguration, err error)
GetVirtualMachineScaleSetNetworkInterface(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, expand string) (result network.Interface, err error)
List(ctx context.Context, resourceGroupName string) (result network.InterfaceListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.InterfaceListResultIterator, err error)
ListAll(ctx context.Context) (result network.InterfaceListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.InterfaceListResultIterator, err error)
ListEffectiveNetworkSecurityGroups(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfacesListEffectiveNetworkSecurityGroupsFuture, err error)
ListVirtualMachineScaleSetIPConfigurations(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, expand string) (result network.InterfaceIPConfigurationListResultPage, err error)
+ ListVirtualMachineScaleSetIPConfigurationsComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, expand string) (result network.InterfaceIPConfigurationListResultIterator, err error)
ListVirtualMachineScaleSetNetworkInterfaces(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result network.InterfaceListResultPage, err error)
+ ListVirtualMachineScaleSetNetworkInterfacesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result network.InterfaceListResultIterator, err error)
ListVirtualMachineScaleSetVMNetworkInterfaces(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string) (result network.InterfaceListResultPage, err error)
+ ListVirtualMachineScaleSetVMNetworkInterfacesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string) (result network.InterfaceListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, networkInterfaceName string, parameters network.TagsObject) (result network.InterfacesUpdateTagsFuture, err error)
}
@@ -194,6 +218,7 @@ var _ InterfacesClientAPI = (*network.InterfacesClient)(nil)
type InterfaceIPConfigurationsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, networkInterfaceName string, IPConfigurationName string) (result network.InterfaceIPConfiguration, err error)
List(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceIPConfigurationListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceIPConfigurationListResultIterator, err error)
}
var _ InterfaceIPConfigurationsClientAPI = (*network.InterfaceIPConfigurationsClient)(nil)
@@ -201,6 +226,7 @@ var _ InterfaceIPConfigurationsClientAPI = (*network.InterfaceIPConfigurationsCl
// InterfaceLoadBalancersClientAPI contains the set of methods on the InterfaceLoadBalancersClient type.
type InterfaceLoadBalancersClientAPI interface {
List(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceLoadBalancerListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceLoadBalancerListResultIterator, err error)
}
var _ InterfaceLoadBalancersClientAPI = (*network.InterfaceLoadBalancersClient)(nil)
@@ -211,7 +237,9 @@ type SecurityGroupsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityGroupsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, expand string) (result network.SecurityGroup, err error)
List(ctx context.Context, resourceGroupName string) (result network.SecurityGroupListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.SecurityGroupListResultIterator, err error)
ListAll(ctx context.Context) (result network.SecurityGroupListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.SecurityGroupListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, parameters network.TagsObject) (result network.SecurityGroupsUpdateTagsFuture, err error)
}
@@ -223,6 +251,7 @@ type SecurityRulesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, securityRuleName string) (result network.SecurityRulesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, securityRuleName string) (result network.SecurityRule, err error)
List(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityRuleListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityRuleListResultIterator, err error)
}
var _ SecurityRulesClientAPI = (*network.SecurityRulesClient)(nil)
@@ -231,6 +260,7 @@ var _ SecurityRulesClientAPI = (*network.SecurityRulesClient)(nil)
type DefaultSecurityRulesClientAPI interface {
Get(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, defaultSecurityRuleName string) (result network.SecurityRule, err error)
List(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityRuleListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityRuleListResultIterator, err error)
}
var _ DefaultSecurityRulesClientAPI = (*network.DefaultSecurityRulesClient)(nil)
@@ -286,6 +316,7 @@ var _ ConnectionMonitorsClientAPI = (*network.ConnectionMonitorsClient)(nil)
// OperationsClientAPI contains the set of methods on the OperationsClient type.
type OperationsClientAPI interface {
List(ctx context.Context) (result network.OperationListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.OperationListResultIterator, err error)
}
var _ OperationsClientAPI = (*network.OperationsClient)(nil)
@@ -297,9 +328,13 @@ type PublicIPAddressesClientAPI interface {
Get(ctx context.Context, resourceGroupName string, publicIPAddressName string, expand string) (result network.PublicIPAddress, err error)
GetVirtualMachineScaleSetPublicIPAddress(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, IPConfigurationName string, publicIPAddressName string, expand string) (result network.PublicIPAddress, err error)
List(ctx context.Context, resourceGroupName string) (result network.PublicIPAddressListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.PublicIPAddressListResultIterator, err error)
ListAll(ctx context.Context) (result network.PublicIPAddressListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.PublicIPAddressListResultIterator, err error)
ListVirtualMachineScaleSetPublicIPAddresses(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result network.PublicIPAddressListResultPage, err error)
+ ListVirtualMachineScaleSetPublicIPAddressesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result network.PublicIPAddressListResultIterator, err error)
ListVirtualMachineScaleSetVMPublicIPAddresses(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, IPConfigurationName string) (result network.PublicIPAddressListResultPage, err error)
+ ListVirtualMachineScaleSetVMPublicIPAddressesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, IPConfigurationName string) (result network.PublicIPAddressListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, publicIPAddressName string, parameters network.TagsObject) (result network.PublicIPAddressesUpdateTagsFuture, err error)
}
@@ -311,7 +346,9 @@ type RouteFiltersClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, routeFilterName string) (result network.RouteFiltersDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, routeFilterName string, expand string) (result network.RouteFilter, err error)
List(ctx context.Context) (result network.RouteFilterListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.RouteFilterListResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.RouteFilterListResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.RouteFilterListResultIterator, err error)
Update(ctx context.Context, resourceGroupName string, routeFilterName string, routeFilterParameters network.PatchRouteFilter) (result network.RouteFiltersUpdateFuture, err error)
}
@@ -323,6 +360,7 @@ type RouteFilterRulesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, routeFilterName string, ruleName string) (result network.RouteFilterRulesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, routeFilterName string, ruleName string) (result network.RouteFilterRule, err error)
ListByRouteFilter(ctx context.Context, resourceGroupName string, routeFilterName string) (result network.RouteFilterRuleListResultPage, err error)
+ ListByRouteFilterComplete(ctx context.Context, resourceGroupName string, routeFilterName string) (result network.RouteFilterRuleListResultIterator, err error)
Update(ctx context.Context, resourceGroupName string, routeFilterName string, ruleName string, routeFilterRuleParameters network.PatchRouteFilterRule) (result network.RouteFilterRulesUpdateFuture, err error)
}
@@ -334,7 +372,9 @@ type RouteTablesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, routeTableName string) (result network.RouteTablesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, routeTableName string, expand string) (result network.RouteTable, err error)
List(ctx context.Context, resourceGroupName string) (result network.RouteTableListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.RouteTableListResultIterator, err error)
ListAll(ctx context.Context) (result network.RouteTableListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.RouteTableListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, routeTableName string, parameters network.TagsObject) (result network.RouteTablesUpdateTagsFuture, err error)
}
@@ -346,6 +386,7 @@ type RoutesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, routeTableName string, routeName string) (result network.RoutesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, routeTableName string, routeName string) (result network.Route, err error)
List(ctx context.Context, resourceGroupName string, routeTableName string) (result network.RouteListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, routeTableName string) (result network.RouteListResultIterator, err error)
}
var _ RoutesClientAPI = (*network.RoutesClient)(nil)
@@ -353,6 +394,7 @@ var _ RoutesClientAPI = (*network.RoutesClient)(nil)
// BgpServiceCommunitiesClientAPI contains the set of methods on the BgpServiceCommunitiesClient type.
type BgpServiceCommunitiesClientAPI interface {
List(ctx context.Context) (result network.BgpServiceCommunityListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.BgpServiceCommunityListResultIterator, err error)
}
var _ BgpServiceCommunitiesClientAPI = (*network.BgpServiceCommunitiesClient)(nil)
@@ -360,6 +402,7 @@ var _ BgpServiceCommunitiesClientAPI = (*network.BgpServiceCommunitiesClient)(ni
// UsagesClientAPI contains the set of methods on the UsagesClient type.
type UsagesClientAPI interface {
List(ctx context.Context, location string) (result network.UsagesListResultPage, err error)
+ ListComplete(ctx context.Context, location string) (result network.UsagesListResultIterator, err error)
}
var _ UsagesClientAPI = (*network.UsagesClient)(nil)
@@ -371,8 +414,11 @@ type VirtualNetworksClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworksDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualNetworkName string, expand string) (result network.VirtualNetwork, err error)
List(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkListResultIterator, err error)
ListAll(ctx context.Context) (result network.VirtualNetworkListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.VirtualNetworkListResultIterator, err error)
ListUsage(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworkListUsageResultPage, err error)
+ ListUsageComplete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworkListUsageResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, virtualNetworkName string, parameters network.TagsObject) (result network.VirtualNetworksUpdateTagsFuture, err error)
}
@@ -384,6 +430,7 @@ type SubnetsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualNetworkName string, subnetName string) (result network.SubnetsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualNetworkName string, subnetName string, expand string) (result network.Subnet, err error)
List(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.SubnetListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.SubnetListResultIterator, err error)
}
var _ SubnetsClientAPI = (*network.SubnetsClient)(nil)
@@ -394,6 +441,7 @@ type VirtualNetworkPeeringsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualNetworkName string, virtualNetworkPeeringName string) (result network.VirtualNetworkPeeringsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualNetworkName string, virtualNetworkPeeringName string) (result network.VirtualNetworkPeering, err error)
List(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworkPeeringListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworkPeeringListResultIterator, err error)
}
var _ VirtualNetworkPeeringsClientAPI = (*network.VirtualNetworkPeeringsClient)(nil)
@@ -410,7 +458,9 @@ type VirtualNetworkGatewaysClientAPI interface {
GetLearnedRoutes(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGatewaysGetLearnedRoutesFuture, err error)
GetVpnProfilePackageURL(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGatewaysGetVpnProfilePackageURLFuture, err error)
List(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayListResultIterator, err error)
ListConnections(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGatewayListConnectionsResultPage, err error)
+ ListConnectionsComplete(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGatewayListConnectionsResultIterator, err error)
Reset(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, gatewayVip string) (result network.VirtualNetworkGatewaysResetFuture, err error)
SupportedVpnDevices(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.String, err error)
UpdateTags(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, parameters network.TagsObject) (result network.VirtualNetworkGatewaysUpdateTagsFuture, err error)
@@ -426,6 +476,7 @@ type VirtualNetworkGatewayConnectionsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string) (result network.VirtualNetworkGatewayConnection, err error)
GetSharedKey(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string) (result network.ConnectionSharedKey, err error)
List(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayConnectionListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayConnectionListResultIterator, err error)
ResetSharedKey(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string, parameters network.ConnectionResetSharedKey) (result network.VirtualNetworkGatewayConnectionsResetSharedKeyFuture, err error)
SetSharedKey(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string, parameters network.ConnectionSharedKey) (result network.VirtualNetworkGatewayConnectionsSetSharedKeyFuture, err error)
UpdateTags(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string, parameters network.TagsObject) (result network.VirtualNetworkGatewayConnectionsUpdateTagsFuture, err error)
@@ -439,6 +490,7 @@ type LocalNetworkGatewaysClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, localNetworkGatewayName string) (result network.LocalNetworkGatewaysDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, localNetworkGatewayName string) (result network.LocalNetworkGateway, err error)
List(ctx context.Context, resourceGroupName string) (result network.LocalNetworkGatewayListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.LocalNetworkGatewayListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, localNetworkGatewayName string, parameters network.TagsObject) (result network.LocalNetworkGatewaysUpdateTagsFuture, err error)
}
diff --git a/services/network/mgmt/2017-10-01/network/operations.go b/services/network/mgmt/2017-10-01/network/operations.go
index 4afa0040be15..d3b4b07e7a18 100644
--- a/services/network/mgmt/2017-10-01/network/operations.go
+++ b/services/network/mgmt/2017-10-01/network/operations.go
@@ -35,7 +35,8 @@ func NewOperationsClient(subscriptionID string) OperationsClient {
return NewOperationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewOperationsClientWithBaseURI creates an instance of the OperationsClient client.
+// NewOperationsClientWithBaseURI creates an instance of the OperationsClient client using a custom endpoint. Use this
+// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient {
return OperationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-10-01/network/packetcaptures.go b/services/network/mgmt/2017-10-01/network/packetcaptures.go
index e6233b654852..f91e2e79a12c 100644
--- a/services/network/mgmt/2017-10-01/network/packetcaptures.go
+++ b/services/network/mgmt/2017-10-01/network/packetcaptures.go
@@ -36,7 +36,8 @@ func NewPacketCapturesClient(subscriptionID string) PacketCapturesClient {
return NewPacketCapturesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewPacketCapturesClientWithBaseURI creates an instance of the PacketCapturesClient client.
+// NewPacketCapturesClientWithBaseURI creates an instance of the PacketCapturesClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewPacketCapturesClientWithBaseURI(baseURI string, subscriptionID string) PacketCapturesClient {
return PacketCapturesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-10-01/network/publicipaddresses.go b/services/network/mgmt/2017-10-01/network/publicipaddresses.go
index 534fd875bff0..83d5ff0c0fd6 100644
--- a/services/network/mgmt/2017-10-01/network/publicipaddresses.go
+++ b/services/network/mgmt/2017-10-01/network/publicipaddresses.go
@@ -36,7 +36,9 @@ func NewPublicIPAddressesClient(subscriptionID string) PublicIPAddressesClient {
return NewPublicIPAddressesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewPublicIPAddressesClientWithBaseURI creates an instance of the PublicIPAddressesClient client.
+// NewPublicIPAddressesClientWithBaseURI creates an instance of the PublicIPAddressesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewPublicIPAddressesClientWithBaseURI(baseURI string, subscriptionID string) PublicIPAddressesClient {
return PublicIPAddressesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-10-01/network/routefilterrules.go b/services/network/mgmt/2017-10-01/network/routefilterrules.go
index 93cc950bcc26..583c9a375e24 100644
--- a/services/network/mgmt/2017-10-01/network/routefilterrules.go
+++ b/services/network/mgmt/2017-10-01/network/routefilterrules.go
@@ -36,7 +36,9 @@ func NewRouteFilterRulesClient(subscriptionID string) RouteFilterRulesClient {
return NewRouteFilterRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewRouteFilterRulesClientWithBaseURI creates an instance of the RouteFilterRulesClient client.
+// NewRouteFilterRulesClientWithBaseURI creates an instance of the RouteFilterRulesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewRouteFilterRulesClientWithBaseURI(baseURI string, subscriptionID string) RouteFilterRulesClient {
return RouteFilterRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-10-01/network/routefilters.go b/services/network/mgmt/2017-10-01/network/routefilters.go
index 1d7122f99c0c..1b726faf75a8 100644
--- a/services/network/mgmt/2017-10-01/network/routefilters.go
+++ b/services/network/mgmt/2017-10-01/network/routefilters.go
@@ -35,7 +35,8 @@ func NewRouteFiltersClient(subscriptionID string) RouteFiltersClient {
return NewRouteFiltersClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewRouteFiltersClientWithBaseURI creates an instance of the RouteFiltersClient client.
+// NewRouteFiltersClientWithBaseURI creates an instance of the RouteFiltersClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewRouteFiltersClientWithBaseURI(baseURI string, subscriptionID string) RouteFiltersClient {
return RouteFiltersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-10-01/network/routes.go b/services/network/mgmt/2017-10-01/network/routes.go
index 87be44288dee..9b4ca9ef6f3f 100644
--- a/services/network/mgmt/2017-10-01/network/routes.go
+++ b/services/network/mgmt/2017-10-01/network/routes.go
@@ -35,7 +35,8 @@ func NewRoutesClient(subscriptionID string) RoutesClient {
return NewRoutesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewRoutesClientWithBaseURI creates an instance of the RoutesClient client.
+// NewRoutesClientWithBaseURI creates an instance of the RoutesClient client using a custom endpoint. Use this when
+// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewRoutesClientWithBaseURI(baseURI string, subscriptionID string) RoutesClient {
return RoutesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-10-01/network/routetables.go b/services/network/mgmt/2017-10-01/network/routetables.go
index 15a01db0be4d..7358df50ff51 100644
--- a/services/network/mgmt/2017-10-01/network/routetables.go
+++ b/services/network/mgmt/2017-10-01/network/routetables.go
@@ -35,7 +35,8 @@ func NewRouteTablesClient(subscriptionID string) RouteTablesClient {
return NewRouteTablesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewRouteTablesClientWithBaseURI creates an instance of the RouteTablesClient client.
+// NewRouteTablesClientWithBaseURI creates an instance of the RouteTablesClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewRouteTablesClientWithBaseURI(baseURI string, subscriptionID string) RouteTablesClient {
return RouteTablesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-10-01/network/securitygroups.go b/services/network/mgmt/2017-10-01/network/securitygroups.go
index 5d12bba77248..1ab232020ce3 100644
--- a/services/network/mgmt/2017-10-01/network/securitygroups.go
+++ b/services/network/mgmt/2017-10-01/network/securitygroups.go
@@ -35,7 +35,8 @@ func NewSecurityGroupsClient(subscriptionID string) SecurityGroupsClient {
return NewSecurityGroupsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewSecurityGroupsClientWithBaseURI creates an instance of the SecurityGroupsClient client.
+// NewSecurityGroupsClientWithBaseURI creates an instance of the SecurityGroupsClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewSecurityGroupsClientWithBaseURI(baseURI string, subscriptionID string) SecurityGroupsClient {
return SecurityGroupsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-10-01/network/securityrules.go b/services/network/mgmt/2017-10-01/network/securityrules.go
index 7bf985761e41..1c5186dd5fa2 100644
--- a/services/network/mgmt/2017-10-01/network/securityrules.go
+++ b/services/network/mgmt/2017-10-01/network/securityrules.go
@@ -35,7 +35,8 @@ func NewSecurityRulesClient(subscriptionID string) SecurityRulesClient {
return NewSecurityRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewSecurityRulesClientWithBaseURI creates an instance of the SecurityRulesClient client.
+// NewSecurityRulesClientWithBaseURI creates an instance of the SecurityRulesClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewSecurityRulesClientWithBaseURI(baseURI string, subscriptionID string) SecurityRulesClient {
return SecurityRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-10-01/network/subnets.go b/services/network/mgmt/2017-10-01/network/subnets.go
index 6212b4f0b499..9a95d23d7420 100644
--- a/services/network/mgmt/2017-10-01/network/subnets.go
+++ b/services/network/mgmt/2017-10-01/network/subnets.go
@@ -35,7 +35,8 @@ func NewSubnetsClient(subscriptionID string) SubnetsClient {
return NewSubnetsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewSubnetsClientWithBaseURI creates an instance of the SubnetsClient client.
+// NewSubnetsClientWithBaseURI creates an instance of the SubnetsClient client using a custom endpoint. Use this when
+// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewSubnetsClientWithBaseURI(baseURI string, subscriptionID string) SubnetsClient {
return SubnetsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-10-01/network/usages.go b/services/network/mgmt/2017-10-01/network/usages.go
index 767ec87ed652..aa776d18a00f 100644
--- a/services/network/mgmt/2017-10-01/network/usages.go
+++ b/services/network/mgmt/2017-10-01/network/usages.go
@@ -36,7 +36,8 @@ func NewUsagesClient(subscriptionID string) UsagesClient {
return NewUsagesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewUsagesClientWithBaseURI creates an instance of the UsagesClient client.
+// NewUsagesClientWithBaseURI creates an instance of the UsagesClient client using a custom endpoint. Use this when
+// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewUsagesClientWithBaseURI(baseURI string, subscriptionID string) UsagesClient {
return UsagesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-10-01/network/virtualnetworkgatewayconnections.go b/services/network/mgmt/2017-10-01/network/virtualnetworkgatewayconnections.go
index c2dca71876aa..6437be821659 100644
--- a/services/network/mgmt/2017-10-01/network/virtualnetworkgatewayconnections.go
+++ b/services/network/mgmt/2017-10-01/network/virtualnetworkgatewayconnections.go
@@ -37,7 +37,8 @@ func NewVirtualNetworkGatewayConnectionsClient(subscriptionID string) VirtualNet
}
// NewVirtualNetworkGatewayConnectionsClientWithBaseURI creates an instance of the
-// VirtualNetworkGatewayConnectionsClient client.
+// VirtualNetworkGatewayConnectionsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVirtualNetworkGatewayConnectionsClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworkGatewayConnectionsClient {
return VirtualNetworkGatewayConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-10-01/network/virtualnetworkgateways.go b/services/network/mgmt/2017-10-01/network/virtualnetworkgateways.go
index a2794971a9ab..46e5b9adce80 100644
--- a/services/network/mgmt/2017-10-01/network/virtualnetworkgateways.go
+++ b/services/network/mgmt/2017-10-01/network/virtualnetworkgateways.go
@@ -36,7 +36,9 @@ func NewVirtualNetworkGatewaysClient(subscriptionID string) VirtualNetworkGatewa
return NewVirtualNetworkGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualNetworkGatewaysClientWithBaseURI creates an instance of the VirtualNetworkGatewaysClient client.
+// NewVirtualNetworkGatewaysClientWithBaseURI creates an instance of the VirtualNetworkGatewaysClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewVirtualNetworkGatewaysClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworkGatewaysClient {
return VirtualNetworkGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-10-01/network/virtualnetworkpeerings.go b/services/network/mgmt/2017-10-01/network/virtualnetworkpeerings.go
index 809c3ea41418..2e8c69a68b20 100644
--- a/services/network/mgmt/2017-10-01/network/virtualnetworkpeerings.go
+++ b/services/network/mgmt/2017-10-01/network/virtualnetworkpeerings.go
@@ -35,7 +35,9 @@ func NewVirtualNetworkPeeringsClient(subscriptionID string) VirtualNetworkPeerin
return NewVirtualNetworkPeeringsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualNetworkPeeringsClientWithBaseURI creates an instance of the VirtualNetworkPeeringsClient client.
+// NewVirtualNetworkPeeringsClientWithBaseURI creates an instance of the VirtualNetworkPeeringsClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewVirtualNetworkPeeringsClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworkPeeringsClient {
return VirtualNetworkPeeringsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-10-01/network/virtualnetworks.go b/services/network/mgmt/2017-10-01/network/virtualnetworks.go
index 325d48e5223b..001bc2c1bd89 100644
--- a/services/network/mgmt/2017-10-01/network/virtualnetworks.go
+++ b/services/network/mgmt/2017-10-01/network/virtualnetworks.go
@@ -35,7 +35,8 @@ func NewVirtualNetworksClient(subscriptionID string) VirtualNetworksClient {
return NewVirtualNetworksClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualNetworksClientWithBaseURI creates an instance of the VirtualNetworksClient client.
+// NewVirtualNetworksClientWithBaseURI creates an instance of the VirtualNetworksClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVirtualNetworksClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworksClient {
return VirtualNetworksClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-10-01/network/watchers.go b/services/network/mgmt/2017-10-01/network/watchers.go
index 26bb91f8302c..0018ef22aae3 100644
--- a/services/network/mgmt/2017-10-01/network/watchers.go
+++ b/services/network/mgmt/2017-10-01/network/watchers.go
@@ -36,7 +36,8 @@ func NewWatchersClient(subscriptionID string) WatchersClient {
return NewWatchersClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewWatchersClientWithBaseURI creates an instance of the WatchersClient client.
+// NewWatchersClientWithBaseURI creates an instance of the WatchersClient client using a custom endpoint. Use this
+// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewWatchersClientWithBaseURI(baseURI string, subscriptionID string) WatchersClient {
return WatchersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-11-01/network/applicationgateways.go b/services/network/mgmt/2017-11-01/network/applicationgateways.go
index cb33df920008..17d73c23922f 100644
--- a/services/network/mgmt/2017-11-01/network/applicationgateways.go
+++ b/services/network/mgmt/2017-11-01/network/applicationgateways.go
@@ -36,7 +36,9 @@ func NewApplicationGatewaysClient(subscriptionID string) ApplicationGatewaysClie
return NewApplicationGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewApplicationGatewaysClientWithBaseURI creates an instance of the ApplicationGatewaysClient client.
+// NewApplicationGatewaysClientWithBaseURI creates an instance of the ApplicationGatewaysClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewApplicationGatewaysClientWithBaseURI(baseURI string, subscriptionID string) ApplicationGatewaysClient {
return ApplicationGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-11-01/network/applicationsecuritygroups.go b/services/network/mgmt/2017-11-01/network/applicationsecuritygroups.go
index d2688be50932..f709a51d5117 100644
--- a/services/network/mgmt/2017-11-01/network/applicationsecuritygroups.go
+++ b/services/network/mgmt/2017-11-01/network/applicationsecuritygroups.go
@@ -35,7 +35,9 @@ func NewApplicationSecurityGroupsClient(subscriptionID string) ApplicationSecuri
return NewApplicationSecurityGroupsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewApplicationSecurityGroupsClientWithBaseURI creates an instance of the ApplicationSecurityGroupsClient client.
+// NewApplicationSecurityGroupsClientWithBaseURI creates an instance of the ApplicationSecurityGroupsClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewApplicationSecurityGroupsClientWithBaseURI(baseURI string, subscriptionID string) ApplicationSecurityGroupsClient {
return ApplicationSecurityGroupsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-11-01/network/availableendpointservices.go b/services/network/mgmt/2017-11-01/network/availableendpointservices.go
index a5c6d8ab192f..308413336580 100644
--- a/services/network/mgmt/2017-11-01/network/availableendpointservices.go
+++ b/services/network/mgmt/2017-11-01/network/availableendpointservices.go
@@ -35,7 +35,9 @@ func NewAvailableEndpointServicesClient(subscriptionID string) AvailableEndpoint
return NewAvailableEndpointServicesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewAvailableEndpointServicesClientWithBaseURI creates an instance of the AvailableEndpointServicesClient client.
+// NewAvailableEndpointServicesClientWithBaseURI creates an instance of the AvailableEndpointServicesClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewAvailableEndpointServicesClientWithBaseURI(baseURI string, subscriptionID string) AvailableEndpointServicesClient {
return AvailableEndpointServicesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-11-01/network/bgpservicecommunities.go b/services/network/mgmt/2017-11-01/network/bgpservicecommunities.go
index 0567397ee3b6..19ead5e62775 100644
--- a/services/network/mgmt/2017-11-01/network/bgpservicecommunities.go
+++ b/services/network/mgmt/2017-11-01/network/bgpservicecommunities.go
@@ -35,7 +35,9 @@ func NewBgpServiceCommunitiesClient(subscriptionID string) BgpServiceCommunities
return NewBgpServiceCommunitiesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewBgpServiceCommunitiesClientWithBaseURI creates an instance of the BgpServiceCommunitiesClient client.
+// NewBgpServiceCommunitiesClientWithBaseURI creates an instance of the BgpServiceCommunitiesClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewBgpServiceCommunitiesClientWithBaseURI(baseURI string, subscriptionID string) BgpServiceCommunitiesClient {
return BgpServiceCommunitiesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-11-01/network/client.go b/services/network/mgmt/2017-11-01/network/client.go
index ff793466d96a..3a783a3abbc6 100644
--- a/services/network/mgmt/2017-11-01/network/client.go
+++ b/services/network/mgmt/2017-11-01/network/client.go
@@ -45,7 +45,8 @@ func New(subscriptionID string) BaseClient {
return NewWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewWithBaseURI creates an instance of the BaseClient client.
+// NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with
+// an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient {
return BaseClient{
Client: autorest.NewClientWithUserAgent(UserAgent()),
diff --git a/services/network/mgmt/2017-11-01/network/connectionmonitors.go b/services/network/mgmt/2017-11-01/network/connectionmonitors.go
index 8f7c12bb744f..b8339395bef9 100644
--- a/services/network/mgmt/2017-11-01/network/connectionmonitors.go
+++ b/services/network/mgmt/2017-11-01/network/connectionmonitors.go
@@ -36,7 +36,9 @@ func NewConnectionMonitorsClient(subscriptionID string) ConnectionMonitorsClient
return NewConnectionMonitorsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewConnectionMonitorsClientWithBaseURI creates an instance of the ConnectionMonitorsClient client.
+// NewConnectionMonitorsClientWithBaseURI creates an instance of the ConnectionMonitorsClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewConnectionMonitorsClientWithBaseURI(baseURI string, subscriptionID string) ConnectionMonitorsClient {
return ConnectionMonitorsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-11-01/network/defaultsecurityrules.go b/services/network/mgmt/2017-11-01/network/defaultsecurityrules.go
index 243e4b38914b..149cf7d8f80a 100644
--- a/services/network/mgmt/2017-11-01/network/defaultsecurityrules.go
+++ b/services/network/mgmt/2017-11-01/network/defaultsecurityrules.go
@@ -35,7 +35,9 @@ func NewDefaultSecurityRulesClient(subscriptionID string) DefaultSecurityRulesCl
return NewDefaultSecurityRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewDefaultSecurityRulesClientWithBaseURI creates an instance of the DefaultSecurityRulesClient client.
+// NewDefaultSecurityRulesClientWithBaseURI creates an instance of the DefaultSecurityRulesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewDefaultSecurityRulesClientWithBaseURI(baseURI string, subscriptionID string) DefaultSecurityRulesClient {
return DefaultSecurityRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-11-01/network/expressroutecircuitauthorizations.go b/services/network/mgmt/2017-11-01/network/expressroutecircuitauthorizations.go
index d7d5ab56e2fb..162b54842a8c 100644
--- a/services/network/mgmt/2017-11-01/network/expressroutecircuitauthorizations.go
+++ b/services/network/mgmt/2017-11-01/network/expressroutecircuitauthorizations.go
@@ -37,7 +37,8 @@ func NewExpressRouteCircuitAuthorizationsClient(subscriptionID string) ExpressRo
}
// NewExpressRouteCircuitAuthorizationsClientWithBaseURI creates an instance of the
-// ExpressRouteCircuitAuthorizationsClient client.
+// ExpressRouteCircuitAuthorizationsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewExpressRouteCircuitAuthorizationsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCircuitAuthorizationsClient {
return ExpressRouteCircuitAuthorizationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-11-01/network/expressroutecircuitpeerings.go b/services/network/mgmt/2017-11-01/network/expressroutecircuitpeerings.go
index 2107b772e0b4..d8febcab6a35 100644
--- a/services/network/mgmt/2017-11-01/network/expressroutecircuitpeerings.go
+++ b/services/network/mgmt/2017-11-01/network/expressroutecircuitpeerings.go
@@ -36,7 +36,9 @@ func NewExpressRouteCircuitPeeringsClient(subscriptionID string) ExpressRouteCir
return NewExpressRouteCircuitPeeringsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewExpressRouteCircuitPeeringsClientWithBaseURI creates an instance of the ExpressRouteCircuitPeeringsClient client.
+// NewExpressRouteCircuitPeeringsClientWithBaseURI creates an instance of the ExpressRouteCircuitPeeringsClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewExpressRouteCircuitPeeringsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCircuitPeeringsClient {
return ExpressRouteCircuitPeeringsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-11-01/network/expressroutecircuits.go b/services/network/mgmt/2017-11-01/network/expressroutecircuits.go
index d429eecabd3e..008786f91acc 100644
--- a/services/network/mgmt/2017-11-01/network/expressroutecircuits.go
+++ b/services/network/mgmt/2017-11-01/network/expressroutecircuits.go
@@ -35,7 +35,9 @@ func NewExpressRouteCircuitsClient(subscriptionID string) ExpressRouteCircuitsCl
return NewExpressRouteCircuitsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewExpressRouteCircuitsClientWithBaseURI creates an instance of the ExpressRouteCircuitsClient client.
+// NewExpressRouteCircuitsClientWithBaseURI creates an instance of the ExpressRouteCircuitsClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewExpressRouteCircuitsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCircuitsClient {
return ExpressRouteCircuitsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-11-01/network/expressrouteserviceproviders.go b/services/network/mgmt/2017-11-01/network/expressrouteserviceproviders.go
index e6004515c534..4e427160e1e3 100644
--- a/services/network/mgmt/2017-11-01/network/expressrouteserviceproviders.go
+++ b/services/network/mgmt/2017-11-01/network/expressrouteserviceproviders.go
@@ -36,7 +36,8 @@ func NewExpressRouteServiceProvidersClient(subscriptionID string) ExpressRouteSe
}
// NewExpressRouteServiceProvidersClientWithBaseURI creates an instance of the ExpressRouteServiceProvidersClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewExpressRouteServiceProvidersClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteServiceProvidersClient {
return ExpressRouteServiceProvidersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-11-01/network/inboundnatrules.go b/services/network/mgmt/2017-11-01/network/inboundnatrules.go
index b5916434a1f9..9624bc72cb48 100644
--- a/services/network/mgmt/2017-11-01/network/inboundnatrules.go
+++ b/services/network/mgmt/2017-11-01/network/inboundnatrules.go
@@ -36,7 +36,8 @@ func NewInboundNatRulesClient(subscriptionID string) InboundNatRulesClient {
return NewInboundNatRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewInboundNatRulesClientWithBaseURI creates an instance of the InboundNatRulesClient client.
+// NewInboundNatRulesClientWithBaseURI creates an instance of the InboundNatRulesClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewInboundNatRulesClientWithBaseURI(baseURI string, subscriptionID string) InboundNatRulesClient {
return InboundNatRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-11-01/network/interfaceipconfigurations.go b/services/network/mgmt/2017-11-01/network/interfaceipconfigurations.go
index d24f0ccd09ba..c3ea7bf17551 100644
--- a/services/network/mgmt/2017-11-01/network/interfaceipconfigurations.go
+++ b/services/network/mgmt/2017-11-01/network/interfaceipconfigurations.go
@@ -35,7 +35,9 @@ func NewInterfaceIPConfigurationsClient(subscriptionID string) InterfaceIPConfig
return NewInterfaceIPConfigurationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewInterfaceIPConfigurationsClientWithBaseURI creates an instance of the InterfaceIPConfigurationsClient client.
+// NewInterfaceIPConfigurationsClientWithBaseURI creates an instance of the InterfaceIPConfigurationsClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewInterfaceIPConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) InterfaceIPConfigurationsClient {
return InterfaceIPConfigurationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-11-01/network/interfaceloadbalancers.go b/services/network/mgmt/2017-11-01/network/interfaceloadbalancers.go
index d18780648baa..e2bd2cc51be0 100644
--- a/services/network/mgmt/2017-11-01/network/interfaceloadbalancers.go
+++ b/services/network/mgmt/2017-11-01/network/interfaceloadbalancers.go
@@ -35,7 +35,9 @@ func NewInterfaceLoadBalancersClient(subscriptionID string) InterfaceLoadBalance
return NewInterfaceLoadBalancersClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewInterfaceLoadBalancersClientWithBaseURI creates an instance of the InterfaceLoadBalancersClient client.
+// NewInterfaceLoadBalancersClientWithBaseURI creates an instance of the InterfaceLoadBalancersClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewInterfaceLoadBalancersClientWithBaseURI(baseURI string, subscriptionID string) InterfaceLoadBalancersClient {
return InterfaceLoadBalancersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-11-01/network/interfacesgroup.go b/services/network/mgmt/2017-11-01/network/interfacesgroup.go
index 30f6b856b82d..f5c7d74555e0 100644
--- a/services/network/mgmt/2017-11-01/network/interfacesgroup.go
+++ b/services/network/mgmt/2017-11-01/network/interfacesgroup.go
@@ -35,7 +35,8 @@ func NewInterfacesClient(subscriptionID string) InterfacesClient {
return NewInterfacesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewInterfacesClientWithBaseURI creates an instance of the InterfacesClient client.
+// NewInterfacesClientWithBaseURI creates an instance of the InterfacesClient client using a custom endpoint. Use this
+// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewInterfacesClientWithBaseURI(baseURI string, subscriptionID string) InterfacesClient {
return InterfacesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-11-01/network/loadbalancerbackendaddresspools.go b/services/network/mgmt/2017-11-01/network/loadbalancerbackendaddresspools.go
index 7613036e23e6..e195f6e73005 100644
--- a/services/network/mgmt/2017-11-01/network/loadbalancerbackendaddresspools.go
+++ b/services/network/mgmt/2017-11-01/network/loadbalancerbackendaddresspools.go
@@ -36,7 +36,8 @@ func NewLoadBalancerBackendAddressPoolsClient(subscriptionID string) LoadBalance
}
// NewLoadBalancerBackendAddressPoolsClientWithBaseURI creates an instance of the LoadBalancerBackendAddressPoolsClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewLoadBalancerBackendAddressPoolsClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerBackendAddressPoolsClient {
return LoadBalancerBackendAddressPoolsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-11-01/network/loadbalancerfrontendipconfigurations.go b/services/network/mgmt/2017-11-01/network/loadbalancerfrontendipconfigurations.go
index 02fd8469b45a..76ba129edff8 100644
--- a/services/network/mgmt/2017-11-01/network/loadbalancerfrontendipconfigurations.go
+++ b/services/network/mgmt/2017-11-01/network/loadbalancerfrontendipconfigurations.go
@@ -37,7 +37,8 @@ func NewLoadBalancerFrontendIPConfigurationsClient(subscriptionID string) LoadBa
}
// NewLoadBalancerFrontendIPConfigurationsClientWithBaseURI creates an instance of the
-// LoadBalancerFrontendIPConfigurationsClient client.
+// LoadBalancerFrontendIPConfigurationsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewLoadBalancerFrontendIPConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerFrontendIPConfigurationsClient {
return LoadBalancerFrontendIPConfigurationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-11-01/network/loadbalancerloadbalancingrules.go b/services/network/mgmt/2017-11-01/network/loadbalancerloadbalancingrules.go
index c801c0c7b0fc..2f3af12d4791 100644
--- a/services/network/mgmt/2017-11-01/network/loadbalancerloadbalancingrules.go
+++ b/services/network/mgmt/2017-11-01/network/loadbalancerloadbalancingrules.go
@@ -36,7 +36,8 @@ func NewLoadBalancerLoadBalancingRulesClient(subscriptionID string) LoadBalancer
}
// NewLoadBalancerLoadBalancingRulesClientWithBaseURI creates an instance of the LoadBalancerLoadBalancingRulesClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewLoadBalancerLoadBalancingRulesClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerLoadBalancingRulesClient {
return LoadBalancerLoadBalancingRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-11-01/network/loadbalancernetworkinterfaces.go b/services/network/mgmt/2017-11-01/network/loadbalancernetworkinterfaces.go
index 00c501b9240e..fbab6536376a 100644
--- a/services/network/mgmt/2017-11-01/network/loadbalancernetworkinterfaces.go
+++ b/services/network/mgmt/2017-11-01/network/loadbalancernetworkinterfaces.go
@@ -36,7 +36,8 @@ func NewLoadBalancerNetworkInterfacesClient(subscriptionID string) LoadBalancerN
}
// NewLoadBalancerNetworkInterfacesClientWithBaseURI creates an instance of the LoadBalancerNetworkInterfacesClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewLoadBalancerNetworkInterfacesClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerNetworkInterfacesClient {
return LoadBalancerNetworkInterfacesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-11-01/network/loadbalancerprobes.go b/services/network/mgmt/2017-11-01/network/loadbalancerprobes.go
index 6053b819bcc3..a1761557ea31 100644
--- a/services/network/mgmt/2017-11-01/network/loadbalancerprobes.go
+++ b/services/network/mgmt/2017-11-01/network/loadbalancerprobes.go
@@ -35,7 +35,9 @@ func NewLoadBalancerProbesClient(subscriptionID string) LoadBalancerProbesClient
return NewLoadBalancerProbesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewLoadBalancerProbesClientWithBaseURI creates an instance of the LoadBalancerProbesClient client.
+// NewLoadBalancerProbesClientWithBaseURI creates an instance of the LoadBalancerProbesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewLoadBalancerProbesClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerProbesClient {
return LoadBalancerProbesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-11-01/network/loadbalancers.go b/services/network/mgmt/2017-11-01/network/loadbalancers.go
index c52671dc5e8e..91f49c61a694 100644
--- a/services/network/mgmt/2017-11-01/network/loadbalancers.go
+++ b/services/network/mgmt/2017-11-01/network/loadbalancers.go
@@ -35,7 +35,8 @@ func NewLoadBalancersClient(subscriptionID string) LoadBalancersClient {
return NewLoadBalancersClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewLoadBalancersClientWithBaseURI creates an instance of the LoadBalancersClient client.
+// NewLoadBalancersClientWithBaseURI creates an instance of the LoadBalancersClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewLoadBalancersClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancersClient {
return LoadBalancersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-11-01/network/localnetworkgateways.go b/services/network/mgmt/2017-11-01/network/localnetworkgateways.go
index 37b8848b2f57..a19b1fee91bc 100644
--- a/services/network/mgmt/2017-11-01/network/localnetworkgateways.go
+++ b/services/network/mgmt/2017-11-01/network/localnetworkgateways.go
@@ -36,7 +36,9 @@ func NewLocalNetworkGatewaysClient(subscriptionID string) LocalNetworkGatewaysCl
return NewLocalNetworkGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewLocalNetworkGatewaysClientWithBaseURI creates an instance of the LocalNetworkGatewaysClient client.
+// NewLocalNetworkGatewaysClientWithBaseURI creates an instance of the LocalNetworkGatewaysClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewLocalNetworkGatewaysClientWithBaseURI(baseURI string, subscriptionID string) LocalNetworkGatewaysClient {
return LocalNetworkGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-11-01/network/networkapi/interfaces.go b/services/network/mgmt/2017-11-01/network/networkapi/interfaces.go
index a00203cd5a34..fe88bd88e4fc 100644
--- a/services/network/mgmt/2017-11-01/network/networkapi/interfaces.go
+++ b/services/network/mgmt/2017-11-01/network/networkapi/interfaces.go
@@ -37,9 +37,12 @@ type ApplicationGatewaysClientAPI interface {
Get(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result network.ApplicationGateway, err error)
GetSslPredefinedPolicy(ctx context.Context, predefinedPolicyName string) (result network.ApplicationGatewaySslPredefinedPolicy, err error)
List(ctx context.Context, resourceGroupName string) (result network.ApplicationGatewayListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.ApplicationGatewayListResultIterator, err error)
ListAll(ctx context.Context) (result network.ApplicationGatewayListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.ApplicationGatewayListResultIterator, err error)
ListAvailableSslOptions(ctx context.Context) (result network.ApplicationGatewayAvailableSslOptions, err error)
ListAvailableSslPredefinedPolicies(ctx context.Context) (result network.ApplicationGatewayAvailableSslPredefinedPoliciesPage, err error)
+ ListAvailableSslPredefinedPoliciesComplete(ctx context.Context) (result network.ApplicationGatewayAvailableSslPredefinedPoliciesIterator, err error)
ListAvailableWafRuleSets(ctx context.Context) (result network.ApplicationGatewayAvailableWafRuleSetsResult, err error)
Start(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result network.ApplicationGatewaysStartFuture, err error)
Stop(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result network.ApplicationGatewaysStopFuture, err error)
@@ -54,7 +57,9 @@ type ApplicationSecurityGroupsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, applicationSecurityGroupName string) (result network.ApplicationSecurityGroupsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, applicationSecurityGroupName string) (result network.ApplicationSecurityGroup, err error)
List(ctx context.Context, resourceGroupName string) (result network.ApplicationSecurityGroupListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.ApplicationSecurityGroupListResultIterator, err error)
ListAll(ctx context.Context) (result network.ApplicationSecurityGroupListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.ApplicationSecurityGroupListResultIterator, err error)
}
var _ ApplicationSecurityGroupsClientAPI = (*network.ApplicationSecurityGroupsClient)(nil)
@@ -62,6 +67,7 @@ var _ ApplicationSecurityGroupsClientAPI = (*network.ApplicationSecurityGroupsCl
// AvailableEndpointServicesClientAPI contains the set of methods on the AvailableEndpointServicesClient type.
type AvailableEndpointServicesClientAPI interface {
List(ctx context.Context, location string) (result network.EndpointServicesListResultPage, err error)
+ ListComplete(ctx context.Context, location string) (result network.EndpointServicesListResultIterator, err error)
}
var _ AvailableEndpointServicesClientAPI = (*network.AvailableEndpointServicesClient)(nil)
@@ -72,6 +78,7 @@ type ExpressRouteCircuitAuthorizationsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, circuitName string, authorizationName string) (result network.ExpressRouteCircuitAuthorizationsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, circuitName string, authorizationName string) (result network.ExpressRouteCircuitAuthorization, err error)
List(ctx context.Context, resourceGroupName string, circuitName string) (result network.AuthorizationListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, circuitName string) (result network.AuthorizationListResultIterator, err error)
}
var _ ExpressRouteCircuitAuthorizationsClientAPI = (*network.ExpressRouteCircuitAuthorizationsClient)(nil)
@@ -82,6 +89,7 @@ type ExpressRouteCircuitPeeringsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.ExpressRouteCircuitPeeringsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.ExpressRouteCircuitPeering, err error)
List(ctx context.Context, resourceGroupName string, circuitName string) (result network.ExpressRouteCircuitPeeringListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, circuitName string) (result network.ExpressRouteCircuitPeeringListResultIterator, err error)
}
var _ ExpressRouteCircuitPeeringsClientAPI = (*network.ExpressRouteCircuitPeeringsClient)(nil)
@@ -94,7 +102,9 @@ type ExpressRouteCircuitsClientAPI interface {
GetPeeringStats(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.ExpressRouteCircuitStats, err error)
GetStats(ctx context.Context, resourceGroupName string, circuitName string) (result network.ExpressRouteCircuitStats, err error)
List(ctx context.Context, resourceGroupName string) (result network.ExpressRouteCircuitListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.ExpressRouteCircuitListResultIterator, err error)
ListAll(ctx context.Context) (result network.ExpressRouteCircuitListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.ExpressRouteCircuitListResultIterator, err error)
ListArpTable(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, devicePath string) (result network.ExpressRouteCircuitsListArpTableFuture, err error)
ListRoutesTable(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, devicePath string) (result network.ExpressRouteCircuitsListRoutesTableFuture, err error)
ListRoutesTableSummary(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, devicePath string) (result network.ExpressRouteCircuitsListRoutesTableSummaryFuture, err error)
@@ -106,6 +116,7 @@ var _ ExpressRouteCircuitsClientAPI = (*network.ExpressRouteCircuitsClient)(nil)
// ExpressRouteServiceProvidersClientAPI contains the set of methods on the ExpressRouteServiceProvidersClient type.
type ExpressRouteServiceProvidersClientAPI interface {
List(ctx context.Context) (result network.ExpressRouteServiceProviderListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ExpressRouteServiceProviderListResultIterator, err error)
}
var _ ExpressRouteServiceProvidersClientAPI = (*network.ExpressRouteServiceProvidersClient)(nil)
@@ -116,7 +127,9 @@ type LoadBalancersClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancersDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, expand string) (result network.LoadBalancer, err error)
List(ctx context.Context, resourceGroupName string) (result network.LoadBalancerListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.LoadBalancerListResultIterator, err error)
ListAll(ctx context.Context) (result network.LoadBalancerListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.LoadBalancerListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, loadBalancerName string, parameters network.TagsObject) (result network.LoadBalancersUpdateTagsFuture, err error)
}
@@ -126,6 +139,7 @@ var _ LoadBalancersClientAPI = (*network.LoadBalancersClient)(nil)
type LoadBalancerBackendAddressPoolsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, backendAddressPoolName string) (result network.BackendAddressPool, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerBackendAddressPoolListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerBackendAddressPoolListResultIterator, err error)
}
var _ LoadBalancerBackendAddressPoolsClientAPI = (*network.LoadBalancerBackendAddressPoolsClient)(nil)
@@ -134,6 +148,7 @@ var _ LoadBalancerBackendAddressPoolsClientAPI = (*network.LoadBalancerBackendAd
type LoadBalancerFrontendIPConfigurationsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, frontendIPConfigurationName string) (result network.FrontendIPConfiguration, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerFrontendIPConfigurationListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerFrontendIPConfigurationListResultIterator, err error)
}
var _ LoadBalancerFrontendIPConfigurationsClientAPI = (*network.LoadBalancerFrontendIPConfigurationsClient)(nil)
@@ -144,6 +159,7 @@ type InboundNatRulesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, loadBalancerName string, inboundNatRuleName string) (result network.InboundNatRulesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, inboundNatRuleName string, expand string) (result network.InboundNatRule, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.InboundNatRuleListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.InboundNatRuleListResultIterator, err error)
}
var _ InboundNatRulesClientAPI = (*network.InboundNatRulesClient)(nil)
@@ -152,6 +168,7 @@ var _ InboundNatRulesClientAPI = (*network.InboundNatRulesClient)(nil)
type LoadBalancerLoadBalancingRulesClientAPI interface {
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, loadBalancingRuleName string) (result network.LoadBalancingRule, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerLoadBalancingRuleListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerLoadBalancingRuleListResultIterator, err error)
}
var _ LoadBalancerLoadBalancingRulesClientAPI = (*network.LoadBalancerLoadBalancingRulesClient)(nil)
@@ -159,6 +176,7 @@ var _ LoadBalancerLoadBalancingRulesClientAPI = (*network.LoadBalancerLoadBalanc
// LoadBalancerNetworkInterfacesClientAPI contains the set of methods on the LoadBalancerNetworkInterfacesClient type.
type LoadBalancerNetworkInterfacesClientAPI interface {
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.InterfaceListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.InterfaceListResultIterator, err error)
}
var _ LoadBalancerNetworkInterfacesClientAPI = (*network.LoadBalancerNetworkInterfacesClient)(nil)
@@ -167,6 +185,7 @@ var _ LoadBalancerNetworkInterfacesClientAPI = (*network.LoadBalancerNetworkInte
type LoadBalancerProbesClientAPI interface {
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, probeName string) (result network.Probe, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerProbeListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerProbeListResultIterator, err error)
}
var _ LoadBalancerProbesClientAPI = (*network.LoadBalancerProbesClient)(nil)
@@ -180,11 +199,16 @@ type InterfacesClientAPI interface {
GetVirtualMachineScaleSetIPConfiguration(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, IPConfigurationName string, expand string) (result network.InterfaceIPConfiguration, err error)
GetVirtualMachineScaleSetNetworkInterface(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, expand string) (result network.Interface, err error)
List(ctx context.Context, resourceGroupName string) (result network.InterfaceListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.InterfaceListResultIterator, err error)
ListAll(ctx context.Context) (result network.InterfaceListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.InterfaceListResultIterator, err error)
ListEffectiveNetworkSecurityGroups(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfacesListEffectiveNetworkSecurityGroupsFuture, err error)
ListVirtualMachineScaleSetIPConfigurations(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, expand string) (result network.InterfaceIPConfigurationListResultPage, err error)
+ ListVirtualMachineScaleSetIPConfigurationsComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, expand string) (result network.InterfaceIPConfigurationListResultIterator, err error)
ListVirtualMachineScaleSetNetworkInterfaces(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result network.InterfaceListResultPage, err error)
+ ListVirtualMachineScaleSetNetworkInterfacesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result network.InterfaceListResultIterator, err error)
ListVirtualMachineScaleSetVMNetworkInterfaces(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string) (result network.InterfaceListResultPage, err error)
+ ListVirtualMachineScaleSetVMNetworkInterfacesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string) (result network.InterfaceListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, networkInterfaceName string, parameters network.TagsObject) (result network.InterfacesUpdateTagsFuture, err error)
}
@@ -194,6 +218,7 @@ var _ InterfacesClientAPI = (*network.InterfacesClient)(nil)
type InterfaceIPConfigurationsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, networkInterfaceName string, IPConfigurationName string) (result network.InterfaceIPConfiguration, err error)
List(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceIPConfigurationListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceIPConfigurationListResultIterator, err error)
}
var _ InterfaceIPConfigurationsClientAPI = (*network.InterfaceIPConfigurationsClient)(nil)
@@ -201,6 +226,7 @@ var _ InterfaceIPConfigurationsClientAPI = (*network.InterfaceIPConfigurationsCl
// InterfaceLoadBalancersClientAPI contains the set of methods on the InterfaceLoadBalancersClient type.
type InterfaceLoadBalancersClientAPI interface {
List(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceLoadBalancerListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceLoadBalancerListResultIterator, err error)
}
var _ InterfaceLoadBalancersClientAPI = (*network.InterfaceLoadBalancersClient)(nil)
@@ -211,7 +237,9 @@ type SecurityGroupsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityGroupsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, expand string) (result network.SecurityGroup, err error)
List(ctx context.Context, resourceGroupName string) (result network.SecurityGroupListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.SecurityGroupListResultIterator, err error)
ListAll(ctx context.Context) (result network.SecurityGroupListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.SecurityGroupListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, parameters network.TagsObject) (result network.SecurityGroupsUpdateTagsFuture, err error)
}
@@ -223,6 +251,7 @@ type SecurityRulesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, securityRuleName string) (result network.SecurityRulesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, securityRuleName string) (result network.SecurityRule, err error)
List(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityRuleListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityRuleListResultIterator, err error)
}
var _ SecurityRulesClientAPI = (*network.SecurityRulesClient)(nil)
@@ -231,6 +260,7 @@ var _ SecurityRulesClientAPI = (*network.SecurityRulesClient)(nil)
type DefaultSecurityRulesClientAPI interface {
Get(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, defaultSecurityRuleName string) (result network.SecurityRule, err error)
List(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityRuleListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityRuleListResultIterator, err error)
}
var _ DefaultSecurityRulesClientAPI = (*network.DefaultSecurityRulesClient)(nil)
@@ -286,6 +316,7 @@ var _ ConnectionMonitorsClientAPI = (*network.ConnectionMonitorsClient)(nil)
// OperationsClientAPI contains the set of methods on the OperationsClient type.
type OperationsClientAPI interface {
List(ctx context.Context) (result network.OperationListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.OperationListResultIterator, err error)
}
var _ OperationsClientAPI = (*network.OperationsClient)(nil)
@@ -297,9 +328,13 @@ type PublicIPAddressesClientAPI interface {
Get(ctx context.Context, resourceGroupName string, publicIPAddressName string, expand string) (result network.PublicIPAddress, err error)
GetVirtualMachineScaleSetPublicIPAddress(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, IPConfigurationName string, publicIPAddressName string, expand string) (result network.PublicIPAddress, err error)
List(ctx context.Context, resourceGroupName string) (result network.PublicIPAddressListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.PublicIPAddressListResultIterator, err error)
ListAll(ctx context.Context) (result network.PublicIPAddressListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.PublicIPAddressListResultIterator, err error)
ListVirtualMachineScaleSetPublicIPAddresses(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result network.PublicIPAddressListResultPage, err error)
+ ListVirtualMachineScaleSetPublicIPAddressesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result network.PublicIPAddressListResultIterator, err error)
ListVirtualMachineScaleSetVMPublicIPAddresses(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, IPConfigurationName string) (result network.PublicIPAddressListResultPage, err error)
+ ListVirtualMachineScaleSetVMPublicIPAddressesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, IPConfigurationName string) (result network.PublicIPAddressListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, publicIPAddressName string, parameters network.TagsObject) (result network.PublicIPAddressesUpdateTagsFuture, err error)
}
@@ -311,7 +346,9 @@ type RouteFiltersClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, routeFilterName string) (result network.RouteFiltersDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, routeFilterName string, expand string) (result network.RouteFilter, err error)
List(ctx context.Context) (result network.RouteFilterListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.RouteFilterListResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.RouteFilterListResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.RouteFilterListResultIterator, err error)
Update(ctx context.Context, resourceGroupName string, routeFilterName string, routeFilterParameters network.PatchRouteFilter) (result network.RouteFiltersUpdateFuture, err error)
}
@@ -323,6 +360,7 @@ type RouteFilterRulesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, routeFilterName string, ruleName string) (result network.RouteFilterRulesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, routeFilterName string, ruleName string) (result network.RouteFilterRule, err error)
ListByRouteFilter(ctx context.Context, resourceGroupName string, routeFilterName string) (result network.RouteFilterRuleListResultPage, err error)
+ ListByRouteFilterComplete(ctx context.Context, resourceGroupName string, routeFilterName string) (result network.RouteFilterRuleListResultIterator, err error)
Update(ctx context.Context, resourceGroupName string, routeFilterName string, ruleName string, routeFilterRuleParameters network.PatchRouteFilterRule) (result network.RouteFilterRulesUpdateFuture, err error)
}
@@ -334,7 +372,9 @@ type RouteTablesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, routeTableName string) (result network.RouteTablesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, routeTableName string, expand string) (result network.RouteTable, err error)
List(ctx context.Context, resourceGroupName string) (result network.RouteTableListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.RouteTableListResultIterator, err error)
ListAll(ctx context.Context) (result network.RouteTableListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.RouteTableListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, routeTableName string, parameters network.TagsObject) (result network.RouteTablesUpdateTagsFuture, err error)
}
@@ -346,6 +386,7 @@ type RoutesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, routeTableName string, routeName string) (result network.RoutesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, routeTableName string, routeName string) (result network.Route, err error)
List(ctx context.Context, resourceGroupName string, routeTableName string) (result network.RouteListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, routeTableName string) (result network.RouteListResultIterator, err error)
}
var _ RoutesClientAPI = (*network.RoutesClient)(nil)
@@ -353,6 +394,7 @@ var _ RoutesClientAPI = (*network.RoutesClient)(nil)
// BgpServiceCommunitiesClientAPI contains the set of methods on the BgpServiceCommunitiesClient type.
type BgpServiceCommunitiesClientAPI interface {
List(ctx context.Context) (result network.BgpServiceCommunityListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.BgpServiceCommunityListResultIterator, err error)
}
var _ BgpServiceCommunitiesClientAPI = (*network.BgpServiceCommunitiesClient)(nil)
@@ -360,6 +402,7 @@ var _ BgpServiceCommunitiesClientAPI = (*network.BgpServiceCommunitiesClient)(ni
// UsagesClientAPI contains the set of methods on the UsagesClient type.
type UsagesClientAPI interface {
List(ctx context.Context, location string) (result network.UsagesListResultPage, err error)
+ ListComplete(ctx context.Context, location string) (result network.UsagesListResultIterator, err error)
}
var _ UsagesClientAPI = (*network.UsagesClient)(nil)
@@ -371,8 +414,11 @@ type VirtualNetworksClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworksDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualNetworkName string, expand string) (result network.VirtualNetwork, err error)
List(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkListResultIterator, err error)
ListAll(ctx context.Context) (result network.VirtualNetworkListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.VirtualNetworkListResultIterator, err error)
ListUsage(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworkListUsageResultPage, err error)
+ ListUsageComplete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworkListUsageResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, virtualNetworkName string, parameters network.TagsObject) (result network.VirtualNetworksUpdateTagsFuture, err error)
}
@@ -384,6 +430,7 @@ type SubnetsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualNetworkName string, subnetName string) (result network.SubnetsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualNetworkName string, subnetName string, expand string) (result network.Subnet, err error)
List(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.SubnetListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.SubnetListResultIterator, err error)
}
var _ SubnetsClientAPI = (*network.SubnetsClient)(nil)
@@ -394,6 +441,7 @@ type VirtualNetworkPeeringsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualNetworkName string, virtualNetworkPeeringName string) (result network.VirtualNetworkPeeringsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualNetworkName string, virtualNetworkPeeringName string) (result network.VirtualNetworkPeering, err error)
List(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworkPeeringListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworkPeeringListResultIterator, err error)
}
var _ VirtualNetworkPeeringsClientAPI = (*network.VirtualNetworkPeeringsClient)(nil)
@@ -410,7 +458,9 @@ type VirtualNetworkGatewaysClientAPI interface {
GetLearnedRoutes(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGatewaysGetLearnedRoutesFuture, err error)
GetVpnProfilePackageURL(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGatewaysGetVpnProfilePackageURLFuture, err error)
List(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayListResultIterator, err error)
ListConnections(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGatewayListConnectionsResultPage, err error)
+ ListConnectionsComplete(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGatewayListConnectionsResultIterator, err error)
Reset(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, gatewayVip string) (result network.VirtualNetworkGatewaysResetFuture, err error)
SupportedVpnDevices(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.String, err error)
UpdateTags(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, parameters network.TagsObject) (result network.VirtualNetworkGatewaysUpdateTagsFuture, err error)
@@ -426,6 +476,7 @@ type VirtualNetworkGatewayConnectionsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string) (result network.VirtualNetworkGatewayConnection, err error)
GetSharedKey(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string) (result network.ConnectionSharedKey, err error)
List(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayConnectionListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayConnectionListResultIterator, err error)
ResetSharedKey(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string, parameters network.ConnectionResetSharedKey) (result network.VirtualNetworkGatewayConnectionsResetSharedKeyFuture, err error)
SetSharedKey(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string, parameters network.ConnectionSharedKey) (result network.VirtualNetworkGatewayConnectionsSetSharedKeyFuture, err error)
UpdateTags(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string, parameters network.TagsObject) (result network.VirtualNetworkGatewayConnectionsUpdateTagsFuture, err error)
@@ -439,6 +490,7 @@ type LocalNetworkGatewaysClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, localNetworkGatewayName string) (result network.LocalNetworkGatewaysDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, localNetworkGatewayName string) (result network.LocalNetworkGateway, err error)
List(ctx context.Context, resourceGroupName string) (result network.LocalNetworkGatewayListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.LocalNetworkGatewayListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, localNetworkGatewayName string, parameters network.TagsObject) (result network.LocalNetworkGatewaysUpdateTagsFuture, err error)
}
diff --git a/services/network/mgmt/2017-11-01/network/operations.go b/services/network/mgmt/2017-11-01/network/operations.go
index 22f9a269efd2..1848e140c249 100644
--- a/services/network/mgmt/2017-11-01/network/operations.go
+++ b/services/network/mgmt/2017-11-01/network/operations.go
@@ -35,7 +35,8 @@ func NewOperationsClient(subscriptionID string) OperationsClient {
return NewOperationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewOperationsClientWithBaseURI creates an instance of the OperationsClient client.
+// NewOperationsClientWithBaseURI creates an instance of the OperationsClient client using a custom endpoint. Use this
+// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient {
return OperationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-11-01/network/packetcaptures.go b/services/network/mgmt/2017-11-01/network/packetcaptures.go
index affe3a5b446a..f9ae3385d67d 100644
--- a/services/network/mgmt/2017-11-01/network/packetcaptures.go
+++ b/services/network/mgmt/2017-11-01/network/packetcaptures.go
@@ -36,7 +36,8 @@ func NewPacketCapturesClient(subscriptionID string) PacketCapturesClient {
return NewPacketCapturesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewPacketCapturesClientWithBaseURI creates an instance of the PacketCapturesClient client.
+// NewPacketCapturesClientWithBaseURI creates an instance of the PacketCapturesClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewPacketCapturesClientWithBaseURI(baseURI string, subscriptionID string) PacketCapturesClient {
return PacketCapturesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-11-01/network/publicipaddresses.go b/services/network/mgmt/2017-11-01/network/publicipaddresses.go
index 46c1ad084155..fe14199c1709 100644
--- a/services/network/mgmt/2017-11-01/network/publicipaddresses.go
+++ b/services/network/mgmt/2017-11-01/network/publicipaddresses.go
@@ -36,7 +36,9 @@ func NewPublicIPAddressesClient(subscriptionID string) PublicIPAddressesClient {
return NewPublicIPAddressesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewPublicIPAddressesClientWithBaseURI creates an instance of the PublicIPAddressesClient client.
+// NewPublicIPAddressesClientWithBaseURI creates an instance of the PublicIPAddressesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewPublicIPAddressesClientWithBaseURI(baseURI string, subscriptionID string) PublicIPAddressesClient {
return PublicIPAddressesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-11-01/network/routefilterrules.go b/services/network/mgmt/2017-11-01/network/routefilterrules.go
index 1b9d558e0672..474c284fb94a 100644
--- a/services/network/mgmt/2017-11-01/network/routefilterrules.go
+++ b/services/network/mgmt/2017-11-01/network/routefilterrules.go
@@ -36,7 +36,9 @@ func NewRouteFilterRulesClient(subscriptionID string) RouteFilterRulesClient {
return NewRouteFilterRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewRouteFilterRulesClientWithBaseURI creates an instance of the RouteFilterRulesClient client.
+// NewRouteFilterRulesClientWithBaseURI creates an instance of the RouteFilterRulesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewRouteFilterRulesClientWithBaseURI(baseURI string, subscriptionID string) RouteFilterRulesClient {
return RouteFilterRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-11-01/network/routefilters.go b/services/network/mgmt/2017-11-01/network/routefilters.go
index b7cfd9dc24ff..094160ac185b 100644
--- a/services/network/mgmt/2017-11-01/network/routefilters.go
+++ b/services/network/mgmt/2017-11-01/network/routefilters.go
@@ -35,7 +35,8 @@ func NewRouteFiltersClient(subscriptionID string) RouteFiltersClient {
return NewRouteFiltersClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewRouteFiltersClientWithBaseURI creates an instance of the RouteFiltersClient client.
+// NewRouteFiltersClientWithBaseURI creates an instance of the RouteFiltersClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewRouteFiltersClientWithBaseURI(baseURI string, subscriptionID string) RouteFiltersClient {
return RouteFiltersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-11-01/network/routes.go b/services/network/mgmt/2017-11-01/network/routes.go
index 458f4df76981..265286f34aba 100644
--- a/services/network/mgmt/2017-11-01/network/routes.go
+++ b/services/network/mgmt/2017-11-01/network/routes.go
@@ -35,7 +35,8 @@ func NewRoutesClient(subscriptionID string) RoutesClient {
return NewRoutesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewRoutesClientWithBaseURI creates an instance of the RoutesClient client.
+// NewRoutesClientWithBaseURI creates an instance of the RoutesClient client using a custom endpoint. Use this when
+// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewRoutesClientWithBaseURI(baseURI string, subscriptionID string) RoutesClient {
return RoutesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-11-01/network/routetables.go b/services/network/mgmt/2017-11-01/network/routetables.go
index e373eb94a7a3..6653b7b30848 100644
--- a/services/network/mgmt/2017-11-01/network/routetables.go
+++ b/services/network/mgmt/2017-11-01/network/routetables.go
@@ -35,7 +35,8 @@ func NewRouteTablesClient(subscriptionID string) RouteTablesClient {
return NewRouteTablesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewRouteTablesClientWithBaseURI creates an instance of the RouteTablesClient client.
+// NewRouteTablesClientWithBaseURI creates an instance of the RouteTablesClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewRouteTablesClientWithBaseURI(baseURI string, subscriptionID string) RouteTablesClient {
return RouteTablesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-11-01/network/securitygroups.go b/services/network/mgmt/2017-11-01/network/securitygroups.go
index cd759b7c7897..89036994f20f 100644
--- a/services/network/mgmt/2017-11-01/network/securitygroups.go
+++ b/services/network/mgmt/2017-11-01/network/securitygroups.go
@@ -35,7 +35,8 @@ func NewSecurityGroupsClient(subscriptionID string) SecurityGroupsClient {
return NewSecurityGroupsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewSecurityGroupsClientWithBaseURI creates an instance of the SecurityGroupsClient client.
+// NewSecurityGroupsClientWithBaseURI creates an instance of the SecurityGroupsClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewSecurityGroupsClientWithBaseURI(baseURI string, subscriptionID string) SecurityGroupsClient {
return SecurityGroupsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-11-01/network/securityrules.go b/services/network/mgmt/2017-11-01/network/securityrules.go
index ccff10c5fe4d..c32551b6b302 100644
--- a/services/network/mgmt/2017-11-01/network/securityrules.go
+++ b/services/network/mgmt/2017-11-01/network/securityrules.go
@@ -35,7 +35,8 @@ func NewSecurityRulesClient(subscriptionID string) SecurityRulesClient {
return NewSecurityRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewSecurityRulesClientWithBaseURI creates an instance of the SecurityRulesClient client.
+// NewSecurityRulesClientWithBaseURI creates an instance of the SecurityRulesClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewSecurityRulesClientWithBaseURI(baseURI string, subscriptionID string) SecurityRulesClient {
return SecurityRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-11-01/network/subnets.go b/services/network/mgmt/2017-11-01/network/subnets.go
index 173ae6635d3c..0dc3ce0134af 100644
--- a/services/network/mgmt/2017-11-01/network/subnets.go
+++ b/services/network/mgmt/2017-11-01/network/subnets.go
@@ -35,7 +35,8 @@ func NewSubnetsClient(subscriptionID string) SubnetsClient {
return NewSubnetsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewSubnetsClientWithBaseURI creates an instance of the SubnetsClient client.
+// NewSubnetsClientWithBaseURI creates an instance of the SubnetsClient client using a custom endpoint. Use this when
+// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewSubnetsClientWithBaseURI(baseURI string, subscriptionID string) SubnetsClient {
return SubnetsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-11-01/network/usages.go b/services/network/mgmt/2017-11-01/network/usages.go
index 51ad5134ea94..73a86975ff85 100644
--- a/services/network/mgmt/2017-11-01/network/usages.go
+++ b/services/network/mgmt/2017-11-01/network/usages.go
@@ -36,7 +36,8 @@ func NewUsagesClient(subscriptionID string) UsagesClient {
return NewUsagesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewUsagesClientWithBaseURI creates an instance of the UsagesClient client.
+// NewUsagesClientWithBaseURI creates an instance of the UsagesClient client using a custom endpoint. Use this when
+// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewUsagesClientWithBaseURI(baseURI string, subscriptionID string) UsagesClient {
return UsagesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-11-01/network/virtualnetworkgatewayconnections.go b/services/network/mgmt/2017-11-01/network/virtualnetworkgatewayconnections.go
index be4edb083753..8c24555d7952 100644
--- a/services/network/mgmt/2017-11-01/network/virtualnetworkgatewayconnections.go
+++ b/services/network/mgmt/2017-11-01/network/virtualnetworkgatewayconnections.go
@@ -37,7 +37,8 @@ func NewVirtualNetworkGatewayConnectionsClient(subscriptionID string) VirtualNet
}
// NewVirtualNetworkGatewayConnectionsClientWithBaseURI creates an instance of the
-// VirtualNetworkGatewayConnectionsClient client.
+// VirtualNetworkGatewayConnectionsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVirtualNetworkGatewayConnectionsClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworkGatewayConnectionsClient {
return VirtualNetworkGatewayConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-11-01/network/virtualnetworkgateways.go b/services/network/mgmt/2017-11-01/network/virtualnetworkgateways.go
index 1d4c86205ea3..8718e8ec5407 100644
--- a/services/network/mgmt/2017-11-01/network/virtualnetworkgateways.go
+++ b/services/network/mgmt/2017-11-01/network/virtualnetworkgateways.go
@@ -36,7 +36,9 @@ func NewVirtualNetworkGatewaysClient(subscriptionID string) VirtualNetworkGatewa
return NewVirtualNetworkGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualNetworkGatewaysClientWithBaseURI creates an instance of the VirtualNetworkGatewaysClient client.
+// NewVirtualNetworkGatewaysClientWithBaseURI creates an instance of the VirtualNetworkGatewaysClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewVirtualNetworkGatewaysClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworkGatewaysClient {
return VirtualNetworkGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-11-01/network/virtualnetworkpeerings.go b/services/network/mgmt/2017-11-01/network/virtualnetworkpeerings.go
index 07fac587edad..3e9135f7cebb 100644
--- a/services/network/mgmt/2017-11-01/network/virtualnetworkpeerings.go
+++ b/services/network/mgmt/2017-11-01/network/virtualnetworkpeerings.go
@@ -35,7 +35,9 @@ func NewVirtualNetworkPeeringsClient(subscriptionID string) VirtualNetworkPeerin
return NewVirtualNetworkPeeringsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualNetworkPeeringsClientWithBaseURI creates an instance of the VirtualNetworkPeeringsClient client.
+// NewVirtualNetworkPeeringsClientWithBaseURI creates an instance of the VirtualNetworkPeeringsClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewVirtualNetworkPeeringsClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworkPeeringsClient {
return VirtualNetworkPeeringsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-11-01/network/virtualnetworks.go b/services/network/mgmt/2017-11-01/network/virtualnetworks.go
index 280bded3a6a8..6516d1c81454 100644
--- a/services/network/mgmt/2017-11-01/network/virtualnetworks.go
+++ b/services/network/mgmt/2017-11-01/network/virtualnetworks.go
@@ -35,7 +35,8 @@ func NewVirtualNetworksClient(subscriptionID string) VirtualNetworksClient {
return NewVirtualNetworksClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualNetworksClientWithBaseURI creates an instance of the VirtualNetworksClient client.
+// NewVirtualNetworksClientWithBaseURI creates an instance of the VirtualNetworksClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVirtualNetworksClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworksClient {
return VirtualNetworksClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2017-11-01/network/watchers.go b/services/network/mgmt/2017-11-01/network/watchers.go
index 0d57545fb854..283a3f3c556c 100644
--- a/services/network/mgmt/2017-11-01/network/watchers.go
+++ b/services/network/mgmt/2017-11-01/network/watchers.go
@@ -36,7 +36,8 @@ func NewWatchersClient(subscriptionID string) WatchersClient {
return NewWatchersClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewWatchersClientWithBaseURI creates an instance of the WatchersClient client.
+// NewWatchersClientWithBaseURI creates an instance of the WatchersClient client using a custom endpoint. Use this
+// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewWatchersClientWithBaseURI(baseURI string, subscriptionID string) WatchersClient {
return WatchersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-01-01/network/applicationgateways.go b/services/network/mgmt/2018-01-01/network/applicationgateways.go
index 422ceea7d0de..cf9df288d5c4 100644
--- a/services/network/mgmt/2018-01-01/network/applicationgateways.go
+++ b/services/network/mgmt/2018-01-01/network/applicationgateways.go
@@ -36,7 +36,9 @@ func NewApplicationGatewaysClient(subscriptionID string) ApplicationGatewaysClie
return NewApplicationGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewApplicationGatewaysClientWithBaseURI creates an instance of the ApplicationGatewaysClient client.
+// NewApplicationGatewaysClientWithBaseURI creates an instance of the ApplicationGatewaysClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewApplicationGatewaysClientWithBaseURI(baseURI string, subscriptionID string) ApplicationGatewaysClient {
return ApplicationGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-01-01/network/applicationsecuritygroups.go b/services/network/mgmt/2018-01-01/network/applicationsecuritygroups.go
index 7c11792555a9..019a105f742a 100644
--- a/services/network/mgmt/2018-01-01/network/applicationsecuritygroups.go
+++ b/services/network/mgmt/2018-01-01/network/applicationsecuritygroups.go
@@ -35,7 +35,9 @@ func NewApplicationSecurityGroupsClient(subscriptionID string) ApplicationSecuri
return NewApplicationSecurityGroupsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewApplicationSecurityGroupsClientWithBaseURI creates an instance of the ApplicationSecurityGroupsClient client.
+// NewApplicationSecurityGroupsClientWithBaseURI creates an instance of the ApplicationSecurityGroupsClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewApplicationSecurityGroupsClientWithBaseURI(baseURI string, subscriptionID string) ApplicationSecurityGroupsClient {
return ApplicationSecurityGroupsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-01-01/network/availableendpointservices.go b/services/network/mgmt/2018-01-01/network/availableendpointservices.go
index ad549c364275..1a2d9bd609fe 100644
--- a/services/network/mgmt/2018-01-01/network/availableendpointservices.go
+++ b/services/network/mgmt/2018-01-01/network/availableendpointservices.go
@@ -35,7 +35,9 @@ func NewAvailableEndpointServicesClient(subscriptionID string) AvailableEndpoint
return NewAvailableEndpointServicesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewAvailableEndpointServicesClientWithBaseURI creates an instance of the AvailableEndpointServicesClient client.
+// NewAvailableEndpointServicesClientWithBaseURI creates an instance of the AvailableEndpointServicesClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewAvailableEndpointServicesClientWithBaseURI(baseURI string, subscriptionID string) AvailableEndpointServicesClient {
return AvailableEndpointServicesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-01-01/network/bgpservicecommunities.go b/services/network/mgmt/2018-01-01/network/bgpservicecommunities.go
index 65648cf79e08..0d6a8cbb51c9 100644
--- a/services/network/mgmt/2018-01-01/network/bgpservicecommunities.go
+++ b/services/network/mgmt/2018-01-01/network/bgpservicecommunities.go
@@ -35,7 +35,9 @@ func NewBgpServiceCommunitiesClient(subscriptionID string) BgpServiceCommunities
return NewBgpServiceCommunitiesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewBgpServiceCommunitiesClientWithBaseURI creates an instance of the BgpServiceCommunitiesClient client.
+// NewBgpServiceCommunitiesClientWithBaseURI creates an instance of the BgpServiceCommunitiesClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewBgpServiceCommunitiesClientWithBaseURI(baseURI string, subscriptionID string) BgpServiceCommunitiesClient {
return BgpServiceCommunitiesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-01-01/network/client.go b/services/network/mgmt/2018-01-01/network/client.go
index f7d7582b7648..7cdb3bd6fc52 100644
--- a/services/network/mgmt/2018-01-01/network/client.go
+++ b/services/network/mgmt/2018-01-01/network/client.go
@@ -45,7 +45,8 @@ func New(subscriptionID string) BaseClient {
return NewWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewWithBaseURI creates an instance of the BaseClient client.
+// NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with
+// an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient {
return BaseClient{
Client: autorest.NewClientWithUserAgent(UserAgent()),
diff --git a/services/network/mgmt/2018-01-01/network/connectionmonitors.go b/services/network/mgmt/2018-01-01/network/connectionmonitors.go
index a7723d1fb555..f5c93cc6977d 100644
--- a/services/network/mgmt/2018-01-01/network/connectionmonitors.go
+++ b/services/network/mgmt/2018-01-01/network/connectionmonitors.go
@@ -36,7 +36,9 @@ func NewConnectionMonitorsClient(subscriptionID string) ConnectionMonitorsClient
return NewConnectionMonitorsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewConnectionMonitorsClientWithBaseURI creates an instance of the ConnectionMonitorsClient client.
+// NewConnectionMonitorsClientWithBaseURI creates an instance of the ConnectionMonitorsClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewConnectionMonitorsClientWithBaseURI(baseURI string, subscriptionID string) ConnectionMonitorsClient {
return ConnectionMonitorsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-01-01/network/defaultsecurityrules.go b/services/network/mgmt/2018-01-01/network/defaultsecurityrules.go
index 96b6b1dac2cf..75f138f23f01 100644
--- a/services/network/mgmt/2018-01-01/network/defaultsecurityrules.go
+++ b/services/network/mgmt/2018-01-01/network/defaultsecurityrules.go
@@ -35,7 +35,9 @@ func NewDefaultSecurityRulesClient(subscriptionID string) DefaultSecurityRulesCl
return NewDefaultSecurityRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewDefaultSecurityRulesClientWithBaseURI creates an instance of the DefaultSecurityRulesClient client.
+// NewDefaultSecurityRulesClientWithBaseURI creates an instance of the DefaultSecurityRulesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewDefaultSecurityRulesClientWithBaseURI(baseURI string, subscriptionID string) DefaultSecurityRulesClient {
return DefaultSecurityRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-01-01/network/expressroutecircuitauthorizations.go b/services/network/mgmt/2018-01-01/network/expressroutecircuitauthorizations.go
index cc29e42b5904..bd2141d98f60 100644
--- a/services/network/mgmt/2018-01-01/network/expressroutecircuitauthorizations.go
+++ b/services/network/mgmt/2018-01-01/network/expressroutecircuitauthorizations.go
@@ -37,7 +37,8 @@ func NewExpressRouteCircuitAuthorizationsClient(subscriptionID string) ExpressRo
}
// NewExpressRouteCircuitAuthorizationsClientWithBaseURI creates an instance of the
-// ExpressRouteCircuitAuthorizationsClient client.
+// ExpressRouteCircuitAuthorizationsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewExpressRouteCircuitAuthorizationsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCircuitAuthorizationsClient {
return ExpressRouteCircuitAuthorizationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-01-01/network/expressroutecircuitpeerings.go b/services/network/mgmt/2018-01-01/network/expressroutecircuitpeerings.go
index 714fdefd933c..49f2511053c0 100644
--- a/services/network/mgmt/2018-01-01/network/expressroutecircuitpeerings.go
+++ b/services/network/mgmt/2018-01-01/network/expressroutecircuitpeerings.go
@@ -36,7 +36,9 @@ func NewExpressRouteCircuitPeeringsClient(subscriptionID string) ExpressRouteCir
return NewExpressRouteCircuitPeeringsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewExpressRouteCircuitPeeringsClientWithBaseURI creates an instance of the ExpressRouteCircuitPeeringsClient client.
+// NewExpressRouteCircuitPeeringsClientWithBaseURI creates an instance of the ExpressRouteCircuitPeeringsClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewExpressRouteCircuitPeeringsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCircuitPeeringsClient {
return ExpressRouteCircuitPeeringsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-01-01/network/expressroutecircuits.go b/services/network/mgmt/2018-01-01/network/expressroutecircuits.go
index 0bbe32c034c7..35dba23f7442 100644
--- a/services/network/mgmt/2018-01-01/network/expressroutecircuits.go
+++ b/services/network/mgmt/2018-01-01/network/expressroutecircuits.go
@@ -35,7 +35,9 @@ func NewExpressRouteCircuitsClient(subscriptionID string) ExpressRouteCircuitsCl
return NewExpressRouteCircuitsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewExpressRouteCircuitsClientWithBaseURI creates an instance of the ExpressRouteCircuitsClient client.
+// NewExpressRouteCircuitsClientWithBaseURI creates an instance of the ExpressRouteCircuitsClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewExpressRouteCircuitsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCircuitsClient {
return ExpressRouteCircuitsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-01-01/network/expressrouteserviceproviders.go b/services/network/mgmt/2018-01-01/network/expressrouteserviceproviders.go
index 6b45407f7401..e791c431b9cb 100644
--- a/services/network/mgmt/2018-01-01/network/expressrouteserviceproviders.go
+++ b/services/network/mgmt/2018-01-01/network/expressrouteserviceproviders.go
@@ -36,7 +36,8 @@ func NewExpressRouteServiceProvidersClient(subscriptionID string) ExpressRouteSe
}
// NewExpressRouteServiceProvidersClientWithBaseURI creates an instance of the ExpressRouteServiceProvidersClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewExpressRouteServiceProvidersClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteServiceProvidersClient {
return ExpressRouteServiceProvidersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-01-01/network/inboundnatrules.go b/services/network/mgmt/2018-01-01/network/inboundnatrules.go
index 377093f1ed82..d607318358a1 100644
--- a/services/network/mgmt/2018-01-01/network/inboundnatrules.go
+++ b/services/network/mgmt/2018-01-01/network/inboundnatrules.go
@@ -36,7 +36,8 @@ func NewInboundNatRulesClient(subscriptionID string) InboundNatRulesClient {
return NewInboundNatRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewInboundNatRulesClientWithBaseURI creates an instance of the InboundNatRulesClient client.
+// NewInboundNatRulesClientWithBaseURI creates an instance of the InboundNatRulesClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewInboundNatRulesClientWithBaseURI(baseURI string, subscriptionID string) InboundNatRulesClient {
return InboundNatRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-01-01/network/interfaceipconfigurations.go b/services/network/mgmt/2018-01-01/network/interfaceipconfigurations.go
index 26277ed4a8d3..f4b25b050da5 100644
--- a/services/network/mgmt/2018-01-01/network/interfaceipconfigurations.go
+++ b/services/network/mgmt/2018-01-01/network/interfaceipconfigurations.go
@@ -35,7 +35,9 @@ func NewInterfaceIPConfigurationsClient(subscriptionID string) InterfaceIPConfig
return NewInterfaceIPConfigurationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewInterfaceIPConfigurationsClientWithBaseURI creates an instance of the InterfaceIPConfigurationsClient client.
+// NewInterfaceIPConfigurationsClientWithBaseURI creates an instance of the InterfaceIPConfigurationsClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewInterfaceIPConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) InterfaceIPConfigurationsClient {
return InterfaceIPConfigurationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-01-01/network/interfaceloadbalancers.go b/services/network/mgmt/2018-01-01/network/interfaceloadbalancers.go
index 253f73dcdb62..d66a449ba65b 100644
--- a/services/network/mgmt/2018-01-01/network/interfaceloadbalancers.go
+++ b/services/network/mgmt/2018-01-01/network/interfaceloadbalancers.go
@@ -35,7 +35,9 @@ func NewInterfaceLoadBalancersClient(subscriptionID string) InterfaceLoadBalance
return NewInterfaceLoadBalancersClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewInterfaceLoadBalancersClientWithBaseURI creates an instance of the InterfaceLoadBalancersClient client.
+// NewInterfaceLoadBalancersClientWithBaseURI creates an instance of the InterfaceLoadBalancersClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewInterfaceLoadBalancersClientWithBaseURI(baseURI string, subscriptionID string) InterfaceLoadBalancersClient {
return InterfaceLoadBalancersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-01-01/network/interfacesgroup.go b/services/network/mgmt/2018-01-01/network/interfacesgroup.go
index 5950562ba21a..b9ca8bf69d12 100644
--- a/services/network/mgmt/2018-01-01/network/interfacesgroup.go
+++ b/services/network/mgmt/2018-01-01/network/interfacesgroup.go
@@ -35,7 +35,8 @@ func NewInterfacesClient(subscriptionID string) InterfacesClient {
return NewInterfacesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewInterfacesClientWithBaseURI creates an instance of the InterfacesClient client.
+// NewInterfacesClientWithBaseURI creates an instance of the InterfacesClient client using a custom endpoint. Use this
+// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewInterfacesClientWithBaseURI(baseURI string, subscriptionID string) InterfacesClient {
return InterfacesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-01-01/network/loadbalancerbackendaddresspools.go b/services/network/mgmt/2018-01-01/network/loadbalancerbackendaddresspools.go
index 5c322d4ad2cf..644f785a70b7 100644
--- a/services/network/mgmt/2018-01-01/network/loadbalancerbackendaddresspools.go
+++ b/services/network/mgmt/2018-01-01/network/loadbalancerbackendaddresspools.go
@@ -36,7 +36,8 @@ func NewLoadBalancerBackendAddressPoolsClient(subscriptionID string) LoadBalance
}
// NewLoadBalancerBackendAddressPoolsClientWithBaseURI creates an instance of the LoadBalancerBackendAddressPoolsClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewLoadBalancerBackendAddressPoolsClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerBackendAddressPoolsClient {
return LoadBalancerBackendAddressPoolsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-01-01/network/loadbalancerfrontendipconfigurations.go b/services/network/mgmt/2018-01-01/network/loadbalancerfrontendipconfigurations.go
index 5c6899992f4c..6b6762770045 100644
--- a/services/network/mgmt/2018-01-01/network/loadbalancerfrontendipconfigurations.go
+++ b/services/network/mgmt/2018-01-01/network/loadbalancerfrontendipconfigurations.go
@@ -37,7 +37,8 @@ func NewLoadBalancerFrontendIPConfigurationsClient(subscriptionID string) LoadBa
}
// NewLoadBalancerFrontendIPConfigurationsClientWithBaseURI creates an instance of the
-// LoadBalancerFrontendIPConfigurationsClient client.
+// LoadBalancerFrontendIPConfigurationsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewLoadBalancerFrontendIPConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerFrontendIPConfigurationsClient {
return LoadBalancerFrontendIPConfigurationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-01-01/network/loadbalancerloadbalancingrules.go b/services/network/mgmt/2018-01-01/network/loadbalancerloadbalancingrules.go
index 6b27f9cc7eae..2d2e9b8d04d2 100644
--- a/services/network/mgmt/2018-01-01/network/loadbalancerloadbalancingrules.go
+++ b/services/network/mgmt/2018-01-01/network/loadbalancerloadbalancingrules.go
@@ -36,7 +36,8 @@ func NewLoadBalancerLoadBalancingRulesClient(subscriptionID string) LoadBalancer
}
// NewLoadBalancerLoadBalancingRulesClientWithBaseURI creates an instance of the LoadBalancerLoadBalancingRulesClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewLoadBalancerLoadBalancingRulesClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerLoadBalancingRulesClient {
return LoadBalancerLoadBalancingRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-01-01/network/loadbalancernetworkinterfaces.go b/services/network/mgmt/2018-01-01/network/loadbalancernetworkinterfaces.go
index 2354f0e9f4b0..0ca966cc4ace 100644
--- a/services/network/mgmt/2018-01-01/network/loadbalancernetworkinterfaces.go
+++ b/services/network/mgmt/2018-01-01/network/loadbalancernetworkinterfaces.go
@@ -36,7 +36,8 @@ func NewLoadBalancerNetworkInterfacesClient(subscriptionID string) LoadBalancerN
}
// NewLoadBalancerNetworkInterfacesClientWithBaseURI creates an instance of the LoadBalancerNetworkInterfacesClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewLoadBalancerNetworkInterfacesClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerNetworkInterfacesClient {
return LoadBalancerNetworkInterfacesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-01-01/network/loadbalancerprobes.go b/services/network/mgmt/2018-01-01/network/loadbalancerprobes.go
index f5f4deeb0d42..28c3b8b64425 100644
--- a/services/network/mgmt/2018-01-01/network/loadbalancerprobes.go
+++ b/services/network/mgmt/2018-01-01/network/loadbalancerprobes.go
@@ -35,7 +35,9 @@ func NewLoadBalancerProbesClient(subscriptionID string) LoadBalancerProbesClient
return NewLoadBalancerProbesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewLoadBalancerProbesClientWithBaseURI creates an instance of the LoadBalancerProbesClient client.
+// NewLoadBalancerProbesClientWithBaseURI creates an instance of the LoadBalancerProbesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewLoadBalancerProbesClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerProbesClient {
return LoadBalancerProbesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-01-01/network/loadbalancers.go b/services/network/mgmt/2018-01-01/network/loadbalancers.go
index 2f1aff7dfade..84122eb2814f 100644
--- a/services/network/mgmt/2018-01-01/network/loadbalancers.go
+++ b/services/network/mgmt/2018-01-01/network/loadbalancers.go
@@ -35,7 +35,8 @@ func NewLoadBalancersClient(subscriptionID string) LoadBalancersClient {
return NewLoadBalancersClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewLoadBalancersClientWithBaseURI creates an instance of the LoadBalancersClient client.
+// NewLoadBalancersClientWithBaseURI creates an instance of the LoadBalancersClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewLoadBalancersClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancersClient {
return LoadBalancersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-01-01/network/localnetworkgateways.go b/services/network/mgmt/2018-01-01/network/localnetworkgateways.go
index fcf6ef4186f9..65f77e85fabe 100644
--- a/services/network/mgmt/2018-01-01/network/localnetworkgateways.go
+++ b/services/network/mgmt/2018-01-01/network/localnetworkgateways.go
@@ -36,7 +36,9 @@ func NewLocalNetworkGatewaysClient(subscriptionID string) LocalNetworkGatewaysCl
return NewLocalNetworkGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewLocalNetworkGatewaysClientWithBaseURI creates an instance of the LocalNetworkGatewaysClient client.
+// NewLocalNetworkGatewaysClientWithBaseURI creates an instance of the LocalNetworkGatewaysClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewLocalNetworkGatewaysClientWithBaseURI(baseURI string, subscriptionID string) LocalNetworkGatewaysClient {
return LocalNetworkGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-01-01/network/networkapi/interfaces.go b/services/network/mgmt/2018-01-01/network/networkapi/interfaces.go
index a982c09d3b4b..a108eefa6979 100644
--- a/services/network/mgmt/2018-01-01/network/networkapi/interfaces.go
+++ b/services/network/mgmt/2018-01-01/network/networkapi/interfaces.go
@@ -37,9 +37,12 @@ type ApplicationGatewaysClientAPI interface {
Get(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result network.ApplicationGateway, err error)
GetSslPredefinedPolicy(ctx context.Context, predefinedPolicyName string) (result network.ApplicationGatewaySslPredefinedPolicy, err error)
List(ctx context.Context, resourceGroupName string) (result network.ApplicationGatewayListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.ApplicationGatewayListResultIterator, err error)
ListAll(ctx context.Context) (result network.ApplicationGatewayListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.ApplicationGatewayListResultIterator, err error)
ListAvailableSslOptions(ctx context.Context) (result network.ApplicationGatewayAvailableSslOptions, err error)
ListAvailableSslPredefinedPolicies(ctx context.Context) (result network.ApplicationGatewayAvailableSslPredefinedPoliciesPage, err error)
+ ListAvailableSslPredefinedPoliciesComplete(ctx context.Context) (result network.ApplicationGatewayAvailableSslPredefinedPoliciesIterator, err error)
ListAvailableWafRuleSets(ctx context.Context) (result network.ApplicationGatewayAvailableWafRuleSetsResult, err error)
Start(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result network.ApplicationGatewaysStartFuture, err error)
Stop(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result network.ApplicationGatewaysStopFuture, err error)
@@ -54,7 +57,9 @@ type ApplicationSecurityGroupsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, applicationSecurityGroupName string) (result network.ApplicationSecurityGroupsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, applicationSecurityGroupName string) (result network.ApplicationSecurityGroup, err error)
List(ctx context.Context, resourceGroupName string) (result network.ApplicationSecurityGroupListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.ApplicationSecurityGroupListResultIterator, err error)
ListAll(ctx context.Context) (result network.ApplicationSecurityGroupListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.ApplicationSecurityGroupListResultIterator, err error)
}
var _ ApplicationSecurityGroupsClientAPI = (*network.ApplicationSecurityGroupsClient)(nil)
@@ -62,6 +67,7 @@ var _ ApplicationSecurityGroupsClientAPI = (*network.ApplicationSecurityGroupsCl
// AvailableEndpointServicesClientAPI contains the set of methods on the AvailableEndpointServicesClient type.
type AvailableEndpointServicesClientAPI interface {
List(ctx context.Context, location string) (result network.EndpointServicesListResultPage, err error)
+ ListComplete(ctx context.Context, location string) (result network.EndpointServicesListResultIterator, err error)
}
var _ AvailableEndpointServicesClientAPI = (*network.AvailableEndpointServicesClient)(nil)
@@ -72,6 +78,7 @@ type ExpressRouteCircuitAuthorizationsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, circuitName string, authorizationName string) (result network.ExpressRouteCircuitAuthorizationsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, circuitName string, authorizationName string) (result network.ExpressRouteCircuitAuthorization, err error)
List(ctx context.Context, resourceGroupName string, circuitName string) (result network.AuthorizationListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, circuitName string) (result network.AuthorizationListResultIterator, err error)
}
var _ ExpressRouteCircuitAuthorizationsClientAPI = (*network.ExpressRouteCircuitAuthorizationsClient)(nil)
@@ -82,6 +89,7 @@ type ExpressRouteCircuitPeeringsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.ExpressRouteCircuitPeeringsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.ExpressRouteCircuitPeering, err error)
List(ctx context.Context, resourceGroupName string, circuitName string) (result network.ExpressRouteCircuitPeeringListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, circuitName string) (result network.ExpressRouteCircuitPeeringListResultIterator, err error)
}
var _ ExpressRouteCircuitPeeringsClientAPI = (*network.ExpressRouteCircuitPeeringsClient)(nil)
@@ -94,7 +102,9 @@ type ExpressRouteCircuitsClientAPI interface {
GetPeeringStats(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.ExpressRouteCircuitStats, err error)
GetStats(ctx context.Context, resourceGroupName string, circuitName string) (result network.ExpressRouteCircuitStats, err error)
List(ctx context.Context, resourceGroupName string) (result network.ExpressRouteCircuitListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.ExpressRouteCircuitListResultIterator, err error)
ListAll(ctx context.Context) (result network.ExpressRouteCircuitListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.ExpressRouteCircuitListResultIterator, err error)
ListArpTable(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, devicePath string) (result network.ExpressRouteCircuitsListArpTableFuture, err error)
ListRoutesTable(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, devicePath string) (result network.ExpressRouteCircuitsListRoutesTableFuture, err error)
ListRoutesTableSummary(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, devicePath string) (result network.ExpressRouteCircuitsListRoutesTableSummaryFuture, err error)
@@ -106,6 +116,7 @@ var _ ExpressRouteCircuitsClientAPI = (*network.ExpressRouteCircuitsClient)(nil)
// ExpressRouteServiceProvidersClientAPI contains the set of methods on the ExpressRouteServiceProvidersClient type.
type ExpressRouteServiceProvidersClientAPI interface {
List(ctx context.Context) (result network.ExpressRouteServiceProviderListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ExpressRouteServiceProviderListResultIterator, err error)
}
var _ ExpressRouteServiceProvidersClientAPI = (*network.ExpressRouteServiceProvidersClient)(nil)
@@ -116,7 +127,9 @@ type LoadBalancersClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancersDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, expand string) (result network.LoadBalancer, err error)
List(ctx context.Context, resourceGroupName string) (result network.LoadBalancerListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.LoadBalancerListResultIterator, err error)
ListAll(ctx context.Context) (result network.LoadBalancerListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.LoadBalancerListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, loadBalancerName string, parameters network.TagsObject) (result network.LoadBalancersUpdateTagsFuture, err error)
}
@@ -126,6 +139,7 @@ var _ LoadBalancersClientAPI = (*network.LoadBalancersClient)(nil)
type LoadBalancerBackendAddressPoolsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, backendAddressPoolName string) (result network.BackendAddressPool, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerBackendAddressPoolListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerBackendAddressPoolListResultIterator, err error)
}
var _ LoadBalancerBackendAddressPoolsClientAPI = (*network.LoadBalancerBackendAddressPoolsClient)(nil)
@@ -134,6 +148,7 @@ var _ LoadBalancerBackendAddressPoolsClientAPI = (*network.LoadBalancerBackendAd
type LoadBalancerFrontendIPConfigurationsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, frontendIPConfigurationName string) (result network.FrontendIPConfiguration, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerFrontendIPConfigurationListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerFrontendIPConfigurationListResultIterator, err error)
}
var _ LoadBalancerFrontendIPConfigurationsClientAPI = (*network.LoadBalancerFrontendIPConfigurationsClient)(nil)
@@ -144,6 +159,7 @@ type InboundNatRulesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, loadBalancerName string, inboundNatRuleName string) (result network.InboundNatRulesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, inboundNatRuleName string, expand string) (result network.InboundNatRule, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.InboundNatRuleListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.InboundNatRuleListResultIterator, err error)
}
var _ InboundNatRulesClientAPI = (*network.InboundNatRulesClient)(nil)
@@ -152,6 +168,7 @@ var _ InboundNatRulesClientAPI = (*network.InboundNatRulesClient)(nil)
type LoadBalancerLoadBalancingRulesClientAPI interface {
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, loadBalancingRuleName string) (result network.LoadBalancingRule, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerLoadBalancingRuleListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerLoadBalancingRuleListResultIterator, err error)
}
var _ LoadBalancerLoadBalancingRulesClientAPI = (*network.LoadBalancerLoadBalancingRulesClient)(nil)
@@ -159,6 +176,7 @@ var _ LoadBalancerLoadBalancingRulesClientAPI = (*network.LoadBalancerLoadBalanc
// LoadBalancerNetworkInterfacesClientAPI contains the set of methods on the LoadBalancerNetworkInterfacesClient type.
type LoadBalancerNetworkInterfacesClientAPI interface {
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.InterfaceListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.InterfaceListResultIterator, err error)
}
var _ LoadBalancerNetworkInterfacesClientAPI = (*network.LoadBalancerNetworkInterfacesClient)(nil)
@@ -167,6 +185,7 @@ var _ LoadBalancerNetworkInterfacesClientAPI = (*network.LoadBalancerNetworkInte
type LoadBalancerProbesClientAPI interface {
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, probeName string) (result network.Probe, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerProbeListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerProbeListResultIterator, err error)
}
var _ LoadBalancerProbesClientAPI = (*network.LoadBalancerProbesClient)(nil)
@@ -180,11 +199,16 @@ type InterfacesClientAPI interface {
GetVirtualMachineScaleSetIPConfiguration(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, IPConfigurationName string, expand string) (result network.InterfaceIPConfiguration, err error)
GetVirtualMachineScaleSetNetworkInterface(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, expand string) (result network.Interface, err error)
List(ctx context.Context, resourceGroupName string) (result network.InterfaceListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.InterfaceListResultIterator, err error)
ListAll(ctx context.Context) (result network.InterfaceListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.InterfaceListResultIterator, err error)
ListEffectiveNetworkSecurityGroups(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfacesListEffectiveNetworkSecurityGroupsFuture, err error)
ListVirtualMachineScaleSetIPConfigurations(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, expand string) (result network.InterfaceIPConfigurationListResultPage, err error)
+ ListVirtualMachineScaleSetIPConfigurationsComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, expand string) (result network.InterfaceIPConfigurationListResultIterator, err error)
ListVirtualMachineScaleSetNetworkInterfaces(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result network.InterfaceListResultPage, err error)
+ ListVirtualMachineScaleSetNetworkInterfacesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result network.InterfaceListResultIterator, err error)
ListVirtualMachineScaleSetVMNetworkInterfaces(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string) (result network.InterfaceListResultPage, err error)
+ ListVirtualMachineScaleSetVMNetworkInterfacesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string) (result network.InterfaceListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, networkInterfaceName string, parameters network.TagsObject) (result network.InterfacesUpdateTagsFuture, err error)
}
@@ -194,6 +218,7 @@ var _ InterfacesClientAPI = (*network.InterfacesClient)(nil)
type InterfaceIPConfigurationsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, networkInterfaceName string, IPConfigurationName string) (result network.InterfaceIPConfiguration, err error)
List(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceIPConfigurationListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceIPConfigurationListResultIterator, err error)
}
var _ InterfaceIPConfigurationsClientAPI = (*network.InterfaceIPConfigurationsClient)(nil)
@@ -201,6 +226,7 @@ var _ InterfaceIPConfigurationsClientAPI = (*network.InterfaceIPConfigurationsCl
// InterfaceLoadBalancersClientAPI contains the set of methods on the InterfaceLoadBalancersClient type.
type InterfaceLoadBalancersClientAPI interface {
List(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceLoadBalancerListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceLoadBalancerListResultIterator, err error)
}
var _ InterfaceLoadBalancersClientAPI = (*network.InterfaceLoadBalancersClient)(nil)
@@ -211,7 +237,9 @@ type SecurityGroupsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityGroupsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, expand string) (result network.SecurityGroup, err error)
List(ctx context.Context, resourceGroupName string) (result network.SecurityGroupListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.SecurityGroupListResultIterator, err error)
ListAll(ctx context.Context) (result network.SecurityGroupListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.SecurityGroupListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, parameters network.TagsObject) (result network.SecurityGroupsUpdateTagsFuture, err error)
}
@@ -223,6 +251,7 @@ type SecurityRulesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, securityRuleName string) (result network.SecurityRulesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, securityRuleName string) (result network.SecurityRule, err error)
List(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityRuleListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityRuleListResultIterator, err error)
}
var _ SecurityRulesClientAPI = (*network.SecurityRulesClient)(nil)
@@ -231,6 +260,7 @@ var _ SecurityRulesClientAPI = (*network.SecurityRulesClient)(nil)
type DefaultSecurityRulesClientAPI interface {
Get(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, defaultSecurityRuleName string) (result network.SecurityRule, err error)
List(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityRuleListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityRuleListResultIterator, err error)
}
var _ DefaultSecurityRulesClientAPI = (*network.DefaultSecurityRulesClient)(nil)
@@ -286,6 +316,7 @@ var _ ConnectionMonitorsClientAPI = (*network.ConnectionMonitorsClient)(nil)
// OperationsClientAPI contains the set of methods on the OperationsClient type.
type OperationsClientAPI interface {
List(ctx context.Context) (result network.OperationListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.OperationListResultIterator, err error)
}
var _ OperationsClientAPI = (*network.OperationsClient)(nil)
@@ -297,9 +328,13 @@ type PublicIPAddressesClientAPI interface {
Get(ctx context.Context, resourceGroupName string, publicIPAddressName string, expand string) (result network.PublicIPAddress, err error)
GetVirtualMachineScaleSetPublicIPAddress(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, IPConfigurationName string, publicIPAddressName string, expand string) (result network.PublicIPAddress, err error)
List(ctx context.Context, resourceGroupName string) (result network.PublicIPAddressListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.PublicIPAddressListResultIterator, err error)
ListAll(ctx context.Context) (result network.PublicIPAddressListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.PublicIPAddressListResultIterator, err error)
ListVirtualMachineScaleSetPublicIPAddresses(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result network.PublicIPAddressListResultPage, err error)
+ ListVirtualMachineScaleSetPublicIPAddressesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result network.PublicIPAddressListResultIterator, err error)
ListVirtualMachineScaleSetVMPublicIPAddresses(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, IPConfigurationName string) (result network.PublicIPAddressListResultPage, err error)
+ ListVirtualMachineScaleSetVMPublicIPAddressesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, IPConfigurationName string) (result network.PublicIPAddressListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, publicIPAddressName string, parameters network.TagsObject) (result network.PublicIPAddressesUpdateTagsFuture, err error)
}
@@ -311,7 +346,9 @@ type RouteFiltersClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, routeFilterName string) (result network.RouteFiltersDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, routeFilterName string, expand string) (result network.RouteFilter, err error)
List(ctx context.Context) (result network.RouteFilterListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.RouteFilterListResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.RouteFilterListResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.RouteFilterListResultIterator, err error)
Update(ctx context.Context, resourceGroupName string, routeFilterName string, routeFilterParameters network.PatchRouteFilter) (result network.RouteFiltersUpdateFuture, err error)
}
@@ -323,6 +360,7 @@ type RouteFilterRulesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, routeFilterName string, ruleName string) (result network.RouteFilterRulesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, routeFilterName string, ruleName string) (result network.RouteFilterRule, err error)
ListByRouteFilter(ctx context.Context, resourceGroupName string, routeFilterName string) (result network.RouteFilterRuleListResultPage, err error)
+ ListByRouteFilterComplete(ctx context.Context, resourceGroupName string, routeFilterName string) (result network.RouteFilterRuleListResultIterator, err error)
Update(ctx context.Context, resourceGroupName string, routeFilterName string, ruleName string, routeFilterRuleParameters network.PatchRouteFilterRule) (result network.RouteFilterRulesUpdateFuture, err error)
}
@@ -334,7 +372,9 @@ type RouteTablesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, routeTableName string) (result network.RouteTablesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, routeTableName string, expand string) (result network.RouteTable, err error)
List(ctx context.Context, resourceGroupName string) (result network.RouteTableListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.RouteTableListResultIterator, err error)
ListAll(ctx context.Context) (result network.RouteTableListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.RouteTableListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, routeTableName string, parameters network.TagsObject) (result network.RouteTablesUpdateTagsFuture, err error)
}
@@ -346,6 +386,7 @@ type RoutesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, routeTableName string, routeName string) (result network.RoutesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, routeTableName string, routeName string) (result network.Route, err error)
List(ctx context.Context, resourceGroupName string, routeTableName string) (result network.RouteListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, routeTableName string) (result network.RouteListResultIterator, err error)
}
var _ RoutesClientAPI = (*network.RoutesClient)(nil)
@@ -353,6 +394,7 @@ var _ RoutesClientAPI = (*network.RoutesClient)(nil)
// BgpServiceCommunitiesClientAPI contains the set of methods on the BgpServiceCommunitiesClient type.
type BgpServiceCommunitiesClientAPI interface {
List(ctx context.Context) (result network.BgpServiceCommunityListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.BgpServiceCommunityListResultIterator, err error)
}
var _ BgpServiceCommunitiesClientAPI = (*network.BgpServiceCommunitiesClient)(nil)
@@ -360,6 +402,7 @@ var _ BgpServiceCommunitiesClientAPI = (*network.BgpServiceCommunitiesClient)(ni
// UsagesClientAPI contains the set of methods on the UsagesClient type.
type UsagesClientAPI interface {
List(ctx context.Context, location string) (result network.UsagesListResultPage, err error)
+ ListComplete(ctx context.Context, location string) (result network.UsagesListResultIterator, err error)
}
var _ UsagesClientAPI = (*network.UsagesClient)(nil)
@@ -371,8 +414,11 @@ type VirtualNetworksClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworksDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualNetworkName string, expand string) (result network.VirtualNetwork, err error)
List(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkListResultIterator, err error)
ListAll(ctx context.Context) (result network.VirtualNetworkListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.VirtualNetworkListResultIterator, err error)
ListUsage(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworkListUsageResultPage, err error)
+ ListUsageComplete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworkListUsageResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, virtualNetworkName string, parameters network.TagsObject) (result network.VirtualNetworksUpdateTagsFuture, err error)
}
@@ -384,6 +430,7 @@ type SubnetsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualNetworkName string, subnetName string) (result network.SubnetsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualNetworkName string, subnetName string, expand string) (result network.Subnet, err error)
List(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.SubnetListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.SubnetListResultIterator, err error)
}
var _ SubnetsClientAPI = (*network.SubnetsClient)(nil)
@@ -394,6 +441,7 @@ type VirtualNetworkPeeringsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualNetworkName string, virtualNetworkPeeringName string) (result network.VirtualNetworkPeeringsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualNetworkName string, virtualNetworkPeeringName string) (result network.VirtualNetworkPeering, err error)
List(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworkPeeringListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworkPeeringListResultIterator, err error)
}
var _ VirtualNetworkPeeringsClientAPI = (*network.VirtualNetworkPeeringsClient)(nil)
@@ -410,7 +458,9 @@ type VirtualNetworkGatewaysClientAPI interface {
GetLearnedRoutes(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGatewaysGetLearnedRoutesFuture, err error)
GetVpnProfilePackageURL(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGatewaysGetVpnProfilePackageURLFuture, err error)
List(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayListResultIterator, err error)
ListConnections(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGatewayListConnectionsResultPage, err error)
+ ListConnectionsComplete(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGatewayListConnectionsResultIterator, err error)
Reset(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, gatewayVip string) (result network.VirtualNetworkGatewaysResetFuture, err error)
SupportedVpnDevices(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.String, err error)
UpdateTags(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, parameters network.TagsObject) (result network.VirtualNetworkGatewaysUpdateTagsFuture, err error)
@@ -426,6 +476,7 @@ type VirtualNetworkGatewayConnectionsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string) (result network.VirtualNetworkGatewayConnection, err error)
GetSharedKey(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string) (result network.ConnectionSharedKey, err error)
List(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayConnectionListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayConnectionListResultIterator, err error)
ResetSharedKey(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string, parameters network.ConnectionResetSharedKey) (result network.VirtualNetworkGatewayConnectionsResetSharedKeyFuture, err error)
SetSharedKey(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string, parameters network.ConnectionSharedKey) (result network.VirtualNetworkGatewayConnectionsSetSharedKeyFuture, err error)
UpdateTags(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string, parameters network.TagsObject) (result network.VirtualNetworkGatewayConnectionsUpdateTagsFuture, err error)
@@ -439,6 +490,7 @@ type LocalNetworkGatewaysClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, localNetworkGatewayName string) (result network.LocalNetworkGatewaysDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, localNetworkGatewayName string) (result network.LocalNetworkGateway, err error)
List(ctx context.Context, resourceGroupName string) (result network.LocalNetworkGatewayListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.LocalNetworkGatewayListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, localNetworkGatewayName string, parameters network.TagsObject) (result network.LocalNetworkGatewaysUpdateTagsFuture, err error)
}
diff --git a/services/network/mgmt/2018-01-01/network/operations.go b/services/network/mgmt/2018-01-01/network/operations.go
index 7302594cea0f..47332bad5f53 100644
--- a/services/network/mgmt/2018-01-01/network/operations.go
+++ b/services/network/mgmt/2018-01-01/network/operations.go
@@ -35,7 +35,8 @@ func NewOperationsClient(subscriptionID string) OperationsClient {
return NewOperationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewOperationsClientWithBaseURI creates an instance of the OperationsClient client.
+// NewOperationsClientWithBaseURI creates an instance of the OperationsClient client using a custom endpoint. Use this
+// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient {
return OperationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-01-01/network/packetcaptures.go b/services/network/mgmt/2018-01-01/network/packetcaptures.go
index 05b3abbff1c2..baace5f1eff8 100644
--- a/services/network/mgmt/2018-01-01/network/packetcaptures.go
+++ b/services/network/mgmt/2018-01-01/network/packetcaptures.go
@@ -36,7 +36,8 @@ func NewPacketCapturesClient(subscriptionID string) PacketCapturesClient {
return NewPacketCapturesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewPacketCapturesClientWithBaseURI creates an instance of the PacketCapturesClient client.
+// NewPacketCapturesClientWithBaseURI creates an instance of the PacketCapturesClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewPacketCapturesClientWithBaseURI(baseURI string, subscriptionID string) PacketCapturesClient {
return PacketCapturesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-01-01/network/publicipaddresses.go b/services/network/mgmt/2018-01-01/network/publicipaddresses.go
index 04296c6b74a4..fab9b4d6f6d0 100644
--- a/services/network/mgmt/2018-01-01/network/publicipaddresses.go
+++ b/services/network/mgmt/2018-01-01/network/publicipaddresses.go
@@ -36,7 +36,9 @@ func NewPublicIPAddressesClient(subscriptionID string) PublicIPAddressesClient {
return NewPublicIPAddressesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewPublicIPAddressesClientWithBaseURI creates an instance of the PublicIPAddressesClient client.
+// NewPublicIPAddressesClientWithBaseURI creates an instance of the PublicIPAddressesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewPublicIPAddressesClientWithBaseURI(baseURI string, subscriptionID string) PublicIPAddressesClient {
return PublicIPAddressesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-01-01/network/routefilterrules.go b/services/network/mgmt/2018-01-01/network/routefilterrules.go
index aa5764a6c55a..01d45b6a973b 100644
--- a/services/network/mgmt/2018-01-01/network/routefilterrules.go
+++ b/services/network/mgmt/2018-01-01/network/routefilterrules.go
@@ -36,7 +36,9 @@ func NewRouteFilterRulesClient(subscriptionID string) RouteFilterRulesClient {
return NewRouteFilterRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewRouteFilterRulesClientWithBaseURI creates an instance of the RouteFilterRulesClient client.
+// NewRouteFilterRulesClientWithBaseURI creates an instance of the RouteFilterRulesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewRouteFilterRulesClientWithBaseURI(baseURI string, subscriptionID string) RouteFilterRulesClient {
return RouteFilterRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-01-01/network/routefilters.go b/services/network/mgmt/2018-01-01/network/routefilters.go
index 888f5ea3253d..6987ed282a4d 100644
--- a/services/network/mgmt/2018-01-01/network/routefilters.go
+++ b/services/network/mgmt/2018-01-01/network/routefilters.go
@@ -35,7 +35,8 @@ func NewRouteFiltersClient(subscriptionID string) RouteFiltersClient {
return NewRouteFiltersClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewRouteFiltersClientWithBaseURI creates an instance of the RouteFiltersClient client.
+// NewRouteFiltersClientWithBaseURI creates an instance of the RouteFiltersClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewRouteFiltersClientWithBaseURI(baseURI string, subscriptionID string) RouteFiltersClient {
return RouteFiltersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-01-01/network/routes.go b/services/network/mgmt/2018-01-01/network/routes.go
index 7cb863a72e05..35886ef992ba 100644
--- a/services/network/mgmt/2018-01-01/network/routes.go
+++ b/services/network/mgmt/2018-01-01/network/routes.go
@@ -35,7 +35,8 @@ func NewRoutesClient(subscriptionID string) RoutesClient {
return NewRoutesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewRoutesClientWithBaseURI creates an instance of the RoutesClient client.
+// NewRoutesClientWithBaseURI creates an instance of the RoutesClient client using a custom endpoint. Use this when
+// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewRoutesClientWithBaseURI(baseURI string, subscriptionID string) RoutesClient {
return RoutesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-01-01/network/routetables.go b/services/network/mgmt/2018-01-01/network/routetables.go
index ebf202d9a2c6..34282d649039 100644
--- a/services/network/mgmt/2018-01-01/network/routetables.go
+++ b/services/network/mgmt/2018-01-01/network/routetables.go
@@ -35,7 +35,8 @@ func NewRouteTablesClient(subscriptionID string) RouteTablesClient {
return NewRouteTablesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewRouteTablesClientWithBaseURI creates an instance of the RouteTablesClient client.
+// NewRouteTablesClientWithBaseURI creates an instance of the RouteTablesClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewRouteTablesClientWithBaseURI(baseURI string, subscriptionID string) RouteTablesClient {
return RouteTablesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-01-01/network/securitygroups.go b/services/network/mgmt/2018-01-01/network/securitygroups.go
index c8fc788a3eb2..2e6a7f12e47c 100644
--- a/services/network/mgmt/2018-01-01/network/securitygroups.go
+++ b/services/network/mgmt/2018-01-01/network/securitygroups.go
@@ -35,7 +35,8 @@ func NewSecurityGroupsClient(subscriptionID string) SecurityGroupsClient {
return NewSecurityGroupsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewSecurityGroupsClientWithBaseURI creates an instance of the SecurityGroupsClient client.
+// NewSecurityGroupsClientWithBaseURI creates an instance of the SecurityGroupsClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewSecurityGroupsClientWithBaseURI(baseURI string, subscriptionID string) SecurityGroupsClient {
return SecurityGroupsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-01-01/network/securityrules.go b/services/network/mgmt/2018-01-01/network/securityrules.go
index c734220d34fe..089a1c59858f 100644
--- a/services/network/mgmt/2018-01-01/network/securityrules.go
+++ b/services/network/mgmt/2018-01-01/network/securityrules.go
@@ -35,7 +35,8 @@ func NewSecurityRulesClient(subscriptionID string) SecurityRulesClient {
return NewSecurityRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewSecurityRulesClientWithBaseURI creates an instance of the SecurityRulesClient client.
+// NewSecurityRulesClientWithBaseURI creates an instance of the SecurityRulesClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewSecurityRulesClientWithBaseURI(baseURI string, subscriptionID string) SecurityRulesClient {
return SecurityRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-01-01/network/subnets.go b/services/network/mgmt/2018-01-01/network/subnets.go
index bfd1c72361e8..72399ff856bd 100644
--- a/services/network/mgmt/2018-01-01/network/subnets.go
+++ b/services/network/mgmt/2018-01-01/network/subnets.go
@@ -35,7 +35,8 @@ func NewSubnetsClient(subscriptionID string) SubnetsClient {
return NewSubnetsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewSubnetsClientWithBaseURI creates an instance of the SubnetsClient client.
+// NewSubnetsClientWithBaseURI creates an instance of the SubnetsClient client using a custom endpoint. Use this when
+// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewSubnetsClientWithBaseURI(baseURI string, subscriptionID string) SubnetsClient {
return SubnetsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-01-01/network/usages.go b/services/network/mgmt/2018-01-01/network/usages.go
index 412e68cd98dc..0775694d029c 100644
--- a/services/network/mgmt/2018-01-01/network/usages.go
+++ b/services/network/mgmt/2018-01-01/network/usages.go
@@ -36,7 +36,8 @@ func NewUsagesClient(subscriptionID string) UsagesClient {
return NewUsagesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewUsagesClientWithBaseURI creates an instance of the UsagesClient client.
+// NewUsagesClientWithBaseURI creates an instance of the UsagesClient client using a custom endpoint. Use this when
+// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewUsagesClientWithBaseURI(baseURI string, subscriptionID string) UsagesClient {
return UsagesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-01-01/network/virtualnetworkgatewayconnections.go b/services/network/mgmt/2018-01-01/network/virtualnetworkgatewayconnections.go
index 5334eb2ef6ea..be6ddae84e71 100644
--- a/services/network/mgmt/2018-01-01/network/virtualnetworkgatewayconnections.go
+++ b/services/network/mgmt/2018-01-01/network/virtualnetworkgatewayconnections.go
@@ -37,7 +37,8 @@ func NewVirtualNetworkGatewayConnectionsClient(subscriptionID string) VirtualNet
}
// NewVirtualNetworkGatewayConnectionsClientWithBaseURI creates an instance of the
-// VirtualNetworkGatewayConnectionsClient client.
+// VirtualNetworkGatewayConnectionsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVirtualNetworkGatewayConnectionsClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworkGatewayConnectionsClient {
return VirtualNetworkGatewayConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-01-01/network/virtualnetworkgateways.go b/services/network/mgmt/2018-01-01/network/virtualnetworkgateways.go
index ba4042c2ef71..6fcb47727c35 100644
--- a/services/network/mgmt/2018-01-01/network/virtualnetworkgateways.go
+++ b/services/network/mgmt/2018-01-01/network/virtualnetworkgateways.go
@@ -36,7 +36,9 @@ func NewVirtualNetworkGatewaysClient(subscriptionID string) VirtualNetworkGatewa
return NewVirtualNetworkGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualNetworkGatewaysClientWithBaseURI creates an instance of the VirtualNetworkGatewaysClient client.
+// NewVirtualNetworkGatewaysClientWithBaseURI creates an instance of the VirtualNetworkGatewaysClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewVirtualNetworkGatewaysClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworkGatewaysClient {
return VirtualNetworkGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-01-01/network/virtualnetworkpeerings.go b/services/network/mgmt/2018-01-01/network/virtualnetworkpeerings.go
index aa94f2dddac9..bea4f5ffdc74 100644
--- a/services/network/mgmt/2018-01-01/network/virtualnetworkpeerings.go
+++ b/services/network/mgmt/2018-01-01/network/virtualnetworkpeerings.go
@@ -35,7 +35,9 @@ func NewVirtualNetworkPeeringsClient(subscriptionID string) VirtualNetworkPeerin
return NewVirtualNetworkPeeringsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualNetworkPeeringsClientWithBaseURI creates an instance of the VirtualNetworkPeeringsClient client.
+// NewVirtualNetworkPeeringsClientWithBaseURI creates an instance of the VirtualNetworkPeeringsClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewVirtualNetworkPeeringsClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworkPeeringsClient {
return VirtualNetworkPeeringsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-01-01/network/virtualnetworks.go b/services/network/mgmt/2018-01-01/network/virtualnetworks.go
index 64771a33612b..5afa0b956fde 100644
--- a/services/network/mgmt/2018-01-01/network/virtualnetworks.go
+++ b/services/network/mgmt/2018-01-01/network/virtualnetworks.go
@@ -35,7 +35,8 @@ func NewVirtualNetworksClient(subscriptionID string) VirtualNetworksClient {
return NewVirtualNetworksClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualNetworksClientWithBaseURI creates an instance of the VirtualNetworksClient client.
+// NewVirtualNetworksClientWithBaseURI creates an instance of the VirtualNetworksClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVirtualNetworksClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworksClient {
return VirtualNetworksClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-01-01/network/watchers.go b/services/network/mgmt/2018-01-01/network/watchers.go
index cabe5b1e45f9..7b2860e3546c 100644
--- a/services/network/mgmt/2018-01-01/network/watchers.go
+++ b/services/network/mgmt/2018-01-01/network/watchers.go
@@ -36,7 +36,8 @@ func NewWatchersClient(subscriptionID string) WatchersClient {
return NewWatchersClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewWatchersClientWithBaseURI creates an instance of the WatchersClient client.
+// NewWatchersClientWithBaseURI creates an instance of the WatchersClient client using a custom endpoint. Use this
+// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewWatchersClientWithBaseURI(baseURI string, subscriptionID string) WatchersClient {
return WatchersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-02-01/network/applicationgateways.go b/services/network/mgmt/2018-02-01/network/applicationgateways.go
index c50993c75f63..bfba1249958d 100644
--- a/services/network/mgmt/2018-02-01/network/applicationgateways.go
+++ b/services/network/mgmt/2018-02-01/network/applicationgateways.go
@@ -36,7 +36,9 @@ func NewApplicationGatewaysClient(subscriptionID string) ApplicationGatewaysClie
return NewApplicationGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewApplicationGatewaysClientWithBaseURI creates an instance of the ApplicationGatewaysClient client.
+// NewApplicationGatewaysClientWithBaseURI creates an instance of the ApplicationGatewaysClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewApplicationGatewaysClientWithBaseURI(baseURI string, subscriptionID string) ApplicationGatewaysClient {
return ApplicationGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-02-01/network/applicationsecuritygroups.go b/services/network/mgmt/2018-02-01/network/applicationsecuritygroups.go
index e8b4e36ebbcd..613d963130c6 100644
--- a/services/network/mgmt/2018-02-01/network/applicationsecuritygroups.go
+++ b/services/network/mgmt/2018-02-01/network/applicationsecuritygroups.go
@@ -35,7 +35,9 @@ func NewApplicationSecurityGroupsClient(subscriptionID string) ApplicationSecuri
return NewApplicationSecurityGroupsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewApplicationSecurityGroupsClientWithBaseURI creates an instance of the ApplicationSecurityGroupsClient client.
+// NewApplicationSecurityGroupsClientWithBaseURI creates an instance of the ApplicationSecurityGroupsClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewApplicationSecurityGroupsClientWithBaseURI(baseURI string, subscriptionID string) ApplicationSecurityGroupsClient {
return ApplicationSecurityGroupsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-02-01/network/availableendpointservices.go b/services/network/mgmt/2018-02-01/network/availableendpointservices.go
index b3092e15bfa1..20dc7f1c9bd8 100644
--- a/services/network/mgmt/2018-02-01/network/availableendpointservices.go
+++ b/services/network/mgmt/2018-02-01/network/availableendpointservices.go
@@ -35,7 +35,9 @@ func NewAvailableEndpointServicesClient(subscriptionID string) AvailableEndpoint
return NewAvailableEndpointServicesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewAvailableEndpointServicesClientWithBaseURI creates an instance of the AvailableEndpointServicesClient client.
+// NewAvailableEndpointServicesClientWithBaseURI creates an instance of the AvailableEndpointServicesClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewAvailableEndpointServicesClientWithBaseURI(baseURI string, subscriptionID string) AvailableEndpointServicesClient {
return AvailableEndpointServicesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-02-01/network/bgpservicecommunities.go b/services/network/mgmt/2018-02-01/network/bgpservicecommunities.go
index 63f90f685d18..15987c828fc9 100644
--- a/services/network/mgmt/2018-02-01/network/bgpservicecommunities.go
+++ b/services/network/mgmt/2018-02-01/network/bgpservicecommunities.go
@@ -35,7 +35,9 @@ func NewBgpServiceCommunitiesClient(subscriptionID string) BgpServiceCommunities
return NewBgpServiceCommunitiesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewBgpServiceCommunitiesClientWithBaseURI creates an instance of the BgpServiceCommunitiesClient client.
+// NewBgpServiceCommunitiesClientWithBaseURI creates an instance of the BgpServiceCommunitiesClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewBgpServiceCommunitiesClientWithBaseURI(baseURI string, subscriptionID string) BgpServiceCommunitiesClient {
return BgpServiceCommunitiesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-02-01/network/client.go b/services/network/mgmt/2018-02-01/network/client.go
index 9c40e6f3a292..b75bf4159e5a 100644
--- a/services/network/mgmt/2018-02-01/network/client.go
+++ b/services/network/mgmt/2018-02-01/network/client.go
@@ -45,7 +45,8 @@ func New(subscriptionID string) BaseClient {
return NewWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewWithBaseURI creates an instance of the BaseClient client.
+// NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with
+// an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient {
return BaseClient{
Client: autorest.NewClientWithUserAgent(UserAgent()),
diff --git a/services/network/mgmt/2018-02-01/network/connectionmonitors.go b/services/network/mgmt/2018-02-01/network/connectionmonitors.go
index 23f63ce8f6fa..fe29040c7494 100644
--- a/services/network/mgmt/2018-02-01/network/connectionmonitors.go
+++ b/services/network/mgmt/2018-02-01/network/connectionmonitors.go
@@ -36,7 +36,9 @@ func NewConnectionMonitorsClient(subscriptionID string) ConnectionMonitorsClient
return NewConnectionMonitorsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewConnectionMonitorsClientWithBaseURI creates an instance of the ConnectionMonitorsClient client.
+// NewConnectionMonitorsClientWithBaseURI creates an instance of the ConnectionMonitorsClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewConnectionMonitorsClientWithBaseURI(baseURI string, subscriptionID string) ConnectionMonitorsClient {
return ConnectionMonitorsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-02-01/network/ddosprotectionplans.go b/services/network/mgmt/2018-02-01/network/ddosprotectionplans.go
index 447ad55add87..05ace4f8935d 100644
--- a/services/network/mgmt/2018-02-01/network/ddosprotectionplans.go
+++ b/services/network/mgmt/2018-02-01/network/ddosprotectionplans.go
@@ -35,7 +35,9 @@ func NewDdosProtectionPlansClient(subscriptionID string) DdosProtectionPlansClie
return NewDdosProtectionPlansClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewDdosProtectionPlansClientWithBaseURI creates an instance of the DdosProtectionPlansClient client.
+// NewDdosProtectionPlansClientWithBaseURI creates an instance of the DdosProtectionPlansClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewDdosProtectionPlansClientWithBaseURI(baseURI string, subscriptionID string) DdosProtectionPlansClient {
return DdosProtectionPlansClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-02-01/network/defaultsecurityrules.go b/services/network/mgmt/2018-02-01/network/defaultsecurityrules.go
index 0fa6334ca976..c8ed34c9511b 100644
--- a/services/network/mgmt/2018-02-01/network/defaultsecurityrules.go
+++ b/services/network/mgmt/2018-02-01/network/defaultsecurityrules.go
@@ -35,7 +35,9 @@ func NewDefaultSecurityRulesClient(subscriptionID string) DefaultSecurityRulesCl
return NewDefaultSecurityRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewDefaultSecurityRulesClientWithBaseURI creates an instance of the DefaultSecurityRulesClient client.
+// NewDefaultSecurityRulesClientWithBaseURI creates an instance of the DefaultSecurityRulesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewDefaultSecurityRulesClientWithBaseURI(baseURI string, subscriptionID string) DefaultSecurityRulesClient {
return DefaultSecurityRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-02-01/network/expressroutecircuitauthorizations.go b/services/network/mgmt/2018-02-01/network/expressroutecircuitauthorizations.go
index 83e698447f14..3c6fdff42505 100644
--- a/services/network/mgmt/2018-02-01/network/expressroutecircuitauthorizations.go
+++ b/services/network/mgmt/2018-02-01/network/expressroutecircuitauthorizations.go
@@ -37,7 +37,8 @@ func NewExpressRouteCircuitAuthorizationsClient(subscriptionID string) ExpressRo
}
// NewExpressRouteCircuitAuthorizationsClientWithBaseURI creates an instance of the
-// ExpressRouteCircuitAuthorizationsClient client.
+// ExpressRouteCircuitAuthorizationsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewExpressRouteCircuitAuthorizationsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCircuitAuthorizationsClient {
return ExpressRouteCircuitAuthorizationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-02-01/network/expressroutecircuitconnections.go b/services/network/mgmt/2018-02-01/network/expressroutecircuitconnections.go
index 9a712a70fe29..43586d97b8ed 100644
--- a/services/network/mgmt/2018-02-01/network/expressroutecircuitconnections.go
+++ b/services/network/mgmt/2018-02-01/network/expressroutecircuitconnections.go
@@ -36,7 +36,8 @@ func NewExpressRouteCircuitConnectionsClient(subscriptionID string) ExpressRoute
}
// NewExpressRouteCircuitConnectionsClientWithBaseURI creates an instance of the ExpressRouteCircuitConnectionsClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewExpressRouteCircuitConnectionsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCircuitConnectionsClient {
return ExpressRouteCircuitConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-02-01/network/expressroutecircuitpeerings.go b/services/network/mgmt/2018-02-01/network/expressroutecircuitpeerings.go
index 5cf6c455f676..948e73e608bc 100644
--- a/services/network/mgmt/2018-02-01/network/expressroutecircuitpeerings.go
+++ b/services/network/mgmt/2018-02-01/network/expressroutecircuitpeerings.go
@@ -36,7 +36,9 @@ func NewExpressRouteCircuitPeeringsClient(subscriptionID string) ExpressRouteCir
return NewExpressRouteCircuitPeeringsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewExpressRouteCircuitPeeringsClientWithBaseURI creates an instance of the ExpressRouteCircuitPeeringsClient client.
+// NewExpressRouteCircuitPeeringsClientWithBaseURI creates an instance of the ExpressRouteCircuitPeeringsClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewExpressRouteCircuitPeeringsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCircuitPeeringsClient {
return ExpressRouteCircuitPeeringsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-02-01/network/expressroutecircuits.go b/services/network/mgmt/2018-02-01/network/expressroutecircuits.go
index 64b784f12858..f66def710546 100644
--- a/services/network/mgmt/2018-02-01/network/expressroutecircuits.go
+++ b/services/network/mgmt/2018-02-01/network/expressroutecircuits.go
@@ -35,7 +35,9 @@ func NewExpressRouteCircuitsClient(subscriptionID string) ExpressRouteCircuitsCl
return NewExpressRouteCircuitsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewExpressRouteCircuitsClientWithBaseURI creates an instance of the ExpressRouteCircuitsClient client.
+// NewExpressRouteCircuitsClientWithBaseURI creates an instance of the ExpressRouteCircuitsClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewExpressRouteCircuitsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCircuitsClient {
return ExpressRouteCircuitsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-02-01/network/expressroutecrossconnectionpeerings.go b/services/network/mgmt/2018-02-01/network/expressroutecrossconnectionpeerings.go
index f365d5cb6298..224c1500c867 100644
--- a/services/network/mgmt/2018-02-01/network/expressroutecrossconnectionpeerings.go
+++ b/services/network/mgmt/2018-02-01/network/expressroutecrossconnectionpeerings.go
@@ -38,7 +38,8 @@ func NewExpressRouteCrossConnectionPeeringsClient(subscriptionID string) Express
}
// NewExpressRouteCrossConnectionPeeringsClientWithBaseURI creates an instance of the
-// ExpressRouteCrossConnectionPeeringsClient client.
+// ExpressRouteCrossConnectionPeeringsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewExpressRouteCrossConnectionPeeringsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCrossConnectionPeeringsClient {
return ExpressRouteCrossConnectionPeeringsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-02-01/network/expressroutecrossconnections.go b/services/network/mgmt/2018-02-01/network/expressroutecrossconnections.go
index 0a8648c11160..a7fb07b4b263 100644
--- a/services/network/mgmt/2018-02-01/network/expressroutecrossconnections.go
+++ b/services/network/mgmt/2018-02-01/network/expressroutecrossconnections.go
@@ -36,7 +36,8 @@ func NewExpressRouteCrossConnectionsClient(subscriptionID string) ExpressRouteCr
}
// NewExpressRouteCrossConnectionsClientWithBaseURI creates an instance of the ExpressRouteCrossConnectionsClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewExpressRouteCrossConnectionsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCrossConnectionsClient {
return ExpressRouteCrossConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-02-01/network/expressrouteserviceproviders.go b/services/network/mgmt/2018-02-01/network/expressrouteserviceproviders.go
index afe191f06f7f..b123a97424da 100644
--- a/services/network/mgmt/2018-02-01/network/expressrouteserviceproviders.go
+++ b/services/network/mgmt/2018-02-01/network/expressrouteserviceproviders.go
@@ -36,7 +36,8 @@ func NewExpressRouteServiceProvidersClient(subscriptionID string) ExpressRouteSe
}
// NewExpressRouteServiceProvidersClientWithBaseURI creates an instance of the ExpressRouteServiceProvidersClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewExpressRouteServiceProvidersClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteServiceProvidersClient {
return ExpressRouteServiceProvidersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-02-01/network/inboundnatrules.go b/services/network/mgmt/2018-02-01/network/inboundnatrules.go
index 0f3998f39e0f..7ffb55a6eded 100644
--- a/services/network/mgmt/2018-02-01/network/inboundnatrules.go
+++ b/services/network/mgmt/2018-02-01/network/inboundnatrules.go
@@ -36,7 +36,8 @@ func NewInboundNatRulesClient(subscriptionID string) InboundNatRulesClient {
return NewInboundNatRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewInboundNatRulesClientWithBaseURI creates an instance of the InboundNatRulesClient client.
+// NewInboundNatRulesClientWithBaseURI creates an instance of the InboundNatRulesClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewInboundNatRulesClientWithBaseURI(baseURI string, subscriptionID string) InboundNatRulesClient {
return InboundNatRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-02-01/network/interfaceipconfigurations.go b/services/network/mgmt/2018-02-01/network/interfaceipconfigurations.go
index 97bc36c4cb33..9cd413ad31c7 100644
--- a/services/network/mgmt/2018-02-01/network/interfaceipconfigurations.go
+++ b/services/network/mgmt/2018-02-01/network/interfaceipconfigurations.go
@@ -35,7 +35,9 @@ func NewInterfaceIPConfigurationsClient(subscriptionID string) InterfaceIPConfig
return NewInterfaceIPConfigurationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewInterfaceIPConfigurationsClientWithBaseURI creates an instance of the InterfaceIPConfigurationsClient client.
+// NewInterfaceIPConfigurationsClientWithBaseURI creates an instance of the InterfaceIPConfigurationsClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewInterfaceIPConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) InterfaceIPConfigurationsClient {
return InterfaceIPConfigurationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-02-01/network/interfaceloadbalancers.go b/services/network/mgmt/2018-02-01/network/interfaceloadbalancers.go
index 578bb167bf9d..9e3c442eeb8b 100644
--- a/services/network/mgmt/2018-02-01/network/interfaceloadbalancers.go
+++ b/services/network/mgmt/2018-02-01/network/interfaceloadbalancers.go
@@ -35,7 +35,9 @@ func NewInterfaceLoadBalancersClient(subscriptionID string) InterfaceLoadBalance
return NewInterfaceLoadBalancersClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewInterfaceLoadBalancersClientWithBaseURI creates an instance of the InterfaceLoadBalancersClient client.
+// NewInterfaceLoadBalancersClientWithBaseURI creates an instance of the InterfaceLoadBalancersClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewInterfaceLoadBalancersClientWithBaseURI(baseURI string, subscriptionID string) InterfaceLoadBalancersClient {
return InterfaceLoadBalancersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-02-01/network/interfacesgroup.go b/services/network/mgmt/2018-02-01/network/interfacesgroup.go
index 7238b0b193f1..aa19fee1db98 100644
--- a/services/network/mgmt/2018-02-01/network/interfacesgroup.go
+++ b/services/network/mgmt/2018-02-01/network/interfacesgroup.go
@@ -35,7 +35,8 @@ func NewInterfacesClient(subscriptionID string) InterfacesClient {
return NewInterfacesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewInterfacesClientWithBaseURI creates an instance of the InterfacesClient client.
+// NewInterfacesClientWithBaseURI creates an instance of the InterfacesClient client using a custom endpoint. Use this
+// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewInterfacesClientWithBaseURI(baseURI string, subscriptionID string) InterfacesClient {
return InterfacesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-02-01/network/loadbalancerbackendaddresspools.go b/services/network/mgmt/2018-02-01/network/loadbalancerbackendaddresspools.go
index 042c127e1b7f..0e27ad28b455 100644
--- a/services/network/mgmt/2018-02-01/network/loadbalancerbackendaddresspools.go
+++ b/services/network/mgmt/2018-02-01/network/loadbalancerbackendaddresspools.go
@@ -36,7 +36,8 @@ func NewLoadBalancerBackendAddressPoolsClient(subscriptionID string) LoadBalance
}
// NewLoadBalancerBackendAddressPoolsClientWithBaseURI creates an instance of the LoadBalancerBackendAddressPoolsClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewLoadBalancerBackendAddressPoolsClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerBackendAddressPoolsClient {
return LoadBalancerBackendAddressPoolsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-02-01/network/loadbalancerfrontendipconfigurations.go b/services/network/mgmt/2018-02-01/network/loadbalancerfrontendipconfigurations.go
index 59ae89990ab8..25fde7b83538 100644
--- a/services/network/mgmt/2018-02-01/network/loadbalancerfrontendipconfigurations.go
+++ b/services/network/mgmt/2018-02-01/network/loadbalancerfrontendipconfigurations.go
@@ -37,7 +37,8 @@ func NewLoadBalancerFrontendIPConfigurationsClient(subscriptionID string) LoadBa
}
// NewLoadBalancerFrontendIPConfigurationsClientWithBaseURI creates an instance of the
-// LoadBalancerFrontendIPConfigurationsClient client.
+// LoadBalancerFrontendIPConfigurationsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewLoadBalancerFrontendIPConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerFrontendIPConfigurationsClient {
return LoadBalancerFrontendIPConfigurationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-02-01/network/loadbalancerloadbalancingrules.go b/services/network/mgmt/2018-02-01/network/loadbalancerloadbalancingrules.go
index 944ce4fab750..0fe818928f8e 100644
--- a/services/network/mgmt/2018-02-01/network/loadbalancerloadbalancingrules.go
+++ b/services/network/mgmt/2018-02-01/network/loadbalancerloadbalancingrules.go
@@ -36,7 +36,8 @@ func NewLoadBalancerLoadBalancingRulesClient(subscriptionID string) LoadBalancer
}
// NewLoadBalancerLoadBalancingRulesClientWithBaseURI creates an instance of the LoadBalancerLoadBalancingRulesClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewLoadBalancerLoadBalancingRulesClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerLoadBalancingRulesClient {
return LoadBalancerLoadBalancingRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-02-01/network/loadbalancernetworkinterfaces.go b/services/network/mgmt/2018-02-01/network/loadbalancernetworkinterfaces.go
index fa8fce05b0e7..0df0f308d564 100644
--- a/services/network/mgmt/2018-02-01/network/loadbalancernetworkinterfaces.go
+++ b/services/network/mgmt/2018-02-01/network/loadbalancernetworkinterfaces.go
@@ -36,7 +36,8 @@ func NewLoadBalancerNetworkInterfacesClient(subscriptionID string) LoadBalancerN
}
// NewLoadBalancerNetworkInterfacesClientWithBaseURI creates an instance of the LoadBalancerNetworkInterfacesClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewLoadBalancerNetworkInterfacesClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerNetworkInterfacesClient {
return LoadBalancerNetworkInterfacesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-02-01/network/loadbalancerprobes.go b/services/network/mgmt/2018-02-01/network/loadbalancerprobes.go
index b743324d2752..797367b6f0b3 100644
--- a/services/network/mgmt/2018-02-01/network/loadbalancerprobes.go
+++ b/services/network/mgmt/2018-02-01/network/loadbalancerprobes.go
@@ -35,7 +35,9 @@ func NewLoadBalancerProbesClient(subscriptionID string) LoadBalancerProbesClient
return NewLoadBalancerProbesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewLoadBalancerProbesClientWithBaseURI creates an instance of the LoadBalancerProbesClient client.
+// NewLoadBalancerProbesClientWithBaseURI creates an instance of the LoadBalancerProbesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewLoadBalancerProbesClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerProbesClient {
return LoadBalancerProbesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-02-01/network/loadbalancers.go b/services/network/mgmt/2018-02-01/network/loadbalancers.go
index 5d9f1bf788c2..e60bdbd6d32a 100644
--- a/services/network/mgmt/2018-02-01/network/loadbalancers.go
+++ b/services/network/mgmt/2018-02-01/network/loadbalancers.go
@@ -35,7 +35,8 @@ func NewLoadBalancersClient(subscriptionID string) LoadBalancersClient {
return NewLoadBalancersClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewLoadBalancersClientWithBaseURI creates an instance of the LoadBalancersClient client.
+// NewLoadBalancersClientWithBaseURI creates an instance of the LoadBalancersClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewLoadBalancersClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancersClient {
return LoadBalancersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-02-01/network/localnetworkgateways.go b/services/network/mgmt/2018-02-01/network/localnetworkgateways.go
index 5498c045ad3f..9d58cd1b3875 100644
--- a/services/network/mgmt/2018-02-01/network/localnetworkgateways.go
+++ b/services/network/mgmt/2018-02-01/network/localnetworkgateways.go
@@ -36,7 +36,9 @@ func NewLocalNetworkGatewaysClient(subscriptionID string) LocalNetworkGatewaysCl
return NewLocalNetworkGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewLocalNetworkGatewaysClientWithBaseURI creates an instance of the LocalNetworkGatewaysClient client.
+// NewLocalNetworkGatewaysClientWithBaseURI creates an instance of the LocalNetworkGatewaysClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewLocalNetworkGatewaysClientWithBaseURI(baseURI string, subscriptionID string) LocalNetworkGatewaysClient {
return LocalNetworkGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-02-01/network/networkapi/interfaces.go b/services/network/mgmt/2018-02-01/network/networkapi/interfaces.go
index 9d36b05c507b..b1ebd378cfe3 100644
--- a/services/network/mgmt/2018-02-01/network/networkapi/interfaces.go
+++ b/services/network/mgmt/2018-02-01/network/networkapi/interfaces.go
@@ -37,9 +37,12 @@ type ApplicationGatewaysClientAPI interface {
Get(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result network.ApplicationGateway, err error)
GetSslPredefinedPolicy(ctx context.Context, predefinedPolicyName string) (result network.ApplicationGatewaySslPredefinedPolicy, err error)
List(ctx context.Context, resourceGroupName string) (result network.ApplicationGatewayListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.ApplicationGatewayListResultIterator, err error)
ListAll(ctx context.Context) (result network.ApplicationGatewayListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.ApplicationGatewayListResultIterator, err error)
ListAvailableSslOptions(ctx context.Context) (result network.ApplicationGatewayAvailableSslOptions, err error)
ListAvailableSslPredefinedPolicies(ctx context.Context) (result network.ApplicationGatewayAvailableSslPredefinedPoliciesPage, err error)
+ ListAvailableSslPredefinedPoliciesComplete(ctx context.Context) (result network.ApplicationGatewayAvailableSslPredefinedPoliciesIterator, err error)
ListAvailableWafRuleSets(ctx context.Context) (result network.ApplicationGatewayAvailableWafRuleSetsResult, err error)
Start(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result network.ApplicationGatewaysStartFuture, err error)
Stop(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result network.ApplicationGatewaysStopFuture, err error)
@@ -54,7 +57,9 @@ type ApplicationSecurityGroupsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, applicationSecurityGroupName string) (result network.ApplicationSecurityGroupsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, applicationSecurityGroupName string) (result network.ApplicationSecurityGroup, err error)
List(ctx context.Context, resourceGroupName string) (result network.ApplicationSecurityGroupListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.ApplicationSecurityGroupListResultIterator, err error)
ListAll(ctx context.Context) (result network.ApplicationSecurityGroupListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.ApplicationSecurityGroupListResultIterator, err error)
}
var _ ApplicationSecurityGroupsClientAPI = (*network.ApplicationSecurityGroupsClient)(nil)
@@ -65,7 +70,9 @@ type DdosProtectionPlansClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, ddosProtectionPlanName string) (result network.DdosProtectionPlansDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, ddosProtectionPlanName string) (result network.DdosProtectionPlan, err error)
List(ctx context.Context) (result network.DdosProtectionPlanListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.DdosProtectionPlanListResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.DdosProtectionPlanListResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.DdosProtectionPlanListResultIterator, err error)
}
var _ DdosProtectionPlansClientAPI = (*network.DdosProtectionPlansClient)(nil)
@@ -73,6 +80,7 @@ var _ DdosProtectionPlansClientAPI = (*network.DdosProtectionPlansClient)(nil)
// AvailableEndpointServicesClientAPI contains the set of methods on the AvailableEndpointServicesClient type.
type AvailableEndpointServicesClientAPI interface {
List(ctx context.Context, location string) (result network.EndpointServicesListResultPage, err error)
+ ListComplete(ctx context.Context, location string) (result network.EndpointServicesListResultIterator, err error)
}
var _ AvailableEndpointServicesClientAPI = (*network.AvailableEndpointServicesClient)(nil)
@@ -83,6 +91,7 @@ type ExpressRouteCircuitAuthorizationsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, circuitName string, authorizationName string) (result network.ExpressRouteCircuitAuthorizationsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, circuitName string, authorizationName string) (result network.ExpressRouteCircuitAuthorization, err error)
List(ctx context.Context, resourceGroupName string, circuitName string) (result network.AuthorizationListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, circuitName string) (result network.AuthorizationListResultIterator, err error)
}
var _ ExpressRouteCircuitAuthorizationsClientAPI = (*network.ExpressRouteCircuitAuthorizationsClient)(nil)
@@ -93,6 +102,7 @@ type ExpressRouteCircuitPeeringsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.ExpressRouteCircuitPeeringsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.ExpressRouteCircuitPeering, err error)
List(ctx context.Context, resourceGroupName string, circuitName string) (result network.ExpressRouteCircuitPeeringListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, circuitName string) (result network.ExpressRouteCircuitPeeringListResultIterator, err error)
}
var _ ExpressRouteCircuitPeeringsClientAPI = (*network.ExpressRouteCircuitPeeringsClient)(nil)
@@ -114,7 +124,9 @@ type ExpressRouteCircuitsClientAPI interface {
GetPeeringStats(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.ExpressRouteCircuitStats, err error)
GetStats(ctx context.Context, resourceGroupName string, circuitName string) (result network.ExpressRouteCircuitStats, err error)
List(ctx context.Context, resourceGroupName string) (result network.ExpressRouteCircuitListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.ExpressRouteCircuitListResultIterator, err error)
ListAll(ctx context.Context) (result network.ExpressRouteCircuitListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.ExpressRouteCircuitListResultIterator, err error)
ListArpTable(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, devicePath string) (result network.ExpressRouteCircuitsListArpTableFuture, err error)
ListRoutesTable(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, devicePath string) (result network.ExpressRouteCircuitsListRoutesTableFuture, err error)
ListRoutesTableSummary(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, devicePath string) (result network.ExpressRouteCircuitsListRoutesTableSummaryFuture, err error)
@@ -126,6 +138,7 @@ var _ ExpressRouteCircuitsClientAPI = (*network.ExpressRouteCircuitsClient)(nil)
// ExpressRouteServiceProvidersClientAPI contains the set of methods on the ExpressRouteServiceProvidersClient type.
type ExpressRouteServiceProvidersClientAPI interface {
List(ctx context.Context) (result network.ExpressRouteServiceProviderListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ExpressRouteServiceProviderListResultIterator, err error)
}
var _ ExpressRouteServiceProvidersClientAPI = (*network.ExpressRouteServiceProvidersClient)(nil)
@@ -135,8 +148,10 @@ type ExpressRouteCrossConnectionsClientAPI interface {
CreateOrUpdate(ctx context.Context, resourceGroupName string, crossConnectionName string, parameters network.ExpressRouteCrossConnection) (result network.ExpressRouteCrossConnectionsCreateOrUpdateFuture, err error)
Get(ctx context.Context, resourceGroupName string, crossConnectionName string) (result network.ExpressRouteCrossConnection, err error)
List(ctx context.Context) (result network.ExpressRouteCrossConnectionListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ExpressRouteCrossConnectionListResultIterator, err error)
ListArpTable(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string, devicePath string) (result network.ExpressRouteCrossConnectionsListArpTableFuture, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ExpressRouteCrossConnectionListResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ExpressRouteCrossConnectionListResultIterator, err error)
ListRoutesTable(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string, devicePath string) (result network.ExpressRouteCrossConnectionsListRoutesTableFuture, err error)
ListRoutesTableSummary(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string, devicePath string) (result network.ExpressRouteCrossConnectionsListRoutesTableSummaryFuture, err error)
UpdateTags(ctx context.Context, resourceGroupName string, crossConnectionName string, crossConnectionParameters network.TagsObject) (result network.ExpressRouteCrossConnectionsUpdateTagsFuture, err error)
@@ -150,6 +165,7 @@ type ExpressRouteCrossConnectionPeeringsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string) (result network.ExpressRouteCrossConnectionPeeringsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string) (result network.ExpressRouteCrossConnectionPeering, err error)
List(ctx context.Context, resourceGroupName string, crossConnectionName string) (result network.ExpressRouteCrossConnectionPeeringListPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, crossConnectionName string) (result network.ExpressRouteCrossConnectionPeeringListIterator, err error)
}
var _ ExpressRouteCrossConnectionPeeringsClientAPI = (*network.ExpressRouteCrossConnectionPeeringsClient)(nil)
@@ -160,7 +176,9 @@ type LoadBalancersClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancersDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, expand string) (result network.LoadBalancer, err error)
List(ctx context.Context, resourceGroupName string) (result network.LoadBalancerListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.LoadBalancerListResultIterator, err error)
ListAll(ctx context.Context) (result network.LoadBalancerListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.LoadBalancerListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, loadBalancerName string, parameters network.TagsObject) (result network.LoadBalancersUpdateTagsFuture, err error)
}
@@ -170,6 +188,7 @@ var _ LoadBalancersClientAPI = (*network.LoadBalancersClient)(nil)
type LoadBalancerBackendAddressPoolsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, backendAddressPoolName string) (result network.BackendAddressPool, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerBackendAddressPoolListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerBackendAddressPoolListResultIterator, err error)
}
var _ LoadBalancerBackendAddressPoolsClientAPI = (*network.LoadBalancerBackendAddressPoolsClient)(nil)
@@ -178,6 +197,7 @@ var _ LoadBalancerBackendAddressPoolsClientAPI = (*network.LoadBalancerBackendAd
type LoadBalancerFrontendIPConfigurationsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, frontendIPConfigurationName string) (result network.FrontendIPConfiguration, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerFrontendIPConfigurationListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerFrontendIPConfigurationListResultIterator, err error)
}
var _ LoadBalancerFrontendIPConfigurationsClientAPI = (*network.LoadBalancerFrontendIPConfigurationsClient)(nil)
@@ -188,6 +208,7 @@ type InboundNatRulesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, loadBalancerName string, inboundNatRuleName string) (result network.InboundNatRulesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, inboundNatRuleName string, expand string) (result network.InboundNatRule, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.InboundNatRuleListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.InboundNatRuleListResultIterator, err error)
}
var _ InboundNatRulesClientAPI = (*network.InboundNatRulesClient)(nil)
@@ -196,6 +217,7 @@ var _ InboundNatRulesClientAPI = (*network.InboundNatRulesClient)(nil)
type LoadBalancerLoadBalancingRulesClientAPI interface {
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, loadBalancingRuleName string) (result network.LoadBalancingRule, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerLoadBalancingRuleListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerLoadBalancingRuleListResultIterator, err error)
}
var _ LoadBalancerLoadBalancingRulesClientAPI = (*network.LoadBalancerLoadBalancingRulesClient)(nil)
@@ -203,6 +225,7 @@ var _ LoadBalancerLoadBalancingRulesClientAPI = (*network.LoadBalancerLoadBalanc
// LoadBalancerNetworkInterfacesClientAPI contains the set of methods on the LoadBalancerNetworkInterfacesClient type.
type LoadBalancerNetworkInterfacesClientAPI interface {
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.InterfaceListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.InterfaceListResultIterator, err error)
}
var _ LoadBalancerNetworkInterfacesClientAPI = (*network.LoadBalancerNetworkInterfacesClient)(nil)
@@ -211,6 +234,7 @@ var _ LoadBalancerNetworkInterfacesClientAPI = (*network.LoadBalancerNetworkInte
type LoadBalancerProbesClientAPI interface {
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, probeName string) (result network.Probe, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerProbeListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerProbeListResultIterator, err error)
}
var _ LoadBalancerProbesClientAPI = (*network.LoadBalancerProbesClient)(nil)
@@ -224,11 +248,16 @@ type InterfacesClientAPI interface {
GetVirtualMachineScaleSetIPConfiguration(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, IPConfigurationName string, expand string) (result network.InterfaceIPConfiguration, err error)
GetVirtualMachineScaleSetNetworkInterface(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, expand string) (result network.Interface, err error)
List(ctx context.Context, resourceGroupName string) (result network.InterfaceListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.InterfaceListResultIterator, err error)
ListAll(ctx context.Context) (result network.InterfaceListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.InterfaceListResultIterator, err error)
ListEffectiveNetworkSecurityGroups(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfacesListEffectiveNetworkSecurityGroupsFuture, err error)
ListVirtualMachineScaleSetIPConfigurations(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, expand string) (result network.InterfaceIPConfigurationListResultPage, err error)
+ ListVirtualMachineScaleSetIPConfigurationsComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, expand string) (result network.InterfaceIPConfigurationListResultIterator, err error)
ListVirtualMachineScaleSetNetworkInterfaces(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result network.InterfaceListResultPage, err error)
+ ListVirtualMachineScaleSetNetworkInterfacesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result network.InterfaceListResultIterator, err error)
ListVirtualMachineScaleSetVMNetworkInterfaces(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string) (result network.InterfaceListResultPage, err error)
+ ListVirtualMachineScaleSetVMNetworkInterfacesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string) (result network.InterfaceListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, networkInterfaceName string, parameters network.TagsObject) (result network.InterfacesUpdateTagsFuture, err error)
}
@@ -238,6 +267,7 @@ var _ InterfacesClientAPI = (*network.InterfacesClient)(nil)
type InterfaceIPConfigurationsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, networkInterfaceName string, IPConfigurationName string) (result network.InterfaceIPConfiguration, err error)
List(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceIPConfigurationListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceIPConfigurationListResultIterator, err error)
}
var _ InterfaceIPConfigurationsClientAPI = (*network.InterfaceIPConfigurationsClient)(nil)
@@ -245,6 +275,7 @@ var _ InterfaceIPConfigurationsClientAPI = (*network.InterfaceIPConfigurationsCl
// InterfaceLoadBalancersClientAPI contains the set of methods on the InterfaceLoadBalancersClient type.
type InterfaceLoadBalancersClientAPI interface {
List(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceLoadBalancerListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceLoadBalancerListResultIterator, err error)
}
var _ InterfaceLoadBalancersClientAPI = (*network.InterfaceLoadBalancersClient)(nil)
@@ -255,7 +286,9 @@ type SecurityGroupsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityGroupsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, expand string) (result network.SecurityGroup, err error)
List(ctx context.Context, resourceGroupName string) (result network.SecurityGroupListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.SecurityGroupListResultIterator, err error)
ListAll(ctx context.Context) (result network.SecurityGroupListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.SecurityGroupListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, parameters network.TagsObject) (result network.SecurityGroupsUpdateTagsFuture, err error)
}
@@ -267,6 +300,7 @@ type SecurityRulesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, securityRuleName string) (result network.SecurityRulesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, securityRuleName string) (result network.SecurityRule, err error)
List(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityRuleListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityRuleListResultIterator, err error)
}
var _ SecurityRulesClientAPI = (*network.SecurityRulesClient)(nil)
@@ -275,6 +309,7 @@ var _ SecurityRulesClientAPI = (*network.SecurityRulesClient)(nil)
type DefaultSecurityRulesClientAPI interface {
Get(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, defaultSecurityRuleName string) (result network.SecurityRule, err error)
List(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityRuleListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityRuleListResultIterator, err error)
}
var _ DefaultSecurityRulesClientAPI = (*network.DefaultSecurityRulesClient)(nil)
@@ -330,6 +365,7 @@ var _ ConnectionMonitorsClientAPI = (*network.ConnectionMonitorsClient)(nil)
// OperationsClientAPI contains the set of methods on the OperationsClient type.
type OperationsClientAPI interface {
List(ctx context.Context) (result network.OperationListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.OperationListResultIterator, err error)
}
var _ OperationsClientAPI = (*network.OperationsClient)(nil)
@@ -341,9 +377,13 @@ type PublicIPAddressesClientAPI interface {
Get(ctx context.Context, resourceGroupName string, publicIPAddressName string, expand string) (result network.PublicIPAddress, err error)
GetVirtualMachineScaleSetPublicIPAddress(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, IPConfigurationName string, publicIPAddressName string, expand string) (result network.PublicIPAddress, err error)
List(ctx context.Context, resourceGroupName string) (result network.PublicIPAddressListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.PublicIPAddressListResultIterator, err error)
ListAll(ctx context.Context) (result network.PublicIPAddressListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.PublicIPAddressListResultIterator, err error)
ListVirtualMachineScaleSetPublicIPAddresses(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result network.PublicIPAddressListResultPage, err error)
+ ListVirtualMachineScaleSetPublicIPAddressesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result network.PublicIPAddressListResultIterator, err error)
ListVirtualMachineScaleSetVMPublicIPAddresses(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, IPConfigurationName string) (result network.PublicIPAddressListResultPage, err error)
+ ListVirtualMachineScaleSetVMPublicIPAddressesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, IPConfigurationName string) (result network.PublicIPAddressListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, publicIPAddressName string, parameters network.TagsObject) (result network.PublicIPAddressesUpdateTagsFuture, err error)
}
@@ -355,7 +395,9 @@ type RouteFiltersClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, routeFilterName string) (result network.RouteFiltersDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, routeFilterName string, expand string) (result network.RouteFilter, err error)
List(ctx context.Context) (result network.RouteFilterListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.RouteFilterListResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.RouteFilterListResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.RouteFilterListResultIterator, err error)
Update(ctx context.Context, resourceGroupName string, routeFilterName string, routeFilterParameters network.PatchRouteFilter) (result network.RouteFiltersUpdateFuture, err error)
}
@@ -367,6 +409,7 @@ type RouteFilterRulesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, routeFilterName string, ruleName string) (result network.RouteFilterRulesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, routeFilterName string, ruleName string) (result network.RouteFilterRule, err error)
ListByRouteFilter(ctx context.Context, resourceGroupName string, routeFilterName string) (result network.RouteFilterRuleListResultPage, err error)
+ ListByRouteFilterComplete(ctx context.Context, resourceGroupName string, routeFilterName string) (result network.RouteFilterRuleListResultIterator, err error)
Update(ctx context.Context, resourceGroupName string, routeFilterName string, ruleName string, routeFilterRuleParameters network.PatchRouteFilterRule) (result network.RouteFilterRulesUpdateFuture, err error)
}
@@ -378,7 +421,9 @@ type RouteTablesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, routeTableName string) (result network.RouteTablesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, routeTableName string, expand string) (result network.RouteTable, err error)
List(ctx context.Context, resourceGroupName string) (result network.RouteTableListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.RouteTableListResultIterator, err error)
ListAll(ctx context.Context) (result network.RouteTableListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.RouteTableListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, routeTableName string, parameters network.TagsObject) (result network.RouteTablesUpdateTagsFuture, err error)
}
@@ -390,6 +435,7 @@ type RoutesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, routeTableName string, routeName string) (result network.RoutesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, routeTableName string, routeName string) (result network.Route, err error)
List(ctx context.Context, resourceGroupName string, routeTableName string) (result network.RouteListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, routeTableName string) (result network.RouteListResultIterator, err error)
}
var _ RoutesClientAPI = (*network.RoutesClient)(nil)
@@ -397,6 +443,7 @@ var _ RoutesClientAPI = (*network.RoutesClient)(nil)
// BgpServiceCommunitiesClientAPI contains the set of methods on the BgpServiceCommunitiesClient type.
type BgpServiceCommunitiesClientAPI interface {
List(ctx context.Context) (result network.BgpServiceCommunityListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.BgpServiceCommunityListResultIterator, err error)
}
var _ BgpServiceCommunitiesClientAPI = (*network.BgpServiceCommunitiesClient)(nil)
@@ -404,6 +451,7 @@ var _ BgpServiceCommunitiesClientAPI = (*network.BgpServiceCommunitiesClient)(ni
// UsagesClientAPI contains the set of methods on the UsagesClient type.
type UsagesClientAPI interface {
List(ctx context.Context, location string) (result network.UsagesListResultPage, err error)
+ ListComplete(ctx context.Context, location string) (result network.UsagesListResultIterator, err error)
}
var _ UsagesClientAPI = (*network.UsagesClient)(nil)
@@ -415,8 +463,11 @@ type VirtualNetworksClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworksDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualNetworkName string, expand string) (result network.VirtualNetwork, err error)
List(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkListResultIterator, err error)
ListAll(ctx context.Context) (result network.VirtualNetworkListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.VirtualNetworkListResultIterator, err error)
ListUsage(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworkListUsageResultPage, err error)
+ ListUsageComplete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworkListUsageResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, virtualNetworkName string, parameters network.TagsObject) (result network.VirtualNetworksUpdateTagsFuture, err error)
}
@@ -428,6 +479,7 @@ type SubnetsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualNetworkName string, subnetName string) (result network.SubnetsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualNetworkName string, subnetName string, expand string) (result network.Subnet, err error)
List(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.SubnetListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.SubnetListResultIterator, err error)
}
var _ SubnetsClientAPI = (*network.SubnetsClient)(nil)
@@ -438,6 +490,7 @@ type VirtualNetworkPeeringsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualNetworkName string, virtualNetworkPeeringName string) (result network.VirtualNetworkPeeringsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualNetworkName string, virtualNetworkPeeringName string) (result network.VirtualNetworkPeering, err error)
List(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworkPeeringListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworkPeeringListResultIterator, err error)
}
var _ VirtualNetworkPeeringsClientAPI = (*network.VirtualNetworkPeeringsClient)(nil)
@@ -455,7 +508,9 @@ type VirtualNetworkGatewaysClientAPI interface {
GetVpnclientIpsecParameters(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGatewaysGetVpnclientIpsecParametersFuture, err error)
GetVpnProfilePackageURL(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGatewaysGetVpnProfilePackageURLFuture, err error)
List(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayListResultIterator, err error)
ListConnections(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGatewayListConnectionsResultPage, err error)
+ ListConnectionsComplete(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGatewayListConnectionsResultIterator, err error)
Reset(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, gatewayVip string) (result network.VirtualNetworkGatewaysResetFuture, err error)
SetVpnclientIpsecParameters(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, vpnclientIpsecParams network.VpnClientIPsecParameters) (result network.VirtualNetworkGatewaysSetVpnclientIpsecParametersFuture, err error)
SupportedVpnDevices(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.String, err error)
@@ -472,6 +527,7 @@ type VirtualNetworkGatewayConnectionsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string) (result network.VirtualNetworkGatewayConnection, err error)
GetSharedKey(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string) (result network.ConnectionSharedKey, err error)
List(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayConnectionListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayConnectionListResultIterator, err error)
ResetSharedKey(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string, parameters network.ConnectionResetSharedKey) (result network.VirtualNetworkGatewayConnectionsResetSharedKeyFuture, err error)
SetSharedKey(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string, parameters network.ConnectionSharedKey) (result network.VirtualNetworkGatewayConnectionsSetSharedKeyFuture, err error)
UpdateTags(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string, parameters network.TagsObject) (result network.VirtualNetworkGatewayConnectionsUpdateTagsFuture, err error)
@@ -485,6 +541,7 @@ type LocalNetworkGatewaysClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, localNetworkGatewayName string) (result network.LocalNetworkGatewaysDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, localNetworkGatewayName string) (result network.LocalNetworkGateway, err error)
List(ctx context.Context, resourceGroupName string) (result network.LocalNetworkGatewayListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.LocalNetworkGatewayListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, localNetworkGatewayName string, parameters network.TagsObject) (result network.LocalNetworkGatewaysUpdateTagsFuture, err error)
}
diff --git a/services/network/mgmt/2018-02-01/network/operations.go b/services/network/mgmt/2018-02-01/network/operations.go
index 2007955f60ac..8991bc8c2cca 100644
--- a/services/network/mgmt/2018-02-01/network/operations.go
+++ b/services/network/mgmt/2018-02-01/network/operations.go
@@ -35,7 +35,8 @@ func NewOperationsClient(subscriptionID string) OperationsClient {
return NewOperationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewOperationsClientWithBaseURI creates an instance of the OperationsClient client.
+// NewOperationsClientWithBaseURI creates an instance of the OperationsClient client using a custom endpoint. Use this
+// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient {
return OperationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-02-01/network/packetcaptures.go b/services/network/mgmt/2018-02-01/network/packetcaptures.go
index 2eb7e81b67e0..162cbf66b7a0 100644
--- a/services/network/mgmt/2018-02-01/network/packetcaptures.go
+++ b/services/network/mgmt/2018-02-01/network/packetcaptures.go
@@ -36,7 +36,8 @@ func NewPacketCapturesClient(subscriptionID string) PacketCapturesClient {
return NewPacketCapturesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewPacketCapturesClientWithBaseURI creates an instance of the PacketCapturesClient client.
+// NewPacketCapturesClientWithBaseURI creates an instance of the PacketCapturesClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewPacketCapturesClientWithBaseURI(baseURI string, subscriptionID string) PacketCapturesClient {
return PacketCapturesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-02-01/network/publicipaddresses.go b/services/network/mgmt/2018-02-01/network/publicipaddresses.go
index 8c15d690ea31..f46d51903b43 100644
--- a/services/network/mgmt/2018-02-01/network/publicipaddresses.go
+++ b/services/network/mgmt/2018-02-01/network/publicipaddresses.go
@@ -36,7 +36,9 @@ func NewPublicIPAddressesClient(subscriptionID string) PublicIPAddressesClient {
return NewPublicIPAddressesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewPublicIPAddressesClientWithBaseURI creates an instance of the PublicIPAddressesClient client.
+// NewPublicIPAddressesClientWithBaseURI creates an instance of the PublicIPAddressesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewPublicIPAddressesClientWithBaseURI(baseURI string, subscriptionID string) PublicIPAddressesClient {
return PublicIPAddressesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-02-01/network/routefilterrules.go b/services/network/mgmt/2018-02-01/network/routefilterrules.go
index 50fa5315ca38..c0ab1b814d8a 100644
--- a/services/network/mgmt/2018-02-01/network/routefilterrules.go
+++ b/services/network/mgmt/2018-02-01/network/routefilterrules.go
@@ -36,7 +36,9 @@ func NewRouteFilterRulesClient(subscriptionID string) RouteFilterRulesClient {
return NewRouteFilterRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewRouteFilterRulesClientWithBaseURI creates an instance of the RouteFilterRulesClient client.
+// NewRouteFilterRulesClientWithBaseURI creates an instance of the RouteFilterRulesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewRouteFilterRulesClientWithBaseURI(baseURI string, subscriptionID string) RouteFilterRulesClient {
return RouteFilterRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-02-01/network/routefilters.go b/services/network/mgmt/2018-02-01/network/routefilters.go
index 209fd4f7336c..6c37aa5e583e 100644
--- a/services/network/mgmt/2018-02-01/network/routefilters.go
+++ b/services/network/mgmt/2018-02-01/network/routefilters.go
@@ -35,7 +35,8 @@ func NewRouteFiltersClient(subscriptionID string) RouteFiltersClient {
return NewRouteFiltersClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewRouteFiltersClientWithBaseURI creates an instance of the RouteFiltersClient client.
+// NewRouteFiltersClientWithBaseURI creates an instance of the RouteFiltersClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewRouteFiltersClientWithBaseURI(baseURI string, subscriptionID string) RouteFiltersClient {
return RouteFiltersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-02-01/network/routes.go b/services/network/mgmt/2018-02-01/network/routes.go
index d7b5f8119c18..273f5f7fb3c4 100644
--- a/services/network/mgmt/2018-02-01/network/routes.go
+++ b/services/network/mgmt/2018-02-01/network/routes.go
@@ -35,7 +35,8 @@ func NewRoutesClient(subscriptionID string) RoutesClient {
return NewRoutesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewRoutesClientWithBaseURI creates an instance of the RoutesClient client.
+// NewRoutesClientWithBaseURI creates an instance of the RoutesClient client using a custom endpoint. Use this when
+// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewRoutesClientWithBaseURI(baseURI string, subscriptionID string) RoutesClient {
return RoutesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-02-01/network/routetables.go b/services/network/mgmt/2018-02-01/network/routetables.go
index 15786339aac7..c97e7b164d2f 100644
--- a/services/network/mgmt/2018-02-01/network/routetables.go
+++ b/services/network/mgmt/2018-02-01/network/routetables.go
@@ -35,7 +35,8 @@ func NewRouteTablesClient(subscriptionID string) RouteTablesClient {
return NewRouteTablesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewRouteTablesClientWithBaseURI creates an instance of the RouteTablesClient client.
+// NewRouteTablesClientWithBaseURI creates an instance of the RouteTablesClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewRouteTablesClientWithBaseURI(baseURI string, subscriptionID string) RouteTablesClient {
return RouteTablesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-02-01/network/securitygroups.go b/services/network/mgmt/2018-02-01/network/securitygroups.go
index a733652b9190..0276f97a59e8 100644
--- a/services/network/mgmt/2018-02-01/network/securitygroups.go
+++ b/services/network/mgmt/2018-02-01/network/securitygroups.go
@@ -35,7 +35,8 @@ func NewSecurityGroupsClient(subscriptionID string) SecurityGroupsClient {
return NewSecurityGroupsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewSecurityGroupsClientWithBaseURI creates an instance of the SecurityGroupsClient client.
+// NewSecurityGroupsClientWithBaseURI creates an instance of the SecurityGroupsClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewSecurityGroupsClientWithBaseURI(baseURI string, subscriptionID string) SecurityGroupsClient {
return SecurityGroupsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-02-01/network/securityrules.go b/services/network/mgmt/2018-02-01/network/securityrules.go
index a13bf3afcf93..1128fd836d82 100644
--- a/services/network/mgmt/2018-02-01/network/securityrules.go
+++ b/services/network/mgmt/2018-02-01/network/securityrules.go
@@ -35,7 +35,8 @@ func NewSecurityRulesClient(subscriptionID string) SecurityRulesClient {
return NewSecurityRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewSecurityRulesClientWithBaseURI creates an instance of the SecurityRulesClient client.
+// NewSecurityRulesClientWithBaseURI creates an instance of the SecurityRulesClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewSecurityRulesClientWithBaseURI(baseURI string, subscriptionID string) SecurityRulesClient {
return SecurityRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-02-01/network/subnets.go b/services/network/mgmt/2018-02-01/network/subnets.go
index 99e406c1dff3..259d3a3e8bff 100644
--- a/services/network/mgmt/2018-02-01/network/subnets.go
+++ b/services/network/mgmt/2018-02-01/network/subnets.go
@@ -35,7 +35,8 @@ func NewSubnetsClient(subscriptionID string) SubnetsClient {
return NewSubnetsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewSubnetsClientWithBaseURI creates an instance of the SubnetsClient client.
+// NewSubnetsClientWithBaseURI creates an instance of the SubnetsClient client using a custom endpoint. Use this when
+// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewSubnetsClientWithBaseURI(baseURI string, subscriptionID string) SubnetsClient {
return SubnetsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-02-01/network/usages.go b/services/network/mgmt/2018-02-01/network/usages.go
index bb7c68e0bcf0..a5cc4a726ebd 100644
--- a/services/network/mgmt/2018-02-01/network/usages.go
+++ b/services/network/mgmt/2018-02-01/network/usages.go
@@ -36,7 +36,8 @@ func NewUsagesClient(subscriptionID string) UsagesClient {
return NewUsagesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewUsagesClientWithBaseURI creates an instance of the UsagesClient client.
+// NewUsagesClientWithBaseURI creates an instance of the UsagesClient client using a custom endpoint. Use this when
+// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewUsagesClientWithBaseURI(baseURI string, subscriptionID string) UsagesClient {
return UsagesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-02-01/network/virtualnetworkgatewayconnections.go b/services/network/mgmt/2018-02-01/network/virtualnetworkgatewayconnections.go
index 29e8c93b680c..0e300bc4c6a0 100644
--- a/services/network/mgmt/2018-02-01/network/virtualnetworkgatewayconnections.go
+++ b/services/network/mgmt/2018-02-01/network/virtualnetworkgatewayconnections.go
@@ -37,7 +37,8 @@ func NewVirtualNetworkGatewayConnectionsClient(subscriptionID string) VirtualNet
}
// NewVirtualNetworkGatewayConnectionsClientWithBaseURI creates an instance of the
-// VirtualNetworkGatewayConnectionsClient client.
+// VirtualNetworkGatewayConnectionsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVirtualNetworkGatewayConnectionsClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworkGatewayConnectionsClient {
return VirtualNetworkGatewayConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-02-01/network/virtualnetworkgateways.go b/services/network/mgmt/2018-02-01/network/virtualnetworkgateways.go
index 976de82f431c..e46b5497a93f 100644
--- a/services/network/mgmt/2018-02-01/network/virtualnetworkgateways.go
+++ b/services/network/mgmt/2018-02-01/network/virtualnetworkgateways.go
@@ -36,7 +36,9 @@ func NewVirtualNetworkGatewaysClient(subscriptionID string) VirtualNetworkGatewa
return NewVirtualNetworkGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualNetworkGatewaysClientWithBaseURI creates an instance of the VirtualNetworkGatewaysClient client.
+// NewVirtualNetworkGatewaysClientWithBaseURI creates an instance of the VirtualNetworkGatewaysClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewVirtualNetworkGatewaysClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworkGatewaysClient {
return VirtualNetworkGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-02-01/network/virtualnetworkpeerings.go b/services/network/mgmt/2018-02-01/network/virtualnetworkpeerings.go
index 4327a8eafaa4..ea5b835b5211 100644
--- a/services/network/mgmt/2018-02-01/network/virtualnetworkpeerings.go
+++ b/services/network/mgmt/2018-02-01/network/virtualnetworkpeerings.go
@@ -35,7 +35,9 @@ func NewVirtualNetworkPeeringsClient(subscriptionID string) VirtualNetworkPeerin
return NewVirtualNetworkPeeringsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualNetworkPeeringsClientWithBaseURI creates an instance of the VirtualNetworkPeeringsClient client.
+// NewVirtualNetworkPeeringsClientWithBaseURI creates an instance of the VirtualNetworkPeeringsClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewVirtualNetworkPeeringsClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworkPeeringsClient {
return VirtualNetworkPeeringsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-02-01/network/virtualnetworks.go b/services/network/mgmt/2018-02-01/network/virtualnetworks.go
index 96277cc11bc5..0458008478aa 100644
--- a/services/network/mgmt/2018-02-01/network/virtualnetworks.go
+++ b/services/network/mgmt/2018-02-01/network/virtualnetworks.go
@@ -35,7 +35,8 @@ func NewVirtualNetworksClient(subscriptionID string) VirtualNetworksClient {
return NewVirtualNetworksClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualNetworksClientWithBaseURI creates an instance of the VirtualNetworksClient client.
+// NewVirtualNetworksClientWithBaseURI creates an instance of the VirtualNetworksClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVirtualNetworksClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworksClient {
return VirtualNetworksClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-02-01/network/watchers.go b/services/network/mgmt/2018-02-01/network/watchers.go
index 725b4260ac9a..c78cc86b8e74 100644
--- a/services/network/mgmt/2018-02-01/network/watchers.go
+++ b/services/network/mgmt/2018-02-01/network/watchers.go
@@ -36,7 +36,8 @@ func NewWatchersClient(subscriptionID string) WatchersClient {
return NewWatchersClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewWatchersClientWithBaseURI creates an instance of the WatchersClient client.
+// NewWatchersClientWithBaseURI creates an instance of the WatchersClient client using a custom endpoint. Use this
+// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewWatchersClientWithBaseURI(baseURI string, subscriptionID string) WatchersClient {
return WatchersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-04-01/network/applicationgateways.go b/services/network/mgmt/2018-04-01/network/applicationgateways.go
index 5cbd1635e143..365166938990 100644
--- a/services/network/mgmt/2018-04-01/network/applicationgateways.go
+++ b/services/network/mgmt/2018-04-01/network/applicationgateways.go
@@ -36,7 +36,9 @@ func NewApplicationGatewaysClient(subscriptionID string) ApplicationGatewaysClie
return NewApplicationGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewApplicationGatewaysClientWithBaseURI creates an instance of the ApplicationGatewaysClient client.
+// NewApplicationGatewaysClientWithBaseURI creates an instance of the ApplicationGatewaysClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewApplicationGatewaysClientWithBaseURI(baseURI string, subscriptionID string) ApplicationGatewaysClient {
return ApplicationGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-04-01/network/applicationsecuritygroups.go b/services/network/mgmt/2018-04-01/network/applicationsecuritygroups.go
index 654cb8962d84..257dc033b722 100644
--- a/services/network/mgmt/2018-04-01/network/applicationsecuritygroups.go
+++ b/services/network/mgmt/2018-04-01/network/applicationsecuritygroups.go
@@ -35,7 +35,9 @@ func NewApplicationSecurityGroupsClient(subscriptionID string) ApplicationSecuri
return NewApplicationSecurityGroupsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewApplicationSecurityGroupsClientWithBaseURI creates an instance of the ApplicationSecurityGroupsClient client.
+// NewApplicationSecurityGroupsClientWithBaseURI creates an instance of the ApplicationSecurityGroupsClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewApplicationSecurityGroupsClientWithBaseURI(baseURI string, subscriptionID string) ApplicationSecurityGroupsClient {
return ApplicationSecurityGroupsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-04-01/network/availableendpointservices.go b/services/network/mgmt/2018-04-01/network/availableendpointservices.go
index 348b32be40cf..f9a7eb61b80b 100644
--- a/services/network/mgmt/2018-04-01/network/availableendpointservices.go
+++ b/services/network/mgmt/2018-04-01/network/availableendpointservices.go
@@ -35,7 +35,9 @@ func NewAvailableEndpointServicesClient(subscriptionID string) AvailableEndpoint
return NewAvailableEndpointServicesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewAvailableEndpointServicesClientWithBaseURI creates an instance of the AvailableEndpointServicesClient client.
+// NewAvailableEndpointServicesClientWithBaseURI creates an instance of the AvailableEndpointServicesClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewAvailableEndpointServicesClientWithBaseURI(baseURI string, subscriptionID string) AvailableEndpointServicesClient {
return AvailableEndpointServicesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-04-01/network/azurefirewalls.go b/services/network/mgmt/2018-04-01/network/azurefirewalls.go
index e039ec8e5a44..9006dd2d7a7e 100644
--- a/services/network/mgmt/2018-04-01/network/azurefirewalls.go
+++ b/services/network/mgmt/2018-04-01/network/azurefirewalls.go
@@ -35,7 +35,8 @@ func NewAzureFirewallsClient(subscriptionID string) AzureFirewallsClient {
return NewAzureFirewallsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewAzureFirewallsClientWithBaseURI creates an instance of the AzureFirewallsClient client.
+// NewAzureFirewallsClientWithBaseURI creates an instance of the AzureFirewallsClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewAzureFirewallsClientWithBaseURI(baseURI string, subscriptionID string) AzureFirewallsClient {
return AzureFirewallsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-04-01/network/bgpservicecommunities.go b/services/network/mgmt/2018-04-01/network/bgpservicecommunities.go
index 70be1906d193..e8e3ca007fd5 100644
--- a/services/network/mgmt/2018-04-01/network/bgpservicecommunities.go
+++ b/services/network/mgmt/2018-04-01/network/bgpservicecommunities.go
@@ -35,7 +35,9 @@ func NewBgpServiceCommunitiesClient(subscriptionID string) BgpServiceCommunities
return NewBgpServiceCommunitiesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewBgpServiceCommunitiesClientWithBaseURI creates an instance of the BgpServiceCommunitiesClient client.
+// NewBgpServiceCommunitiesClientWithBaseURI creates an instance of the BgpServiceCommunitiesClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewBgpServiceCommunitiesClientWithBaseURI(baseURI string, subscriptionID string) BgpServiceCommunitiesClient {
return BgpServiceCommunitiesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-04-01/network/client.go b/services/network/mgmt/2018-04-01/network/client.go
index 91a587a748e2..254d6f87ce38 100644
--- a/services/network/mgmt/2018-04-01/network/client.go
+++ b/services/network/mgmt/2018-04-01/network/client.go
@@ -45,7 +45,8 @@ func New(subscriptionID string) BaseClient {
return NewWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewWithBaseURI creates an instance of the BaseClient client.
+// NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with
+// an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient {
return BaseClient{
Client: autorest.NewClientWithUserAgent(UserAgent()),
diff --git a/services/network/mgmt/2018-04-01/network/connectionmonitors.go b/services/network/mgmt/2018-04-01/network/connectionmonitors.go
index 8c5c04fec12a..c5dbc3632b97 100644
--- a/services/network/mgmt/2018-04-01/network/connectionmonitors.go
+++ b/services/network/mgmt/2018-04-01/network/connectionmonitors.go
@@ -36,7 +36,9 @@ func NewConnectionMonitorsClient(subscriptionID string) ConnectionMonitorsClient
return NewConnectionMonitorsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewConnectionMonitorsClientWithBaseURI creates an instance of the ConnectionMonitorsClient client.
+// NewConnectionMonitorsClientWithBaseURI creates an instance of the ConnectionMonitorsClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewConnectionMonitorsClientWithBaseURI(baseURI string, subscriptionID string) ConnectionMonitorsClient {
return ConnectionMonitorsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-04-01/network/ddosprotectionplans.go b/services/network/mgmt/2018-04-01/network/ddosprotectionplans.go
index f19e739a0052..6da53c5ffbac 100644
--- a/services/network/mgmt/2018-04-01/network/ddosprotectionplans.go
+++ b/services/network/mgmt/2018-04-01/network/ddosprotectionplans.go
@@ -35,7 +35,9 @@ func NewDdosProtectionPlansClient(subscriptionID string) DdosProtectionPlansClie
return NewDdosProtectionPlansClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewDdosProtectionPlansClientWithBaseURI creates an instance of the DdosProtectionPlansClient client.
+// NewDdosProtectionPlansClientWithBaseURI creates an instance of the DdosProtectionPlansClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewDdosProtectionPlansClientWithBaseURI(baseURI string, subscriptionID string) DdosProtectionPlansClient {
return DdosProtectionPlansClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-04-01/network/defaultsecurityrules.go b/services/network/mgmt/2018-04-01/network/defaultsecurityrules.go
index 52601e0d365b..588a3488af86 100644
--- a/services/network/mgmt/2018-04-01/network/defaultsecurityrules.go
+++ b/services/network/mgmt/2018-04-01/network/defaultsecurityrules.go
@@ -35,7 +35,9 @@ func NewDefaultSecurityRulesClient(subscriptionID string) DefaultSecurityRulesCl
return NewDefaultSecurityRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewDefaultSecurityRulesClientWithBaseURI creates an instance of the DefaultSecurityRulesClient client.
+// NewDefaultSecurityRulesClientWithBaseURI creates an instance of the DefaultSecurityRulesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewDefaultSecurityRulesClientWithBaseURI(baseURI string, subscriptionID string) DefaultSecurityRulesClient {
return DefaultSecurityRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-04-01/network/expressroutecircuitauthorizations.go b/services/network/mgmt/2018-04-01/network/expressroutecircuitauthorizations.go
index 85a5ca671cef..65e282df94f6 100644
--- a/services/network/mgmt/2018-04-01/network/expressroutecircuitauthorizations.go
+++ b/services/network/mgmt/2018-04-01/network/expressroutecircuitauthorizations.go
@@ -37,7 +37,8 @@ func NewExpressRouteCircuitAuthorizationsClient(subscriptionID string) ExpressRo
}
// NewExpressRouteCircuitAuthorizationsClientWithBaseURI creates an instance of the
-// ExpressRouteCircuitAuthorizationsClient client.
+// ExpressRouteCircuitAuthorizationsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewExpressRouteCircuitAuthorizationsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCircuitAuthorizationsClient {
return ExpressRouteCircuitAuthorizationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-04-01/network/expressroutecircuitconnections.go b/services/network/mgmt/2018-04-01/network/expressroutecircuitconnections.go
index 7c4431b2b539..1870d7330b23 100644
--- a/services/network/mgmt/2018-04-01/network/expressroutecircuitconnections.go
+++ b/services/network/mgmt/2018-04-01/network/expressroutecircuitconnections.go
@@ -36,7 +36,8 @@ func NewExpressRouteCircuitConnectionsClient(subscriptionID string) ExpressRoute
}
// NewExpressRouteCircuitConnectionsClientWithBaseURI creates an instance of the ExpressRouteCircuitConnectionsClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewExpressRouteCircuitConnectionsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCircuitConnectionsClient {
return ExpressRouteCircuitConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-04-01/network/expressroutecircuitpeerings.go b/services/network/mgmt/2018-04-01/network/expressroutecircuitpeerings.go
index fa8e2db18e6b..a2b20069b311 100644
--- a/services/network/mgmt/2018-04-01/network/expressroutecircuitpeerings.go
+++ b/services/network/mgmt/2018-04-01/network/expressroutecircuitpeerings.go
@@ -36,7 +36,9 @@ func NewExpressRouteCircuitPeeringsClient(subscriptionID string) ExpressRouteCir
return NewExpressRouteCircuitPeeringsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewExpressRouteCircuitPeeringsClientWithBaseURI creates an instance of the ExpressRouteCircuitPeeringsClient client.
+// NewExpressRouteCircuitPeeringsClientWithBaseURI creates an instance of the ExpressRouteCircuitPeeringsClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewExpressRouteCircuitPeeringsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCircuitPeeringsClient {
return ExpressRouteCircuitPeeringsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-04-01/network/expressroutecircuits.go b/services/network/mgmt/2018-04-01/network/expressroutecircuits.go
index 3cb9514168c8..5f5bd72b7207 100644
--- a/services/network/mgmt/2018-04-01/network/expressroutecircuits.go
+++ b/services/network/mgmt/2018-04-01/network/expressroutecircuits.go
@@ -35,7 +35,9 @@ func NewExpressRouteCircuitsClient(subscriptionID string) ExpressRouteCircuitsCl
return NewExpressRouteCircuitsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewExpressRouteCircuitsClientWithBaseURI creates an instance of the ExpressRouteCircuitsClient client.
+// NewExpressRouteCircuitsClientWithBaseURI creates an instance of the ExpressRouteCircuitsClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewExpressRouteCircuitsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCircuitsClient {
return ExpressRouteCircuitsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-04-01/network/expressroutecrossconnectionpeerings.go b/services/network/mgmt/2018-04-01/network/expressroutecrossconnectionpeerings.go
index effc23c9ded7..cd86fb8046fe 100644
--- a/services/network/mgmt/2018-04-01/network/expressroutecrossconnectionpeerings.go
+++ b/services/network/mgmt/2018-04-01/network/expressroutecrossconnectionpeerings.go
@@ -38,7 +38,8 @@ func NewExpressRouteCrossConnectionPeeringsClient(subscriptionID string) Express
}
// NewExpressRouteCrossConnectionPeeringsClientWithBaseURI creates an instance of the
-// ExpressRouteCrossConnectionPeeringsClient client.
+// ExpressRouteCrossConnectionPeeringsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewExpressRouteCrossConnectionPeeringsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCrossConnectionPeeringsClient {
return ExpressRouteCrossConnectionPeeringsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-04-01/network/expressroutecrossconnections.go b/services/network/mgmt/2018-04-01/network/expressroutecrossconnections.go
index dff52bf18459..6b9f51f94f87 100644
--- a/services/network/mgmt/2018-04-01/network/expressroutecrossconnections.go
+++ b/services/network/mgmt/2018-04-01/network/expressroutecrossconnections.go
@@ -36,7 +36,8 @@ func NewExpressRouteCrossConnectionsClient(subscriptionID string) ExpressRouteCr
}
// NewExpressRouteCrossConnectionsClientWithBaseURI creates an instance of the ExpressRouteCrossConnectionsClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewExpressRouteCrossConnectionsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCrossConnectionsClient {
return ExpressRouteCrossConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-04-01/network/expressrouteserviceproviders.go b/services/network/mgmt/2018-04-01/network/expressrouteserviceproviders.go
index 80a4c2c34da8..0491c459bf47 100644
--- a/services/network/mgmt/2018-04-01/network/expressrouteserviceproviders.go
+++ b/services/network/mgmt/2018-04-01/network/expressrouteserviceproviders.go
@@ -36,7 +36,8 @@ func NewExpressRouteServiceProvidersClient(subscriptionID string) ExpressRouteSe
}
// NewExpressRouteServiceProvidersClientWithBaseURI creates an instance of the ExpressRouteServiceProvidersClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewExpressRouteServiceProvidersClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteServiceProvidersClient {
return ExpressRouteServiceProvidersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-04-01/network/hubvirtualnetworkconnections.go b/services/network/mgmt/2018-04-01/network/hubvirtualnetworkconnections.go
index e089cf295008..6437c02e52e6 100644
--- a/services/network/mgmt/2018-04-01/network/hubvirtualnetworkconnections.go
+++ b/services/network/mgmt/2018-04-01/network/hubvirtualnetworkconnections.go
@@ -36,7 +36,8 @@ func NewHubVirtualNetworkConnectionsClient(subscriptionID string) HubVirtualNetw
}
// NewHubVirtualNetworkConnectionsClientWithBaseURI creates an instance of the HubVirtualNetworkConnectionsClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewHubVirtualNetworkConnectionsClientWithBaseURI(baseURI string, subscriptionID string) HubVirtualNetworkConnectionsClient {
return HubVirtualNetworkConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-04-01/network/inboundnatrules.go b/services/network/mgmt/2018-04-01/network/inboundnatrules.go
index 26afb9253d9e..49f634495f03 100644
--- a/services/network/mgmt/2018-04-01/network/inboundnatrules.go
+++ b/services/network/mgmt/2018-04-01/network/inboundnatrules.go
@@ -36,7 +36,8 @@ func NewInboundNatRulesClient(subscriptionID string) InboundNatRulesClient {
return NewInboundNatRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewInboundNatRulesClientWithBaseURI creates an instance of the InboundNatRulesClient client.
+// NewInboundNatRulesClientWithBaseURI creates an instance of the InboundNatRulesClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewInboundNatRulesClientWithBaseURI(baseURI string, subscriptionID string) InboundNatRulesClient {
return InboundNatRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-04-01/network/interfaceipconfigurations.go b/services/network/mgmt/2018-04-01/network/interfaceipconfigurations.go
index cf227aa5ddcf..c63904a7d253 100644
--- a/services/network/mgmt/2018-04-01/network/interfaceipconfigurations.go
+++ b/services/network/mgmt/2018-04-01/network/interfaceipconfigurations.go
@@ -35,7 +35,9 @@ func NewInterfaceIPConfigurationsClient(subscriptionID string) InterfaceIPConfig
return NewInterfaceIPConfigurationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewInterfaceIPConfigurationsClientWithBaseURI creates an instance of the InterfaceIPConfigurationsClient client.
+// NewInterfaceIPConfigurationsClientWithBaseURI creates an instance of the InterfaceIPConfigurationsClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewInterfaceIPConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) InterfaceIPConfigurationsClient {
return InterfaceIPConfigurationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-04-01/network/interfaceloadbalancers.go b/services/network/mgmt/2018-04-01/network/interfaceloadbalancers.go
index 614b9ea28ee5..c35125e9b29d 100644
--- a/services/network/mgmt/2018-04-01/network/interfaceloadbalancers.go
+++ b/services/network/mgmt/2018-04-01/network/interfaceloadbalancers.go
@@ -35,7 +35,9 @@ func NewInterfaceLoadBalancersClient(subscriptionID string) InterfaceLoadBalance
return NewInterfaceLoadBalancersClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewInterfaceLoadBalancersClientWithBaseURI creates an instance of the InterfaceLoadBalancersClient client.
+// NewInterfaceLoadBalancersClientWithBaseURI creates an instance of the InterfaceLoadBalancersClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewInterfaceLoadBalancersClientWithBaseURI(baseURI string, subscriptionID string) InterfaceLoadBalancersClient {
return InterfaceLoadBalancersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-04-01/network/interfacesgroup.go b/services/network/mgmt/2018-04-01/network/interfacesgroup.go
index ee17f43968c2..7fdc9b968c6c 100644
--- a/services/network/mgmt/2018-04-01/network/interfacesgroup.go
+++ b/services/network/mgmt/2018-04-01/network/interfacesgroup.go
@@ -35,7 +35,8 @@ func NewInterfacesClient(subscriptionID string) InterfacesClient {
return NewInterfacesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewInterfacesClientWithBaseURI creates an instance of the InterfacesClient client.
+// NewInterfacesClientWithBaseURI creates an instance of the InterfacesClient client using a custom endpoint. Use this
+// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewInterfacesClientWithBaseURI(baseURI string, subscriptionID string) InterfacesClient {
return InterfacesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-04-01/network/loadbalancerbackendaddresspools.go b/services/network/mgmt/2018-04-01/network/loadbalancerbackendaddresspools.go
index 67147ba94eaa..70161695a0bf 100644
--- a/services/network/mgmt/2018-04-01/network/loadbalancerbackendaddresspools.go
+++ b/services/network/mgmt/2018-04-01/network/loadbalancerbackendaddresspools.go
@@ -36,7 +36,8 @@ func NewLoadBalancerBackendAddressPoolsClient(subscriptionID string) LoadBalance
}
// NewLoadBalancerBackendAddressPoolsClientWithBaseURI creates an instance of the LoadBalancerBackendAddressPoolsClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewLoadBalancerBackendAddressPoolsClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerBackendAddressPoolsClient {
return LoadBalancerBackendAddressPoolsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-04-01/network/loadbalancerfrontendipconfigurations.go b/services/network/mgmt/2018-04-01/network/loadbalancerfrontendipconfigurations.go
index 79352cf276e6..5ae929fdb0ef 100644
--- a/services/network/mgmt/2018-04-01/network/loadbalancerfrontendipconfigurations.go
+++ b/services/network/mgmt/2018-04-01/network/loadbalancerfrontendipconfigurations.go
@@ -37,7 +37,8 @@ func NewLoadBalancerFrontendIPConfigurationsClient(subscriptionID string) LoadBa
}
// NewLoadBalancerFrontendIPConfigurationsClientWithBaseURI creates an instance of the
-// LoadBalancerFrontendIPConfigurationsClient client.
+// LoadBalancerFrontendIPConfigurationsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewLoadBalancerFrontendIPConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerFrontendIPConfigurationsClient {
return LoadBalancerFrontendIPConfigurationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-04-01/network/loadbalancerloadbalancingrules.go b/services/network/mgmt/2018-04-01/network/loadbalancerloadbalancingrules.go
index 28c0da0b1887..af84bd5198d4 100644
--- a/services/network/mgmt/2018-04-01/network/loadbalancerloadbalancingrules.go
+++ b/services/network/mgmt/2018-04-01/network/loadbalancerloadbalancingrules.go
@@ -36,7 +36,8 @@ func NewLoadBalancerLoadBalancingRulesClient(subscriptionID string) LoadBalancer
}
// NewLoadBalancerLoadBalancingRulesClientWithBaseURI creates an instance of the LoadBalancerLoadBalancingRulesClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewLoadBalancerLoadBalancingRulesClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerLoadBalancingRulesClient {
return LoadBalancerLoadBalancingRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-04-01/network/loadbalancernetworkinterfaces.go b/services/network/mgmt/2018-04-01/network/loadbalancernetworkinterfaces.go
index dfced463daea..15a874841ce8 100644
--- a/services/network/mgmt/2018-04-01/network/loadbalancernetworkinterfaces.go
+++ b/services/network/mgmt/2018-04-01/network/loadbalancernetworkinterfaces.go
@@ -36,7 +36,8 @@ func NewLoadBalancerNetworkInterfacesClient(subscriptionID string) LoadBalancerN
}
// NewLoadBalancerNetworkInterfacesClientWithBaseURI creates an instance of the LoadBalancerNetworkInterfacesClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewLoadBalancerNetworkInterfacesClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerNetworkInterfacesClient {
return LoadBalancerNetworkInterfacesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-04-01/network/loadbalancerprobes.go b/services/network/mgmt/2018-04-01/network/loadbalancerprobes.go
index 9aa378d17d8f..a28b63a4815a 100644
--- a/services/network/mgmt/2018-04-01/network/loadbalancerprobes.go
+++ b/services/network/mgmt/2018-04-01/network/loadbalancerprobes.go
@@ -35,7 +35,9 @@ func NewLoadBalancerProbesClient(subscriptionID string) LoadBalancerProbesClient
return NewLoadBalancerProbesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewLoadBalancerProbesClientWithBaseURI creates an instance of the LoadBalancerProbesClient client.
+// NewLoadBalancerProbesClientWithBaseURI creates an instance of the LoadBalancerProbesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewLoadBalancerProbesClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerProbesClient {
return LoadBalancerProbesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-04-01/network/loadbalancers.go b/services/network/mgmt/2018-04-01/network/loadbalancers.go
index c0573eaf28b2..a624564d4b35 100644
--- a/services/network/mgmt/2018-04-01/network/loadbalancers.go
+++ b/services/network/mgmt/2018-04-01/network/loadbalancers.go
@@ -35,7 +35,8 @@ func NewLoadBalancersClient(subscriptionID string) LoadBalancersClient {
return NewLoadBalancersClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewLoadBalancersClientWithBaseURI creates an instance of the LoadBalancersClient client.
+// NewLoadBalancersClientWithBaseURI creates an instance of the LoadBalancersClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewLoadBalancersClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancersClient {
return LoadBalancersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-04-01/network/localnetworkgateways.go b/services/network/mgmt/2018-04-01/network/localnetworkgateways.go
index 23ff1573e29d..ed4c3ba37984 100644
--- a/services/network/mgmt/2018-04-01/network/localnetworkgateways.go
+++ b/services/network/mgmt/2018-04-01/network/localnetworkgateways.go
@@ -36,7 +36,9 @@ func NewLocalNetworkGatewaysClient(subscriptionID string) LocalNetworkGatewaysCl
return NewLocalNetworkGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewLocalNetworkGatewaysClientWithBaseURI creates an instance of the LocalNetworkGatewaysClient client.
+// NewLocalNetworkGatewaysClientWithBaseURI creates an instance of the LocalNetworkGatewaysClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewLocalNetworkGatewaysClientWithBaseURI(baseURI string, subscriptionID string) LocalNetworkGatewaysClient {
return LocalNetworkGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-04-01/network/networkapi/interfaces.go b/services/network/mgmt/2018-04-01/network/networkapi/interfaces.go
index dff64c6084fd..312ab8b6ddff 100644
--- a/services/network/mgmt/2018-04-01/network/networkapi/interfaces.go
+++ b/services/network/mgmt/2018-04-01/network/networkapi/interfaces.go
@@ -35,7 +35,9 @@ type AzureFirewallsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, azureFirewallName string) (result network.AzureFirewallsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, azureFirewallName string) (result network.AzureFirewall, err error)
List(ctx context.Context, resourceGroupName string) (result network.AzureFirewallListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.AzureFirewallListResultIterator, err error)
ListAll(ctx context.Context) (result network.AzureFirewallListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.AzureFirewallListResultIterator, err error)
}
var _ AzureFirewallsClientAPI = (*network.AzureFirewallsClient)(nil)
@@ -48,9 +50,12 @@ type ApplicationGatewaysClientAPI interface {
Get(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result network.ApplicationGateway, err error)
GetSslPredefinedPolicy(ctx context.Context, predefinedPolicyName string) (result network.ApplicationGatewaySslPredefinedPolicy, err error)
List(ctx context.Context, resourceGroupName string) (result network.ApplicationGatewayListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.ApplicationGatewayListResultIterator, err error)
ListAll(ctx context.Context) (result network.ApplicationGatewayListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.ApplicationGatewayListResultIterator, err error)
ListAvailableSslOptions(ctx context.Context) (result network.ApplicationGatewayAvailableSslOptions, err error)
ListAvailableSslPredefinedPolicies(ctx context.Context) (result network.ApplicationGatewayAvailableSslPredefinedPoliciesPage, err error)
+ ListAvailableSslPredefinedPoliciesComplete(ctx context.Context) (result network.ApplicationGatewayAvailableSslPredefinedPoliciesIterator, err error)
ListAvailableWafRuleSets(ctx context.Context) (result network.ApplicationGatewayAvailableWafRuleSetsResult, err error)
Start(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result network.ApplicationGatewaysStartFuture, err error)
Stop(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result network.ApplicationGatewaysStopFuture, err error)
@@ -65,7 +70,9 @@ type ApplicationSecurityGroupsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, applicationSecurityGroupName string) (result network.ApplicationSecurityGroupsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, applicationSecurityGroupName string) (result network.ApplicationSecurityGroup, err error)
List(ctx context.Context, resourceGroupName string) (result network.ApplicationSecurityGroupListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.ApplicationSecurityGroupListResultIterator, err error)
ListAll(ctx context.Context) (result network.ApplicationSecurityGroupListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.ApplicationSecurityGroupListResultIterator, err error)
}
var _ ApplicationSecurityGroupsClientAPI = (*network.ApplicationSecurityGroupsClient)(nil)
@@ -76,7 +83,9 @@ type DdosProtectionPlansClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, ddosProtectionPlanName string) (result network.DdosProtectionPlansDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, ddosProtectionPlanName string) (result network.DdosProtectionPlan, err error)
List(ctx context.Context) (result network.DdosProtectionPlanListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.DdosProtectionPlanListResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.DdosProtectionPlanListResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.DdosProtectionPlanListResultIterator, err error)
}
var _ DdosProtectionPlansClientAPI = (*network.DdosProtectionPlansClient)(nil)
@@ -84,6 +93,7 @@ var _ DdosProtectionPlansClientAPI = (*network.DdosProtectionPlansClient)(nil)
// AvailableEndpointServicesClientAPI contains the set of methods on the AvailableEndpointServicesClient type.
type AvailableEndpointServicesClientAPI interface {
List(ctx context.Context, location string) (result network.EndpointServicesListResultPage, err error)
+ ListComplete(ctx context.Context, location string) (result network.EndpointServicesListResultIterator, err error)
}
var _ AvailableEndpointServicesClientAPI = (*network.AvailableEndpointServicesClient)(nil)
@@ -94,6 +104,7 @@ type ExpressRouteCircuitAuthorizationsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, circuitName string, authorizationName string) (result network.ExpressRouteCircuitAuthorizationsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, circuitName string, authorizationName string) (result network.ExpressRouteCircuitAuthorization, err error)
List(ctx context.Context, resourceGroupName string, circuitName string) (result network.AuthorizationListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, circuitName string) (result network.AuthorizationListResultIterator, err error)
}
var _ ExpressRouteCircuitAuthorizationsClientAPI = (*network.ExpressRouteCircuitAuthorizationsClient)(nil)
@@ -104,6 +115,7 @@ type ExpressRouteCircuitPeeringsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.ExpressRouteCircuitPeeringsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.ExpressRouteCircuitPeering, err error)
List(ctx context.Context, resourceGroupName string, circuitName string) (result network.ExpressRouteCircuitPeeringListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, circuitName string) (result network.ExpressRouteCircuitPeeringListResultIterator, err error)
}
var _ ExpressRouteCircuitPeeringsClientAPI = (*network.ExpressRouteCircuitPeeringsClient)(nil)
@@ -125,7 +137,9 @@ type ExpressRouteCircuitsClientAPI interface {
GetPeeringStats(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.ExpressRouteCircuitStats, err error)
GetStats(ctx context.Context, resourceGroupName string, circuitName string) (result network.ExpressRouteCircuitStats, err error)
List(ctx context.Context, resourceGroupName string) (result network.ExpressRouteCircuitListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.ExpressRouteCircuitListResultIterator, err error)
ListAll(ctx context.Context) (result network.ExpressRouteCircuitListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.ExpressRouteCircuitListResultIterator, err error)
ListArpTable(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, devicePath string) (result network.ExpressRouteCircuitsListArpTableFuture, err error)
ListRoutesTable(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, devicePath string) (result network.ExpressRouteCircuitsListRoutesTableFuture, err error)
ListRoutesTableSummary(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, devicePath string) (result network.ExpressRouteCircuitsListRoutesTableSummaryFuture, err error)
@@ -137,6 +151,7 @@ var _ ExpressRouteCircuitsClientAPI = (*network.ExpressRouteCircuitsClient)(nil)
// ExpressRouteServiceProvidersClientAPI contains the set of methods on the ExpressRouteServiceProvidersClient type.
type ExpressRouteServiceProvidersClientAPI interface {
List(ctx context.Context) (result network.ExpressRouteServiceProviderListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ExpressRouteServiceProviderListResultIterator, err error)
}
var _ ExpressRouteServiceProvidersClientAPI = (*network.ExpressRouteServiceProvidersClient)(nil)
@@ -146,8 +161,10 @@ type ExpressRouteCrossConnectionsClientAPI interface {
CreateOrUpdate(ctx context.Context, resourceGroupName string, crossConnectionName string, parameters network.ExpressRouteCrossConnection) (result network.ExpressRouteCrossConnectionsCreateOrUpdateFuture, err error)
Get(ctx context.Context, resourceGroupName string, crossConnectionName string) (result network.ExpressRouteCrossConnection, err error)
List(ctx context.Context) (result network.ExpressRouteCrossConnectionListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ExpressRouteCrossConnectionListResultIterator, err error)
ListArpTable(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string, devicePath string) (result network.ExpressRouteCrossConnectionsListArpTableFuture, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ExpressRouteCrossConnectionListResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ExpressRouteCrossConnectionListResultIterator, err error)
ListRoutesTable(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string, devicePath string) (result network.ExpressRouteCrossConnectionsListRoutesTableFuture, err error)
ListRoutesTableSummary(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string, devicePath string) (result network.ExpressRouteCrossConnectionsListRoutesTableSummaryFuture, err error)
UpdateTags(ctx context.Context, resourceGroupName string, crossConnectionName string, crossConnectionParameters network.TagsObject) (result network.ExpressRouteCrossConnectionsUpdateTagsFuture, err error)
@@ -161,6 +178,7 @@ type ExpressRouteCrossConnectionPeeringsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string) (result network.ExpressRouteCrossConnectionPeeringsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string) (result network.ExpressRouteCrossConnectionPeering, err error)
List(ctx context.Context, resourceGroupName string, crossConnectionName string) (result network.ExpressRouteCrossConnectionPeeringListPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, crossConnectionName string) (result network.ExpressRouteCrossConnectionPeeringListIterator, err error)
}
var _ ExpressRouteCrossConnectionPeeringsClientAPI = (*network.ExpressRouteCrossConnectionPeeringsClient)(nil)
@@ -171,7 +189,9 @@ type LoadBalancersClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancersDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, expand string) (result network.LoadBalancer, err error)
List(ctx context.Context, resourceGroupName string) (result network.LoadBalancerListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.LoadBalancerListResultIterator, err error)
ListAll(ctx context.Context) (result network.LoadBalancerListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.LoadBalancerListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, loadBalancerName string, parameters network.TagsObject) (result network.LoadBalancersUpdateTagsFuture, err error)
}
@@ -181,6 +201,7 @@ var _ LoadBalancersClientAPI = (*network.LoadBalancersClient)(nil)
type LoadBalancerBackendAddressPoolsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, backendAddressPoolName string) (result network.BackendAddressPool, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerBackendAddressPoolListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerBackendAddressPoolListResultIterator, err error)
}
var _ LoadBalancerBackendAddressPoolsClientAPI = (*network.LoadBalancerBackendAddressPoolsClient)(nil)
@@ -189,6 +210,7 @@ var _ LoadBalancerBackendAddressPoolsClientAPI = (*network.LoadBalancerBackendAd
type LoadBalancerFrontendIPConfigurationsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, frontendIPConfigurationName string) (result network.FrontendIPConfiguration, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerFrontendIPConfigurationListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerFrontendIPConfigurationListResultIterator, err error)
}
var _ LoadBalancerFrontendIPConfigurationsClientAPI = (*network.LoadBalancerFrontendIPConfigurationsClient)(nil)
@@ -199,6 +221,7 @@ type InboundNatRulesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, loadBalancerName string, inboundNatRuleName string) (result network.InboundNatRulesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, inboundNatRuleName string, expand string) (result network.InboundNatRule, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.InboundNatRuleListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.InboundNatRuleListResultIterator, err error)
}
var _ InboundNatRulesClientAPI = (*network.InboundNatRulesClient)(nil)
@@ -207,6 +230,7 @@ var _ InboundNatRulesClientAPI = (*network.InboundNatRulesClient)(nil)
type LoadBalancerLoadBalancingRulesClientAPI interface {
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, loadBalancingRuleName string) (result network.LoadBalancingRule, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerLoadBalancingRuleListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerLoadBalancingRuleListResultIterator, err error)
}
var _ LoadBalancerLoadBalancingRulesClientAPI = (*network.LoadBalancerLoadBalancingRulesClient)(nil)
@@ -214,6 +238,7 @@ var _ LoadBalancerLoadBalancingRulesClientAPI = (*network.LoadBalancerLoadBalanc
// LoadBalancerNetworkInterfacesClientAPI contains the set of methods on the LoadBalancerNetworkInterfacesClient type.
type LoadBalancerNetworkInterfacesClientAPI interface {
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.InterfaceListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.InterfaceListResultIterator, err error)
}
var _ LoadBalancerNetworkInterfacesClientAPI = (*network.LoadBalancerNetworkInterfacesClient)(nil)
@@ -222,6 +247,7 @@ var _ LoadBalancerNetworkInterfacesClientAPI = (*network.LoadBalancerNetworkInte
type LoadBalancerProbesClientAPI interface {
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, probeName string) (result network.Probe, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerProbeListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerProbeListResultIterator, err error)
}
var _ LoadBalancerProbesClientAPI = (*network.LoadBalancerProbesClient)(nil)
@@ -235,11 +261,16 @@ type InterfacesClientAPI interface {
GetVirtualMachineScaleSetIPConfiguration(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, IPConfigurationName string, expand string) (result network.InterfaceIPConfiguration, err error)
GetVirtualMachineScaleSetNetworkInterface(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, expand string) (result network.Interface, err error)
List(ctx context.Context, resourceGroupName string) (result network.InterfaceListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.InterfaceListResultIterator, err error)
ListAll(ctx context.Context) (result network.InterfaceListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.InterfaceListResultIterator, err error)
ListEffectiveNetworkSecurityGroups(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfacesListEffectiveNetworkSecurityGroupsFuture, err error)
ListVirtualMachineScaleSetIPConfigurations(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, expand string) (result network.InterfaceIPConfigurationListResultPage, err error)
+ ListVirtualMachineScaleSetIPConfigurationsComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, expand string) (result network.InterfaceIPConfigurationListResultIterator, err error)
ListVirtualMachineScaleSetNetworkInterfaces(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result network.InterfaceListResultPage, err error)
+ ListVirtualMachineScaleSetNetworkInterfacesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result network.InterfaceListResultIterator, err error)
ListVirtualMachineScaleSetVMNetworkInterfaces(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string) (result network.InterfaceListResultPage, err error)
+ ListVirtualMachineScaleSetVMNetworkInterfacesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string) (result network.InterfaceListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, networkInterfaceName string, parameters network.TagsObject) (result network.InterfacesUpdateTagsFuture, err error)
}
@@ -249,6 +280,7 @@ var _ InterfacesClientAPI = (*network.InterfacesClient)(nil)
type InterfaceIPConfigurationsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, networkInterfaceName string, IPConfigurationName string) (result network.InterfaceIPConfiguration, err error)
List(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceIPConfigurationListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceIPConfigurationListResultIterator, err error)
}
var _ InterfaceIPConfigurationsClientAPI = (*network.InterfaceIPConfigurationsClient)(nil)
@@ -256,6 +288,7 @@ var _ InterfaceIPConfigurationsClientAPI = (*network.InterfaceIPConfigurationsCl
// InterfaceLoadBalancersClientAPI contains the set of methods on the InterfaceLoadBalancersClient type.
type InterfaceLoadBalancersClientAPI interface {
List(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceLoadBalancerListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceLoadBalancerListResultIterator, err error)
}
var _ InterfaceLoadBalancersClientAPI = (*network.InterfaceLoadBalancersClient)(nil)
@@ -266,7 +299,9 @@ type SecurityGroupsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityGroupsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, expand string) (result network.SecurityGroup, err error)
List(ctx context.Context, resourceGroupName string) (result network.SecurityGroupListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.SecurityGroupListResultIterator, err error)
ListAll(ctx context.Context) (result network.SecurityGroupListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.SecurityGroupListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, parameters network.TagsObject) (result network.SecurityGroupsUpdateTagsFuture, err error)
}
@@ -278,6 +313,7 @@ type SecurityRulesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, securityRuleName string) (result network.SecurityRulesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, securityRuleName string) (result network.SecurityRule, err error)
List(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityRuleListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityRuleListResultIterator, err error)
}
var _ SecurityRulesClientAPI = (*network.SecurityRulesClient)(nil)
@@ -286,6 +322,7 @@ var _ SecurityRulesClientAPI = (*network.SecurityRulesClient)(nil)
type DefaultSecurityRulesClientAPI interface {
Get(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, defaultSecurityRuleName string) (result network.SecurityRule, err error)
List(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityRuleListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityRuleListResultIterator, err error)
}
var _ DefaultSecurityRulesClientAPI = (*network.DefaultSecurityRulesClient)(nil)
@@ -341,6 +378,7 @@ var _ ConnectionMonitorsClientAPI = (*network.ConnectionMonitorsClient)(nil)
// OperationsClientAPI contains the set of methods on the OperationsClient type.
type OperationsClientAPI interface {
List(ctx context.Context) (result network.OperationListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.OperationListResultIterator, err error)
}
var _ OperationsClientAPI = (*network.OperationsClient)(nil)
@@ -352,9 +390,13 @@ type PublicIPAddressesClientAPI interface {
Get(ctx context.Context, resourceGroupName string, publicIPAddressName string, expand string) (result network.PublicIPAddress, err error)
GetVirtualMachineScaleSetPublicIPAddress(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, IPConfigurationName string, publicIPAddressName string, expand string) (result network.PublicIPAddress, err error)
List(ctx context.Context, resourceGroupName string) (result network.PublicIPAddressListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.PublicIPAddressListResultIterator, err error)
ListAll(ctx context.Context) (result network.PublicIPAddressListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.PublicIPAddressListResultIterator, err error)
ListVirtualMachineScaleSetPublicIPAddresses(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result network.PublicIPAddressListResultPage, err error)
+ ListVirtualMachineScaleSetPublicIPAddressesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result network.PublicIPAddressListResultIterator, err error)
ListVirtualMachineScaleSetVMPublicIPAddresses(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, IPConfigurationName string) (result network.PublicIPAddressListResultPage, err error)
+ ListVirtualMachineScaleSetVMPublicIPAddressesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, IPConfigurationName string) (result network.PublicIPAddressListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, publicIPAddressName string, parameters network.TagsObject) (result network.PublicIPAddressesUpdateTagsFuture, err error)
}
@@ -366,7 +408,9 @@ type RouteFiltersClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, routeFilterName string) (result network.RouteFiltersDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, routeFilterName string, expand string) (result network.RouteFilter, err error)
List(ctx context.Context) (result network.RouteFilterListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.RouteFilterListResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.RouteFilterListResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.RouteFilterListResultIterator, err error)
Update(ctx context.Context, resourceGroupName string, routeFilterName string, routeFilterParameters network.PatchRouteFilter) (result network.RouteFiltersUpdateFuture, err error)
}
@@ -378,6 +422,7 @@ type RouteFilterRulesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, routeFilterName string, ruleName string) (result network.RouteFilterRulesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, routeFilterName string, ruleName string) (result network.RouteFilterRule, err error)
ListByRouteFilter(ctx context.Context, resourceGroupName string, routeFilterName string) (result network.RouteFilterRuleListResultPage, err error)
+ ListByRouteFilterComplete(ctx context.Context, resourceGroupName string, routeFilterName string) (result network.RouteFilterRuleListResultIterator, err error)
Update(ctx context.Context, resourceGroupName string, routeFilterName string, ruleName string, routeFilterRuleParameters network.PatchRouteFilterRule) (result network.RouteFilterRulesUpdateFuture, err error)
}
@@ -389,7 +434,9 @@ type RouteTablesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, routeTableName string) (result network.RouteTablesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, routeTableName string, expand string) (result network.RouteTable, err error)
List(ctx context.Context, resourceGroupName string) (result network.RouteTableListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.RouteTableListResultIterator, err error)
ListAll(ctx context.Context) (result network.RouteTableListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.RouteTableListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, routeTableName string, parameters network.TagsObject) (result network.RouteTablesUpdateTagsFuture, err error)
}
@@ -401,6 +448,7 @@ type RoutesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, routeTableName string, routeName string) (result network.RoutesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, routeTableName string, routeName string) (result network.Route, err error)
List(ctx context.Context, resourceGroupName string, routeTableName string) (result network.RouteListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, routeTableName string) (result network.RouteListResultIterator, err error)
}
var _ RoutesClientAPI = (*network.RoutesClient)(nil)
@@ -408,6 +456,7 @@ var _ RoutesClientAPI = (*network.RoutesClient)(nil)
// BgpServiceCommunitiesClientAPI contains the set of methods on the BgpServiceCommunitiesClient type.
type BgpServiceCommunitiesClientAPI interface {
List(ctx context.Context) (result network.BgpServiceCommunityListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.BgpServiceCommunityListResultIterator, err error)
}
var _ BgpServiceCommunitiesClientAPI = (*network.BgpServiceCommunitiesClient)(nil)
@@ -415,6 +464,7 @@ var _ BgpServiceCommunitiesClientAPI = (*network.BgpServiceCommunitiesClient)(ni
// UsagesClientAPI contains the set of methods on the UsagesClient type.
type UsagesClientAPI interface {
List(ctx context.Context, location string) (result network.UsagesListResultPage, err error)
+ ListComplete(ctx context.Context, location string) (result network.UsagesListResultIterator, err error)
}
var _ UsagesClientAPI = (*network.UsagesClient)(nil)
@@ -426,8 +476,11 @@ type VirtualNetworksClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworksDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualNetworkName string, expand string) (result network.VirtualNetwork, err error)
List(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkListResultIterator, err error)
ListAll(ctx context.Context) (result network.VirtualNetworkListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.VirtualNetworkListResultIterator, err error)
ListUsage(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworkListUsageResultPage, err error)
+ ListUsageComplete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworkListUsageResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, virtualNetworkName string, parameters network.TagsObject) (result network.VirtualNetworksUpdateTagsFuture, err error)
}
@@ -439,6 +492,7 @@ type SubnetsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualNetworkName string, subnetName string) (result network.SubnetsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualNetworkName string, subnetName string, expand string) (result network.Subnet, err error)
List(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.SubnetListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.SubnetListResultIterator, err error)
}
var _ SubnetsClientAPI = (*network.SubnetsClient)(nil)
@@ -449,6 +503,7 @@ type VirtualNetworkPeeringsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualNetworkName string, virtualNetworkPeeringName string) (result network.VirtualNetworkPeeringsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualNetworkName string, virtualNetworkPeeringName string) (result network.VirtualNetworkPeering, err error)
List(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworkPeeringListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworkPeeringListResultIterator, err error)
}
var _ VirtualNetworkPeeringsClientAPI = (*network.VirtualNetworkPeeringsClient)(nil)
@@ -466,7 +521,9 @@ type VirtualNetworkGatewaysClientAPI interface {
GetVpnclientIpsecParameters(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGatewaysGetVpnclientIpsecParametersFuture, err error)
GetVpnProfilePackageURL(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGatewaysGetVpnProfilePackageURLFuture, err error)
List(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayListResultIterator, err error)
ListConnections(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGatewayListConnectionsResultPage, err error)
+ ListConnectionsComplete(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGatewayListConnectionsResultIterator, err error)
Reset(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, gatewayVip string) (result network.VirtualNetworkGatewaysResetFuture, err error)
SetVpnclientIpsecParameters(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, vpnclientIpsecParams network.VpnClientIPsecParameters) (result network.VirtualNetworkGatewaysSetVpnclientIpsecParametersFuture, err error)
SupportedVpnDevices(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.String, err error)
@@ -483,6 +540,7 @@ type VirtualNetworkGatewayConnectionsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string) (result network.VirtualNetworkGatewayConnection, err error)
GetSharedKey(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string) (result network.ConnectionSharedKey, err error)
List(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayConnectionListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayConnectionListResultIterator, err error)
ResetSharedKey(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string, parameters network.ConnectionResetSharedKey) (result network.VirtualNetworkGatewayConnectionsResetSharedKeyFuture, err error)
SetSharedKey(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string, parameters network.ConnectionSharedKey) (result network.VirtualNetworkGatewayConnectionsSetSharedKeyFuture, err error)
UpdateTags(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string, parameters network.TagsObject) (result network.VirtualNetworkGatewayConnectionsUpdateTagsFuture, err error)
@@ -496,6 +554,7 @@ type LocalNetworkGatewaysClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, localNetworkGatewayName string) (result network.LocalNetworkGatewaysDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, localNetworkGatewayName string) (result network.LocalNetworkGateway, err error)
List(ctx context.Context, resourceGroupName string) (result network.LocalNetworkGatewayListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.LocalNetworkGatewayListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, localNetworkGatewayName string, parameters network.TagsObject) (result network.LocalNetworkGatewaysUpdateTagsFuture, err error)
}
@@ -507,7 +566,9 @@ type VirtualWANsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualWANName string) (result network.VirtualWANsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualWANName string) (result network.VirtualWAN, err error)
List(ctx context.Context) (result network.ListVirtualWANsResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ListVirtualWANsResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ListVirtualWANsResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ListVirtualWANsResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, virtualWANName string, wANParameters network.TagsObject) (result network.VirtualWANsUpdateTagsFuture, err error)
}
@@ -519,7 +580,9 @@ type VpnSitesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, vpnSiteName string) (result network.VpnSitesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, vpnSiteName string) (result network.VpnSite, err error)
List(ctx context.Context) (result network.ListVpnSitesResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ListVpnSitesResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ListVpnSitesResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ListVpnSitesResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, vpnSiteName string, vpnSiteParameters network.TagsObject) (result network.VpnSitesUpdateTagsFuture, err error)
}
@@ -538,7 +601,9 @@ type VirtualHubsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualHubName string) (result network.VirtualHubsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualHubName string) (result network.VirtualHub, err error)
List(ctx context.Context) (result network.ListVirtualHubsResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ListVirtualHubsResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ListVirtualHubsResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ListVirtualHubsResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, virtualHubName string, virtualHubParameters network.TagsObject) (result network.VirtualHubsUpdateTagsFuture, err error)
}
@@ -548,6 +613,7 @@ var _ VirtualHubsClientAPI = (*network.VirtualHubsClient)(nil)
type HubVirtualNetworkConnectionsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, virtualHubName string, connectionName string) (result network.HubVirtualNetworkConnection, err error)
List(ctx context.Context, resourceGroupName string, virtualHubName string) (result network.ListHubVirtualNetworkConnectionsResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, virtualHubName string) (result network.ListHubVirtualNetworkConnectionsResultIterator, err error)
}
var _ HubVirtualNetworkConnectionsClientAPI = (*network.HubVirtualNetworkConnectionsClient)(nil)
@@ -558,7 +624,9 @@ type VpnGatewaysClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, gatewayName string) (result network.VpnGatewaysDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, gatewayName string) (result network.VpnGateway, err error)
List(ctx context.Context) (result network.ListVpnGatewaysResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ListVpnGatewaysResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ListVpnGatewaysResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ListVpnGatewaysResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, gatewayName string, vpnGatewayParameters network.TagsObject) (result network.VpnGatewaysUpdateTagsFuture, err error)
}
@@ -570,6 +638,7 @@ type VpnConnectionsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, gatewayName string, connectionName string) (result network.VpnConnectionsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, gatewayName string, connectionName string) (result network.VpnConnection, err error)
ListByVpnGateway(ctx context.Context, resourceGroupName string, gatewayName string) (result network.ListVpnConnectionsResultPage, err error)
+ ListByVpnGatewayComplete(ctx context.Context, resourceGroupName string, gatewayName string) (result network.ListVpnConnectionsResultIterator, err error)
}
var _ VpnConnectionsClientAPI = (*network.VpnConnectionsClient)(nil)
diff --git a/services/network/mgmt/2018-04-01/network/operations.go b/services/network/mgmt/2018-04-01/network/operations.go
index 1d3d35bb8d70..129eea876242 100644
--- a/services/network/mgmt/2018-04-01/network/operations.go
+++ b/services/network/mgmt/2018-04-01/network/operations.go
@@ -35,7 +35,8 @@ func NewOperationsClient(subscriptionID string) OperationsClient {
return NewOperationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewOperationsClientWithBaseURI creates an instance of the OperationsClient client.
+// NewOperationsClientWithBaseURI creates an instance of the OperationsClient client using a custom endpoint. Use this
+// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient {
return OperationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-04-01/network/packetcaptures.go b/services/network/mgmt/2018-04-01/network/packetcaptures.go
index 0ef3bf852bfc..db1545ceb179 100644
--- a/services/network/mgmt/2018-04-01/network/packetcaptures.go
+++ b/services/network/mgmt/2018-04-01/network/packetcaptures.go
@@ -36,7 +36,8 @@ func NewPacketCapturesClient(subscriptionID string) PacketCapturesClient {
return NewPacketCapturesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewPacketCapturesClientWithBaseURI creates an instance of the PacketCapturesClient client.
+// NewPacketCapturesClientWithBaseURI creates an instance of the PacketCapturesClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewPacketCapturesClientWithBaseURI(baseURI string, subscriptionID string) PacketCapturesClient {
return PacketCapturesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-04-01/network/publicipaddresses.go b/services/network/mgmt/2018-04-01/network/publicipaddresses.go
index bbf3a5df7712..3f6acdb96248 100644
--- a/services/network/mgmt/2018-04-01/network/publicipaddresses.go
+++ b/services/network/mgmt/2018-04-01/network/publicipaddresses.go
@@ -36,7 +36,9 @@ func NewPublicIPAddressesClient(subscriptionID string) PublicIPAddressesClient {
return NewPublicIPAddressesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewPublicIPAddressesClientWithBaseURI creates an instance of the PublicIPAddressesClient client.
+// NewPublicIPAddressesClientWithBaseURI creates an instance of the PublicIPAddressesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewPublicIPAddressesClientWithBaseURI(baseURI string, subscriptionID string) PublicIPAddressesClient {
return PublicIPAddressesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-04-01/network/routefilterrules.go b/services/network/mgmt/2018-04-01/network/routefilterrules.go
index 795d2e8eff22..e5e2703c3c71 100644
--- a/services/network/mgmt/2018-04-01/network/routefilterrules.go
+++ b/services/network/mgmt/2018-04-01/network/routefilterrules.go
@@ -36,7 +36,9 @@ func NewRouteFilterRulesClient(subscriptionID string) RouteFilterRulesClient {
return NewRouteFilterRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewRouteFilterRulesClientWithBaseURI creates an instance of the RouteFilterRulesClient client.
+// NewRouteFilterRulesClientWithBaseURI creates an instance of the RouteFilterRulesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewRouteFilterRulesClientWithBaseURI(baseURI string, subscriptionID string) RouteFilterRulesClient {
return RouteFilterRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-04-01/network/routefilters.go b/services/network/mgmt/2018-04-01/network/routefilters.go
index b71b5be14cf7..5264d9465132 100644
--- a/services/network/mgmt/2018-04-01/network/routefilters.go
+++ b/services/network/mgmt/2018-04-01/network/routefilters.go
@@ -35,7 +35,8 @@ func NewRouteFiltersClient(subscriptionID string) RouteFiltersClient {
return NewRouteFiltersClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewRouteFiltersClientWithBaseURI creates an instance of the RouteFiltersClient client.
+// NewRouteFiltersClientWithBaseURI creates an instance of the RouteFiltersClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewRouteFiltersClientWithBaseURI(baseURI string, subscriptionID string) RouteFiltersClient {
return RouteFiltersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-04-01/network/routes.go b/services/network/mgmt/2018-04-01/network/routes.go
index 603f82f628f1..9df26e695be2 100644
--- a/services/network/mgmt/2018-04-01/network/routes.go
+++ b/services/network/mgmt/2018-04-01/network/routes.go
@@ -35,7 +35,8 @@ func NewRoutesClient(subscriptionID string) RoutesClient {
return NewRoutesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewRoutesClientWithBaseURI creates an instance of the RoutesClient client.
+// NewRoutesClientWithBaseURI creates an instance of the RoutesClient client using a custom endpoint. Use this when
+// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewRoutesClientWithBaseURI(baseURI string, subscriptionID string) RoutesClient {
return RoutesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-04-01/network/routetables.go b/services/network/mgmt/2018-04-01/network/routetables.go
index f6f022f7aafb..de2752825d29 100644
--- a/services/network/mgmt/2018-04-01/network/routetables.go
+++ b/services/network/mgmt/2018-04-01/network/routetables.go
@@ -35,7 +35,8 @@ func NewRouteTablesClient(subscriptionID string) RouteTablesClient {
return NewRouteTablesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewRouteTablesClientWithBaseURI creates an instance of the RouteTablesClient client.
+// NewRouteTablesClientWithBaseURI creates an instance of the RouteTablesClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewRouteTablesClientWithBaseURI(baseURI string, subscriptionID string) RouteTablesClient {
return RouteTablesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-04-01/network/securitygroups.go b/services/network/mgmt/2018-04-01/network/securitygroups.go
index f5d1af707baf..9f6e4970cf6a 100644
--- a/services/network/mgmt/2018-04-01/network/securitygroups.go
+++ b/services/network/mgmt/2018-04-01/network/securitygroups.go
@@ -35,7 +35,8 @@ func NewSecurityGroupsClient(subscriptionID string) SecurityGroupsClient {
return NewSecurityGroupsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewSecurityGroupsClientWithBaseURI creates an instance of the SecurityGroupsClient client.
+// NewSecurityGroupsClientWithBaseURI creates an instance of the SecurityGroupsClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewSecurityGroupsClientWithBaseURI(baseURI string, subscriptionID string) SecurityGroupsClient {
return SecurityGroupsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-04-01/network/securityrules.go b/services/network/mgmt/2018-04-01/network/securityrules.go
index 13e6819406ef..f461289abe58 100644
--- a/services/network/mgmt/2018-04-01/network/securityrules.go
+++ b/services/network/mgmt/2018-04-01/network/securityrules.go
@@ -35,7 +35,8 @@ func NewSecurityRulesClient(subscriptionID string) SecurityRulesClient {
return NewSecurityRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewSecurityRulesClientWithBaseURI creates an instance of the SecurityRulesClient client.
+// NewSecurityRulesClientWithBaseURI creates an instance of the SecurityRulesClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewSecurityRulesClientWithBaseURI(baseURI string, subscriptionID string) SecurityRulesClient {
return SecurityRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-04-01/network/subnets.go b/services/network/mgmt/2018-04-01/network/subnets.go
index b7aa1731fa19..081da55fc5ef 100644
--- a/services/network/mgmt/2018-04-01/network/subnets.go
+++ b/services/network/mgmt/2018-04-01/network/subnets.go
@@ -35,7 +35,8 @@ func NewSubnetsClient(subscriptionID string) SubnetsClient {
return NewSubnetsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewSubnetsClientWithBaseURI creates an instance of the SubnetsClient client.
+// NewSubnetsClientWithBaseURI creates an instance of the SubnetsClient client using a custom endpoint. Use this when
+// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewSubnetsClientWithBaseURI(baseURI string, subscriptionID string) SubnetsClient {
return SubnetsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-04-01/network/usages.go b/services/network/mgmt/2018-04-01/network/usages.go
index cdf47f32f3f2..ca8f424cb804 100644
--- a/services/network/mgmt/2018-04-01/network/usages.go
+++ b/services/network/mgmt/2018-04-01/network/usages.go
@@ -36,7 +36,8 @@ func NewUsagesClient(subscriptionID string) UsagesClient {
return NewUsagesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewUsagesClientWithBaseURI creates an instance of the UsagesClient client.
+// NewUsagesClientWithBaseURI creates an instance of the UsagesClient client using a custom endpoint. Use this when
+// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewUsagesClientWithBaseURI(baseURI string, subscriptionID string) UsagesClient {
return UsagesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-04-01/network/virtualhubs.go b/services/network/mgmt/2018-04-01/network/virtualhubs.go
index e56ef0f5d20c..adf51a899c1d 100644
--- a/services/network/mgmt/2018-04-01/network/virtualhubs.go
+++ b/services/network/mgmt/2018-04-01/network/virtualhubs.go
@@ -35,7 +35,8 @@ func NewVirtualHubsClient(subscriptionID string) VirtualHubsClient {
return NewVirtualHubsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualHubsClientWithBaseURI creates an instance of the VirtualHubsClient client.
+// NewVirtualHubsClientWithBaseURI creates an instance of the VirtualHubsClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVirtualHubsClientWithBaseURI(baseURI string, subscriptionID string) VirtualHubsClient {
return VirtualHubsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-04-01/network/virtualnetworkgatewayconnections.go b/services/network/mgmt/2018-04-01/network/virtualnetworkgatewayconnections.go
index 8629c287d094..1f5e41fd2f5b 100644
--- a/services/network/mgmt/2018-04-01/network/virtualnetworkgatewayconnections.go
+++ b/services/network/mgmt/2018-04-01/network/virtualnetworkgatewayconnections.go
@@ -37,7 +37,8 @@ func NewVirtualNetworkGatewayConnectionsClient(subscriptionID string) VirtualNet
}
// NewVirtualNetworkGatewayConnectionsClientWithBaseURI creates an instance of the
-// VirtualNetworkGatewayConnectionsClient client.
+// VirtualNetworkGatewayConnectionsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVirtualNetworkGatewayConnectionsClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworkGatewayConnectionsClient {
return VirtualNetworkGatewayConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-04-01/network/virtualnetworkgateways.go b/services/network/mgmt/2018-04-01/network/virtualnetworkgateways.go
index cd67f1d9c67e..7ce03b7edcd5 100644
--- a/services/network/mgmt/2018-04-01/network/virtualnetworkgateways.go
+++ b/services/network/mgmt/2018-04-01/network/virtualnetworkgateways.go
@@ -36,7 +36,9 @@ func NewVirtualNetworkGatewaysClient(subscriptionID string) VirtualNetworkGatewa
return NewVirtualNetworkGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualNetworkGatewaysClientWithBaseURI creates an instance of the VirtualNetworkGatewaysClient client.
+// NewVirtualNetworkGatewaysClientWithBaseURI creates an instance of the VirtualNetworkGatewaysClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewVirtualNetworkGatewaysClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworkGatewaysClient {
return VirtualNetworkGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-04-01/network/virtualnetworkpeerings.go b/services/network/mgmt/2018-04-01/network/virtualnetworkpeerings.go
index 2cdf001a5f41..082aefa2c9b2 100644
--- a/services/network/mgmt/2018-04-01/network/virtualnetworkpeerings.go
+++ b/services/network/mgmt/2018-04-01/network/virtualnetworkpeerings.go
@@ -35,7 +35,9 @@ func NewVirtualNetworkPeeringsClient(subscriptionID string) VirtualNetworkPeerin
return NewVirtualNetworkPeeringsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualNetworkPeeringsClientWithBaseURI creates an instance of the VirtualNetworkPeeringsClient client.
+// NewVirtualNetworkPeeringsClientWithBaseURI creates an instance of the VirtualNetworkPeeringsClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewVirtualNetworkPeeringsClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworkPeeringsClient {
return VirtualNetworkPeeringsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-04-01/network/virtualnetworks.go b/services/network/mgmt/2018-04-01/network/virtualnetworks.go
index 01d4b79f80a6..c5ed9e7b177d 100644
--- a/services/network/mgmt/2018-04-01/network/virtualnetworks.go
+++ b/services/network/mgmt/2018-04-01/network/virtualnetworks.go
@@ -35,7 +35,8 @@ func NewVirtualNetworksClient(subscriptionID string) VirtualNetworksClient {
return NewVirtualNetworksClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualNetworksClientWithBaseURI creates an instance of the VirtualNetworksClient client.
+// NewVirtualNetworksClientWithBaseURI creates an instance of the VirtualNetworksClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVirtualNetworksClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworksClient {
return VirtualNetworksClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-04-01/network/virtualwans.go b/services/network/mgmt/2018-04-01/network/virtualwans.go
index 0748abdeca23..3aa492596dd1 100644
--- a/services/network/mgmt/2018-04-01/network/virtualwans.go
+++ b/services/network/mgmt/2018-04-01/network/virtualwans.go
@@ -35,7 +35,8 @@ func NewVirtualWANsClient(subscriptionID string) VirtualWANsClient {
return NewVirtualWANsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualWANsClientWithBaseURI creates an instance of the VirtualWANsClient client.
+// NewVirtualWANsClientWithBaseURI creates an instance of the VirtualWANsClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVirtualWANsClientWithBaseURI(baseURI string, subscriptionID string) VirtualWANsClient {
return VirtualWANsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-04-01/network/vpnconnections.go b/services/network/mgmt/2018-04-01/network/vpnconnections.go
index e5b2f44e4ab8..a0d302477a7f 100644
--- a/services/network/mgmt/2018-04-01/network/vpnconnections.go
+++ b/services/network/mgmt/2018-04-01/network/vpnconnections.go
@@ -35,7 +35,8 @@ func NewVpnConnectionsClient(subscriptionID string) VpnConnectionsClient {
return NewVpnConnectionsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVpnConnectionsClientWithBaseURI creates an instance of the VpnConnectionsClient client.
+// NewVpnConnectionsClientWithBaseURI creates an instance of the VpnConnectionsClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVpnConnectionsClientWithBaseURI(baseURI string, subscriptionID string) VpnConnectionsClient {
return VpnConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-04-01/network/vpngateways.go b/services/network/mgmt/2018-04-01/network/vpngateways.go
index 7b582e2573d1..2e861471ebfd 100644
--- a/services/network/mgmt/2018-04-01/network/vpngateways.go
+++ b/services/network/mgmt/2018-04-01/network/vpngateways.go
@@ -35,7 +35,8 @@ func NewVpnGatewaysClient(subscriptionID string) VpnGatewaysClient {
return NewVpnGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVpnGatewaysClientWithBaseURI creates an instance of the VpnGatewaysClient client.
+// NewVpnGatewaysClientWithBaseURI creates an instance of the VpnGatewaysClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVpnGatewaysClientWithBaseURI(baseURI string, subscriptionID string) VpnGatewaysClient {
return VpnGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-04-01/network/vpnsites.go b/services/network/mgmt/2018-04-01/network/vpnsites.go
index 7645fff4ec56..e6e32e17fcf5 100644
--- a/services/network/mgmt/2018-04-01/network/vpnsites.go
+++ b/services/network/mgmt/2018-04-01/network/vpnsites.go
@@ -35,7 +35,8 @@ func NewVpnSitesClient(subscriptionID string) VpnSitesClient {
return NewVpnSitesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVpnSitesClientWithBaseURI creates an instance of the VpnSitesClient client.
+// NewVpnSitesClientWithBaseURI creates an instance of the VpnSitesClient client using a custom endpoint. Use this
+// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVpnSitesClientWithBaseURI(baseURI string, subscriptionID string) VpnSitesClient {
return VpnSitesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-04-01/network/vpnsitesconfiguration.go b/services/network/mgmt/2018-04-01/network/vpnsitesconfiguration.go
index e5066e5c3bfb..69ac54bb7e5d 100644
--- a/services/network/mgmt/2018-04-01/network/vpnsitesconfiguration.go
+++ b/services/network/mgmt/2018-04-01/network/vpnsitesconfiguration.go
@@ -35,7 +35,9 @@ func NewVpnSitesConfigurationClient(subscriptionID string) VpnSitesConfiguration
return NewVpnSitesConfigurationClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVpnSitesConfigurationClientWithBaseURI creates an instance of the VpnSitesConfigurationClient client.
+// NewVpnSitesConfigurationClientWithBaseURI creates an instance of the VpnSitesConfigurationClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewVpnSitesConfigurationClientWithBaseURI(baseURI string, subscriptionID string) VpnSitesConfigurationClient {
return VpnSitesConfigurationClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-04-01/network/watchers.go b/services/network/mgmt/2018-04-01/network/watchers.go
index 15fb43d2e6da..b19ce95efd49 100644
--- a/services/network/mgmt/2018-04-01/network/watchers.go
+++ b/services/network/mgmt/2018-04-01/network/watchers.go
@@ -36,7 +36,8 @@ func NewWatchersClient(subscriptionID string) WatchersClient {
return NewWatchersClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewWatchersClientWithBaseURI creates an instance of the WatchersClient client.
+// NewWatchersClientWithBaseURI creates an instance of the WatchersClient client using a custom endpoint. Use this
+// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewWatchersClientWithBaseURI(baseURI string, subscriptionID string) WatchersClient {
return WatchersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-06-01/network/applicationgateways.go b/services/network/mgmt/2018-06-01/network/applicationgateways.go
index 1ffd5b0a88ac..9418993c6077 100644
--- a/services/network/mgmt/2018-06-01/network/applicationgateways.go
+++ b/services/network/mgmt/2018-06-01/network/applicationgateways.go
@@ -36,7 +36,9 @@ func NewApplicationGatewaysClient(subscriptionID string) ApplicationGatewaysClie
return NewApplicationGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewApplicationGatewaysClientWithBaseURI creates an instance of the ApplicationGatewaysClient client.
+// NewApplicationGatewaysClientWithBaseURI creates an instance of the ApplicationGatewaysClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewApplicationGatewaysClientWithBaseURI(baseURI string, subscriptionID string) ApplicationGatewaysClient {
return ApplicationGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-06-01/network/applicationsecuritygroups.go b/services/network/mgmt/2018-06-01/network/applicationsecuritygroups.go
index 969da50d43e0..df7f160c4077 100644
--- a/services/network/mgmt/2018-06-01/network/applicationsecuritygroups.go
+++ b/services/network/mgmt/2018-06-01/network/applicationsecuritygroups.go
@@ -35,7 +35,9 @@ func NewApplicationSecurityGroupsClient(subscriptionID string) ApplicationSecuri
return NewApplicationSecurityGroupsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewApplicationSecurityGroupsClientWithBaseURI creates an instance of the ApplicationSecurityGroupsClient client.
+// NewApplicationSecurityGroupsClientWithBaseURI creates an instance of the ApplicationSecurityGroupsClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewApplicationSecurityGroupsClientWithBaseURI(baseURI string, subscriptionID string) ApplicationSecurityGroupsClient {
return ApplicationSecurityGroupsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-06-01/network/availableendpointservices.go b/services/network/mgmt/2018-06-01/network/availableendpointservices.go
index be22e1ccf2a9..12d24400604b 100644
--- a/services/network/mgmt/2018-06-01/network/availableendpointservices.go
+++ b/services/network/mgmt/2018-06-01/network/availableendpointservices.go
@@ -35,7 +35,9 @@ func NewAvailableEndpointServicesClient(subscriptionID string) AvailableEndpoint
return NewAvailableEndpointServicesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewAvailableEndpointServicesClientWithBaseURI creates an instance of the AvailableEndpointServicesClient client.
+// NewAvailableEndpointServicesClientWithBaseURI creates an instance of the AvailableEndpointServicesClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewAvailableEndpointServicesClientWithBaseURI(baseURI string, subscriptionID string) AvailableEndpointServicesClient {
return AvailableEndpointServicesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-06-01/network/azurefirewalls.go b/services/network/mgmt/2018-06-01/network/azurefirewalls.go
index 37f0e4632d37..5c027964de6a 100644
--- a/services/network/mgmt/2018-06-01/network/azurefirewalls.go
+++ b/services/network/mgmt/2018-06-01/network/azurefirewalls.go
@@ -35,7 +35,8 @@ func NewAzureFirewallsClient(subscriptionID string) AzureFirewallsClient {
return NewAzureFirewallsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewAzureFirewallsClientWithBaseURI creates an instance of the AzureFirewallsClient client.
+// NewAzureFirewallsClientWithBaseURI creates an instance of the AzureFirewallsClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewAzureFirewallsClientWithBaseURI(baseURI string, subscriptionID string) AzureFirewallsClient {
return AzureFirewallsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-06-01/network/bgpservicecommunities.go b/services/network/mgmt/2018-06-01/network/bgpservicecommunities.go
index 41f9bb989559..19d877e52305 100644
--- a/services/network/mgmt/2018-06-01/network/bgpservicecommunities.go
+++ b/services/network/mgmt/2018-06-01/network/bgpservicecommunities.go
@@ -35,7 +35,9 @@ func NewBgpServiceCommunitiesClient(subscriptionID string) BgpServiceCommunities
return NewBgpServiceCommunitiesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewBgpServiceCommunitiesClientWithBaseURI creates an instance of the BgpServiceCommunitiesClient client.
+// NewBgpServiceCommunitiesClientWithBaseURI creates an instance of the BgpServiceCommunitiesClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewBgpServiceCommunitiesClientWithBaseURI(baseURI string, subscriptionID string) BgpServiceCommunitiesClient {
return BgpServiceCommunitiesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-06-01/network/client.go b/services/network/mgmt/2018-06-01/network/client.go
index dade5f2f1b09..8373539b0b25 100644
--- a/services/network/mgmt/2018-06-01/network/client.go
+++ b/services/network/mgmt/2018-06-01/network/client.go
@@ -45,7 +45,8 @@ func New(subscriptionID string) BaseClient {
return NewWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewWithBaseURI creates an instance of the BaseClient client.
+// NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with
+// an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient {
return BaseClient{
Client: autorest.NewClientWithUserAgent(UserAgent()),
diff --git a/services/network/mgmt/2018-06-01/network/connectionmonitors.go b/services/network/mgmt/2018-06-01/network/connectionmonitors.go
index f6e70502838d..7c3f2e765b08 100644
--- a/services/network/mgmt/2018-06-01/network/connectionmonitors.go
+++ b/services/network/mgmt/2018-06-01/network/connectionmonitors.go
@@ -36,7 +36,9 @@ func NewConnectionMonitorsClient(subscriptionID string) ConnectionMonitorsClient
return NewConnectionMonitorsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewConnectionMonitorsClientWithBaseURI creates an instance of the ConnectionMonitorsClient client.
+// NewConnectionMonitorsClientWithBaseURI creates an instance of the ConnectionMonitorsClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewConnectionMonitorsClientWithBaseURI(baseURI string, subscriptionID string) ConnectionMonitorsClient {
return ConnectionMonitorsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-06-01/network/ddosprotectionplans.go b/services/network/mgmt/2018-06-01/network/ddosprotectionplans.go
index f483396ba527..5bbd35ef7420 100644
--- a/services/network/mgmt/2018-06-01/network/ddosprotectionplans.go
+++ b/services/network/mgmt/2018-06-01/network/ddosprotectionplans.go
@@ -35,7 +35,9 @@ func NewDdosProtectionPlansClient(subscriptionID string) DdosProtectionPlansClie
return NewDdosProtectionPlansClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewDdosProtectionPlansClientWithBaseURI creates an instance of the DdosProtectionPlansClient client.
+// NewDdosProtectionPlansClientWithBaseURI creates an instance of the DdosProtectionPlansClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewDdosProtectionPlansClientWithBaseURI(baseURI string, subscriptionID string) DdosProtectionPlansClient {
return DdosProtectionPlansClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-06-01/network/defaultsecurityrules.go b/services/network/mgmt/2018-06-01/network/defaultsecurityrules.go
index 2f18c8dfe7e1..84ae74a95c6e 100644
--- a/services/network/mgmt/2018-06-01/network/defaultsecurityrules.go
+++ b/services/network/mgmt/2018-06-01/network/defaultsecurityrules.go
@@ -35,7 +35,9 @@ func NewDefaultSecurityRulesClient(subscriptionID string) DefaultSecurityRulesCl
return NewDefaultSecurityRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewDefaultSecurityRulesClientWithBaseURI creates an instance of the DefaultSecurityRulesClient client.
+// NewDefaultSecurityRulesClientWithBaseURI creates an instance of the DefaultSecurityRulesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewDefaultSecurityRulesClientWithBaseURI(baseURI string, subscriptionID string) DefaultSecurityRulesClient {
return DefaultSecurityRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-06-01/network/expressroutecircuitauthorizations.go b/services/network/mgmt/2018-06-01/network/expressroutecircuitauthorizations.go
index 58ae5ebbaf8e..de1812a78e35 100644
--- a/services/network/mgmt/2018-06-01/network/expressroutecircuitauthorizations.go
+++ b/services/network/mgmt/2018-06-01/network/expressroutecircuitauthorizations.go
@@ -37,7 +37,8 @@ func NewExpressRouteCircuitAuthorizationsClient(subscriptionID string) ExpressRo
}
// NewExpressRouteCircuitAuthorizationsClientWithBaseURI creates an instance of the
-// ExpressRouteCircuitAuthorizationsClient client.
+// ExpressRouteCircuitAuthorizationsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewExpressRouteCircuitAuthorizationsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCircuitAuthorizationsClient {
return ExpressRouteCircuitAuthorizationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-06-01/network/expressroutecircuitconnections.go b/services/network/mgmt/2018-06-01/network/expressroutecircuitconnections.go
index 5da7bbb580b1..2b3f30881bae 100644
--- a/services/network/mgmt/2018-06-01/network/expressroutecircuitconnections.go
+++ b/services/network/mgmt/2018-06-01/network/expressroutecircuitconnections.go
@@ -36,7 +36,8 @@ func NewExpressRouteCircuitConnectionsClient(subscriptionID string) ExpressRoute
}
// NewExpressRouteCircuitConnectionsClientWithBaseURI creates an instance of the ExpressRouteCircuitConnectionsClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewExpressRouteCircuitConnectionsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCircuitConnectionsClient {
return ExpressRouteCircuitConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-06-01/network/expressroutecircuitpeerings.go b/services/network/mgmt/2018-06-01/network/expressroutecircuitpeerings.go
index 80a76576fc0b..f4df1877f9f5 100644
--- a/services/network/mgmt/2018-06-01/network/expressroutecircuitpeerings.go
+++ b/services/network/mgmt/2018-06-01/network/expressroutecircuitpeerings.go
@@ -36,7 +36,9 @@ func NewExpressRouteCircuitPeeringsClient(subscriptionID string) ExpressRouteCir
return NewExpressRouteCircuitPeeringsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewExpressRouteCircuitPeeringsClientWithBaseURI creates an instance of the ExpressRouteCircuitPeeringsClient client.
+// NewExpressRouteCircuitPeeringsClientWithBaseURI creates an instance of the ExpressRouteCircuitPeeringsClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewExpressRouteCircuitPeeringsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCircuitPeeringsClient {
return ExpressRouteCircuitPeeringsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-06-01/network/expressroutecircuits.go b/services/network/mgmt/2018-06-01/network/expressroutecircuits.go
index 1b3d587a8fda..5097755aba5a 100644
--- a/services/network/mgmt/2018-06-01/network/expressroutecircuits.go
+++ b/services/network/mgmt/2018-06-01/network/expressroutecircuits.go
@@ -35,7 +35,9 @@ func NewExpressRouteCircuitsClient(subscriptionID string) ExpressRouteCircuitsCl
return NewExpressRouteCircuitsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewExpressRouteCircuitsClientWithBaseURI creates an instance of the ExpressRouteCircuitsClient client.
+// NewExpressRouteCircuitsClientWithBaseURI creates an instance of the ExpressRouteCircuitsClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewExpressRouteCircuitsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCircuitsClient {
return ExpressRouteCircuitsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-06-01/network/expressroutecrossconnectionpeerings.go b/services/network/mgmt/2018-06-01/network/expressroutecrossconnectionpeerings.go
index c4904b97dcb8..d98a5bf4415b 100644
--- a/services/network/mgmt/2018-06-01/network/expressroutecrossconnectionpeerings.go
+++ b/services/network/mgmt/2018-06-01/network/expressroutecrossconnectionpeerings.go
@@ -38,7 +38,8 @@ func NewExpressRouteCrossConnectionPeeringsClient(subscriptionID string) Express
}
// NewExpressRouteCrossConnectionPeeringsClientWithBaseURI creates an instance of the
-// ExpressRouteCrossConnectionPeeringsClient client.
+// ExpressRouteCrossConnectionPeeringsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewExpressRouteCrossConnectionPeeringsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCrossConnectionPeeringsClient {
return ExpressRouteCrossConnectionPeeringsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-06-01/network/expressroutecrossconnections.go b/services/network/mgmt/2018-06-01/network/expressroutecrossconnections.go
index b8897e727b09..4c231f289e16 100644
--- a/services/network/mgmt/2018-06-01/network/expressroutecrossconnections.go
+++ b/services/network/mgmt/2018-06-01/network/expressroutecrossconnections.go
@@ -36,7 +36,8 @@ func NewExpressRouteCrossConnectionsClient(subscriptionID string) ExpressRouteCr
}
// NewExpressRouteCrossConnectionsClientWithBaseURI creates an instance of the ExpressRouteCrossConnectionsClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewExpressRouteCrossConnectionsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCrossConnectionsClient {
return ExpressRouteCrossConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-06-01/network/expressrouteserviceproviders.go b/services/network/mgmt/2018-06-01/network/expressrouteserviceproviders.go
index 8a4ed14404d5..9ce24a8776b2 100644
--- a/services/network/mgmt/2018-06-01/network/expressrouteserviceproviders.go
+++ b/services/network/mgmt/2018-06-01/network/expressrouteserviceproviders.go
@@ -36,7 +36,8 @@ func NewExpressRouteServiceProvidersClient(subscriptionID string) ExpressRouteSe
}
// NewExpressRouteServiceProvidersClientWithBaseURI creates an instance of the ExpressRouteServiceProvidersClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewExpressRouteServiceProvidersClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteServiceProvidersClient {
return ExpressRouteServiceProvidersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-06-01/network/hubvirtualnetworkconnections.go b/services/network/mgmt/2018-06-01/network/hubvirtualnetworkconnections.go
index 2742f75d5fb3..2fd8e1f5a85a 100644
--- a/services/network/mgmt/2018-06-01/network/hubvirtualnetworkconnections.go
+++ b/services/network/mgmt/2018-06-01/network/hubvirtualnetworkconnections.go
@@ -36,7 +36,8 @@ func NewHubVirtualNetworkConnectionsClient(subscriptionID string) HubVirtualNetw
}
// NewHubVirtualNetworkConnectionsClientWithBaseURI creates an instance of the HubVirtualNetworkConnectionsClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewHubVirtualNetworkConnectionsClientWithBaseURI(baseURI string, subscriptionID string) HubVirtualNetworkConnectionsClient {
return HubVirtualNetworkConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-06-01/network/inboundnatrules.go b/services/network/mgmt/2018-06-01/network/inboundnatrules.go
index 87e69bfc5a9e..3527c068709d 100644
--- a/services/network/mgmt/2018-06-01/network/inboundnatrules.go
+++ b/services/network/mgmt/2018-06-01/network/inboundnatrules.go
@@ -36,7 +36,8 @@ func NewInboundNatRulesClient(subscriptionID string) InboundNatRulesClient {
return NewInboundNatRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewInboundNatRulesClientWithBaseURI creates an instance of the InboundNatRulesClient client.
+// NewInboundNatRulesClientWithBaseURI creates an instance of the InboundNatRulesClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewInboundNatRulesClientWithBaseURI(baseURI string, subscriptionID string) InboundNatRulesClient {
return InboundNatRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-06-01/network/interfaceipconfigurations.go b/services/network/mgmt/2018-06-01/network/interfaceipconfigurations.go
index 93e14cdc185a..951fe0a86e04 100644
--- a/services/network/mgmt/2018-06-01/network/interfaceipconfigurations.go
+++ b/services/network/mgmt/2018-06-01/network/interfaceipconfigurations.go
@@ -35,7 +35,9 @@ func NewInterfaceIPConfigurationsClient(subscriptionID string) InterfaceIPConfig
return NewInterfaceIPConfigurationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewInterfaceIPConfigurationsClientWithBaseURI creates an instance of the InterfaceIPConfigurationsClient client.
+// NewInterfaceIPConfigurationsClientWithBaseURI creates an instance of the InterfaceIPConfigurationsClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewInterfaceIPConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) InterfaceIPConfigurationsClient {
return InterfaceIPConfigurationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-06-01/network/interfaceloadbalancers.go b/services/network/mgmt/2018-06-01/network/interfaceloadbalancers.go
index cb8e50a99e41..8f85a664f97c 100644
--- a/services/network/mgmt/2018-06-01/network/interfaceloadbalancers.go
+++ b/services/network/mgmt/2018-06-01/network/interfaceloadbalancers.go
@@ -35,7 +35,9 @@ func NewInterfaceLoadBalancersClient(subscriptionID string) InterfaceLoadBalance
return NewInterfaceLoadBalancersClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewInterfaceLoadBalancersClientWithBaseURI creates an instance of the InterfaceLoadBalancersClient client.
+// NewInterfaceLoadBalancersClientWithBaseURI creates an instance of the InterfaceLoadBalancersClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewInterfaceLoadBalancersClientWithBaseURI(baseURI string, subscriptionID string) InterfaceLoadBalancersClient {
return InterfaceLoadBalancersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-06-01/network/interfacesgroup.go b/services/network/mgmt/2018-06-01/network/interfacesgroup.go
index 8be7066afbb0..6457b560abb7 100644
--- a/services/network/mgmt/2018-06-01/network/interfacesgroup.go
+++ b/services/network/mgmt/2018-06-01/network/interfacesgroup.go
@@ -35,7 +35,8 @@ func NewInterfacesClient(subscriptionID string) InterfacesClient {
return NewInterfacesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewInterfacesClientWithBaseURI creates an instance of the InterfacesClient client.
+// NewInterfacesClientWithBaseURI creates an instance of the InterfacesClient client using a custom endpoint. Use this
+// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewInterfacesClientWithBaseURI(baseURI string, subscriptionID string) InterfacesClient {
return InterfacesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-06-01/network/loadbalancerbackendaddresspools.go b/services/network/mgmt/2018-06-01/network/loadbalancerbackendaddresspools.go
index 04063277f40a..1ea98ee6cd16 100644
--- a/services/network/mgmt/2018-06-01/network/loadbalancerbackendaddresspools.go
+++ b/services/network/mgmt/2018-06-01/network/loadbalancerbackendaddresspools.go
@@ -36,7 +36,8 @@ func NewLoadBalancerBackendAddressPoolsClient(subscriptionID string) LoadBalance
}
// NewLoadBalancerBackendAddressPoolsClientWithBaseURI creates an instance of the LoadBalancerBackendAddressPoolsClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewLoadBalancerBackendAddressPoolsClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerBackendAddressPoolsClient {
return LoadBalancerBackendAddressPoolsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-06-01/network/loadbalancerfrontendipconfigurations.go b/services/network/mgmt/2018-06-01/network/loadbalancerfrontendipconfigurations.go
index c5566da92827..0dd53c753e1b 100644
--- a/services/network/mgmt/2018-06-01/network/loadbalancerfrontendipconfigurations.go
+++ b/services/network/mgmt/2018-06-01/network/loadbalancerfrontendipconfigurations.go
@@ -37,7 +37,8 @@ func NewLoadBalancerFrontendIPConfigurationsClient(subscriptionID string) LoadBa
}
// NewLoadBalancerFrontendIPConfigurationsClientWithBaseURI creates an instance of the
-// LoadBalancerFrontendIPConfigurationsClient client.
+// LoadBalancerFrontendIPConfigurationsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewLoadBalancerFrontendIPConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerFrontendIPConfigurationsClient {
return LoadBalancerFrontendIPConfigurationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-06-01/network/loadbalancerloadbalancingrules.go b/services/network/mgmt/2018-06-01/network/loadbalancerloadbalancingrules.go
index bf73649be47a..743eca9abde9 100644
--- a/services/network/mgmt/2018-06-01/network/loadbalancerloadbalancingrules.go
+++ b/services/network/mgmt/2018-06-01/network/loadbalancerloadbalancingrules.go
@@ -36,7 +36,8 @@ func NewLoadBalancerLoadBalancingRulesClient(subscriptionID string) LoadBalancer
}
// NewLoadBalancerLoadBalancingRulesClientWithBaseURI creates an instance of the LoadBalancerLoadBalancingRulesClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewLoadBalancerLoadBalancingRulesClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerLoadBalancingRulesClient {
return LoadBalancerLoadBalancingRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-06-01/network/loadbalancernetworkinterfaces.go b/services/network/mgmt/2018-06-01/network/loadbalancernetworkinterfaces.go
index 57c38241c34c..12df0c45bd23 100644
--- a/services/network/mgmt/2018-06-01/network/loadbalancernetworkinterfaces.go
+++ b/services/network/mgmt/2018-06-01/network/loadbalancernetworkinterfaces.go
@@ -36,7 +36,8 @@ func NewLoadBalancerNetworkInterfacesClient(subscriptionID string) LoadBalancerN
}
// NewLoadBalancerNetworkInterfacesClientWithBaseURI creates an instance of the LoadBalancerNetworkInterfacesClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewLoadBalancerNetworkInterfacesClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerNetworkInterfacesClient {
return LoadBalancerNetworkInterfacesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-06-01/network/loadbalancerprobes.go b/services/network/mgmt/2018-06-01/network/loadbalancerprobes.go
index 2c9326a797e8..c57838194e66 100644
--- a/services/network/mgmt/2018-06-01/network/loadbalancerprobes.go
+++ b/services/network/mgmt/2018-06-01/network/loadbalancerprobes.go
@@ -35,7 +35,9 @@ func NewLoadBalancerProbesClient(subscriptionID string) LoadBalancerProbesClient
return NewLoadBalancerProbesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewLoadBalancerProbesClientWithBaseURI creates an instance of the LoadBalancerProbesClient client.
+// NewLoadBalancerProbesClientWithBaseURI creates an instance of the LoadBalancerProbesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewLoadBalancerProbesClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerProbesClient {
return LoadBalancerProbesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-06-01/network/loadbalancers.go b/services/network/mgmt/2018-06-01/network/loadbalancers.go
index 3b2ec64870a1..a4a514781cf6 100644
--- a/services/network/mgmt/2018-06-01/network/loadbalancers.go
+++ b/services/network/mgmt/2018-06-01/network/loadbalancers.go
@@ -35,7 +35,8 @@ func NewLoadBalancersClient(subscriptionID string) LoadBalancersClient {
return NewLoadBalancersClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewLoadBalancersClientWithBaseURI creates an instance of the LoadBalancersClient client.
+// NewLoadBalancersClientWithBaseURI creates an instance of the LoadBalancersClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewLoadBalancersClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancersClient {
return LoadBalancersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-06-01/network/localnetworkgateways.go b/services/network/mgmt/2018-06-01/network/localnetworkgateways.go
index 913756099510..2e1469d1381c 100644
--- a/services/network/mgmt/2018-06-01/network/localnetworkgateways.go
+++ b/services/network/mgmt/2018-06-01/network/localnetworkgateways.go
@@ -36,7 +36,9 @@ func NewLocalNetworkGatewaysClient(subscriptionID string) LocalNetworkGatewaysCl
return NewLocalNetworkGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewLocalNetworkGatewaysClientWithBaseURI creates an instance of the LocalNetworkGatewaysClient client.
+// NewLocalNetworkGatewaysClientWithBaseURI creates an instance of the LocalNetworkGatewaysClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewLocalNetworkGatewaysClientWithBaseURI(baseURI string, subscriptionID string) LocalNetworkGatewaysClient {
return LocalNetworkGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-06-01/network/networkapi/interfaces.go b/services/network/mgmt/2018-06-01/network/networkapi/interfaces.go
index 4a7227048c1a..91aefa8967a3 100644
--- a/services/network/mgmt/2018-06-01/network/networkapi/interfaces.go
+++ b/services/network/mgmt/2018-06-01/network/networkapi/interfaces.go
@@ -35,7 +35,9 @@ type AzureFirewallsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, azureFirewallName string) (result network.AzureFirewallsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, azureFirewallName string) (result network.AzureFirewall, err error)
List(ctx context.Context, resourceGroupName string) (result network.AzureFirewallListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.AzureFirewallListResultIterator, err error)
ListAll(ctx context.Context) (result network.AzureFirewallListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.AzureFirewallListResultIterator, err error)
}
var _ AzureFirewallsClientAPI = (*network.AzureFirewallsClient)(nil)
@@ -48,9 +50,12 @@ type ApplicationGatewaysClientAPI interface {
Get(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result network.ApplicationGateway, err error)
GetSslPredefinedPolicy(ctx context.Context, predefinedPolicyName string) (result network.ApplicationGatewaySslPredefinedPolicy, err error)
List(ctx context.Context, resourceGroupName string) (result network.ApplicationGatewayListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.ApplicationGatewayListResultIterator, err error)
ListAll(ctx context.Context) (result network.ApplicationGatewayListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.ApplicationGatewayListResultIterator, err error)
ListAvailableSslOptions(ctx context.Context) (result network.ApplicationGatewayAvailableSslOptions, err error)
ListAvailableSslPredefinedPolicies(ctx context.Context) (result network.ApplicationGatewayAvailableSslPredefinedPoliciesPage, err error)
+ ListAvailableSslPredefinedPoliciesComplete(ctx context.Context) (result network.ApplicationGatewayAvailableSslPredefinedPoliciesIterator, err error)
ListAvailableWafRuleSets(ctx context.Context) (result network.ApplicationGatewayAvailableWafRuleSetsResult, err error)
Start(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result network.ApplicationGatewaysStartFuture, err error)
Stop(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result network.ApplicationGatewaysStopFuture, err error)
@@ -65,7 +70,9 @@ type ApplicationSecurityGroupsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, applicationSecurityGroupName string) (result network.ApplicationSecurityGroupsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, applicationSecurityGroupName string) (result network.ApplicationSecurityGroup, err error)
List(ctx context.Context, resourceGroupName string) (result network.ApplicationSecurityGroupListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.ApplicationSecurityGroupListResultIterator, err error)
ListAll(ctx context.Context) (result network.ApplicationSecurityGroupListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.ApplicationSecurityGroupListResultIterator, err error)
}
var _ ApplicationSecurityGroupsClientAPI = (*network.ApplicationSecurityGroupsClient)(nil)
@@ -76,7 +83,9 @@ type DdosProtectionPlansClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, ddosProtectionPlanName string) (result network.DdosProtectionPlansDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, ddosProtectionPlanName string) (result network.DdosProtectionPlan, err error)
List(ctx context.Context) (result network.DdosProtectionPlanListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.DdosProtectionPlanListResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.DdosProtectionPlanListResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.DdosProtectionPlanListResultIterator, err error)
}
var _ DdosProtectionPlansClientAPI = (*network.DdosProtectionPlansClient)(nil)
@@ -84,6 +93,7 @@ var _ DdosProtectionPlansClientAPI = (*network.DdosProtectionPlansClient)(nil)
// AvailableEndpointServicesClientAPI contains the set of methods on the AvailableEndpointServicesClient type.
type AvailableEndpointServicesClientAPI interface {
List(ctx context.Context, location string) (result network.EndpointServicesListResultPage, err error)
+ ListComplete(ctx context.Context, location string) (result network.EndpointServicesListResultIterator, err error)
}
var _ AvailableEndpointServicesClientAPI = (*network.AvailableEndpointServicesClient)(nil)
@@ -94,6 +104,7 @@ type ExpressRouteCircuitAuthorizationsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, circuitName string, authorizationName string) (result network.ExpressRouteCircuitAuthorizationsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, circuitName string, authorizationName string) (result network.ExpressRouteCircuitAuthorization, err error)
List(ctx context.Context, resourceGroupName string, circuitName string) (result network.AuthorizationListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, circuitName string) (result network.AuthorizationListResultIterator, err error)
}
var _ ExpressRouteCircuitAuthorizationsClientAPI = (*network.ExpressRouteCircuitAuthorizationsClient)(nil)
@@ -104,6 +115,7 @@ type ExpressRouteCircuitPeeringsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.ExpressRouteCircuitPeeringsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.ExpressRouteCircuitPeering, err error)
List(ctx context.Context, resourceGroupName string, circuitName string) (result network.ExpressRouteCircuitPeeringListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, circuitName string) (result network.ExpressRouteCircuitPeeringListResultIterator, err error)
}
var _ ExpressRouteCircuitPeeringsClientAPI = (*network.ExpressRouteCircuitPeeringsClient)(nil)
@@ -125,7 +137,9 @@ type ExpressRouteCircuitsClientAPI interface {
GetPeeringStats(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.ExpressRouteCircuitStats, err error)
GetStats(ctx context.Context, resourceGroupName string, circuitName string) (result network.ExpressRouteCircuitStats, err error)
List(ctx context.Context, resourceGroupName string) (result network.ExpressRouteCircuitListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.ExpressRouteCircuitListResultIterator, err error)
ListAll(ctx context.Context) (result network.ExpressRouteCircuitListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.ExpressRouteCircuitListResultIterator, err error)
ListArpTable(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, devicePath string) (result network.ExpressRouteCircuitsListArpTableFuture, err error)
ListRoutesTable(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, devicePath string) (result network.ExpressRouteCircuitsListRoutesTableFuture, err error)
ListRoutesTableSummary(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, devicePath string) (result network.ExpressRouteCircuitsListRoutesTableSummaryFuture, err error)
@@ -137,6 +151,7 @@ var _ ExpressRouteCircuitsClientAPI = (*network.ExpressRouteCircuitsClient)(nil)
// ExpressRouteServiceProvidersClientAPI contains the set of methods on the ExpressRouteServiceProvidersClient type.
type ExpressRouteServiceProvidersClientAPI interface {
List(ctx context.Context) (result network.ExpressRouteServiceProviderListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ExpressRouteServiceProviderListResultIterator, err error)
}
var _ ExpressRouteServiceProvidersClientAPI = (*network.ExpressRouteServiceProvidersClient)(nil)
@@ -146,8 +161,10 @@ type ExpressRouteCrossConnectionsClientAPI interface {
CreateOrUpdate(ctx context.Context, resourceGroupName string, crossConnectionName string, parameters network.ExpressRouteCrossConnection) (result network.ExpressRouteCrossConnectionsCreateOrUpdateFuture, err error)
Get(ctx context.Context, resourceGroupName string, crossConnectionName string) (result network.ExpressRouteCrossConnection, err error)
List(ctx context.Context) (result network.ExpressRouteCrossConnectionListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ExpressRouteCrossConnectionListResultIterator, err error)
ListArpTable(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string, devicePath string) (result network.ExpressRouteCrossConnectionsListArpTableFuture, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ExpressRouteCrossConnectionListResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ExpressRouteCrossConnectionListResultIterator, err error)
ListRoutesTable(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string, devicePath string) (result network.ExpressRouteCrossConnectionsListRoutesTableFuture, err error)
ListRoutesTableSummary(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string, devicePath string) (result network.ExpressRouteCrossConnectionsListRoutesTableSummaryFuture, err error)
UpdateTags(ctx context.Context, resourceGroupName string, crossConnectionName string, crossConnectionParameters network.TagsObject) (result network.ExpressRouteCrossConnectionsUpdateTagsFuture, err error)
@@ -161,6 +178,7 @@ type ExpressRouteCrossConnectionPeeringsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string) (result network.ExpressRouteCrossConnectionPeeringsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string) (result network.ExpressRouteCrossConnectionPeering, err error)
List(ctx context.Context, resourceGroupName string, crossConnectionName string) (result network.ExpressRouteCrossConnectionPeeringListPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, crossConnectionName string) (result network.ExpressRouteCrossConnectionPeeringListIterator, err error)
}
var _ ExpressRouteCrossConnectionPeeringsClientAPI = (*network.ExpressRouteCrossConnectionPeeringsClient)(nil)
@@ -171,7 +189,9 @@ type LoadBalancersClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancersDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, expand string) (result network.LoadBalancer, err error)
List(ctx context.Context, resourceGroupName string) (result network.LoadBalancerListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.LoadBalancerListResultIterator, err error)
ListAll(ctx context.Context) (result network.LoadBalancerListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.LoadBalancerListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, loadBalancerName string, parameters network.TagsObject) (result network.LoadBalancersUpdateTagsFuture, err error)
}
@@ -181,6 +201,7 @@ var _ LoadBalancersClientAPI = (*network.LoadBalancersClient)(nil)
type LoadBalancerBackendAddressPoolsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, backendAddressPoolName string) (result network.BackendAddressPool, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerBackendAddressPoolListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerBackendAddressPoolListResultIterator, err error)
}
var _ LoadBalancerBackendAddressPoolsClientAPI = (*network.LoadBalancerBackendAddressPoolsClient)(nil)
@@ -189,6 +210,7 @@ var _ LoadBalancerBackendAddressPoolsClientAPI = (*network.LoadBalancerBackendAd
type LoadBalancerFrontendIPConfigurationsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, frontendIPConfigurationName string) (result network.FrontendIPConfiguration, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerFrontendIPConfigurationListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerFrontendIPConfigurationListResultIterator, err error)
}
var _ LoadBalancerFrontendIPConfigurationsClientAPI = (*network.LoadBalancerFrontendIPConfigurationsClient)(nil)
@@ -199,6 +221,7 @@ type InboundNatRulesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, loadBalancerName string, inboundNatRuleName string) (result network.InboundNatRulesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, inboundNatRuleName string, expand string) (result network.InboundNatRule, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.InboundNatRuleListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.InboundNatRuleListResultIterator, err error)
}
var _ InboundNatRulesClientAPI = (*network.InboundNatRulesClient)(nil)
@@ -207,6 +230,7 @@ var _ InboundNatRulesClientAPI = (*network.InboundNatRulesClient)(nil)
type LoadBalancerLoadBalancingRulesClientAPI interface {
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, loadBalancingRuleName string) (result network.LoadBalancingRule, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerLoadBalancingRuleListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerLoadBalancingRuleListResultIterator, err error)
}
var _ LoadBalancerLoadBalancingRulesClientAPI = (*network.LoadBalancerLoadBalancingRulesClient)(nil)
@@ -214,6 +238,7 @@ var _ LoadBalancerLoadBalancingRulesClientAPI = (*network.LoadBalancerLoadBalanc
// LoadBalancerNetworkInterfacesClientAPI contains the set of methods on the LoadBalancerNetworkInterfacesClient type.
type LoadBalancerNetworkInterfacesClientAPI interface {
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.InterfaceListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.InterfaceListResultIterator, err error)
}
var _ LoadBalancerNetworkInterfacesClientAPI = (*network.LoadBalancerNetworkInterfacesClient)(nil)
@@ -222,6 +247,7 @@ var _ LoadBalancerNetworkInterfacesClientAPI = (*network.LoadBalancerNetworkInte
type LoadBalancerProbesClientAPI interface {
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, probeName string) (result network.Probe, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerProbeListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerProbeListResultIterator, err error)
}
var _ LoadBalancerProbesClientAPI = (*network.LoadBalancerProbesClient)(nil)
@@ -235,11 +261,16 @@ type InterfacesClientAPI interface {
GetVirtualMachineScaleSetIPConfiguration(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, IPConfigurationName string, expand string) (result network.InterfaceIPConfiguration, err error)
GetVirtualMachineScaleSetNetworkInterface(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, expand string) (result network.Interface, err error)
List(ctx context.Context, resourceGroupName string) (result network.InterfaceListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.InterfaceListResultIterator, err error)
ListAll(ctx context.Context) (result network.InterfaceListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.InterfaceListResultIterator, err error)
ListEffectiveNetworkSecurityGroups(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfacesListEffectiveNetworkSecurityGroupsFuture, err error)
ListVirtualMachineScaleSetIPConfigurations(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, expand string) (result network.InterfaceIPConfigurationListResultPage, err error)
+ ListVirtualMachineScaleSetIPConfigurationsComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, expand string) (result network.InterfaceIPConfigurationListResultIterator, err error)
ListVirtualMachineScaleSetNetworkInterfaces(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result network.InterfaceListResultPage, err error)
+ ListVirtualMachineScaleSetNetworkInterfacesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result network.InterfaceListResultIterator, err error)
ListVirtualMachineScaleSetVMNetworkInterfaces(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string) (result network.InterfaceListResultPage, err error)
+ ListVirtualMachineScaleSetVMNetworkInterfacesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string) (result network.InterfaceListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, networkInterfaceName string, parameters network.TagsObject) (result network.InterfacesUpdateTagsFuture, err error)
}
@@ -249,6 +280,7 @@ var _ InterfacesClientAPI = (*network.InterfacesClient)(nil)
type InterfaceIPConfigurationsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, networkInterfaceName string, IPConfigurationName string) (result network.InterfaceIPConfiguration, err error)
List(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceIPConfigurationListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceIPConfigurationListResultIterator, err error)
}
var _ InterfaceIPConfigurationsClientAPI = (*network.InterfaceIPConfigurationsClient)(nil)
@@ -256,6 +288,7 @@ var _ InterfaceIPConfigurationsClientAPI = (*network.InterfaceIPConfigurationsCl
// InterfaceLoadBalancersClientAPI contains the set of methods on the InterfaceLoadBalancersClient type.
type InterfaceLoadBalancersClientAPI interface {
List(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceLoadBalancerListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceLoadBalancerListResultIterator, err error)
}
var _ InterfaceLoadBalancersClientAPI = (*network.InterfaceLoadBalancersClient)(nil)
@@ -266,7 +299,9 @@ type SecurityGroupsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityGroupsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, expand string) (result network.SecurityGroup, err error)
List(ctx context.Context, resourceGroupName string) (result network.SecurityGroupListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.SecurityGroupListResultIterator, err error)
ListAll(ctx context.Context) (result network.SecurityGroupListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.SecurityGroupListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, parameters network.TagsObject) (result network.SecurityGroupsUpdateTagsFuture, err error)
}
@@ -278,6 +313,7 @@ type SecurityRulesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, securityRuleName string) (result network.SecurityRulesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, securityRuleName string) (result network.SecurityRule, err error)
List(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityRuleListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityRuleListResultIterator, err error)
}
var _ SecurityRulesClientAPI = (*network.SecurityRulesClient)(nil)
@@ -286,6 +322,7 @@ var _ SecurityRulesClientAPI = (*network.SecurityRulesClient)(nil)
type DefaultSecurityRulesClientAPI interface {
Get(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, defaultSecurityRuleName string) (result network.SecurityRule, err error)
List(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityRuleListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityRuleListResultIterator, err error)
}
var _ DefaultSecurityRulesClientAPI = (*network.DefaultSecurityRulesClient)(nil)
@@ -342,6 +379,7 @@ var _ ConnectionMonitorsClientAPI = (*network.ConnectionMonitorsClient)(nil)
// OperationsClientAPI contains the set of methods on the OperationsClient type.
type OperationsClientAPI interface {
List(ctx context.Context) (result network.OperationListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.OperationListResultIterator, err error)
}
var _ OperationsClientAPI = (*network.OperationsClient)(nil)
@@ -353,9 +391,13 @@ type PublicIPAddressesClientAPI interface {
Get(ctx context.Context, resourceGroupName string, publicIPAddressName string, expand string) (result network.PublicIPAddress, err error)
GetVirtualMachineScaleSetPublicIPAddress(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, IPConfigurationName string, publicIPAddressName string, expand string) (result network.PublicIPAddress, err error)
List(ctx context.Context, resourceGroupName string) (result network.PublicIPAddressListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.PublicIPAddressListResultIterator, err error)
ListAll(ctx context.Context) (result network.PublicIPAddressListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.PublicIPAddressListResultIterator, err error)
ListVirtualMachineScaleSetPublicIPAddresses(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result network.PublicIPAddressListResultPage, err error)
+ ListVirtualMachineScaleSetPublicIPAddressesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result network.PublicIPAddressListResultIterator, err error)
ListVirtualMachineScaleSetVMPublicIPAddresses(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, IPConfigurationName string) (result network.PublicIPAddressListResultPage, err error)
+ ListVirtualMachineScaleSetVMPublicIPAddressesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, IPConfigurationName string) (result network.PublicIPAddressListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, publicIPAddressName string, parameters network.TagsObject) (result network.PublicIPAddressesUpdateTagsFuture, err error)
}
@@ -367,7 +409,9 @@ type RouteFiltersClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, routeFilterName string) (result network.RouteFiltersDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, routeFilterName string, expand string) (result network.RouteFilter, err error)
List(ctx context.Context) (result network.RouteFilterListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.RouteFilterListResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.RouteFilterListResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.RouteFilterListResultIterator, err error)
Update(ctx context.Context, resourceGroupName string, routeFilterName string, routeFilterParameters network.PatchRouteFilter) (result network.RouteFiltersUpdateFuture, err error)
}
@@ -379,6 +423,7 @@ type RouteFilterRulesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, routeFilterName string, ruleName string) (result network.RouteFilterRulesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, routeFilterName string, ruleName string) (result network.RouteFilterRule, err error)
ListByRouteFilter(ctx context.Context, resourceGroupName string, routeFilterName string) (result network.RouteFilterRuleListResultPage, err error)
+ ListByRouteFilterComplete(ctx context.Context, resourceGroupName string, routeFilterName string) (result network.RouteFilterRuleListResultIterator, err error)
Update(ctx context.Context, resourceGroupName string, routeFilterName string, ruleName string, routeFilterRuleParameters network.PatchRouteFilterRule) (result network.RouteFilterRulesUpdateFuture, err error)
}
@@ -390,7 +435,9 @@ type RouteTablesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, routeTableName string) (result network.RouteTablesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, routeTableName string, expand string) (result network.RouteTable, err error)
List(ctx context.Context, resourceGroupName string) (result network.RouteTableListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.RouteTableListResultIterator, err error)
ListAll(ctx context.Context) (result network.RouteTableListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.RouteTableListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, routeTableName string, parameters network.TagsObject) (result network.RouteTablesUpdateTagsFuture, err error)
}
@@ -402,6 +449,7 @@ type RoutesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, routeTableName string, routeName string) (result network.RoutesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, routeTableName string, routeName string) (result network.Route, err error)
List(ctx context.Context, resourceGroupName string, routeTableName string) (result network.RouteListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, routeTableName string) (result network.RouteListResultIterator, err error)
}
var _ RoutesClientAPI = (*network.RoutesClient)(nil)
@@ -409,6 +457,7 @@ var _ RoutesClientAPI = (*network.RoutesClient)(nil)
// BgpServiceCommunitiesClientAPI contains the set of methods on the BgpServiceCommunitiesClient type.
type BgpServiceCommunitiesClientAPI interface {
List(ctx context.Context) (result network.BgpServiceCommunityListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.BgpServiceCommunityListResultIterator, err error)
}
var _ BgpServiceCommunitiesClientAPI = (*network.BgpServiceCommunitiesClient)(nil)
@@ -416,6 +465,7 @@ var _ BgpServiceCommunitiesClientAPI = (*network.BgpServiceCommunitiesClient)(ni
// UsagesClientAPI contains the set of methods on the UsagesClient type.
type UsagesClientAPI interface {
List(ctx context.Context, location string) (result network.UsagesListResultPage, err error)
+ ListComplete(ctx context.Context, location string) (result network.UsagesListResultIterator, err error)
}
var _ UsagesClientAPI = (*network.UsagesClient)(nil)
@@ -427,8 +477,11 @@ type VirtualNetworksClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworksDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualNetworkName string, expand string) (result network.VirtualNetwork, err error)
List(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkListResultIterator, err error)
ListAll(ctx context.Context) (result network.VirtualNetworkListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.VirtualNetworkListResultIterator, err error)
ListUsage(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworkListUsageResultPage, err error)
+ ListUsageComplete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworkListUsageResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, virtualNetworkName string, parameters network.TagsObject) (result network.VirtualNetworksUpdateTagsFuture, err error)
}
@@ -440,6 +493,7 @@ type SubnetsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualNetworkName string, subnetName string) (result network.SubnetsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualNetworkName string, subnetName string, expand string) (result network.Subnet, err error)
List(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.SubnetListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.SubnetListResultIterator, err error)
}
var _ SubnetsClientAPI = (*network.SubnetsClient)(nil)
@@ -450,6 +504,7 @@ type VirtualNetworkPeeringsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualNetworkName string, virtualNetworkPeeringName string) (result network.VirtualNetworkPeeringsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualNetworkName string, virtualNetworkPeeringName string) (result network.VirtualNetworkPeering, err error)
List(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworkPeeringListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworkPeeringListResultIterator, err error)
}
var _ VirtualNetworkPeeringsClientAPI = (*network.VirtualNetworkPeeringsClient)(nil)
@@ -467,7 +522,9 @@ type VirtualNetworkGatewaysClientAPI interface {
GetVpnclientIpsecParameters(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGatewaysGetVpnclientIpsecParametersFuture, err error)
GetVpnProfilePackageURL(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGatewaysGetVpnProfilePackageURLFuture, err error)
List(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayListResultIterator, err error)
ListConnections(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGatewayListConnectionsResultPage, err error)
+ ListConnectionsComplete(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGatewayListConnectionsResultIterator, err error)
Reset(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, gatewayVip string) (result network.VirtualNetworkGatewaysResetFuture, err error)
ResetVpnClientSharedKey(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGatewaysResetVpnClientSharedKeyFuture, err error)
SetVpnclientIpsecParameters(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, vpnclientIpsecParams network.VpnClientIPsecParameters) (result network.VirtualNetworkGatewaysSetVpnclientIpsecParametersFuture, err error)
@@ -485,6 +542,7 @@ type VirtualNetworkGatewayConnectionsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string) (result network.VirtualNetworkGatewayConnection, err error)
GetSharedKey(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string) (result network.ConnectionSharedKey, err error)
List(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayConnectionListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayConnectionListResultIterator, err error)
ResetSharedKey(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string, parameters network.ConnectionResetSharedKey) (result network.VirtualNetworkGatewayConnectionsResetSharedKeyFuture, err error)
SetSharedKey(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string, parameters network.ConnectionSharedKey) (result network.VirtualNetworkGatewayConnectionsSetSharedKeyFuture, err error)
UpdateTags(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string, parameters network.TagsObject) (result network.VirtualNetworkGatewayConnectionsUpdateTagsFuture, err error)
@@ -498,6 +556,7 @@ type LocalNetworkGatewaysClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, localNetworkGatewayName string) (result network.LocalNetworkGatewaysDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, localNetworkGatewayName string) (result network.LocalNetworkGateway, err error)
List(ctx context.Context, resourceGroupName string) (result network.LocalNetworkGatewayListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.LocalNetworkGatewayListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, localNetworkGatewayName string, parameters network.TagsObject) (result network.LocalNetworkGatewaysUpdateTagsFuture, err error)
}
@@ -509,7 +568,9 @@ type VirtualWANsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualWANName string) (result network.VirtualWANsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualWANName string) (result network.VirtualWAN, err error)
List(ctx context.Context) (result network.ListVirtualWANsResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ListVirtualWANsResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ListVirtualWANsResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ListVirtualWANsResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, virtualWANName string, wANParameters network.TagsObject) (result network.VirtualWANsUpdateTagsFuture, err error)
}
@@ -521,7 +582,9 @@ type VpnSitesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, vpnSiteName string) (result network.VpnSitesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, vpnSiteName string) (result network.VpnSite, err error)
List(ctx context.Context) (result network.ListVpnSitesResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ListVpnSitesResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ListVpnSitesResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ListVpnSitesResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, vpnSiteName string, vpnSiteParameters network.TagsObject) (result network.VpnSitesUpdateTagsFuture, err error)
}
@@ -540,7 +603,9 @@ type VirtualHubsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualHubName string) (result network.VirtualHubsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualHubName string) (result network.VirtualHub, err error)
List(ctx context.Context) (result network.ListVirtualHubsResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ListVirtualHubsResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ListVirtualHubsResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ListVirtualHubsResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, virtualHubName string, virtualHubParameters network.TagsObject) (result network.VirtualHubsUpdateTagsFuture, err error)
}
@@ -550,6 +615,7 @@ var _ VirtualHubsClientAPI = (*network.VirtualHubsClient)(nil)
type HubVirtualNetworkConnectionsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, virtualHubName string, connectionName string) (result network.HubVirtualNetworkConnection, err error)
List(ctx context.Context, resourceGroupName string, virtualHubName string) (result network.ListHubVirtualNetworkConnectionsResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, virtualHubName string) (result network.ListHubVirtualNetworkConnectionsResultIterator, err error)
}
var _ HubVirtualNetworkConnectionsClientAPI = (*network.HubVirtualNetworkConnectionsClient)(nil)
@@ -560,7 +626,9 @@ type VpnGatewaysClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, gatewayName string) (result network.VpnGatewaysDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, gatewayName string) (result network.VpnGateway, err error)
List(ctx context.Context) (result network.ListVpnGatewaysResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ListVpnGatewaysResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ListVpnGatewaysResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ListVpnGatewaysResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, gatewayName string, vpnGatewayParameters network.TagsObject) (result network.VpnGatewaysUpdateTagsFuture, err error)
}
@@ -572,6 +640,7 @@ type VpnConnectionsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, gatewayName string, connectionName string) (result network.VpnConnectionsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, gatewayName string, connectionName string) (result network.VpnConnection, err error)
ListByVpnGateway(ctx context.Context, resourceGroupName string, gatewayName string) (result network.ListVpnConnectionsResultPage, err error)
+ ListByVpnGatewayComplete(ctx context.Context, resourceGroupName string, gatewayName string) (result network.ListVpnConnectionsResultIterator, err error)
}
var _ VpnConnectionsClientAPI = (*network.VpnConnectionsClient)(nil)
diff --git a/services/network/mgmt/2018-06-01/network/operations.go b/services/network/mgmt/2018-06-01/network/operations.go
index 7aaf5aa5c8b5..e69d16265791 100644
--- a/services/network/mgmt/2018-06-01/network/operations.go
+++ b/services/network/mgmt/2018-06-01/network/operations.go
@@ -35,7 +35,8 @@ func NewOperationsClient(subscriptionID string) OperationsClient {
return NewOperationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewOperationsClientWithBaseURI creates an instance of the OperationsClient client.
+// NewOperationsClientWithBaseURI creates an instance of the OperationsClient client using a custom endpoint. Use this
+// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient {
return OperationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-06-01/network/packetcaptures.go b/services/network/mgmt/2018-06-01/network/packetcaptures.go
index 13b406ea72c2..16f3afbec732 100644
--- a/services/network/mgmt/2018-06-01/network/packetcaptures.go
+++ b/services/network/mgmt/2018-06-01/network/packetcaptures.go
@@ -36,7 +36,8 @@ func NewPacketCapturesClient(subscriptionID string) PacketCapturesClient {
return NewPacketCapturesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewPacketCapturesClientWithBaseURI creates an instance of the PacketCapturesClient client.
+// NewPacketCapturesClientWithBaseURI creates an instance of the PacketCapturesClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewPacketCapturesClientWithBaseURI(baseURI string, subscriptionID string) PacketCapturesClient {
return PacketCapturesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-06-01/network/publicipaddresses.go b/services/network/mgmt/2018-06-01/network/publicipaddresses.go
index ca201e6199b9..e562be377876 100644
--- a/services/network/mgmt/2018-06-01/network/publicipaddresses.go
+++ b/services/network/mgmt/2018-06-01/network/publicipaddresses.go
@@ -36,7 +36,9 @@ func NewPublicIPAddressesClient(subscriptionID string) PublicIPAddressesClient {
return NewPublicIPAddressesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewPublicIPAddressesClientWithBaseURI creates an instance of the PublicIPAddressesClient client.
+// NewPublicIPAddressesClientWithBaseURI creates an instance of the PublicIPAddressesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewPublicIPAddressesClientWithBaseURI(baseURI string, subscriptionID string) PublicIPAddressesClient {
return PublicIPAddressesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-06-01/network/routefilterrules.go b/services/network/mgmt/2018-06-01/network/routefilterrules.go
index ac074fdc692d..af44176859f5 100644
--- a/services/network/mgmt/2018-06-01/network/routefilterrules.go
+++ b/services/network/mgmt/2018-06-01/network/routefilterrules.go
@@ -36,7 +36,9 @@ func NewRouteFilterRulesClient(subscriptionID string) RouteFilterRulesClient {
return NewRouteFilterRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewRouteFilterRulesClientWithBaseURI creates an instance of the RouteFilterRulesClient client.
+// NewRouteFilterRulesClientWithBaseURI creates an instance of the RouteFilterRulesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewRouteFilterRulesClientWithBaseURI(baseURI string, subscriptionID string) RouteFilterRulesClient {
return RouteFilterRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-06-01/network/routefilters.go b/services/network/mgmt/2018-06-01/network/routefilters.go
index bf5b16d5f8a4..6c4d7ff7d90d 100644
--- a/services/network/mgmt/2018-06-01/network/routefilters.go
+++ b/services/network/mgmt/2018-06-01/network/routefilters.go
@@ -35,7 +35,8 @@ func NewRouteFiltersClient(subscriptionID string) RouteFiltersClient {
return NewRouteFiltersClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewRouteFiltersClientWithBaseURI creates an instance of the RouteFiltersClient client.
+// NewRouteFiltersClientWithBaseURI creates an instance of the RouteFiltersClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewRouteFiltersClientWithBaseURI(baseURI string, subscriptionID string) RouteFiltersClient {
return RouteFiltersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-06-01/network/routes.go b/services/network/mgmt/2018-06-01/network/routes.go
index 7ce094134024..a11723d266ae 100644
--- a/services/network/mgmt/2018-06-01/network/routes.go
+++ b/services/network/mgmt/2018-06-01/network/routes.go
@@ -35,7 +35,8 @@ func NewRoutesClient(subscriptionID string) RoutesClient {
return NewRoutesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewRoutesClientWithBaseURI creates an instance of the RoutesClient client.
+// NewRoutesClientWithBaseURI creates an instance of the RoutesClient client using a custom endpoint. Use this when
+// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewRoutesClientWithBaseURI(baseURI string, subscriptionID string) RoutesClient {
return RoutesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-06-01/network/routetables.go b/services/network/mgmt/2018-06-01/network/routetables.go
index 02b7c6af1936..9a2129e95bf8 100644
--- a/services/network/mgmt/2018-06-01/network/routetables.go
+++ b/services/network/mgmt/2018-06-01/network/routetables.go
@@ -35,7 +35,8 @@ func NewRouteTablesClient(subscriptionID string) RouteTablesClient {
return NewRouteTablesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewRouteTablesClientWithBaseURI creates an instance of the RouteTablesClient client.
+// NewRouteTablesClientWithBaseURI creates an instance of the RouteTablesClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewRouteTablesClientWithBaseURI(baseURI string, subscriptionID string) RouteTablesClient {
return RouteTablesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-06-01/network/securitygroups.go b/services/network/mgmt/2018-06-01/network/securitygroups.go
index bb4176eead10..44c5c1a705fb 100644
--- a/services/network/mgmt/2018-06-01/network/securitygroups.go
+++ b/services/network/mgmt/2018-06-01/network/securitygroups.go
@@ -35,7 +35,8 @@ func NewSecurityGroupsClient(subscriptionID string) SecurityGroupsClient {
return NewSecurityGroupsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewSecurityGroupsClientWithBaseURI creates an instance of the SecurityGroupsClient client.
+// NewSecurityGroupsClientWithBaseURI creates an instance of the SecurityGroupsClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewSecurityGroupsClientWithBaseURI(baseURI string, subscriptionID string) SecurityGroupsClient {
return SecurityGroupsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-06-01/network/securityrules.go b/services/network/mgmt/2018-06-01/network/securityrules.go
index 380a4936ba85..81276c8d4043 100644
--- a/services/network/mgmt/2018-06-01/network/securityrules.go
+++ b/services/network/mgmt/2018-06-01/network/securityrules.go
@@ -35,7 +35,8 @@ func NewSecurityRulesClient(subscriptionID string) SecurityRulesClient {
return NewSecurityRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewSecurityRulesClientWithBaseURI creates an instance of the SecurityRulesClient client.
+// NewSecurityRulesClientWithBaseURI creates an instance of the SecurityRulesClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewSecurityRulesClientWithBaseURI(baseURI string, subscriptionID string) SecurityRulesClient {
return SecurityRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-06-01/network/subnets.go b/services/network/mgmt/2018-06-01/network/subnets.go
index 8de3f082dd66..e71af76c69c3 100644
--- a/services/network/mgmt/2018-06-01/network/subnets.go
+++ b/services/network/mgmt/2018-06-01/network/subnets.go
@@ -35,7 +35,8 @@ func NewSubnetsClient(subscriptionID string) SubnetsClient {
return NewSubnetsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewSubnetsClientWithBaseURI creates an instance of the SubnetsClient client.
+// NewSubnetsClientWithBaseURI creates an instance of the SubnetsClient client using a custom endpoint. Use this when
+// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewSubnetsClientWithBaseURI(baseURI string, subscriptionID string) SubnetsClient {
return SubnetsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-06-01/network/usages.go b/services/network/mgmt/2018-06-01/network/usages.go
index 72d75d987920..fdd4d39e2e3e 100644
--- a/services/network/mgmt/2018-06-01/network/usages.go
+++ b/services/network/mgmt/2018-06-01/network/usages.go
@@ -36,7 +36,8 @@ func NewUsagesClient(subscriptionID string) UsagesClient {
return NewUsagesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewUsagesClientWithBaseURI creates an instance of the UsagesClient client.
+// NewUsagesClientWithBaseURI creates an instance of the UsagesClient client using a custom endpoint. Use this when
+// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewUsagesClientWithBaseURI(baseURI string, subscriptionID string) UsagesClient {
return UsagesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-06-01/network/virtualhubs.go b/services/network/mgmt/2018-06-01/network/virtualhubs.go
index 846929d6978d..398eca272a2e 100644
--- a/services/network/mgmt/2018-06-01/network/virtualhubs.go
+++ b/services/network/mgmt/2018-06-01/network/virtualhubs.go
@@ -35,7 +35,8 @@ func NewVirtualHubsClient(subscriptionID string) VirtualHubsClient {
return NewVirtualHubsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualHubsClientWithBaseURI creates an instance of the VirtualHubsClient client.
+// NewVirtualHubsClientWithBaseURI creates an instance of the VirtualHubsClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVirtualHubsClientWithBaseURI(baseURI string, subscriptionID string) VirtualHubsClient {
return VirtualHubsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-06-01/network/virtualnetworkgatewayconnections.go b/services/network/mgmt/2018-06-01/network/virtualnetworkgatewayconnections.go
index 2b97e5367e5f..f65a49de3512 100644
--- a/services/network/mgmt/2018-06-01/network/virtualnetworkgatewayconnections.go
+++ b/services/network/mgmt/2018-06-01/network/virtualnetworkgatewayconnections.go
@@ -37,7 +37,8 @@ func NewVirtualNetworkGatewayConnectionsClient(subscriptionID string) VirtualNet
}
// NewVirtualNetworkGatewayConnectionsClientWithBaseURI creates an instance of the
-// VirtualNetworkGatewayConnectionsClient client.
+// VirtualNetworkGatewayConnectionsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVirtualNetworkGatewayConnectionsClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworkGatewayConnectionsClient {
return VirtualNetworkGatewayConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-06-01/network/virtualnetworkgateways.go b/services/network/mgmt/2018-06-01/network/virtualnetworkgateways.go
index b985605399a9..82eefc250bc8 100644
--- a/services/network/mgmt/2018-06-01/network/virtualnetworkgateways.go
+++ b/services/network/mgmt/2018-06-01/network/virtualnetworkgateways.go
@@ -36,7 +36,9 @@ func NewVirtualNetworkGatewaysClient(subscriptionID string) VirtualNetworkGatewa
return NewVirtualNetworkGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualNetworkGatewaysClientWithBaseURI creates an instance of the VirtualNetworkGatewaysClient client.
+// NewVirtualNetworkGatewaysClientWithBaseURI creates an instance of the VirtualNetworkGatewaysClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewVirtualNetworkGatewaysClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworkGatewaysClient {
return VirtualNetworkGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-06-01/network/virtualnetworkpeerings.go b/services/network/mgmt/2018-06-01/network/virtualnetworkpeerings.go
index 53afd2369658..325226902345 100644
--- a/services/network/mgmt/2018-06-01/network/virtualnetworkpeerings.go
+++ b/services/network/mgmt/2018-06-01/network/virtualnetworkpeerings.go
@@ -35,7 +35,9 @@ func NewVirtualNetworkPeeringsClient(subscriptionID string) VirtualNetworkPeerin
return NewVirtualNetworkPeeringsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualNetworkPeeringsClientWithBaseURI creates an instance of the VirtualNetworkPeeringsClient client.
+// NewVirtualNetworkPeeringsClientWithBaseURI creates an instance of the VirtualNetworkPeeringsClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewVirtualNetworkPeeringsClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworkPeeringsClient {
return VirtualNetworkPeeringsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-06-01/network/virtualnetworks.go b/services/network/mgmt/2018-06-01/network/virtualnetworks.go
index fab5e4625e1a..afe3f5ff2a6d 100644
--- a/services/network/mgmt/2018-06-01/network/virtualnetworks.go
+++ b/services/network/mgmt/2018-06-01/network/virtualnetworks.go
@@ -35,7 +35,8 @@ func NewVirtualNetworksClient(subscriptionID string) VirtualNetworksClient {
return NewVirtualNetworksClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualNetworksClientWithBaseURI creates an instance of the VirtualNetworksClient client.
+// NewVirtualNetworksClientWithBaseURI creates an instance of the VirtualNetworksClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVirtualNetworksClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworksClient {
return VirtualNetworksClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-06-01/network/virtualwans.go b/services/network/mgmt/2018-06-01/network/virtualwans.go
index 05521bd59220..5e3eb35f0932 100644
--- a/services/network/mgmt/2018-06-01/network/virtualwans.go
+++ b/services/network/mgmt/2018-06-01/network/virtualwans.go
@@ -35,7 +35,8 @@ func NewVirtualWANsClient(subscriptionID string) VirtualWANsClient {
return NewVirtualWANsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualWANsClientWithBaseURI creates an instance of the VirtualWANsClient client.
+// NewVirtualWANsClientWithBaseURI creates an instance of the VirtualWANsClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVirtualWANsClientWithBaseURI(baseURI string, subscriptionID string) VirtualWANsClient {
return VirtualWANsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-06-01/network/vpnconnections.go b/services/network/mgmt/2018-06-01/network/vpnconnections.go
index f6ca13618a09..972a06d6161e 100644
--- a/services/network/mgmt/2018-06-01/network/vpnconnections.go
+++ b/services/network/mgmt/2018-06-01/network/vpnconnections.go
@@ -35,7 +35,8 @@ func NewVpnConnectionsClient(subscriptionID string) VpnConnectionsClient {
return NewVpnConnectionsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVpnConnectionsClientWithBaseURI creates an instance of the VpnConnectionsClient client.
+// NewVpnConnectionsClientWithBaseURI creates an instance of the VpnConnectionsClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVpnConnectionsClientWithBaseURI(baseURI string, subscriptionID string) VpnConnectionsClient {
return VpnConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-06-01/network/vpngateways.go b/services/network/mgmt/2018-06-01/network/vpngateways.go
index 34de16232d0b..635e0c1e96bb 100644
--- a/services/network/mgmt/2018-06-01/network/vpngateways.go
+++ b/services/network/mgmt/2018-06-01/network/vpngateways.go
@@ -35,7 +35,8 @@ func NewVpnGatewaysClient(subscriptionID string) VpnGatewaysClient {
return NewVpnGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVpnGatewaysClientWithBaseURI creates an instance of the VpnGatewaysClient client.
+// NewVpnGatewaysClientWithBaseURI creates an instance of the VpnGatewaysClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVpnGatewaysClientWithBaseURI(baseURI string, subscriptionID string) VpnGatewaysClient {
return VpnGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-06-01/network/vpnsites.go b/services/network/mgmt/2018-06-01/network/vpnsites.go
index bdfac2447081..05bdb7873d46 100644
--- a/services/network/mgmt/2018-06-01/network/vpnsites.go
+++ b/services/network/mgmt/2018-06-01/network/vpnsites.go
@@ -35,7 +35,8 @@ func NewVpnSitesClient(subscriptionID string) VpnSitesClient {
return NewVpnSitesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVpnSitesClientWithBaseURI creates an instance of the VpnSitesClient client.
+// NewVpnSitesClientWithBaseURI creates an instance of the VpnSitesClient client using a custom endpoint. Use this
+// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVpnSitesClientWithBaseURI(baseURI string, subscriptionID string) VpnSitesClient {
return VpnSitesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-06-01/network/vpnsitesconfiguration.go b/services/network/mgmt/2018-06-01/network/vpnsitesconfiguration.go
index 5c4a9d400242..0d7313055126 100644
--- a/services/network/mgmt/2018-06-01/network/vpnsitesconfiguration.go
+++ b/services/network/mgmt/2018-06-01/network/vpnsitesconfiguration.go
@@ -35,7 +35,9 @@ func NewVpnSitesConfigurationClient(subscriptionID string) VpnSitesConfiguration
return NewVpnSitesConfigurationClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVpnSitesConfigurationClientWithBaseURI creates an instance of the VpnSitesConfigurationClient client.
+// NewVpnSitesConfigurationClientWithBaseURI creates an instance of the VpnSitesConfigurationClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewVpnSitesConfigurationClientWithBaseURI(baseURI string, subscriptionID string) VpnSitesConfigurationClient {
return VpnSitesConfigurationClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-06-01/network/watchers.go b/services/network/mgmt/2018-06-01/network/watchers.go
index f19d0259e069..389c52ee591d 100644
--- a/services/network/mgmt/2018-06-01/network/watchers.go
+++ b/services/network/mgmt/2018-06-01/network/watchers.go
@@ -36,7 +36,8 @@ func NewWatchersClient(subscriptionID string) WatchersClient {
return NewWatchersClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewWatchersClientWithBaseURI creates an instance of the WatchersClient client.
+// NewWatchersClientWithBaseURI creates an instance of the WatchersClient client using a custom endpoint. Use this
+// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewWatchersClientWithBaseURI(baseURI string, subscriptionID string) WatchersClient {
return WatchersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-07-01/network/applicationgateways.go b/services/network/mgmt/2018-07-01/network/applicationgateways.go
index feb1f8d43395..199a82954146 100644
--- a/services/network/mgmt/2018-07-01/network/applicationgateways.go
+++ b/services/network/mgmt/2018-07-01/network/applicationgateways.go
@@ -36,7 +36,9 @@ func NewApplicationGatewaysClient(subscriptionID string) ApplicationGatewaysClie
return NewApplicationGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewApplicationGatewaysClientWithBaseURI creates an instance of the ApplicationGatewaysClient client.
+// NewApplicationGatewaysClientWithBaseURI creates an instance of the ApplicationGatewaysClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewApplicationGatewaysClientWithBaseURI(baseURI string, subscriptionID string) ApplicationGatewaysClient {
return ApplicationGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-07-01/network/applicationsecuritygroups.go b/services/network/mgmt/2018-07-01/network/applicationsecuritygroups.go
index 6a8a7cb340ca..c873b1ac4ced 100644
--- a/services/network/mgmt/2018-07-01/network/applicationsecuritygroups.go
+++ b/services/network/mgmt/2018-07-01/network/applicationsecuritygroups.go
@@ -35,7 +35,9 @@ func NewApplicationSecurityGroupsClient(subscriptionID string) ApplicationSecuri
return NewApplicationSecurityGroupsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewApplicationSecurityGroupsClientWithBaseURI creates an instance of the ApplicationSecurityGroupsClient client.
+// NewApplicationSecurityGroupsClientWithBaseURI creates an instance of the ApplicationSecurityGroupsClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewApplicationSecurityGroupsClientWithBaseURI(baseURI string, subscriptionID string) ApplicationSecurityGroupsClient {
return ApplicationSecurityGroupsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-07-01/network/availableendpointservices.go b/services/network/mgmt/2018-07-01/network/availableendpointservices.go
index 333e6d32dc7e..4994cb9e4b45 100644
--- a/services/network/mgmt/2018-07-01/network/availableendpointservices.go
+++ b/services/network/mgmt/2018-07-01/network/availableendpointservices.go
@@ -35,7 +35,9 @@ func NewAvailableEndpointServicesClient(subscriptionID string) AvailableEndpoint
return NewAvailableEndpointServicesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewAvailableEndpointServicesClientWithBaseURI creates an instance of the AvailableEndpointServicesClient client.
+// NewAvailableEndpointServicesClientWithBaseURI creates an instance of the AvailableEndpointServicesClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewAvailableEndpointServicesClientWithBaseURI(baseURI string, subscriptionID string) AvailableEndpointServicesClient {
return AvailableEndpointServicesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-07-01/network/azurefirewalls.go b/services/network/mgmt/2018-07-01/network/azurefirewalls.go
index 612ffe7c91f9..02ac86569997 100644
--- a/services/network/mgmt/2018-07-01/network/azurefirewalls.go
+++ b/services/network/mgmt/2018-07-01/network/azurefirewalls.go
@@ -35,7 +35,8 @@ func NewAzureFirewallsClient(subscriptionID string) AzureFirewallsClient {
return NewAzureFirewallsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewAzureFirewallsClientWithBaseURI creates an instance of the AzureFirewallsClient client.
+// NewAzureFirewallsClientWithBaseURI creates an instance of the AzureFirewallsClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewAzureFirewallsClientWithBaseURI(baseURI string, subscriptionID string) AzureFirewallsClient {
return AzureFirewallsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-07-01/network/bgpservicecommunities.go b/services/network/mgmt/2018-07-01/network/bgpservicecommunities.go
index 3ca97bb3ad6d..3bdd891c35d2 100644
--- a/services/network/mgmt/2018-07-01/network/bgpservicecommunities.go
+++ b/services/network/mgmt/2018-07-01/network/bgpservicecommunities.go
@@ -35,7 +35,9 @@ func NewBgpServiceCommunitiesClient(subscriptionID string) BgpServiceCommunities
return NewBgpServiceCommunitiesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewBgpServiceCommunitiesClientWithBaseURI creates an instance of the BgpServiceCommunitiesClient client.
+// NewBgpServiceCommunitiesClientWithBaseURI creates an instance of the BgpServiceCommunitiesClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewBgpServiceCommunitiesClientWithBaseURI(baseURI string, subscriptionID string) BgpServiceCommunitiesClient {
return BgpServiceCommunitiesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-07-01/network/client.go b/services/network/mgmt/2018-07-01/network/client.go
index f509a02f9118..5f89a26830fe 100644
--- a/services/network/mgmt/2018-07-01/network/client.go
+++ b/services/network/mgmt/2018-07-01/network/client.go
@@ -45,7 +45,8 @@ func New(subscriptionID string) BaseClient {
return NewWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewWithBaseURI creates an instance of the BaseClient client.
+// NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with
+// an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient {
return BaseClient{
Client: autorest.NewClientWithUserAgent(UserAgent()),
diff --git a/services/network/mgmt/2018-07-01/network/connectionmonitors.go b/services/network/mgmt/2018-07-01/network/connectionmonitors.go
index b00b00ed82b1..f204d94a7817 100644
--- a/services/network/mgmt/2018-07-01/network/connectionmonitors.go
+++ b/services/network/mgmt/2018-07-01/network/connectionmonitors.go
@@ -36,7 +36,9 @@ func NewConnectionMonitorsClient(subscriptionID string) ConnectionMonitorsClient
return NewConnectionMonitorsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewConnectionMonitorsClientWithBaseURI creates an instance of the ConnectionMonitorsClient client.
+// NewConnectionMonitorsClientWithBaseURI creates an instance of the ConnectionMonitorsClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewConnectionMonitorsClientWithBaseURI(baseURI string, subscriptionID string) ConnectionMonitorsClient {
return ConnectionMonitorsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-07-01/network/ddosprotectionplans.go b/services/network/mgmt/2018-07-01/network/ddosprotectionplans.go
index 341a012b8332..5d784251da61 100644
--- a/services/network/mgmt/2018-07-01/network/ddosprotectionplans.go
+++ b/services/network/mgmt/2018-07-01/network/ddosprotectionplans.go
@@ -35,7 +35,9 @@ func NewDdosProtectionPlansClient(subscriptionID string) DdosProtectionPlansClie
return NewDdosProtectionPlansClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewDdosProtectionPlansClientWithBaseURI creates an instance of the DdosProtectionPlansClient client.
+// NewDdosProtectionPlansClientWithBaseURI creates an instance of the DdosProtectionPlansClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewDdosProtectionPlansClientWithBaseURI(baseURI string, subscriptionID string) DdosProtectionPlansClient {
return DdosProtectionPlansClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-07-01/network/defaultsecurityrules.go b/services/network/mgmt/2018-07-01/network/defaultsecurityrules.go
index 14119fdddb59..f2d212d1f479 100644
--- a/services/network/mgmt/2018-07-01/network/defaultsecurityrules.go
+++ b/services/network/mgmt/2018-07-01/network/defaultsecurityrules.go
@@ -35,7 +35,9 @@ func NewDefaultSecurityRulesClient(subscriptionID string) DefaultSecurityRulesCl
return NewDefaultSecurityRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewDefaultSecurityRulesClientWithBaseURI creates an instance of the DefaultSecurityRulesClient client.
+// NewDefaultSecurityRulesClientWithBaseURI creates an instance of the DefaultSecurityRulesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewDefaultSecurityRulesClientWithBaseURI(baseURI string, subscriptionID string) DefaultSecurityRulesClient {
return DefaultSecurityRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-07-01/network/expressroutecircuitauthorizations.go b/services/network/mgmt/2018-07-01/network/expressroutecircuitauthorizations.go
index 4fe145c7dd3d..9dc437586c2c 100644
--- a/services/network/mgmt/2018-07-01/network/expressroutecircuitauthorizations.go
+++ b/services/network/mgmt/2018-07-01/network/expressroutecircuitauthorizations.go
@@ -37,7 +37,8 @@ func NewExpressRouteCircuitAuthorizationsClient(subscriptionID string) ExpressRo
}
// NewExpressRouteCircuitAuthorizationsClientWithBaseURI creates an instance of the
-// ExpressRouteCircuitAuthorizationsClient client.
+// ExpressRouteCircuitAuthorizationsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewExpressRouteCircuitAuthorizationsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCircuitAuthorizationsClient {
return ExpressRouteCircuitAuthorizationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-07-01/network/expressroutecircuitconnections.go b/services/network/mgmt/2018-07-01/network/expressroutecircuitconnections.go
index d84c8c3bf135..c2a2cbc3949b 100644
--- a/services/network/mgmt/2018-07-01/network/expressroutecircuitconnections.go
+++ b/services/network/mgmt/2018-07-01/network/expressroutecircuitconnections.go
@@ -36,7 +36,8 @@ func NewExpressRouteCircuitConnectionsClient(subscriptionID string) ExpressRoute
}
// NewExpressRouteCircuitConnectionsClientWithBaseURI creates an instance of the ExpressRouteCircuitConnectionsClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewExpressRouteCircuitConnectionsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCircuitConnectionsClient {
return ExpressRouteCircuitConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-07-01/network/expressroutecircuitpeerings.go b/services/network/mgmt/2018-07-01/network/expressroutecircuitpeerings.go
index 9ac73859a217..e8f62f527647 100644
--- a/services/network/mgmt/2018-07-01/network/expressroutecircuitpeerings.go
+++ b/services/network/mgmt/2018-07-01/network/expressroutecircuitpeerings.go
@@ -36,7 +36,9 @@ func NewExpressRouteCircuitPeeringsClient(subscriptionID string) ExpressRouteCir
return NewExpressRouteCircuitPeeringsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewExpressRouteCircuitPeeringsClientWithBaseURI creates an instance of the ExpressRouteCircuitPeeringsClient client.
+// NewExpressRouteCircuitPeeringsClientWithBaseURI creates an instance of the ExpressRouteCircuitPeeringsClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewExpressRouteCircuitPeeringsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCircuitPeeringsClient {
return ExpressRouteCircuitPeeringsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-07-01/network/expressroutecircuits.go b/services/network/mgmt/2018-07-01/network/expressroutecircuits.go
index b7a0da60fbee..d9dc55b5f2c6 100644
--- a/services/network/mgmt/2018-07-01/network/expressroutecircuits.go
+++ b/services/network/mgmt/2018-07-01/network/expressroutecircuits.go
@@ -35,7 +35,9 @@ func NewExpressRouteCircuitsClient(subscriptionID string) ExpressRouteCircuitsCl
return NewExpressRouteCircuitsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewExpressRouteCircuitsClientWithBaseURI creates an instance of the ExpressRouteCircuitsClient client.
+// NewExpressRouteCircuitsClientWithBaseURI creates an instance of the ExpressRouteCircuitsClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewExpressRouteCircuitsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCircuitsClient {
return ExpressRouteCircuitsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-07-01/network/expressroutecrossconnectionpeerings.go b/services/network/mgmt/2018-07-01/network/expressroutecrossconnectionpeerings.go
index 93867d0f8aaa..0d66ca5645f5 100644
--- a/services/network/mgmt/2018-07-01/network/expressroutecrossconnectionpeerings.go
+++ b/services/network/mgmt/2018-07-01/network/expressroutecrossconnectionpeerings.go
@@ -38,7 +38,8 @@ func NewExpressRouteCrossConnectionPeeringsClient(subscriptionID string) Express
}
// NewExpressRouteCrossConnectionPeeringsClientWithBaseURI creates an instance of the
-// ExpressRouteCrossConnectionPeeringsClient client.
+// ExpressRouteCrossConnectionPeeringsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewExpressRouteCrossConnectionPeeringsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCrossConnectionPeeringsClient {
return ExpressRouteCrossConnectionPeeringsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-07-01/network/expressroutecrossconnections.go b/services/network/mgmt/2018-07-01/network/expressroutecrossconnections.go
index 4347b078e0e1..16705fc664c8 100644
--- a/services/network/mgmt/2018-07-01/network/expressroutecrossconnections.go
+++ b/services/network/mgmt/2018-07-01/network/expressroutecrossconnections.go
@@ -36,7 +36,8 @@ func NewExpressRouteCrossConnectionsClient(subscriptionID string) ExpressRouteCr
}
// NewExpressRouteCrossConnectionsClientWithBaseURI creates an instance of the ExpressRouteCrossConnectionsClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewExpressRouteCrossConnectionsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCrossConnectionsClient {
return ExpressRouteCrossConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-07-01/network/expressrouteserviceproviders.go b/services/network/mgmt/2018-07-01/network/expressrouteserviceproviders.go
index d5cf2172cc14..acf92ef53b9b 100644
--- a/services/network/mgmt/2018-07-01/network/expressrouteserviceproviders.go
+++ b/services/network/mgmt/2018-07-01/network/expressrouteserviceproviders.go
@@ -36,7 +36,8 @@ func NewExpressRouteServiceProvidersClient(subscriptionID string) ExpressRouteSe
}
// NewExpressRouteServiceProvidersClientWithBaseURI creates an instance of the ExpressRouteServiceProvidersClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewExpressRouteServiceProvidersClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteServiceProvidersClient {
return ExpressRouteServiceProvidersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-07-01/network/hubvirtualnetworkconnections.go b/services/network/mgmt/2018-07-01/network/hubvirtualnetworkconnections.go
index 50090e149731..3e4177733b64 100644
--- a/services/network/mgmt/2018-07-01/network/hubvirtualnetworkconnections.go
+++ b/services/network/mgmt/2018-07-01/network/hubvirtualnetworkconnections.go
@@ -36,7 +36,8 @@ func NewHubVirtualNetworkConnectionsClient(subscriptionID string) HubVirtualNetw
}
// NewHubVirtualNetworkConnectionsClientWithBaseURI creates an instance of the HubVirtualNetworkConnectionsClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewHubVirtualNetworkConnectionsClientWithBaseURI(baseURI string, subscriptionID string) HubVirtualNetworkConnectionsClient {
return HubVirtualNetworkConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-07-01/network/inboundnatrules.go b/services/network/mgmt/2018-07-01/network/inboundnatrules.go
index c6601831a557..9c6278fc4091 100644
--- a/services/network/mgmt/2018-07-01/network/inboundnatrules.go
+++ b/services/network/mgmt/2018-07-01/network/inboundnatrules.go
@@ -36,7 +36,8 @@ func NewInboundNatRulesClient(subscriptionID string) InboundNatRulesClient {
return NewInboundNatRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewInboundNatRulesClientWithBaseURI creates an instance of the InboundNatRulesClient client.
+// NewInboundNatRulesClientWithBaseURI creates an instance of the InboundNatRulesClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewInboundNatRulesClientWithBaseURI(baseURI string, subscriptionID string) InboundNatRulesClient {
return InboundNatRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-07-01/network/interfaceipconfigurations.go b/services/network/mgmt/2018-07-01/network/interfaceipconfigurations.go
index 38faffe29871..3c4c8165a840 100644
--- a/services/network/mgmt/2018-07-01/network/interfaceipconfigurations.go
+++ b/services/network/mgmt/2018-07-01/network/interfaceipconfigurations.go
@@ -35,7 +35,9 @@ func NewInterfaceIPConfigurationsClient(subscriptionID string) InterfaceIPConfig
return NewInterfaceIPConfigurationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewInterfaceIPConfigurationsClientWithBaseURI creates an instance of the InterfaceIPConfigurationsClient client.
+// NewInterfaceIPConfigurationsClientWithBaseURI creates an instance of the InterfaceIPConfigurationsClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewInterfaceIPConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) InterfaceIPConfigurationsClient {
return InterfaceIPConfigurationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-07-01/network/interfaceloadbalancers.go b/services/network/mgmt/2018-07-01/network/interfaceloadbalancers.go
index 839832a84d49..11071cbf9c66 100644
--- a/services/network/mgmt/2018-07-01/network/interfaceloadbalancers.go
+++ b/services/network/mgmt/2018-07-01/network/interfaceloadbalancers.go
@@ -35,7 +35,9 @@ func NewInterfaceLoadBalancersClient(subscriptionID string) InterfaceLoadBalance
return NewInterfaceLoadBalancersClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewInterfaceLoadBalancersClientWithBaseURI creates an instance of the InterfaceLoadBalancersClient client.
+// NewInterfaceLoadBalancersClientWithBaseURI creates an instance of the InterfaceLoadBalancersClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewInterfaceLoadBalancersClientWithBaseURI(baseURI string, subscriptionID string) InterfaceLoadBalancersClient {
return InterfaceLoadBalancersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-07-01/network/interfacesgroup.go b/services/network/mgmt/2018-07-01/network/interfacesgroup.go
index cc9a74d73b7d..f250c2721d39 100644
--- a/services/network/mgmt/2018-07-01/network/interfacesgroup.go
+++ b/services/network/mgmt/2018-07-01/network/interfacesgroup.go
@@ -35,7 +35,8 @@ func NewInterfacesClient(subscriptionID string) InterfacesClient {
return NewInterfacesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewInterfacesClientWithBaseURI creates an instance of the InterfacesClient client.
+// NewInterfacesClientWithBaseURI creates an instance of the InterfacesClient client using a custom endpoint. Use this
+// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewInterfacesClientWithBaseURI(baseURI string, subscriptionID string) InterfacesClient {
return InterfacesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-07-01/network/loadbalancerbackendaddresspools.go b/services/network/mgmt/2018-07-01/network/loadbalancerbackendaddresspools.go
index d435449bf833..e25ad9261b50 100644
--- a/services/network/mgmt/2018-07-01/network/loadbalancerbackendaddresspools.go
+++ b/services/network/mgmt/2018-07-01/network/loadbalancerbackendaddresspools.go
@@ -36,7 +36,8 @@ func NewLoadBalancerBackendAddressPoolsClient(subscriptionID string) LoadBalance
}
// NewLoadBalancerBackendAddressPoolsClientWithBaseURI creates an instance of the LoadBalancerBackendAddressPoolsClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewLoadBalancerBackendAddressPoolsClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerBackendAddressPoolsClient {
return LoadBalancerBackendAddressPoolsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-07-01/network/loadbalancerfrontendipconfigurations.go b/services/network/mgmt/2018-07-01/network/loadbalancerfrontendipconfigurations.go
index e6cc1a8e769c..c796bf1f0c5a 100644
--- a/services/network/mgmt/2018-07-01/network/loadbalancerfrontendipconfigurations.go
+++ b/services/network/mgmt/2018-07-01/network/loadbalancerfrontendipconfigurations.go
@@ -37,7 +37,8 @@ func NewLoadBalancerFrontendIPConfigurationsClient(subscriptionID string) LoadBa
}
// NewLoadBalancerFrontendIPConfigurationsClientWithBaseURI creates an instance of the
-// LoadBalancerFrontendIPConfigurationsClient client.
+// LoadBalancerFrontendIPConfigurationsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewLoadBalancerFrontendIPConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerFrontendIPConfigurationsClient {
return LoadBalancerFrontendIPConfigurationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-07-01/network/loadbalancerloadbalancingrules.go b/services/network/mgmt/2018-07-01/network/loadbalancerloadbalancingrules.go
index 956f61faa07a..557ce1518634 100644
--- a/services/network/mgmt/2018-07-01/network/loadbalancerloadbalancingrules.go
+++ b/services/network/mgmt/2018-07-01/network/loadbalancerloadbalancingrules.go
@@ -36,7 +36,8 @@ func NewLoadBalancerLoadBalancingRulesClient(subscriptionID string) LoadBalancer
}
// NewLoadBalancerLoadBalancingRulesClientWithBaseURI creates an instance of the LoadBalancerLoadBalancingRulesClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewLoadBalancerLoadBalancingRulesClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerLoadBalancingRulesClient {
return LoadBalancerLoadBalancingRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-07-01/network/loadbalancernetworkinterfaces.go b/services/network/mgmt/2018-07-01/network/loadbalancernetworkinterfaces.go
index 1186d826ad98..26453e4b6777 100644
--- a/services/network/mgmt/2018-07-01/network/loadbalancernetworkinterfaces.go
+++ b/services/network/mgmt/2018-07-01/network/loadbalancernetworkinterfaces.go
@@ -36,7 +36,8 @@ func NewLoadBalancerNetworkInterfacesClient(subscriptionID string) LoadBalancerN
}
// NewLoadBalancerNetworkInterfacesClientWithBaseURI creates an instance of the LoadBalancerNetworkInterfacesClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewLoadBalancerNetworkInterfacesClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerNetworkInterfacesClient {
return LoadBalancerNetworkInterfacesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-07-01/network/loadbalancerprobes.go b/services/network/mgmt/2018-07-01/network/loadbalancerprobes.go
index b571f8957bc4..3aaaded7ac14 100644
--- a/services/network/mgmt/2018-07-01/network/loadbalancerprobes.go
+++ b/services/network/mgmt/2018-07-01/network/loadbalancerprobes.go
@@ -35,7 +35,9 @@ func NewLoadBalancerProbesClient(subscriptionID string) LoadBalancerProbesClient
return NewLoadBalancerProbesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewLoadBalancerProbesClientWithBaseURI creates an instance of the LoadBalancerProbesClient client.
+// NewLoadBalancerProbesClientWithBaseURI creates an instance of the LoadBalancerProbesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewLoadBalancerProbesClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerProbesClient {
return LoadBalancerProbesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-07-01/network/loadbalancers.go b/services/network/mgmt/2018-07-01/network/loadbalancers.go
index 5dac4d4f25fc..3f4d14d6a6bf 100644
--- a/services/network/mgmt/2018-07-01/network/loadbalancers.go
+++ b/services/network/mgmt/2018-07-01/network/loadbalancers.go
@@ -35,7 +35,8 @@ func NewLoadBalancersClient(subscriptionID string) LoadBalancersClient {
return NewLoadBalancersClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewLoadBalancersClientWithBaseURI creates an instance of the LoadBalancersClient client.
+// NewLoadBalancersClientWithBaseURI creates an instance of the LoadBalancersClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewLoadBalancersClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancersClient {
return LoadBalancersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-07-01/network/localnetworkgateways.go b/services/network/mgmt/2018-07-01/network/localnetworkgateways.go
index c4293754ceab..992e1d923289 100644
--- a/services/network/mgmt/2018-07-01/network/localnetworkgateways.go
+++ b/services/network/mgmt/2018-07-01/network/localnetworkgateways.go
@@ -36,7 +36,9 @@ func NewLocalNetworkGatewaysClient(subscriptionID string) LocalNetworkGatewaysCl
return NewLocalNetworkGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewLocalNetworkGatewaysClientWithBaseURI creates an instance of the LocalNetworkGatewaysClient client.
+// NewLocalNetworkGatewaysClientWithBaseURI creates an instance of the LocalNetworkGatewaysClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewLocalNetworkGatewaysClientWithBaseURI(baseURI string, subscriptionID string) LocalNetworkGatewaysClient {
return LocalNetworkGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-07-01/network/networkapi/interfaces.go b/services/network/mgmt/2018-07-01/network/networkapi/interfaces.go
index 0d7eedb84db6..093c39a9b15d 100644
--- a/services/network/mgmt/2018-07-01/network/networkapi/interfaces.go
+++ b/services/network/mgmt/2018-07-01/network/networkapi/interfaces.go
@@ -35,7 +35,9 @@ type AzureFirewallsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, azureFirewallName string) (result network.AzureFirewallsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, azureFirewallName string) (result network.AzureFirewall, err error)
List(ctx context.Context, resourceGroupName string) (result network.AzureFirewallListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.AzureFirewallListResultIterator, err error)
ListAll(ctx context.Context) (result network.AzureFirewallListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.AzureFirewallListResultIterator, err error)
}
var _ AzureFirewallsClientAPI = (*network.AzureFirewallsClient)(nil)
@@ -48,9 +50,12 @@ type ApplicationGatewaysClientAPI interface {
Get(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result network.ApplicationGateway, err error)
GetSslPredefinedPolicy(ctx context.Context, predefinedPolicyName string) (result network.ApplicationGatewaySslPredefinedPolicy, err error)
List(ctx context.Context, resourceGroupName string) (result network.ApplicationGatewayListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.ApplicationGatewayListResultIterator, err error)
ListAll(ctx context.Context) (result network.ApplicationGatewayListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.ApplicationGatewayListResultIterator, err error)
ListAvailableSslOptions(ctx context.Context) (result network.ApplicationGatewayAvailableSslOptions, err error)
ListAvailableSslPredefinedPolicies(ctx context.Context) (result network.ApplicationGatewayAvailableSslPredefinedPoliciesPage, err error)
+ ListAvailableSslPredefinedPoliciesComplete(ctx context.Context) (result network.ApplicationGatewayAvailableSslPredefinedPoliciesIterator, err error)
ListAvailableWafRuleSets(ctx context.Context) (result network.ApplicationGatewayAvailableWafRuleSetsResult, err error)
Start(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result network.ApplicationGatewaysStartFuture, err error)
Stop(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result network.ApplicationGatewaysStopFuture, err error)
@@ -65,7 +70,9 @@ type ApplicationSecurityGroupsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, applicationSecurityGroupName string) (result network.ApplicationSecurityGroupsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, applicationSecurityGroupName string) (result network.ApplicationSecurityGroup, err error)
List(ctx context.Context, resourceGroupName string) (result network.ApplicationSecurityGroupListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.ApplicationSecurityGroupListResultIterator, err error)
ListAll(ctx context.Context) (result network.ApplicationSecurityGroupListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.ApplicationSecurityGroupListResultIterator, err error)
}
var _ ApplicationSecurityGroupsClientAPI = (*network.ApplicationSecurityGroupsClient)(nil)
@@ -76,7 +83,9 @@ type DdosProtectionPlansClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, ddosProtectionPlanName string) (result network.DdosProtectionPlansDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, ddosProtectionPlanName string) (result network.DdosProtectionPlan, err error)
List(ctx context.Context) (result network.DdosProtectionPlanListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.DdosProtectionPlanListResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.DdosProtectionPlanListResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.DdosProtectionPlanListResultIterator, err error)
}
var _ DdosProtectionPlansClientAPI = (*network.DdosProtectionPlansClient)(nil)
@@ -84,6 +93,7 @@ var _ DdosProtectionPlansClientAPI = (*network.DdosProtectionPlansClient)(nil)
// AvailableEndpointServicesClientAPI contains the set of methods on the AvailableEndpointServicesClient type.
type AvailableEndpointServicesClientAPI interface {
List(ctx context.Context, location string) (result network.EndpointServicesListResultPage, err error)
+ ListComplete(ctx context.Context, location string) (result network.EndpointServicesListResultIterator, err error)
}
var _ AvailableEndpointServicesClientAPI = (*network.AvailableEndpointServicesClient)(nil)
@@ -94,6 +104,7 @@ type ExpressRouteCircuitAuthorizationsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, circuitName string, authorizationName string) (result network.ExpressRouteCircuitAuthorizationsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, circuitName string, authorizationName string) (result network.ExpressRouteCircuitAuthorization, err error)
List(ctx context.Context, resourceGroupName string, circuitName string) (result network.AuthorizationListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, circuitName string) (result network.AuthorizationListResultIterator, err error)
}
var _ ExpressRouteCircuitAuthorizationsClientAPI = (*network.ExpressRouteCircuitAuthorizationsClient)(nil)
@@ -104,6 +115,7 @@ type ExpressRouteCircuitPeeringsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.ExpressRouteCircuitPeeringsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.ExpressRouteCircuitPeering, err error)
List(ctx context.Context, resourceGroupName string, circuitName string) (result network.ExpressRouteCircuitPeeringListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, circuitName string) (result network.ExpressRouteCircuitPeeringListResultIterator, err error)
}
var _ ExpressRouteCircuitPeeringsClientAPI = (*network.ExpressRouteCircuitPeeringsClient)(nil)
@@ -125,7 +137,9 @@ type ExpressRouteCircuitsClientAPI interface {
GetPeeringStats(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.ExpressRouteCircuitStats, err error)
GetStats(ctx context.Context, resourceGroupName string, circuitName string) (result network.ExpressRouteCircuitStats, err error)
List(ctx context.Context, resourceGroupName string) (result network.ExpressRouteCircuitListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.ExpressRouteCircuitListResultIterator, err error)
ListAll(ctx context.Context) (result network.ExpressRouteCircuitListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.ExpressRouteCircuitListResultIterator, err error)
ListArpTable(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, devicePath string) (result network.ExpressRouteCircuitsListArpTableFuture, err error)
ListRoutesTable(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, devicePath string) (result network.ExpressRouteCircuitsListRoutesTableFuture, err error)
ListRoutesTableSummary(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, devicePath string) (result network.ExpressRouteCircuitsListRoutesTableSummaryFuture, err error)
@@ -137,6 +151,7 @@ var _ ExpressRouteCircuitsClientAPI = (*network.ExpressRouteCircuitsClient)(nil)
// ExpressRouteServiceProvidersClientAPI contains the set of methods on the ExpressRouteServiceProvidersClient type.
type ExpressRouteServiceProvidersClientAPI interface {
List(ctx context.Context) (result network.ExpressRouteServiceProviderListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ExpressRouteServiceProviderListResultIterator, err error)
}
var _ ExpressRouteServiceProvidersClientAPI = (*network.ExpressRouteServiceProvidersClient)(nil)
@@ -146,8 +161,10 @@ type ExpressRouteCrossConnectionsClientAPI interface {
CreateOrUpdate(ctx context.Context, resourceGroupName string, crossConnectionName string, parameters network.ExpressRouteCrossConnection) (result network.ExpressRouteCrossConnectionsCreateOrUpdateFuture, err error)
Get(ctx context.Context, resourceGroupName string, crossConnectionName string) (result network.ExpressRouteCrossConnection, err error)
List(ctx context.Context) (result network.ExpressRouteCrossConnectionListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ExpressRouteCrossConnectionListResultIterator, err error)
ListArpTable(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string, devicePath string) (result network.ExpressRouteCrossConnectionsListArpTableFuture, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ExpressRouteCrossConnectionListResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ExpressRouteCrossConnectionListResultIterator, err error)
ListRoutesTable(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string, devicePath string) (result network.ExpressRouteCrossConnectionsListRoutesTableFuture, err error)
ListRoutesTableSummary(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string, devicePath string) (result network.ExpressRouteCrossConnectionsListRoutesTableSummaryFuture, err error)
UpdateTags(ctx context.Context, resourceGroupName string, crossConnectionName string, crossConnectionParameters network.TagsObject) (result network.ExpressRouteCrossConnectionsUpdateTagsFuture, err error)
@@ -161,6 +178,7 @@ type ExpressRouteCrossConnectionPeeringsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string) (result network.ExpressRouteCrossConnectionPeeringsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string) (result network.ExpressRouteCrossConnectionPeering, err error)
List(ctx context.Context, resourceGroupName string, crossConnectionName string) (result network.ExpressRouteCrossConnectionPeeringListPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, crossConnectionName string) (result network.ExpressRouteCrossConnectionPeeringListIterator, err error)
}
var _ ExpressRouteCrossConnectionPeeringsClientAPI = (*network.ExpressRouteCrossConnectionPeeringsClient)(nil)
@@ -171,7 +189,9 @@ type LoadBalancersClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancersDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, expand string) (result network.LoadBalancer, err error)
List(ctx context.Context, resourceGroupName string) (result network.LoadBalancerListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.LoadBalancerListResultIterator, err error)
ListAll(ctx context.Context) (result network.LoadBalancerListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.LoadBalancerListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, loadBalancerName string, parameters network.TagsObject) (result network.LoadBalancersUpdateTagsFuture, err error)
}
@@ -181,6 +201,7 @@ var _ LoadBalancersClientAPI = (*network.LoadBalancersClient)(nil)
type LoadBalancerBackendAddressPoolsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, backendAddressPoolName string) (result network.BackendAddressPool, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerBackendAddressPoolListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerBackendAddressPoolListResultIterator, err error)
}
var _ LoadBalancerBackendAddressPoolsClientAPI = (*network.LoadBalancerBackendAddressPoolsClient)(nil)
@@ -189,6 +210,7 @@ var _ LoadBalancerBackendAddressPoolsClientAPI = (*network.LoadBalancerBackendAd
type LoadBalancerFrontendIPConfigurationsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, frontendIPConfigurationName string) (result network.FrontendIPConfiguration, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerFrontendIPConfigurationListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerFrontendIPConfigurationListResultIterator, err error)
}
var _ LoadBalancerFrontendIPConfigurationsClientAPI = (*network.LoadBalancerFrontendIPConfigurationsClient)(nil)
@@ -199,6 +221,7 @@ type InboundNatRulesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, loadBalancerName string, inboundNatRuleName string) (result network.InboundNatRulesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, inboundNatRuleName string, expand string) (result network.InboundNatRule, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.InboundNatRuleListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.InboundNatRuleListResultIterator, err error)
}
var _ InboundNatRulesClientAPI = (*network.InboundNatRulesClient)(nil)
@@ -207,6 +230,7 @@ var _ InboundNatRulesClientAPI = (*network.InboundNatRulesClient)(nil)
type LoadBalancerLoadBalancingRulesClientAPI interface {
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, loadBalancingRuleName string) (result network.LoadBalancingRule, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerLoadBalancingRuleListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerLoadBalancingRuleListResultIterator, err error)
}
var _ LoadBalancerLoadBalancingRulesClientAPI = (*network.LoadBalancerLoadBalancingRulesClient)(nil)
@@ -214,6 +238,7 @@ var _ LoadBalancerLoadBalancingRulesClientAPI = (*network.LoadBalancerLoadBalanc
// LoadBalancerNetworkInterfacesClientAPI contains the set of methods on the LoadBalancerNetworkInterfacesClient type.
type LoadBalancerNetworkInterfacesClientAPI interface {
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.InterfaceListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.InterfaceListResultIterator, err error)
}
var _ LoadBalancerNetworkInterfacesClientAPI = (*network.LoadBalancerNetworkInterfacesClient)(nil)
@@ -222,6 +247,7 @@ var _ LoadBalancerNetworkInterfacesClientAPI = (*network.LoadBalancerNetworkInte
type LoadBalancerProbesClientAPI interface {
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, probeName string) (result network.Probe, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerProbeListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerProbeListResultIterator, err error)
}
var _ LoadBalancerProbesClientAPI = (*network.LoadBalancerProbesClient)(nil)
@@ -235,11 +261,16 @@ type InterfacesClientAPI interface {
GetVirtualMachineScaleSetIPConfiguration(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, IPConfigurationName string, expand string) (result network.InterfaceIPConfiguration, err error)
GetVirtualMachineScaleSetNetworkInterface(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, expand string) (result network.Interface, err error)
List(ctx context.Context, resourceGroupName string) (result network.InterfaceListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.InterfaceListResultIterator, err error)
ListAll(ctx context.Context) (result network.InterfaceListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.InterfaceListResultIterator, err error)
ListEffectiveNetworkSecurityGroups(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfacesListEffectiveNetworkSecurityGroupsFuture, err error)
ListVirtualMachineScaleSetIPConfigurations(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, expand string) (result network.InterfaceIPConfigurationListResultPage, err error)
+ ListVirtualMachineScaleSetIPConfigurationsComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, expand string) (result network.InterfaceIPConfigurationListResultIterator, err error)
ListVirtualMachineScaleSetNetworkInterfaces(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result network.InterfaceListResultPage, err error)
+ ListVirtualMachineScaleSetNetworkInterfacesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result network.InterfaceListResultIterator, err error)
ListVirtualMachineScaleSetVMNetworkInterfaces(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string) (result network.InterfaceListResultPage, err error)
+ ListVirtualMachineScaleSetVMNetworkInterfacesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string) (result network.InterfaceListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, networkInterfaceName string, parameters network.TagsObject) (result network.InterfacesUpdateTagsFuture, err error)
}
@@ -249,6 +280,7 @@ var _ InterfacesClientAPI = (*network.InterfacesClient)(nil)
type InterfaceIPConfigurationsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, networkInterfaceName string, IPConfigurationName string) (result network.InterfaceIPConfiguration, err error)
List(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceIPConfigurationListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceIPConfigurationListResultIterator, err error)
}
var _ InterfaceIPConfigurationsClientAPI = (*network.InterfaceIPConfigurationsClient)(nil)
@@ -256,6 +288,7 @@ var _ InterfaceIPConfigurationsClientAPI = (*network.InterfaceIPConfigurationsCl
// InterfaceLoadBalancersClientAPI contains the set of methods on the InterfaceLoadBalancersClient type.
type InterfaceLoadBalancersClientAPI interface {
List(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceLoadBalancerListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceLoadBalancerListResultIterator, err error)
}
var _ InterfaceLoadBalancersClientAPI = (*network.InterfaceLoadBalancersClient)(nil)
@@ -266,7 +299,9 @@ type SecurityGroupsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityGroupsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, expand string) (result network.SecurityGroup, err error)
List(ctx context.Context, resourceGroupName string) (result network.SecurityGroupListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.SecurityGroupListResultIterator, err error)
ListAll(ctx context.Context) (result network.SecurityGroupListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.SecurityGroupListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, parameters network.TagsObject) (result network.SecurityGroupsUpdateTagsFuture, err error)
}
@@ -278,6 +313,7 @@ type SecurityRulesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, securityRuleName string) (result network.SecurityRulesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, securityRuleName string) (result network.SecurityRule, err error)
List(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityRuleListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityRuleListResultIterator, err error)
}
var _ SecurityRulesClientAPI = (*network.SecurityRulesClient)(nil)
@@ -286,6 +322,7 @@ var _ SecurityRulesClientAPI = (*network.SecurityRulesClient)(nil)
type DefaultSecurityRulesClientAPI interface {
Get(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, defaultSecurityRuleName string) (result network.SecurityRule, err error)
List(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityRuleListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityRuleListResultIterator, err error)
}
var _ DefaultSecurityRulesClientAPI = (*network.DefaultSecurityRulesClient)(nil)
@@ -342,6 +379,7 @@ var _ ConnectionMonitorsClientAPI = (*network.ConnectionMonitorsClient)(nil)
// OperationsClientAPI contains the set of methods on the OperationsClient type.
type OperationsClientAPI interface {
List(ctx context.Context) (result network.OperationListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.OperationListResultIterator, err error)
}
var _ OperationsClientAPI = (*network.OperationsClient)(nil)
@@ -353,9 +391,13 @@ type PublicIPAddressesClientAPI interface {
Get(ctx context.Context, resourceGroupName string, publicIPAddressName string, expand string) (result network.PublicIPAddress, err error)
GetVirtualMachineScaleSetPublicIPAddress(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, IPConfigurationName string, publicIPAddressName string, expand string) (result network.PublicIPAddress, err error)
List(ctx context.Context, resourceGroupName string) (result network.PublicIPAddressListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.PublicIPAddressListResultIterator, err error)
ListAll(ctx context.Context) (result network.PublicIPAddressListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.PublicIPAddressListResultIterator, err error)
ListVirtualMachineScaleSetPublicIPAddresses(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result network.PublicIPAddressListResultPage, err error)
+ ListVirtualMachineScaleSetPublicIPAddressesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result network.PublicIPAddressListResultIterator, err error)
ListVirtualMachineScaleSetVMPublicIPAddresses(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, IPConfigurationName string) (result network.PublicIPAddressListResultPage, err error)
+ ListVirtualMachineScaleSetVMPublicIPAddressesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, IPConfigurationName string) (result network.PublicIPAddressListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, publicIPAddressName string, parameters network.TagsObject) (result network.PublicIPAddressesUpdateTagsFuture, err error)
}
@@ -367,7 +409,9 @@ type PublicIPPrefixesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, publicIPPrefixName string) (result network.PublicIPPrefixesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, publicIPPrefixName string, expand string) (result network.PublicIPPrefix, err error)
List(ctx context.Context, resourceGroupName string) (result network.PublicIPPrefixListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.PublicIPPrefixListResultIterator, err error)
ListAll(ctx context.Context) (result network.PublicIPPrefixListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.PublicIPPrefixListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, publicIPPrefixName string, parameters network.TagsObject) (result network.PublicIPPrefixesUpdateTagsFuture, err error)
}
@@ -379,7 +423,9 @@ type RouteFiltersClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, routeFilterName string) (result network.RouteFiltersDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, routeFilterName string, expand string) (result network.RouteFilter, err error)
List(ctx context.Context) (result network.RouteFilterListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.RouteFilterListResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.RouteFilterListResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.RouteFilterListResultIterator, err error)
Update(ctx context.Context, resourceGroupName string, routeFilterName string, routeFilterParameters network.PatchRouteFilter) (result network.RouteFiltersUpdateFuture, err error)
}
@@ -391,6 +437,7 @@ type RouteFilterRulesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, routeFilterName string, ruleName string) (result network.RouteFilterRulesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, routeFilterName string, ruleName string) (result network.RouteFilterRule, err error)
ListByRouteFilter(ctx context.Context, resourceGroupName string, routeFilterName string) (result network.RouteFilterRuleListResultPage, err error)
+ ListByRouteFilterComplete(ctx context.Context, resourceGroupName string, routeFilterName string) (result network.RouteFilterRuleListResultIterator, err error)
Update(ctx context.Context, resourceGroupName string, routeFilterName string, ruleName string, routeFilterRuleParameters network.PatchRouteFilterRule) (result network.RouteFilterRulesUpdateFuture, err error)
}
@@ -402,7 +449,9 @@ type RouteTablesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, routeTableName string) (result network.RouteTablesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, routeTableName string, expand string) (result network.RouteTable, err error)
List(ctx context.Context, resourceGroupName string) (result network.RouteTableListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.RouteTableListResultIterator, err error)
ListAll(ctx context.Context) (result network.RouteTableListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.RouteTableListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, routeTableName string, parameters network.TagsObject) (result network.RouteTablesUpdateTagsFuture, err error)
}
@@ -414,6 +463,7 @@ type RoutesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, routeTableName string, routeName string) (result network.RoutesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, routeTableName string, routeName string) (result network.Route, err error)
List(ctx context.Context, resourceGroupName string, routeTableName string) (result network.RouteListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, routeTableName string) (result network.RouteListResultIterator, err error)
}
var _ RoutesClientAPI = (*network.RoutesClient)(nil)
@@ -421,6 +471,7 @@ var _ RoutesClientAPI = (*network.RoutesClient)(nil)
// BgpServiceCommunitiesClientAPI contains the set of methods on the BgpServiceCommunitiesClient type.
type BgpServiceCommunitiesClientAPI interface {
List(ctx context.Context) (result network.BgpServiceCommunityListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.BgpServiceCommunityListResultIterator, err error)
}
var _ BgpServiceCommunitiesClientAPI = (*network.BgpServiceCommunitiesClient)(nil)
@@ -428,6 +479,7 @@ var _ BgpServiceCommunitiesClientAPI = (*network.BgpServiceCommunitiesClient)(ni
// UsagesClientAPI contains the set of methods on the UsagesClient type.
type UsagesClientAPI interface {
List(ctx context.Context, location string) (result network.UsagesListResultPage, err error)
+ ListComplete(ctx context.Context, location string) (result network.UsagesListResultIterator, err error)
}
var _ UsagesClientAPI = (*network.UsagesClient)(nil)
@@ -439,8 +491,11 @@ type VirtualNetworksClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworksDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualNetworkName string, expand string) (result network.VirtualNetwork, err error)
List(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkListResultIterator, err error)
ListAll(ctx context.Context) (result network.VirtualNetworkListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.VirtualNetworkListResultIterator, err error)
ListUsage(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworkListUsageResultPage, err error)
+ ListUsageComplete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworkListUsageResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, virtualNetworkName string, parameters network.TagsObject) (result network.VirtualNetworksUpdateTagsFuture, err error)
}
@@ -452,6 +507,7 @@ type SubnetsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualNetworkName string, subnetName string) (result network.SubnetsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualNetworkName string, subnetName string, expand string) (result network.Subnet, err error)
List(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.SubnetListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.SubnetListResultIterator, err error)
}
var _ SubnetsClientAPI = (*network.SubnetsClient)(nil)
@@ -462,6 +518,7 @@ type VirtualNetworkPeeringsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualNetworkName string, virtualNetworkPeeringName string) (result network.VirtualNetworkPeeringsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualNetworkName string, virtualNetworkPeeringName string) (result network.VirtualNetworkPeering, err error)
List(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworkPeeringListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworkPeeringListResultIterator, err error)
}
var _ VirtualNetworkPeeringsClientAPI = (*network.VirtualNetworkPeeringsClient)(nil)
@@ -479,7 +536,9 @@ type VirtualNetworkGatewaysClientAPI interface {
GetVpnclientIpsecParameters(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGatewaysGetVpnclientIpsecParametersFuture, err error)
GetVpnProfilePackageURL(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGatewaysGetVpnProfilePackageURLFuture, err error)
List(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayListResultIterator, err error)
ListConnections(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGatewayListConnectionsResultPage, err error)
+ ListConnectionsComplete(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGatewayListConnectionsResultIterator, err error)
Reset(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, gatewayVip string) (result network.VirtualNetworkGatewaysResetFuture, err error)
SetVpnclientIpsecParameters(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, vpnclientIpsecParams network.VpnClientIPsecParameters) (result network.VirtualNetworkGatewaysSetVpnclientIpsecParametersFuture, err error)
SupportedVpnDevices(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.String, err error)
@@ -496,6 +555,7 @@ type VirtualNetworkGatewayConnectionsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string) (result network.VirtualNetworkGatewayConnection, err error)
GetSharedKey(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string) (result network.ConnectionSharedKey, err error)
List(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayConnectionListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayConnectionListResultIterator, err error)
ResetSharedKey(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string, parameters network.ConnectionResetSharedKey) (result network.VirtualNetworkGatewayConnectionsResetSharedKeyFuture, err error)
SetSharedKey(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string, parameters network.ConnectionSharedKey) (result network.VirtualNetworkGatewayConnectionsSetSharedKeyFuture, err error)
UpdateTags(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string, parameters network.TagsObject) (result network.VirtualNetworkGatewayConnectionsUpdateTagsFuture, err error)
@@ -509,6 +569,7 @@ type LocalNetworkGatewaysClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, localNetworkGatewayName string) (result network.LocalNetworkGatewaysDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, localNetworkGatewayName string) (result network.LocalNetworkGateway, err error)
List(ctx context.Context, resourceGroupName string) (result network.LocalNetworkGatewayListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.LocalNetworkGatewayListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, localNetworkGatewayName string, parameters network.TagsObject) (result network.LocalNetworkGatewaysUpdateTagsFuture, err error)
}
@@ -520,7 +581,9 @@ type VirtualWANsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualWANName string) (result network.VirtualWANsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualWANName string) (result network.VirtualWAN, err error)
List(ctx context.Context) (result network.ListVirtualWANsResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ListVirtualWANsResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ListVirtualWANsResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ListVirtualWANsResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, virtualWANName string, wANParameters network.TagsObject) (result network.VirtualWANsUpdateTagsFuture, err error)
}
@@ -532,7 +595,9 @@ type VpnSitesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, vpnSiteName string) (result network.VpnSitesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, vpnSiteName string) (result network.VpnSite, err error)
List(ctx context.Context) (result network.ListVpnSitesResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ListVpnSitesResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ListVpnSitesResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ListVpnSitesResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, vpnSiteName string, vpnSiteParameters network.TagsObject) (result network.VpnSitesUpdateTagsFuture, err error)
}
@@ -551,7 +616,9 @@ type VirtualHubsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualHubName string) (result network.VirtualHubsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualHubName string) (result network.VirtualHub, err error)
List(ctx context.Context) (result network.ListVirtualHubsResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ListVirtualHubsResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ListVirtualHubsResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ListVirtualHubsResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, virtualHubName string, virtualHubParameters network.TagsObject) (result network.VirtualHubsUpdateTagsFuture, err error)
}
@@ -561,6 +628,7 @@ var _ VirtualHubsClientAPI = (*network.VirtualHubsClient)(nil)
type HubVirtualNetworkConnectionsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, virtualHubName string, connectionName string) (result network.HubVirtualNetworkConnection, err error)
List(ctx context.Context, resourceGroupName string, virtualHubName string) (result network.ListHubVirtualNetworkConnectionsResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, virtualHubName string) (result network.ListHubVirtualNetworkConnectionsResultIterator, err error)
}
var _ HubVirtualNetworkConnectionsClientAPI = (*network.HubVirtualNetworkConnectionsClient)(nil)
@@ -571,7 +639,9 @@ type VpnGatewaysClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, gatewayName string) (result network.VpnGatewaysDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, gatewayName string) (result network.VpnGateway, err error)
List(ctx context.Context) (result network.ListVpnGatewaysResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ListVpnGatewaysResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ListVpnGatewaysResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ListVpnGatewaysResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, gatewayName string, vpnGatewayParameters network.TagsObject) (result network.VpnGatewaysUpdateTagsFuture, err error)
}
@@ -583,6 +653,7 @@ type VpnConnectionsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, gatewayName string, connectionName string) (result network.VpnConnectionsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, gatewayName string, connectionName string) (result network.VpnConnection, err error)
ListByVpnGateway(ctx context.Context, resourceGroupName string, gatewayName string) (result network.ListVpnConnectionsResultPage, err error)
+ ListByVpnGatewayComplete(ctx context.Context, resourceGroupName string, gatewayName string) (result network.ListVpnConnectionsResultIterator, err error)
}
var _ VpnConnectionsClientAPI = (*network.VpnConnectionsClient)(nil)
@@ -593,7 +664,9 @@ type ServiceEndpointPoliciesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string) (result network.ServiceEndpointPoliciesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string, expand string) (result network.ServiceEndpointPolicy, err error)
List(ctx context.Context) (result network.ServiceEndpointPolicyListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ServiceEndpointPolicyListResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ServiceEndpointPolicyListResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ServiceEndpointPolicyListResultIterator, err error)
Update(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string, parameters network.TagsObject) (result network.ServiceEndpointPoliciesUpdateFuture, err error)
}
@@ -605,6 +678,7 @@ type ServiceEndpointPolicyDefinitionsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string, serviceEndpointPolicyDefinitionName string) (result network.ServiceEndpointPolicyDefinitionsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string, serviceEndpointPolicyDefinitionName string) (result network.ServiceEndpointPolicyDefinition, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string) (result network.ServiceEndpointPolicyDefinitionListResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string) (result network.ServiceEndpointPolicyDefinitionListResultIterator, err error)
}
var _ ServiceEndpointPolicyDefinitionsClientAPI = (*network.ServiceEndpointPolicyDefinitionsClient)(nil)
diff --git a/services/network/mgmt/2018-07-01/network/operations.go b/services/network/mgmt/2018-07-01/network/operations.go
index d3f6163f5944..6980d18c5c7f 100644
--- a/services/network/mgmt/2018-07-01/network/operations.go
+++ b/services/network/mgmt/2018-07-01/network/operations.go
@@ -35,7 +35,8 @@ func NewOperationsClient(subscriptionID string) OperationsClient {
return NewOperationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewOperationsClientWithBaseURI creates an instance of the OperationsClient client.
+// NewOperationsClientWithBaseURI creates an instance of the OperationsClient client using a custom endpoint. Use this
+// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient {
return OperationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-07-01/network/packetcaptures.go b/services/network/mgmt/2018-07-01/network/packetcaptures.go
index db02d7adcb33..5bb2909822f2 100644
--- a/services/network/mgmt/2018-07-01/network/packetcaptures.go
+++ b/services/network/mgmt/2018-07-01/network/packetcaptures.go
@@ -36,7 +36,8 @@ func NewPacketCapturesClient(subscriptionID string) PacketCapturesClient {
return NewPacketCapturesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewPacketCapturesClientWithBaseURI creates an instance of the PacketCapturesClient client.
+// NewPacketCapturesClientWithBaseURI creates an instance of the PacketCapturesClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewPacketCapturesClientWithBaseURI(baseURI string, subscriptionID string) PacketCapturesClient {
return PacketCapturesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-07-01/network/publicipaddresses.go b/services/network/mgmt/2018-07-01/network/publicipaddresses.go
index a6a9057127cf..3dd31e7edbd7 100644
--- a/services/network/mgmt/2018-07-01/network/publicipaddresses.go
+++ b/services/network/mgmt/2018-07-01/network/publicipaddresses.go
@@ -36,7 +36,9 @@ func NewPublicIPAddressesClient(subscriptionID string) PublicIPAddressesClient {
return NewPublicIPAddressesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewPublicIPAddressesClientWithBaseURI creates an instance of the PublicIPAddressesClient client.
+// NewPublicIPAddressesClientWithBaseURI creates an instance of the PublicIPAddressesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewPublicIPAddressesClientWithBaseURI(baseURI string, subscriptionID string) PublicIPAddressesClient {
return PublicIPAddressesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-07-01/network/publicipprefixes.go b/services/network/mgmt/2018-07-01/network/publicipprefixes.go
index 6d3046e817f4..e040381775d2 100644
--- a/services/network/mgmt/2018-07-01/network/publicipprefixes.go
+++ b/services/network/mgmt/2018-07-01/network/publicipprefixes.go
@@ -35,7 +35,9 @@ func NewPublicIPPrefixesClient(subscriptionID string) PublicIPPrefixesClient {
return NewPublicIPPrefixesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewPublicIPPrefixesClientWithBaseURI creates an instance of the PublicIPPrefixesClient client.
+// NewPublicIPPrefixesClientWithBaseURI creates an instance of the PublicIPPrefixesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewPublicIPPrefixesClientWithBaseURI(baseURI string, subscriptionID string) PublicIPPrefixesClient {
return PublicIPPrefixesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-07-01/network/routefilterrules.go b/services/network/mgmt/2018-07-01/network/routefilterrules.go
index 8cc6572a71d2..45485fe0a7f1 100644
--- a/services/network/mgmt/2018-07-01/network/routefilterrules.go
+++ b/services/network/mgmt/2018-07-01/network/routefilterrules.go
@@ -36,7 +36,9 @@ func NewRouteFilterRulesClient(subscriptionID string) RouteFilterRulesClient {
return NewRouteFilterRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewRouteFilterRulesClientWithBaseURI creates an instance of the RouteFilterRulesClient client.
+// NewRouteFilterRulesClientWithBaseURI creates an instance of the RouteFilterRulesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewRouteFilterRulesClientWithBaseURI(baseURI string, subscriptionID string) RouteFilterRulesClient {
return RouteFilterRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-07-01/network/routefilters.go b/services/network/mgmt/2018-07-01/network/routefilters.go
index 9d69a8a332c5..5a236ec20873 100644
--- a/services/network/mgmt/2018-07-01/network/routefilters.go
+++ b/services/network/mgmt/2018-07-01/network/routefilters.go
@@ -35,7 +35,8 @@ func NewRouteFiltersClient(subscriptionID string) RouteFiltersClient {
return NewRouteFiltersClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewRouteFiltersClientWithBaseURI creates an instance of the RouteFiltersClient client.
+// NewRouteFiltersClientWithBaseURI creates an instance of the RouteFiltersClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewRouteFiltersClientWithBaseURI(baseURI string, subscriptionID string) RouteFiltersClient {
return RouteFiltersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-07-01/network/routes.go b/services/network/mgmt/2018-07-01/network/routes.go
index c5ffc77efaa7..573844901071 100644
--- a/services/network/mgmt/2018-07-01/network/routes.go
+++ b/services/network/mgmt/2018-07-01/network/routes.go
@@ -35,7 +35,8 @@ func NewRoutesClient(subscriptionID string) RoutesClient {
return NewRoutesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewRoutesClientWithBaseURI creates an instance of the RoutesClient client.
+// NewRoutesClientWithBaseURI creates an instance of the RoutesClient client using a custom endpoint. Use this when
+// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewRoutesClientWithBaseURI(baseURI string, subscriptionID string) RoutesClient {
return RoutesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-07-01/network/routetables.go b/services/network/mgmt/2018-07-01/network/routetables.go
index f563d9b92204..65f4e66e4259 100644
--- a/services/network/mgmt/2018-07-01/network/routetables.go
+++ b/services/network/mgmt/2018-07-01/network/routetables.go
@@ -35,7 +35,8 @@ func NewRouteTablesClient(subscriptionID string) RouteTablesClient {
return NewRouteTablesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewRouteTablesClientWithBaseURI creates an instance of the RouteTablesClient client.
+// NewRouteTablesClientWithBaseURI creates an instance of the RouteTablesClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewRouteTablesClientWithBaseURI(baseURI string, subscriptionID string) RouteTablesClient {
return RouteTablesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-07-01/network/securitygroups.go b/services/network/mgmt/2018-07-01/network/securitygroups.go
index 62f83c6ddb20..b73d72a09f2f 100644
--- a/services/network/mgmt/2018-07-01/network/securitygroups.go
+++ b/services/network/mgmt/2018-07-01/network/securitygroups.go
@@ -35,7 +35,8 @@ func NewSecurityGroupsClient(subscriptionID string) SecurityGroupsClient {
return NewSecurityGroupsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewSecurityGroupsClientWithBaseURI creates an instance of the SecurityGroupsClient client.
+// NewSecurityGroupsClientWithBaseURI creates an instance of the SecurityGroupsClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewSecurityGroupsClientWithBaseURI(baseURI string, subscriptionID string) SecurityGroupsClient {
return SecurityGroupsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-07-01/network/securityrules.go b/services/network/mgmt/2018-07-01/network/securityrules.go
index ebb450b023c9..684b8fa28e65 100644
--- a/services/network/mgmt/2018-07-01/network/securityrules.go
+++ b/services/network/mgmt/2018-07-01/network/securityrules.go
@@ -35,7 +35,8 @@ func NewSecurityRulesClient(subscriptionID string) SecurityRulesClient {
return NewSecurityRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewSecurityRulesClientWithBaseURI creates an instance of the SecurityRulesClient client.
+// NewSecurityRulesClientWithBaseURI creates an instance of the SecurityRulesClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewSecurityRulesClientWithBaseURI(baseURI string, subscriptionID string) SecurityRulesClient {
return SecurityRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-07-01/network/serviceendpointpolicies.go b/services/network/mgmt/2018-07-01/network/serviceendpointpolicies.go
index 0af7a64e71c2..150597ceeb23 100644
--- a/services/network/mgmt/2018-07-01/network/serviceendpointpolicies.go
+++ b/services/network/mgmt/2018-07-01/network/serviceendpointpolicies.go
@@ -35,7 +35,9 @@ func NewServiceEndpointPoliciesClient(subscriptionID string) ServiceEndpointPoli
return NewServiceEndpointPoliciesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewServiceEndpointPoliciesClientWithBaseURI creates an instance of the ServiceEndpointPoliciesClient client.
+// NewServiceEndpointPoliciesClientWithBaseURI creates an instance of the ServiceEndpointPoliciesClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewServiceEndpointPoliciesClientWithBaseURI(baseURI string, subscriptionID string) ServiceEndpointPoliciesClient {
return ServiceEndpointPoliciesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-07-01/network/serviceendpointpolicydefinitions.go b/services/network/mgmt/2018-07-01/network/serviceendpointpolicydefinitions.go
index b96b58233090..c36a2e6e183c 100644
--- a/services/network/mgmt/2018-07-01/network/serviceendpointpolicydefinitions.go
+++ b/services/network/mgmt/2018-07-01/network/serviceendpointpolicydefinitions.go
@@ -36,7 +36,8 @@ func NewServiceEndpointPolicyDefinitionsClient(subscriptionID string) ServiceEnd
}
// NewServiceEndpointPolicyDefinitionsClientWithBaseURI creates an instance of the
-// ServiceEndpointPolicyDefinitionsClient client.
+// ServiceEndpointPolicyDefinitionsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewServiceEndpointPolicyDefinitionsClientWithBaseURI(baseURI string, subscriptionID string) ServiceEndpointPolicyDefinitionsClient {
return ServiceEndpointPolicyDefinitionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-07-01/network/subnets.go b/services/network/mgmt/2018-07-01/network/subnets.go
index 17268338ee87..ad4668d91211 100644
--- a/services/network/mgmt/2018-07-01/network/subnets.go
+++ b/services/network/mgmt/2018-07-01/network/subnets.go
@@ -35,7 +35,8 @@ func NewSubnetsClient(subscriptionID string) SubnetsClient {
return NewSubnetsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewSubnetsClientWithBaseURI creates an instance of the SubnetsClient client.
+// NewSubnetsClientWithBaseURI creates an instance of the SubnetsClient client using a custom endpoint. Use this when
+// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewSubnetsClientWithBaseURI(baseURI string, subscriptionID string) SubnetsClient {
return SubnetsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-07-01/network/usages.go b/services/network/mgmt/2018-07-01/network/usages.go
index 42e9e3e0ac14..6fe7c3d83464 100644
--- a/services/network/mgmt/2018-07-01/network/usages.go
+++ b/services/network/mgmt/2018-07-01/network/usages.go
@@ -36,7 +36,8 @@ func NewUsagesClient(subscriptionID string) UsagesClient {
return NewUsagesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewUsagesClientWithBaseURI creates an instance of the UsagesClient client.
+// NewUsagesClientWithBaseURI creates an instance of the UsagesClient client using a custom endpoint. Use this when
+// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewUsagesClientWithBaseURI(baseURI string, subscriptionID string) UsagesClient {
return UsagesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-07-01/network/virtualhubs.go b/services/network/mgmt/2018-07-01/network/virtualhubs.go
index a45c3c212bc8..5c61d767706b 100644
--- a/services/network/mgmt/2018-07-01/network/virtualhubs.go
+++ b/services/network/mgmt/2018-07-01/network/virtualhubs.go
@@ -35,7 +35,8 @@ func NewVirtualHubsClient(subscriptionID string) VirtualHubsClient {
return NewVirtualHubsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualHubsClientWithBaseURI creates an instance of the VirtualHubsClient client.
+// NewVirtualHubsClientWithBaseURI creates an instance of the VirtualHubsClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVirtualHubsClientWithBaseURI(baseURI string, subscriptionID string) VirtualHubsClient {
return VirtualHubsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-07-01/network/virtualnetworkgatewayconnections.go b/services/network/mgmt/2018-07-01/network/virtualnetworkgatewayconnections.go
index b888d0cf1ce6..6e555d578544 100644
--- a/services/network/mgmt/2018-07-01/network/virtualnetworkgatewayconnections.go
+++ b/services/network/mgmt/2018-07-01/network/virtualnetworkgatewayconnections.go
@@ -37,7 +37,8 @@ func NewVirtualNetworkGatewayConnectionsClient(subscriptionID string) VirtualNet
}
// NewVirtualNetworkGatewayConnectionsClientWithBaseURI creates an instance of the
-// VirtualNetworkGatewayConnectionsClient client.
+// VirtualNetworkGatewayConnectionsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVirtualNetworkGatewayConnectionsClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworkGatewayConnectionsClient {
return VirtualNetworkGatewayConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-07-01/network/virtualnetworkgateways.go b/services/network/mgmt/2018-07-01/network/virtualnetworkgateways.go
index 2af6d8be221b..5eaae63c2860 100644
--- a/services/network/mgmt/2018-07-01/network/virtualnetworkgateways.go
+++ b/services/network/mgmt/2018-07-01/network/virtualnetworkgateways.go
@@ -36,7 +36,9 @@ func NewVirtualNetworkGatewaysClient(subscriptionID string) VirtualNetworkGatewa
return NewVirtualNetworkGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualNetworkGatewaysClientWithBaseURI creates an instance of the VirtualNetworkGatewaysClient client.
+// NewVirtualNetworkGatewaysClientWithBaseURI creates an instance of the VirtualNetworkGatewaysClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewVirtualNetworkGatewaysClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworkGatewaysClient {
return VirtualNetworkGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-07-01/network/virtualnetworkpeerings.go b/services/network/mgmt/2018-07-01/network/virtualnetworkpeerings.go
index 63a01c8ddc91..a9d3692eb9a2 100644
--- a/services/network/mgmt/2018-07-01/network/virtualnetworkpeerings.go
+++ b/services/network/mgmt/2018-07-01/network/virtualnetworkpeerings.go
@@ -35,7 +35,9 @@ func NewVirtualNetworkPeeringsClient(subscriptionID string) VirtualNetworkPeerin
return NewVirtualNetworkPeeringsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualNetworkPeeringsClientWithBaseURI creates an instance of the VirtualNetworkPeeringsClient client.
+// NewVirtualNetworkPeeringsClientWithBaseURI creates an instance of the VirtualNetworkPeeringsClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewVirtualNetworkPeeringsClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworkPeeringsClient {
return VirtualNetworkPeeringsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-07-01/network/virtualnetworks.go b/services/network/mgmt/2018-07-01/network/virtualnetworks.go
index fbbe5f313c0b..e43d18246c42 100644
--- a/services/network/mgmt/2018-07-01/network/virtualnetworks.go
+++ b/services/network/mgmt/2018-07-01/network/virtualnetworks.go
@@ -35,7 +35,8 @@ func NewVirtualNetworksClient(subscriptionID string) VirtualNetworksClient {
return NewVirtualNetworksClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualNetworksClientWithBaseURI creates an instance of the VirtualNetworksClient client.
+// NewVirtualNetworksClientWithBaseURI creates an instance of the VirtualNetworksClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVirtualNetworksClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworksClient {
return VirtualNetworksClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-07-01/network/virtualwans.go b/services/network/mgmt/2018-07-01/network/virtualwans.go
index a12a59c68627..477a1250f513 100644
--- a/services/network/mgmt/2018-07-01/network/virtualwans.go
+++ b/services/network/mgmt/2018-07-01/network/virtualwans.go
@@ -35,7 +35,8 @@ func NewVirtualWANsClient(subscriptionID string) VirtualWANsClient {
return NewVirtualWANsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualWANsClientWithBaseURI creates an instance of the VirtualWANsClient client.
+// NewVirtualWANsClientWithBaseURI creates an instance of the VirtualWANsClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVirtualWANsClientWithBaseURI(baseURI string, subscriptionID string) VirtualWANsClient {
return VirtualWANsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-07-01/network/vpnconnections.go b/services/network/mgmt/2018-07-01/network/vpnconnections.go
index 5e024069f404..61856e0859b0 100644
--- a/services/network/mgmt/2018-07-01/network/vpnconnections.go
+++ b/services/network/mgmt/2018-07-01/network/vpnconnections.go
@@ -35,7 +35,8 @@ func NewVpnConnectionsClient(subscriptionID string) VpnConnectionsClient {
return NewVpnConnectionsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVpnConnectionsClientWithBaseURI creates an instance of the VpnConnectionsClient client.
+// NewVpnConnectionsClientWithBaseURI creates an instance of the VpnConnectionsClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVpnConnectionsClientWithBaseURI(baseURI string, subscriptionID string) VpnConnectionsClient {
return VpnConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-07-01/network/vpngateways.go b/services/network/mgmt/2018-07-01/network/vpngateways.go
index 035368cc0ff4..6f82941916e1 100644
--- a/services/network/mgmt/2018-07-01/network/vpngateways.go
+++ b/services/network/mgmt/2018-07-01/network/vpngateways.go
@@ -35,7 +35,8 @@ func NewVpnGatewaysClient(subscriptionID string) VpnGatewaysClient {
return NewVpnGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVpnGatewaysClientWithBaseURI creates an instance of the VpnGatewaysClient client.
+// NewVpnGatewaysClientWithBaseURI creates an instance of the VpnGatewaysClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVpnGatewaysClientWithBaseURI(baseURI string, subscriptionID string) VpnGatewaysClient {
return VpnGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-07-01/network/vpnsites.go b/services/network/mgmt/2018-07-01/network/vpnsites.go
index 88b5cd30682b..3fdc35820b7f 100644
--- a/services/network/mgmt/2018-07-01/network/vpnsites.go
+++ b/services/network/mgmt/2018-07-01/network/vpnsites.go
@@ -35,7 +35,8 @@ func NewVpnSitesClient(subscriptionID string) VpnSitesClient {
return NewVpnSitesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVpnSitesClientWithBaseURI creates an instance of the VpnSitesClient client.
+// NewVpnSitesClientWithBaseURI creates an instance of the VpnSitesClient client using a custom endpoint. Use this
+// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVpnSitesClientWithBaseURI(baseURI string, subscriptionID string) VpnSitesClient {
return VpnSitesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-07-01/network/vpnsitesconfiguration.go b/services/network/mgmt/2018-07-01/network/vpnsitesconfiguration.go
index ccc2376824c2..e3f6ac0f440b 100644
--- a/services/network/mgmt/2018-07-01/network/vpnsitesconfiguration.go
+++ b/services/network/mgmt/2018-07-01/network/vpnsitesconfiguration.go
@@ -35,7 +35,9 @@ func NewVpnSitesConfigurationClient(subscriptionID string) VpnSitesConfiguration
return NewVpnSitesConfigurationClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVpnSitesConfigurationClientWithBaseURI creates an instance of the VpnSitesConfigurationClient client.
+// NewVpnSitesConfigurationClientWithBaseURI creates an instance of the VpnSitesConfigurationClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewVpnSitesConfigurationClientWithBaseURI(baseURI string, subscriptionID string) VpnSitesConfigurationClient {
return VpnSitesConfigurationClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-07-01/network/watchers.go b/services/network/mgmt/2018-07-01/network/watchers.go
index 50370065dac0..3bcfe9359fd0 100644
--- a/services/network/mgmt/2018-07-01/network/watchers.go
+++ b/services/network/mgmt/2018-07-01/network/watchers.go
@@ -36,7 +36,8 @@ func NewWatchersClient(subscriptionID string) WatchersClient {
return NewWatchersClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewWatchersClientWithBaseURI creates an instance of the WatchersClient client.
+// NewWatchersClientWithBaseURI creates an instance of the WatchersClient client using a custom endpoint. Use this
+// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewWatchersClientWithBaseURI(baseURI string, subscriptionID string) WatchersClient {
return WatchersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-08-01/network/applicationgateways.go b/services/network/mgmt/2018-08-01/network/applicationgateways.go
index 94fbc884fedc..8770e78f8ca8 100644
--- a/services/network/mgmt/2018-08-01/network/applicationgateways.go
+++ b/services/network/mgmt/2018-08-01/network/applicationgateways.go
@@ -36,7 +36,9 @@ func NewApplicationGatewaysClient(subscriptionID string) ApplicationGatewaysClie
return NewApplicationGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewApplicationGatewaysClientWithBaseURI creates an instance of the ApplicationGatewaysClient client.
+// NewApplicationGatewaysClientWithBaseURI creates an instance of the ApplicationGatewaysClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewApplicationGatewaysClientWithBaseURI(baseURI string, subscriptionID string) ApplicationGatewaysClient {
return ApplicationGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-08-01/network/applicationsecuritygroups.go b/services/network/mgmt/2018-08-01/network/applicationsecuritygroups.go
index 4fae8ed8456e..188dc03ff8b1 100644
--- a/services/network/mgmt/2018-08-01/network/applicationsecuritygroups.go
+++ b/services/network/mgmt/2018-08-01/network/applicationsecuritygroups.go
@@ -35,7 +35,9 @@ func NewApplicationSecurityGroupsClient(subscriptionID string) ApplicationSecuri
return NewApplicationSecurityGroupsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewApplicationSecurityGroupsClientWithBaseURI creates an instance of the ApplicationSecurityGroupsClient client.
+// NewApplicationSecurityGroupsClientWithBaseURI creates an instance of the ApplicationSecurityGroupsClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewApplicationSecurityGroupsClientWithBaseURI(baseURI string, subscriptionID string) ApplicationSecurityGroupsClient {
return ApplicationSecurityGroupsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-08-01/network/availabledelegations.go b/services/network/mgmt/2018-08-01/network/availabledelegations.go
index 8ab8fe4d77f7..9b49070ca686 100644
--- a/services/network/mgmt/2018-08-01/network/availabledelegations.go
+++ b/services/network/mgmt/2018-08-01/network/availabledelegations.go
@@ -35,7 +35,9 @@ func NewAvailableDelegationsClient(subscriptionID string) AvailableDelegationsCl
return NewAvailableDelegationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewAvailableDelegationsClientWithBaseURI creates an instance of the AvailableDelegationsClient client.
+// NewAvailableDelegationsClientWithBaseURI creates an instance of the AvailableDelegationsClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewAvailableDelegationsClientWithBaseURI(baseURI string, subscriptionID string) AvailableDelegationsClient {
return AvailableDelegationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-08-01/network/availableendpointservices.go b/services/network/mgmt/2018-08-01/network/availableendpointservices.go
index c8a6642f9e5b..31424eaa5ca6 100644
--- a/services/network/mgmt/2018-08-01/network/availableendpointservices.go
+++ b/services/network/mgmt/2018-08-01/network/availableendpointservices.go
@@ -35,7 +35,9 @@ func NewAvailableEndpointServicesClient(subscriptionID string) AvailableEndpoint
return NewAvailableEndpointServicesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewAvailableEndpointServicesClientWithBaseURI creates an instance of the AvailableEndpointServicesClient client.
+// NewAvailableEndpointServicesClientWithBaseURI creates an instance of the AvailableEndpointServicesClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewAvailableEndpointServicesClientWithBaseURI(baseURI string, subscriptionID string) AvailableEndpointServicesClient {
return AvailableEndpointServicesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-08-01/network/availableresourcegroupdelegations.go b/services/network/mgmt/2018-08-01/network/availableresourcegroupdelegations.go
index 5f14e23f7d67..86207d946389 100644
--- a/services/network/mgmt/2018-08-01/network/availableresourcegroupdelegations.go
+++ b/services/network/mgmt/2018-08-01/network/availableresourcegroupdelegations.go
@@ -37,7 +37,8 @@ func NewAvailableResourceGroupDelegationsClient(subscriptionID string) Available
}
// NewAvailableResourceGroupDelegationsClientWithBaseURI creates an instance of the
-// AvailableResourceGroupDelegationsClient client.
+// AvailableResourceGroupDelegationsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewAvailableResourceGroupDelegationsClientWithBaseURI(baseURI string, subscriptionID string) AvailableResourceGroupDelegationsClient {
return AvailableResourceGroupDelegationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-08-01/network/azurefirewallfqdntags.go b/services/network/mgmt/2018-08-01/network/azurefirewallfqdntags.go
index c00176514789..9a592a34aa82 100644
--- a/services/network/mgmt/2018-08-01/network/azurefirewallfqdntags.go
+++ b/services/network/mgmt/2018-08-01/network/azurefirewallfqdntags.go
@@ -35,7 +35,9 @@ func NewAzureFirewallFqdnTagsClient(subscriptionID string) AzureFirewallFqdnTags
return NewAzureFirewallFqdnTagsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewAzureFirewallFqdnTagsClientWithBaseURI creates an instance of the AzureFirewallFqdnTagsClient client.
+// NewAzureFirewallFqdnTagsClientWithBaseURI creates an instance of the AzureFirewallFqdnTagsClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewAzureFirewallFqdnTagsClientWithBaseURI(baseURI string, subscriptionID string) AzureFirewallFqdnTagsClient {
return AzureFirewallFqdnTagsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-08-01/network/azurefirewalls.go b/services/network/mgmt/2018-08-01/network/azurefirewalls.go
index e045010aed33..7572a41e48be 100644
--- a/services/network/mgmt/2018-08-01/network/azurefirewalls.go
+++ b/services/network/mgmt/2018-08-01/network/azurefirewalls.go
@@ -35,7 +35,8 @@ func NewAzureFirewallsClient(subscriptionID string) AzureFirewallsClient {
return NewAzureFirewallsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewAzureFirewallsClientWithBaseURI creates an instance of the AzureFirewallsClient client.
+// NewAzureFirewallsClientWithBaseURI creates an instance of the AzureFirewallsClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewAzureFirewallsClientWithBaseURI(baseURI string, subscriptionID string) AzureFirewallsClient {
return AzureFirewallsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-08-01/network/bgpservicecommunities.go b/services/network/mgmt/2018-08-01/network/bgpservicecommunities.go
index 5f6f887ee4c8..8f1393e8ab29 100644
--- a/services/network/mgmt/2018-08-01/network/bgpservicecommunities.go
+++ b/services/network/mgmt/2018-08-01/network/bgpservicecommunities.go
@@ -35,7 +35,9 @@ func NewBgpServiceCommunitiesClient(subscriptionID string) BgpServiceCommunities
return NewBgpServiceCommunitiesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewBgpServiceCommunitiesClientWithBaseURI creates an instance of the BgpServiceCommunitiesClient client.
+// NewBgpServiceCommunitiesClientWithBaseURI creates an instance of the BgpServiceCommunitiesClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewBgpServiceCommunitiesClientWithBaseURI(baseURI string, subscriptionID string) BgpServiceCommunitiesClient {
return BgpServiceCommunitiesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-08-01/network/client.go b/services/network/mgmt/2018-08-01/network/client.go
index 75c294fd3521..5f4794cd4b64 100644
--- a/services/network/mgmt/2018-08-01/network/client.go
+++ b/services/network/mgmt/2018-08-01/network/client.go
@@ -45,7 +45,8 @@ func New(subscriptionID string) BaseClient {
return NewWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewWithBaseURI creates an instance of the BaseClient client.
+// NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with
+// an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient {
return BaseClient{
Client: autorest.NewClientWithUserAgent(UserAgent()),
diff --git a/services/network/mgmt/2018-08-01/network/connectionmonitors.go b/services/network/mgmt/2018-08-01/network/connectionmonitors.go
index 39ae46c0bffa..78a0be4c1a10 100644
--- a/services/network/mgmt/2018-08-01/network/connectionmonitors.go
+++ b/services/network/mgmt/2018-08-01/network/connectionmonitors.go
@@ -36,7 +36,9 @@ func NewConnectionMonitorsClient(subscriptionID string) ConnectionMonitorsClient
return NewConnectionMonitorsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewConnectionMonitorsClientWithBaseURI creates an instance of the ConnectionMonitorsClient client.
+// NewConnectionMonitorsClientWithBaseURI creates an instance of the ConnectionMonitorsClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewConnectionMonitorsClientWithBaseURI(baseURI string, subscriptionID string) ConnectionMonitorsClient {
return ConnectionMonitorsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-08-01/network/ddosprotectionplans.go b/services/network/mgmt/2018-08-01/network/ddosprotectionplans.go
index 88d1caf00eae..af6e52a69d26 100644
--- a/services/network/mgmt/2018-08-01/network/ddosprotectionplans.go
+++ b/services/network/mgmt/2018-08-01/network/ddosprotectionplans.go
@@ -35,7 +35,9 @@ func NewDdosProtectionPlansClient(subscriptionID string) DdosProtectionPlansClie
return NewDdosProtectionPlansClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewDdosProtectionPlansClientWithBaseURI creates an instance of the DdosProtectionPlansClient client.
+// NewDdosProtectionPlansClientWithBaseURI creates an instance of the DdosProtectionPlansClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewDdosProtectionPlansClientWithBaseURI(baseURI string, subscriptionID string) DdosProtectionPlansClient {
return DdosProtectionPlansClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-08-01/network/defaultsecurityrules.go b/services/network/mgmt/2018-08-01/network/defaultsecurityrules.go
index ab8785f27394..3fba008bb0fe 100644
--- a/services/network/mgmt/2018-08-01/network/defaultsecurityrules.go
+++ b/services/network/mgmt/2018-08-01/network/defaultsecurityrules.go
@@ -35,7 +35,9 @@ func NewDefaultSecurityRulesClient(subscriptionID string) DefaultSecurityRulesCl
return NewDefaultSecurityRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewDefaultSecurityRulesClientWithBaseURI creates an instance of the DefaultSecurityRulesClient client.
+// NewDefaultSecurityRulesClientWithBaseURI creates an instance of the DefaultSecurityRulesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewDefaultSecurityRulesClientWithBaseURI(baseURI string, subscriptionID string) DefaultSecurityRulesClient {
return DefaultSecurityRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-08-01/network/expressroutecircuitauthorizations.go b/services/network/mgmt/2018-08-01/network/expressroutecircuitauthorizations.go
index 449af06ab914..4d7e9464b3ec 100644
--- a/services/network/mgmt/2018-08-01/network/expressroutecircuitauthorizations.go
+++ b/services/network/mgmt/2018-08-01/network/expressroutecircuitauthorizations.go
@@ -37,7 +37,8 @@ func NewExpressRouteCircuitAuthorizationsClient(subscriptionID string) ExpressRo
}
// NewExpressRouteCircuitAuthorizationsClientWithBaseURI creates an instance of the
-// ExpressRouteCircuitAuthorizationsClient client.
+// ExpressRouteCircuitAuthorizationsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewExpressRouteCircuitAuthorizationsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCircuitAuthorizationsClient {
return ExpressRouteCircuitAuthorizationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-08-01/network/expressroutecircuitconnections.go b/services/network/mgmt/2018-08-01/network/expressroutecircuitconnections.go
index d63311e97df8..7d372326e88d 100644
--- a/services/network/mgmt/2018-08-01/network/expressroutecircuitconnections.go
+++ b/services/network/mgmt/2018-08-01/network/expressroutecircuitconnections.go
@@ -36,7 +36,8 @@ func NewExpressRouteCircuitConnectionsClient(subscriptionID string) ExpressRoute
}
// NewExpressRouteCircuitConnectionsClientWithBaseURI creates an instance of the ExpressRouteCircuitConnectionsClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewExpressRouteCircuitConnectionsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCircuitConnectionsClient {
return ExpressRouteCircuitConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-08-01/network/expressroutecircuitpeerings.go b/services/network/mgmt/2018-08-01/network/expressroutecircuitpeerings.go
index d5fd220e0cfe..78ca1819a193 100644
--- a/services/network/mgmt/2018-08-01/network/expressroutecircuitpeerings.go
+++ b/services/network/mgmt/2018-08-01/network/expressroutecircuitpeerings.go
@@ -36,7 +36,9 @@ func NewExpressRouteCircuitPeeringsClient(subscriptionID string) ExpressRouteCir
return NewExpressRouteCircuitPeeringsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewExpressRouteCircuitPeeringsClientWithBaseURI creates an instance of the ExpressRouteCircuitPeeringsClient client.
+// NewExpressRouteCircuitPeeringsClientWithBaseURI creates an instance of the ExpressRouteCircuitPeeringsClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewExpressRouteCircuitPeeringsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCircuitPeeringsClient {
return ExpressRouteCircuitPeeringsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-08-01/network/expressroutecircuits.go b/services/network/mgmt/2018-08-01/network/expressroutecircuits.go
index eefc9981f3ad..25a1c9b8cdbd 100644
--- a/services/network/mgmt/2018-08-01/network/expressroutecircuits.go
+++ b/services/network/mgmt/2018-08-01/network/expressroutecircuits.go
@@ -35,7 +35,9 @@ func NewExpressRouteCircuitsClient(subscriptionID string) ExpressRouteCircuitsCl
return NewExpressRouteCircuitsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewExpressRouteCircuitsClientWithBaseURI creates an instance of the ExpressRouteCircuitsClient client.
+// NewExpressRouteCircuitsClientWithBaseURI creates an instance of the ExpressRouteCircuitsClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewExpressRouteCircuitsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCircuitsClient {
return ExpressRouteCircuitsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-08-01/network/expressrouteconnections.go b/services/network/mgmt/2018-08-01/network/expressrouteconnections.go
index da4fa8e36c51..cd04831a7954 100644
--- a/services/network/mgmt/2018-08-01/network/expressrouteconnections.go
+++ b/services/network/mgmt/2018-08-01/network/expressrouteconnections.go
@@ -36,7 +36,9 @@ func NewExpressRouteConnectionsClient(subscriptionID string) ExpressRouteConnect
return NewExpressRouteConnectionsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewExpressRouteConnectionsClientWithBaseURI creates an instance of the ExpressRouteConnectionsClient client.
+// NewExpressRouteConnectionsClientWithBaseURI creates an instance of the ExpressRouteConnectionsClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewExpressRouteConnectionsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteConnectionsClient {
return ExpressRouteConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-08-01/network/expressroutecrossconnectionpeerings.go b/services/network/mgmt/2018-08-01/network/expressroutecrossconnectionpeerings.go
index 954773121f28..d4984cb21136 100644
--- a/services/network/mgmt/2018-08-01/network/expressroutecrossconnectionpeerings.go
+++ b/services/network/mgmt/2018-08-01/network/expressroutecrossconnectionpeerings.go
@@ -38,7 +38,8 @@ func NewExpressRouteCrossConnectionPeeringsClient(subscriptionID string) Express
}
// NewExpressRouteCrossConnectionPeeringsClientWithBaseURI creates an instance of the
-// ExpressRouteCrossConnectionPeeringsClient client.
+// ExpressRouteCrossConnectionPeeringsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewExpressRouteCrossConnectionPeeringsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCrossConnectionPeeringsClient {
return ExpressRouteCrossConnectionPeeringsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-08-01/network/expressroutecrossconnections.go b/services/network/mgmt/2018-08-01/network/expressroutecrossconnections.go
index ad6e6f8af66a..4308e8917753 100644
--- a/services/network/mgmt/2018-08-01/network/expressroutecrossconnections.go
+++ b/services/network/mgmt/2018-08-01/network/expressroutecrossconnections.go
@@ -36,7 +36,8 @@ func NewExpressRouteCrossConnectionsClient(subscriptionID string) ExpressRouteCr
}
// NewExpressRouteCrossConnectionsClientWithBaseURI creates an instance of the ExpressRouteCrossConnectionsClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewExpressRouteCrossConnectionsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCrossConnectionsClient {
return ExpressRouteCrossConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-08-01/network/expressroutegateways.go b/services/network/mgmt/2018-08-01/network/expressroutegateways.go
index af74a38ff8de..f1f62df9d68f 100644
--- a/services/network/mgmt/2018-08-01/network/expressroutegateways.go
+++ b/services/network/mgmt/2018-08-01/network/expressroutegateways.go
@@ -36,7 +36,9 @@ func NewExpressRouteGatewaysClient(subscriptionID string) ExpressRouteGatewaysCl
return NewExpressRouteGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewExpressRouteGatewaysClientWithBaseURI creates an instance of the ExpressRouteGatewaysClient client.
+// NewExpressRouteGatewaysClientWithBaseURI creates an instance of the ExpressRouteGatewaysClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewExpressRouteGatewaysClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteGatewaysClient {
return ExpressRouteGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-08-01/network/expressroutelinks.go b/services/network/mgmt/2018-08-01/network/expressroutelinks.go
index eb6df4e4a577..cfdbdeaaf4c1 100644
--- a/services/network/mgmt/2018-08-01/network/expressroutelinks.go
+++ b/services/network/mgmt/2018-08-01/network/expressroutelinks.go
@@ -35,7 +35,9 @@ func NewExpressRouteLinksClient(subscriptionID string) ExpressRouteLinksClient {
return NewExpressRouteLinksClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewExpressRouteLinksClientWithBaseURI creates an instance of the ExpressRouteLinksClient client.
+// NewExpressRouteLinksClientWithBaseURI creates an instance of the ExpressRouteLinksClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewExpressRouteLinksClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteLinksClient {
return ExpressRouteLinksClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-08-01/network/expressrouteports.go b/services/network/mgmt/2018-08-01/network/expressrouteports.go
index 210cdd45548f..d429d850fb83 100644
--- a/services/network/mgmt/2018-08-01/network/expressrouteports.go
+++ b/services/network/mgmt/2018-08-01/network/expressrouteports.go
@@ -35,7 +35,9 @@ func NewExpressRoutePortsClient(subscriptionID string) ExpressRoutePortsClient {
return NewExpressRoutePortsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewExpressRoutePortsClientWithBaseURI creates an instance of the ExpressRoutePortsClient client.
+// NewExpressRoutePortsClientWithBaseURI creates an instance of the ExpressRoutePortsClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewExpressRoutePortsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRoutePortsClient {
return ExpressRoutePortsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-08-01/network/expressrouteportslocations.go b/services/network/mgmt/2018-08-01/network/expressrouteportslocations.go
index b483106ceb80..f2b6936638e6 100644
--- a/services/network/mgmt/2018-08-01/network/expressrouteportslocations.go
+++ b/services/network/mgmt/2018-08-01/network/expressrouteportslocations.go
@@ -35,7 +35,9 @@ func NewExpressRoutePortsLocationsClient(subscriptionID string) ExpressRoutePort
return NewExpressRoutePortsLocationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewExpressRoutePortsLocationsClientWithBaseURI creates an instance of the ExpressRoutePortsLocationsClient client.
+// NewExpressRoutePortsLocationsClientWithBaseURI creates an instance of the ExpressRoutePortsLocationsClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewExpressRoutePortsLocationsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRoutePortsLocationsClient {
return ExpressRoutePortsLocationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-08-01/network/expressrouteserviceproviders.go b/services/network/mgmt/2018-08-01/network/expressrouteserviceproviders.go
index 6d2e1b7b0a4d..fe25d046758b 100644
--- a/services/network/mgmt/2018-08-01/network/expressrouteserviceproviders.go
+++ b/services/network/mgmt/2018-08-01/network/expressrouteserviceproviders.go
@@ -36,7 +36,8 @@ func NewExpressRouteServiceProvidersClient(subscriptionID string) ExpressRouteSe
}
// NewExpressRouteServiceProvidersClientWithBaseURI creates an instance of the ExpressRouteServiceProvidersClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewExpressRouteServiceProvidersClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteServiceProvidersClient {
return ExpressRouteServiceProvidersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-08-01/network/hubvirtualnetworkconnections.go b/services/network/mgmt/2018-08-01/network/hubvirtualnetworkconnections.go
index d8da91d3e1ad..06e51cbf5d96 100644
--- a/services/network/mgmt/2018-08-01/network/hubvirtualnetworkconnections.go
+++ b/services/network/mgmt/2018-08-01/network/hubvirtualnetworkconnections.go
@@ -36,7 +36,8 @@ func NewHubVirtualNetworkConnectionsClient(subscriptionID string) HubVirtualNetw
}
// NewHubVirtualNetworkConnectionsClientWithBaseURI creates an instance of the HubVirtualNetworkConnectionsClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewHubVirtualNetworkConnectionsClientWithBaseURI(baseURI string, subscriptionID string) HubVirtualNetworkConnectionsClient {
return HubVirtualNetworkConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-08-01/network/inboundnatrules.go b/services/network/mgmt/2018-08-01/network/inboundnatrules.go
index 671519865396..6efdc5161fd9 100644
--- a/services/network/mgmt/2018-08-01/network/inboundnatrules.go
+++ b/services/network/mgmt/2018-08-01/network/inboundnatrules.go
@@ -36,7 +36,8 @@ func NewInboundNatRulesClient(subscriptionID string) InboundNatRulesClient {
return NewInboundNatRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewInboundNatRulesClientWithBaseURI creates an instance of the InboundNatRulesClient client.
+// NewInboundNatRulesClientWithBaseURI creates an instance of the InboundNatRulesClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewInboundNatRulesClientWithBaseURI(baseURI string, subscriptionID string) InboundNatRulesClient {
return InboundNatRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-08-01/network/interfaceendpoints.go b/services/network/mgmt/2018-08-01/network/interfaceendpoints.go
index a94aaf125432..a6e2eee3f09f 100644
--- a/services/network/mgmt/2018-08-01/network/interfaceendpoints.go
+++ b/services/network/mgmt/2018-08-01/network/interfaceendpoints.go
@@ -35,7 +35,9 @@ func NewInterfaceEndpointsClient(subscriptionID string) InterfaceEndpointsClient
return NewInterfaceEndpointsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewInterfaceEndpointsClientWithBaseURI creates an instance of the InterfaceEndpointsClient client.
+// NewInterfaceEndpointsClientWithBaseURI creates an instance of the InterfaceEndpointsClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewInterfaceEndpointsClientWithBaseURI(baseURI string, subscriptionID string) InterfaceEndpointsClient {
return InterfaceEndpointsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-08-01/network/interfaceipconfigurations.go b/services/network/mgmt/2018-08-01/network/interfaceipconfigurations.go
index 52b252caaf30..4bdd0942032d 100644
--- a/services/network/mgmt/2018-08-01/network/interfaceipconfigurations.go
+++ b/services/network/mgmt/2018-08-01/network/interfaceipconfigurations.go
@@ -35,7 +35,9 @@ func NewInterfaceIPConfigurationsClient(subscriptionID string) InterfaceIPConfig
return NewInterfaceIPConfigurationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewInterfaceIPConfigurationsClientWithBaseURI creates an instance of the InterfaceIPConfigurationsClient client.
+// NewInterfaceIPConfigurationsClientWithBaseURI creates an instance of the InterfaceIPConfigurationsClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewInterfaceIPConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) InterfaceIPConfigurationsClient {
return InterfaceIPConfigurationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-08-01/network/interfaceloadbalancers.go b/services/network/mgmt/2018-08-01/network/interfaceloadbalancers.go
index f2da3d1c8882..e6c2118c9224 100644
--- a/services/network/mgmt/2018-08-01/network/interfaceloadbalancers.go
+++ b/services/network/mgmt/2018-08-01/network/interfaceloadbalancers.go
@@ -35,7 +35,9 @@ func NewInterfaceLoadBalancersClient(subscriptionID string) InterfaceLoadBalance
return NewInterfaceLoadBalancersClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewInterfaceLoadBalancersClientWithBaseURI creates an instance of the InterfaceLoadBalancersClient client.
+// NewInterfaceLoadBalancersClientWithBaseURI creates an instance of the InterfaceLoadBalancersClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewInterfaceLoadBalancersClientWithBaseURI(baseURI string, subscriptionID string) InterfaceLoadBalancersClient {
return InterfaceLoadBalancersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-08-01/network/interfacesgroup.go b/services/network/mgmt/2018-08-01/network/interfacesgroup.go
index a45dc74bf6c9..c1e0315fe0dd 100644
--- a/services/network/mgmt/2018-08-01/network/interfacesgroup.go
+++ b/services/network/mgmt/2018-08-01/network/interfacesgroup.go
@@ -35,7 +35,8 @@ func NewInterfacesClient(subscriptionID string) InterfacesClient {
return NewInterfacesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewInterfacesClientWithBaseURI creates an instance of the InterfacesClient client.
+// NewInterfacesClientWithBaseURI creates an instance of the InterfacesClient client using a custom endpoint. Use this
+// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewInterfacesClientWithBaseURI(baseURI string, subscriptionID string) InterfacesClient {
return InterfacesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-08-01/network/interfacetapconfigurations.go b/services/network/mgmt/2018-08-01/network/interfacetapconfigurations.go
index ac142c968ca2..0b00975ae50b 100644
--- a/services/network/mgmt/2018-08-01/network/interfacetapconfigurations.go
+++ b/services/network/mgmt/2018-08-01/network/interfacetapconfigurations.go
@@ -36,7 +36,9 @@ func NewInterfaceTapConfigurationsClient(subscriptionID string) InterfaceTapConf
return NewInterfaceTapConfigurationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewInterfaceTapConfigurationsClientWithBaseURI creates an instance of the InterfaceTapConfigurationsClient client.
+// NewInterfaceTapConfigurationsClientWithBaseURI creates an instance of the InterfaceTapConfigurationsClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewInterfaceTapConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) InterfaceTapConfigurationsClient {
return InterfaceTapConfigurationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-08-01/network/loadbalancerbackendaddresspools.go b/services/network/mgmt/2018-08-01/network/loadbalancerbackendaddresspools.go
index e1052ba801cb..4ef5447cb702 100644
--- a/services/network/mgmt/2018-08-01/network/loadbalancerbackendaddresspools.go
+++ b/services/network/mgmt/2018-08-01/network/loadbalancerbackendaddresspools.go
@@ -36,7 +36,8 @@ func NewLoadBalancerBackendAddressPoolsClient(subscriptionID string) LoadBalance
}
// NewLoadBalancerBackendAddressPoolsClientWithBaseURI creates an instance of the LoadBalancerBackendAddressPoolsClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewLoadBalancerBackendAddressPoolsClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerBackendAddressPoolsClient {
return LoadBalancerBackendAddressPoolsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-08-01/network/loadbalancerfrontendipconfigurations.go b/services/network/mgmt/2018-08-01/network/loadbalancerfrontendipconfigurations.go
index b31ef59974ed..5c478d91e174 100644
--- a/services/network/mgmt/2018-08-01/network/loadbalancerfrontendipconfigurations.go
+++ b/services/network/mgmt/2018-08-01/network/loadbalancerfrontendipconfigurations.go
@@ -37,7 +37,8 @@ func NewLoadBalancerFrontendIPConfigurationsClient(subscriptionID string) LoadBa
}
// NewLoadBalancerFrontendIPConfigurationsClientWithBaseURI creates an instance of the
-// LoadBalancerFrontendIPConfigurationsClient client.
+// LoadBalancerFrontendIPConfigurationsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewLoadBalancerFrontendIPConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerFrontendIPConfigurationsClient {
return LoadBalancerFrontendIPConfigurationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-08-01/network/loadbalancerloadbalancingrules.go b/services/network/mgmt/2018-08-01/network/loadbalancerloadbalancingrules.go
index 0ce635eb2c65..7c3befaa15c4 100644
--- a/services/network/mgmt/2018-08-01/network/loadbalancerloadbalancingrules.go
+++ b/services/network/mgmt/2018-08-01/network/loadbalancerloadbalancingrules.go
@@ -36,7 +36,8 @@ func NewLoadBalancerLoadBalancingRulesClient(subscriptionID string) LoadBalancer
}
// NewLoadBalancerLoadBalancingRulesClientWithBaseURI creates an instance of the LoadBalancerLoadBalancingRulesClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewLoadBalancerLoadBalancingRulesClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerLoadBalancingRulesClient {
return LoadBalancerLoadBalancingRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-08-01/network/loadbalancernetworkinterfaces.go b/services/network/mgmt/2018-08-01/network/loadbalancernetworkinterfaces.go
index 386e2b9b1d4c..4df53918ff4e 100644
--- a/services/network/mgmt/2018-08-01/network/loadbalancernetworkinterfaces.go
+++ b/services/network/mgmt/2018-08-01/network/loadbalancernetworkinterfaces.go
@@ -36,7 +36,8 @@ func NewLoadBalancerNetworkInterfacesClient(subscriptionID string) LoadBalancerN
}
// NewLoadBalancerNetworkInterfacesClientWithBaseURI creates an instance of the LoadBalancerNetworkInterfacesClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewLoadBalancerNetworkInterfacesClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerNetworkInterfacesClient {
return LoadBalancerNetworkInterfacesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-08-01/network/loadbalanceroutboundrules.go b/services/network/mgmt/2018-08-01/network/loadbalanceroutboundrules.go
index f5f964b2ea4f..18230c4ed0ce 100644
--- a/services/network/mgmt/2018-08-01/network/loadbalanceroutboundrules.go
+++ b/services/network/mgmt/2018-08-01/network/loadbalanceroutboundrules.go
@@ -35,7 +35,9 @@ func NewLoadBalancerOutboundRulesClient(subscriptionID string) LoadBalancerOutbo
return NewLoadBalancerOutboundRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewLoadBalancerOutboundRulesClientWithBaseURI creates an instance of the LoadBalancerOutboundRulesClient client.
+// NewLoadBalancerOutboundRulesClientWithBaseURI creates an instance of the LoadBalancerOutboundRulesClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewLoadBalancerOutboundRulesClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerOutboundRulesClient {
return LoadBalancerOutboundRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-08-01/network/loadbalancerprobes.go b/services/network/mgmt/2018-08-01/network/loadbalancerprobes.go
index 542baea60fff..1be8ea70a6bf 100644
--- a/services/network/mgmt/2018-08-01/network/loadbalancerprobes.go
+++ b/services/network/mgmt/2018-08-01/network/loadbalancerprobes.go
@@ -35,7 +35,9 @@ func NewLoadBalancerProbesClient(subscriptionID string) LoadBalancerProbesClient
return NewLoadBalancerProbesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewLoadBalancerProbesClientWithBaseURI creates an instance of the LoadBalancerProbesClient client.
+// NewLoadBalancerProbesClientWithBaseURI creates an instance of the LoadBalancerProbesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewLoadBalancerProbesClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerProbesClient {
return LoadBalancerProbesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-08-01/network/loadbalancers.go b/services/network/mgmt/2018-08-01/network/loadbalancers.go
index 5930a4c2e7fb..80e35d0b0e9b 100644
--- a/services/network/mgmt/2018-08-01/network/loadbalancers.go
+++ b/services/network/mgmt/2018-08-01/network/loadbalancers.go
@@ -35,7 +35,8 @@ func NewLoadBalancersClient(subscriptionID string) LoadBalancersClient {
return NewLoadBalancersClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewLoadBalancersClientWithBaseURI creates an instance of the LoadBalancersClient client.
+// NewLoadBalancersClientWithBaseURI creates an instance of the LoadBalancersClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewLoadBalancersClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancersClient {
return LoadBalancersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-08-01/network/localnetworkgateways.go b/services/network/mgmt/2018-08-01/network/localnetworkgateways.go
index 0e3731921f20..87a46dfc4d00 100644
--- a/services/network/mgmt/2018-08-01/network/localnetworkgateways.go
+++ b/services/network/mgmt/2018-08-01/network/localnetworkgateways.go
@@ -36,7 +36,9 @@ func NewLocalNetworkGatewaysClient(subscriptionID string) LocalNetworkGatewaysCl
return NewLocalNetworkGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewLocalNetworkGatewaysClientWithBaseURI creates an instance of the LocalNetworkGatewaysClient client.
+// NewLocalNetworkGatewaysClientWithBaseURI creates an instance of the LocalNetworkGatewaysClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewLocalNetworkGatewaysClientWithBaseURI(baseURI string, subscriptionID string) LocalNetworkGatewaysClient {
return LocalNetworkGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-08-01/network/networkapi/interfaces.go b/services/network/mgmt/2018-08-01/network/networkapi/interfaces.go
index 825c5eceda1d..41a3e1542e83 100644
--- a/services/network/mgmt/2018-08-01/network/networkapi/interfaces.go
+++ b/services/network/mgmt/2018-08-01/network/networkapi/interfaces.go
@@ -38,9 +38,12 @@ type ApplicationGatewaysClientAPI interface {
Get(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result network.ApplicationGateway, err error)
GetSslPredefinedPolicy(ctx context.Context, predefinedPolicyName string) (result network.ApplicationGatewaySslPredefinedPolicy, err error)
List(ctx context.Context, resourceGroupName string) (result network.ApplicationGatewayListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.ApplicationGatewayListResultIterator, err error)
ListAll(ctx context.Context) (result network.ApplicationGatewayListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.ApplicationGatewayListResultIterator, err error)
ListAvailableSslOptions(ctx context.Context) (result network.ApplicationGatewayAvailableSslOptions, err error)
ListAvailableSslPredefinedPolicies(ctx context.Context) (result network.ApplicationGatewayAvailableSslPredefinedPoliciesPage, err error)
+ ListAvailableSslPredefinedPoliciesComplete(ctx context.Context) (result network.ApplicationGatewayAvailableSslPredefinedPoliciesIterator, err error)
ListAvailableWafRuleSets(ctx context.Context) (result network.ApplicationGatewayAvailableWafRuleSetsResult, err error)
Start(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result network.ApplicationGatewaysStartFuture, err error)
Stop(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result network.ApplicationGatewaysStopFuture, err error)
@@ -55,7 +58,9 @@ type ApplicationSecurityGroupsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, applicationSecurityGroupName string) (result network.ApplicationSecurityGroupsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, applicationSecurityGroupName string) (result network.ApplicationSecurityGroup, err error)
List(ctx context.Context, resourceGroupName string) (result network.ApplicationSecurityGroupListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.ApplicationSecurityGroupListResultIterator, err error)
ListAll(ctx context.Context) (result network.ApplicationSecurityGroupListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.ApplicationSecurityGroupListResultIterator, err error)
}
var _ ApplicationSecurityGroupsClientAPI = (*network.ApplicationSecurityGroupsClient)(nil)
@@ -63,6 +68,7 @@ var _ ApplicationSecurityGroupsClientAPI = (*network.ApplicationSecurityGroupsCl
// AvailableDelegationsClientAPI contains the set of methods on the AvailableDelegationsClient type.
type AvailableDelegationsClientAPI interface {
List(ctx context.Context, location string) (result network.AvailableDelegationsResultPage, err error)
+ ListComplete(ctx context.Context, location string) (result network.AvailableDelegationsResultIterator, err error)
}
var _ AvailableDelegationsClientAPI = (*network.AvailableDelegationsClient)(nil)
@@ -70,6 +76,7 @@ var _ AvailableDelegationsClientAPI = (*network.AvailableDelegationsClient)(nil)
// AvailableResourceGroupDelegationsClientAPI contains the set of methods on the AvailableResourceGroupDelegationsClient type.
type AvailableResourceGroupDelegationsClientAPI interface {
List(ctx context.Context, location string, resourceGroupName string) (result network.AvailableDelegationsResultPage, err error)
+ ListComplete(ctx context.Context, location string, resourceGroupName string) (result network.AvailableDelegationsResultIterator, err error)
}
var _ AvailableResourceGroupDelegationsClientAPI = (*network.AvailableResourceGroupDelegationsClient)(nil)
@@ -80,7 +87,9 @@ type AzureFirewallsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, azureFirewallName string) (result network.AzureFirewallsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, azureFirewallName string) (result network.AzureFirewall, err error)
List(ctx context.Context, resourceGroupName string) (result network.AzureFirewallListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.AzureFirewallListResultIterator, err error)
ListAll(ctx context.Context) (result network.AzureFirewallListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.AzureFirewallListResultIterator, err error)
}
var _ AzureFirewallsClientAPI = (*network.AzureFirewallsClient)(nil)
@@ -88,6 +97,7 @@ var _ AzureFirewallsClientAPI = (*network.AzureFirewallsClient)(nil)
// AzureFirewallFqdnTagsClientAPI contains the set of methods on the AzureFirewallFqdnTagsClient type.
type AzureFirewallFqdnTagsClientAPI interface {
ListAll(ctx context.Context) (result network.AzureFirewallFqdnTagListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.AzureFirewallFqdnTagListResultIterator, err error)
}
var _ AzureFirewallFqdnTagsClientAPI = (*network.AzureFirewallFqdnTagsClient)(nil)
@@ -98,7 +108,9 @@ type DdosProtectionPlansClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, ddosProtectionPlanName string) (result network.DdosProtectionPlansDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, ddosProtectionPlanName string) (result network.DdosProtectionPlan, err error)
List(ctx context.Context) (result network.DdosProtectionPlanListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.DdosProtectionPlanListResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.DdosProtectionPlanListResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.DdosProtectionPlanListResultIterator, err error)
}
var _ DdosProtectionPlansClientAPI = (*network.DdosProtectionPlansClient)(nil)
@@ -106,6 +118,7 @@ var _ DdosProtectionPlansClientAPI = (*network.DdosProtectionPlansClient)(nil)
// AvailableEndpointServicesClientAPI contains the set of methods on the AvailableEndpointServicesClient type.
type AvailableEndpointServicesClientAPI interface {
List(ctx context.Context, location string) (result network.EndpointServicesListResultPage, err error)
+ ListComplete(ctx context.Context, location string) (result network.EndpointServicesListResultIterator, err error)
}
var _ AvailableEndpointServicesClientAPI = (*network.AvailableEndpointServicesClient)(nil)
@@ -116,6 +129,7 @@ type ExpressRouteCircuitAuthorizationsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, circuitName string, authorizationName string) (result network.ExpressRouteCircuitAuthorizationsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, circuitName string, authorizationName string) (result network.ExpressRouteCircuitAuthorization, err error)
List(ctx context.Context, resourceGroupName string, circuitName string) (result network.AuthorizationListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, circuitName string) (result network.AuthorizationListResultIterator, err error)
}
var _ ExpressRouteCircuitAuthorizationsClientAPI = (*network.ExpressRouteCircuitAuthorizationsClient)(nil)
@@ -126,6 +140,7 @@ type ExpressRouteCircuitPeeringsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.ExpressRouteCircuitPeeringsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.ExpressRouteCircuitPeering, err error)
List(ctx context.Context, resourceGroupName string, circuitName string) (result network.ExpressRouteCircuitPeeringListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, circuitName string) (result network.ExpressRouteCircuitPeeringListResultIterator, err error)
}
var _ ExpressRouteCircuitPeeringsClientAPI = (*network.ExpressRouteCircuitPeeringsClient)(nil)
@@ -147,7 +162,9 @@ type ExpressRouteCircuitsClientAPI interface {
GetPeeringStats(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.ExpressRouteCircuitStats, err error)
GetStats(ctx context.Context, resourceGroupName string, circuitName string) (result network.ExpressRouteCircuitStats, err error)
List(ctx context.Context, resourceGroupName string) (result network.ExpressRouteCircuitListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.ExpressRouteCircuitListResultIterator, err error)
ListAll(ctx context.Context) (result network.ExpressRouteCircuitListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.ExpressRouteCircuitListResultIterator, err error)
ListArpTable(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, devicePath string) (result network.ExpressRouteCircuitsListArpTableFuture, err error)
ListRoutesTable(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, devicePath string) (result network.ExpressRouteCircuitsListRoutesTableFuture, err error)
ListRoutesTableSummary(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, devicePath string) (result network.ExpressRouteCircuitsListRoutesTableSummaryFuture, err error)
@@ -159,6 +176,7 @@ var _ ExpressRouteCircuitsClientAPI = (*network.ExpressRouteCircuitsClient)(nil)
// ExpressRouteServiceProvidersClientAPI contains the set of methods on the ExpressRouteServiceProvidersClient type.
type ExpressRouteServiceProvidersClientAPI interface {
List(ctx context.Context) (result network.ExpressRouteServiceProviderListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ExpressRouteServiceProviderListResultIterator, err error)
}
var _ ExpressRouteServiceProvidersClientAPI = (*network.ExpressRouteServiceProvidersClient)(nil)
@@ -168,8 +186,10 @@ type ExpressRouteCrossConnectionsClientAPI interface {
CreateOrUpdate(ctx context.Context, resourceGroupName string, crossConnectionName string, parameters network.ExpressRouteCrossConnection) (result network.ExpressRouteCrossConnectionsCreateOrUpdateFuture, err error)
Get(ctx context.Context, resourceGroupName string, crossConnectionName string) (result network.ExpressRouteCrossConnection, err error)
List(ctx context.Context) (result network.ExpressRouteCrossConnectionListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ExpressRouteCrossConnectionListResultIterator, err error)
ListArpTable(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string, devicePath string) (result network.ExpressRouteCrossConnectionsListArpTableFuture, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ExpressRouteCrossConnectionListResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ExpressRouteCrossConnectionListResultIterator, err error)
ListRoutesTable(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string, devicePath string) (result network.ExpressRouteCrossConnectionsListRoutesTableFuture, err error)
ListRoutesTableSummary(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string, devicePath string) (result network.ExpressRouteCrossConnectionsListRoutesTableSummaryFuture, err error)
UpdateTags(ctx context.Context, resourceGroupName string, crossConnectionName string, crossConnectionParameters network.TagsObject) (result network.ExpressRouteCrossConnectionsUpdateTagsFuture, err error)
@@ -183,6 +203,7 @@ type ExpressRouteCrossConnectionPeeringsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string) (result network.ExpressRouteCrossConnectionPeeringsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string) (result network.ExpressRouteCrossConnectionPeering, err error)
List(ctx context.Context, resourceGroupName string, crossConnectionName string) (result network.ExpressRouteCrossConnectionPeeringListPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, crossConnectionName string) (result network.ExpressRouteCrossConnectionPeeringListIterator, err error)
}
var _ ExpressRouteCrossConnectionPeeringsClientAPI = (*network.ExpressRouteCrossConnectionPeeringsClient)(nil)
@@ -212,6 +233,7 @@ var _ ExpressRouteConnectionsClientAPI = (*network.ExpressRouteConnectionsClient
type ExpressRoutePortsLocationsClientAPI interface {
Get(ctx context.Context, locationName string) (result network.ExpressRoutePortsLocation, err error)
List(ctx context.Context) (result network.ExpressRoutePortsLocationListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ExpressRoutePortsLocationListResultIterator, err error)
}
var _ ExpressRoutePortsLocationsClientAPI = (*network.ExpressRoutePortsLocationsClient)(nil)
@@ -222,7 +244,9 @@ type ExpressRoutePortsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, expressRoutePortName string) (result network.ExpressRoutePortsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, expressRoutePortName string) (result network.ExpressRoutePort, err error)
List(ctx context.Context) (result network.ExpressRoutePortListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ExpressRoutePortListResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ExpressRoutePortListResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ExpressRoutePortListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, expressRoutePortName string, parameters network.TagsObject) (result network.ExpressRoutePortsUpdateTagsFuture, err error)
}
@@ -232,6 +256,7 @@ var _ ExpressRoutePortsClientAPI = (*network.ExpressRoutePortsClient)(nil)
type ExpressRouteLinksClientAPI interface {
Get(ctx context.Context, resourceGroupName string, expressRoutePortName string, linkName string) (result network.ExpressRouteLink, err error)
List(ctx context.Context, resourceGroupName string, expressRoutePortName string) (result network.ExpressRouteLinkListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, expressRoutePortName string) (result network.ExpressRouteLinkListResultIterator, err error)
}
var _ ExpressRouteLinksClientAPI = (*network.ExpressRouteLinksClient)(nil)
@@ -242,7 +267,9 @@ type InterfaceEndpointsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, interfaceEndpointName string) (result network.InterfaceEndpointsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, interfaceEndpointName string, expand string) (result network.InterfaceEndpoint, err error)
List(ctx context.Context, resourceGroupName string) (result network.InterfaceEndpointListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.InterfaceEndpointListResultIterator, err error)
ListBySubscription(ctx context.Context) (result network.InterfaceEndpointListResultPage, err error)
+ ListBySubscriptionComplete(ctx context.Context) (result network.InterfaceEndpointListResultIterator, err error)
}
var _ InterfaceEndpointsClientAPI = (*network.InterfaceEndpointsClient)(nil)
@@ -253,7 +280,9 @@ type LoadBalancersClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancersDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, expand string) (result network.LoadBalancer, err error)
List(ctx context.Context, resourceGroupName string) (result network.LoadBalancerListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.LoadBalancerListResultIterator, err error)
ListAll(ctx context.Context) (result network.LoadBalancerListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.LoadBalancerListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, loadBalancerName string, parameters network.TagsObject) (result network.LoadBalancersUpdateTagsFuture, err error)
}
@@ -263,6 +292,7 @@ var _ LoadBalancersClientAPI = (*network.LoadBalancersClient)(nil)
type LoadBalancerBackendAddressPoolsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, backendAddressPoolName string) (result network.BackendAddressPool, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerBackendAddressPoolListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerBackendAddressPoolListResultIterator, err error)
}
var _ LoadBalancerBackendAddressPoolsClientAPI = (*network.LoadBalancerBackendAddressPoolsClient)(nil)
@@ -271,6 +301,7 @@ var _ LoadBalancerBackendAddressPoolsClientAPI = (*network.LoadBalancerBackendAd
type LoadBalancerFrontendIPConfigurationsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, frontendIPConfigurationName string) (result network.FrontendIPConfiguration, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerFrontendIPConfigurationListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerFrontendIPConfigurationListResultIterator, err error)
}
var _ LoadBalancerFrontendIPConfigurationsClientAPI = (*network.LoadBalancerFrontendIPConfigurationsClient)(nil)
@@ -281,6 +312,7 @@ type InboundNatRulesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, loadBalancerName string, inboundNatRuleName string) (result network.InboundNatRulesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, inboundNatRuleName string, expand string) (result network.InboundNatRule, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.InboundNatRuleListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.InboundNatRuleListResultIterator, err error)
}
var _ InboundNatRulesClientAPI = (*network.InboundNatRulesClient)(nil)
@@ -289,6 +321,7 @@ var _ InboundNatRulesClientAPI = (*network.InboundNatRulesClient)(nil)
type LoadBalancerLoadBalancingRulesClientAPI interface {
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, loadBalancingRuleName string) (result network.LoadBalancingRule, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerLoadBalancingRuleListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerLoadBalancingRuleListResultIterator, err error)
}
var _ LoadBalancerLoadBalancingRulesClientAPI = (*network.LoadBalancerLoadBalancingRulesClient)(nil)
@@ -297,6 +330,7 @@ var _ LoadBalancerLoadBalancingRulesClientAPI = (*network.LoadBalancerLoadBalanc
type LoadBalancerOutboundRulesClientAPI interface {
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, outboundRuleName string) (result network.OutboundRule, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerOutboundRuleListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerOutboundRuleListResultIterator, err error)
}
var _ LoadBalancerOutboundRulesClientAPI = (*network.LoadBalancerOutboundRulesClient)(nil)
@@ -304,6 +338,7 @@ var _ LoadBalancerOutboundRulesClientAPI = (*network.LoadBalancerOutboundRulesCl
// LoadBalancerNetworkInterfacesClientAPI contains the set of methods on the LoadBalancerNetworkInterfacesClient type.
type LoadBalancerNetworkInterfacesClientAPI interface {
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.InterfaceListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.InterfaceListResultIterator, err error)
}
var _ LoadBalancerNetworkInterfacesClientAPI = (*network.LoadBalancerNetworkInterfacesClient)(nil)
@@ -312,6 +347,7 @@ var _ LoadBalancerNetworkInterfacesClientAPI = (*network.LoadBalancerNetworkInte
type LoadBalancerProbesClientAPI interface {
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, probeName string) (result network.Probe, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerProbeListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerProbeListResultIterator, err error)
}
var _ LoadBalancerProbesClientAPI = (*network.LoadBalancerProbesClient)(nil)
@@ -325,11 +361,16 @@ type InterfacesClientAPI interface {
GetVirtualMachineScaleSetIPConfiguration(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, IPConfigurationName string, expand string) (result network.InterfaceIPConfiguration, err error)
GetVirtualMachineScaleSetNetworkInterface(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, expand string) (result network.Interface, err error)
List(ctx context.Context, resourceGroupName string) (result network.InterfaceListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.InterfaceListResultIterator, err error)
ListAll(ctx context.Context) (result network.InterfaceListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.InterfaceListResultIterator, err error)
ListEffectiveNetworkSecurityGroups(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfacesListEffectiveNetworkSecurityGroupsFuture, err error)
ListVirtualMachineScaleSetIPConfigurations(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, expand string) (result network.InterfaceIPConfigurationListResultPage, err error)
+ ListVirtualMachineScaleSetIPConfigurationsComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, expand string) (result network.InterfaceIPConfigurationListResultIterator, err error)
ListVirtualMachineScaleSetNetworkInterfaces(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result network.InterfaceListResultPage, err error)
+ ListVirtualMachineScaleSetNetworkInterfacesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result network.InterfaceListResultIterator, err error)
ListVirtualMachineScaleSetVMNetworkInterfaces(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string) (result network.InterfaceListResultPage, err error)
+ ListVirtualMachineScaleSetVMNetworkInterfacesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string) (result network.InterfaceListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, networkInterfaceName string, parameters network.TagsObject) (result network.InterfacesUpdateTagsFuture, err error)
}
@@ -339,6 +380,7 @@ var _ InterfacesClientAPI = (*network.InterfacesClient)(nil)
type InterfaceIPConfigurationsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, networkInterfaceName string, IPConfigurationName string) (result network.InterfaceIPConfiguration, err error)
List(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceIPConfigurationListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceIPConfigurationListResultIterator, err error)
}
var _ InterfaceIPConfigurationsClientAPI = (*network.InterfaceIPConfigurationsClient)(nil)
@@ -346,6 +388,7 @@ var _ InterfaceIPConfigurationsClientAPI = (*network.InterfaceIPConfigurationsCl
// InterfaceLoadBalancersClientAPI contains the set of methods on the InterfaceLoadBalancersClient type.
type InterfaceLoadBalancersClientAPI interface {
List(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceLoadBalancerListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceLoadBalancerListResultIterator, err error)
}
var _ InterfaceLoadBalancersClientAPI = (*network.InterfaceLoadBalancersClient)(nil)
@@ -356,6 +399,7 @@ type InterfaceTapConfigurationsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, networkInterfaceName string, tapConfigurationName string) (result network.InterfaceTapConfigurationsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, networkInterfaceName string, tapConfigurationName string) (result network.InterfaceTapConfiguration, err error)
List(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceTapConfigurationListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceTapConfigurationListResultIterator, err error)
}
var _ InterfaceTapConfigurationsClientAPI = (*network.InterfaceTapConfigurationsClient)(nil)
@@ -366,7 +410,9 @@ type ProfilesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, networkProfileName string) (result network.ProfilesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, networkProfileName string, expand string) (result network.Profile, err error)
List(ctx context.Context, resourceGroupName string) (result network.ProfileListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.ProfileListResultIterator, err error)
ListAll(ctx context.Context) (result network.ProfileListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.ProfileListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, networkProfileName string, parameters network.TagsObject) (result network.Profile, err error)
}
@@ -378,7 +424,9 @@ type SecurityGroupsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityGroupsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, expand string) (result network.SecurityGroup, err error)
List(ctx context.Context, resourceGroupName string) (result network.SecurityGroupListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.SecurityGroupListResultIterator, err error)
ListAll(ctx context.Context) (result network.SecurityGroupListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.SecurityGroupListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, parameters network.TagsObject) (result network.SecurityGroupsUpdateTagsFuture, err error)
}
@@ -390,6 +438,7 @@ type SecurityRulesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, securityRuleName string) (result network.SecurityRulesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, securityRuleName string) (result network.SecurityRule, err error)
List(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityRuleListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityRuleListResultIterator, err error)
}
var _ SecurityRulesClientAPI = (*network.SecurityRulesClient)(nil)
@@ -398,6 +447,7 @@ var _ SecurityRulesClientAPI = (*network.SecurityRulesClient)(nil)
type DefaultSecurityRulesClientAPI interface {
Get(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, defaultSecurityRuleName string) (result network.SecurityRule, err error)
List(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityRuleListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityRuleListResultIterator, err error)
}
var _ DefaultSecurityRulesClientAPI = (*network.DefaultSecurityRulesClient)(nil)
@@ -454,6 +504,7 @@ var _ ConnectionMonitorsClientAPI = (*network.ConnectionMonitorsClient)(nil)
// OperationsClientAPI contains the set of methods on the OperationsClient type.
type OperationsClientAPI interface {
List(ctx context.Context) (result network.OperationListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.OperationListResultIterator, err error)
}
var _ OperationsClientAPI = (*network.OperationsClient)(nil)
@@ -465,9 +516,13 @@ type PublicIPAddressesClientAPI interface {
Get(ctx context.Context, resourceGroupName string, publicIPAddressName string, expand string) (result network.PublicIPAddress, err error)
GetVirtualMachineScaleSetPublicIPAddress(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, IPConfigurationName string, publicIPAddressName string, expand string) (result network.PublicIPAddress, err error)
List(ctx context.Context, resourceGroupName string) (result network.PublicIPAddressListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.PublicIPAddressListResultIterator, err error)
ListAll(ctx context.Context) (result network.PublicIPAddressListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.PublicIPAddressListResultIterator, err error)
ListVirtualMachineScaleSetPublicIPAddresses(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result network.PublicIPAddressListResultPage, err error)
+ ListVirtualMachineScaleSetPublicIPAddressesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result network.PublicIPAddressListResultIterator, err error)
ListVirtualMachineScaleSetVMPublicIPAddresses(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, IPConfigurationName string) (result network.PublicIPAddressListResultPage, err error)
+ ListVirtualMachineScaleSetVMPublicIPAddressesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, IPConfigurationName string) (result network.PublicIPAddressListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, publicIPAddressName string, parameters network.TagsObject) (result network.PublicIPAddressesUpdateTagsFuture, err error)
}
@@ -479,7 +534,9 @@ type PublicIPPrefixesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, publicIPPrefixName string) (result network.PublicIPPrefixesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, publicIPPrefixName string, expand string) (result network.PublicIPPrefix, err error)
List(ctx context.Context, resourceGroupName string) (result network.PublicIPPrefixListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.PublicIPPrefixListResultIterator, err error)
ListAll(ctx context.Context) (result network.PublicIPPrefixListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.PublicIPPrefixListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, publicIPPrefixName string, parameters network.TagsObject) (result network.PublicIPPrefixesUpdateTagsFuture, err error)
}
@@ -491,7 +548,9 @@ type RouteFiltersClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, routeFilterName string) (result network.RouteFiltersDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, routeFilterName string, expand string) (result network.RouteFilter, err error)
List(ctx context.Context) (result network.RouteFilterListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.RouteFilterListResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.RouteFilterListResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.RouteFilterListResultIterator, err error)
Update(ctx context.Context, resourceGroupName string, routeFilterName string, routeFilterParameters network.PatchRouteFilter) (result network.RouteFiltersUpdateFuture, err error)
}
@@ -503,6 +562,7 @@ type RouteFilterRulesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, routeFilterName string, ruleName string) (result network.RouteFilterRulesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, routeFilterName string, ruleName string) (result network.RouteFilterRule, err error)
ListByRouteFilter(ctx context.Context, resourceGroupName string, routeFilterName string) (result network.RouteFilterRuleListResultPage, err error)
+ ListByRouteFilterComplete(ctx context.Context, resourceGroupName string, routeFilterName string) (result network.RouteFilterRuleListResultIterator, err error)
Update(ctx context.Context, resourceGroupName string, routeFilterName string, ruleName string, routeFilterRuleParameters network.PatchRouteFilterRule) (result network.RouteFilterRulesUpdateFuture, err error)
}
@@ -514,7 +574,9 @@ type RouteTablesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, routeTableName string) (result network.RouteTablesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, routeTableName string, expand string) (result network.RouteTable, err error)
List(ctx context.Context, resourceGroupName string) (result network.RouteTableListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.RouteTableListResultIterator, err error)
ListAll(ctx context.Context) (result network.RouteTableListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.RouteTableListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, routeTableName string, parameters network.TagsObject) (result network.RouteTablesUpdateTagsFuture, err error)
}
@@ -526,6 +588,7 @@ type RoutesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, routeTableName string, routeName string) (result network.RoutesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, routeTableName string, routeName string) (result network.Route, err error)
List(ctx context.Context, resourceGroupName string, routeTableName string) (result network.RouteListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, routeTableName string) (result network.RouteListResultIterator, err error)
}
var _ RoutesClientAPI = (*network.RoutesClient)(nil)
@@ -533,6 +596,7 @@ var _ RoutesClientAPI = (*network.RoutesClient)(nil)
// BgpServiceCommunitiesClientAPI contains the set of methods on the BgpServiceCommunitiesClient type.
type BgpServiceCommunitiesClientAPI interface {
List(ctx context.Context) (result network.BgpServiceCommunityListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.BgpServiceCommunityListResultIterator, err error)
}
var _ BgpServiceCommunitiesClientAPI = (*network.BgpServiceCommunitiesClient)(nil)
@@ -543,7 +607,9 @@ type ServiceEndpointPoliciesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string) (result network.ServiceEndpointPoliciesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string, expand string) (result network.ServiceEndpointPolicy, err error)
List(ctx context.Context) (result network.ServiceEndpointPolicyListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ServiceEndpointPolicyListResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ServiceEndpointPolicyListResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ServiceEndpointPolicyListResultIterator, err error)
Update(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string, parameters network.TagsObject) (result network.ServiceEndpointPoliciesUpdateFuture, err error)
}
@@ -555,6 +621,7 @@ type ServiceEndpointPolicyDefinitionsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string, serviceEndpointPolicyDefinitionName string) (result network.ServiceEndpointPolicyDefinitionsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string, serviceEndpointPolicyDefinitionName string) (result network.ServiceEndpointPolicyDefinition, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string) (result network.ServiceEndpointPolicyDefinitionListResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string) (result network.ServiceEndpointPolicyDefinitionListResultIterator, err error)
}
var _ ServiceEndpointPolicyDefinitionsClientAPI = (*network.ServiceEndpointPolicyDefinitionsClient)(nil)
@@ -562,6 +629,7 @@ var _ ServiceEndpointPolicyDefinitionsClientAPI = (*network.ServiceEndpointPolic
// UsagesClientAPI contains the set of methods on the UsagesClient type.
type UsagesClientAPI interface {
List(ctx context.Context, location string) (result network.UsagesListResultPage, err error)
+ ListComplete(ctx context.Context, location string) (result network.UsagesListResultIterator, err error)
}
var _ UsagesClientAPI = (*network.UsagesClient)(nil)
@@ -573,8 +641,11 @@ type VirtualNetworksClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworksDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualNetworkName string, expand string) (result network.VirtualNetwork, err error)
List(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkListResultIterator, err error)
ListAll(ctx context.Context) (result network.VirtualNetworkListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.VirtualNetworkListResultIterator, err error)
ListUsage(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworkListUsageResultPage, err error)
+ ListUsageComplete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworkListUsageResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, virtualNetworkName string, parameters network.TagsObject) (result network.VirtualNetworksUpdateTagsFuture, err error)
}
@@ -586,6 +657,7 @@ type SubnetsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualNetworkName string, subnetName string) (result network.SubnetsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualNetworkName string, subnetName string, expand string) (result network.Subnet, err error)
List(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.SubnetListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.SubnetListResultIterator, err error)
}
var _ SubnetsClientAPI = (*network.SubnetsClient)(nil)
@@ -596,6 +668,7 @@ type VirtualNetworkPeeringsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualNetworkName string, virtualNetworkPeeringName string) (result network.VirtualNetworkPeeringsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualNetworkName string, virtualNetworkPeeringName string) (result network.VirtualNetworkPeering, err error)
List(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworkPeeringListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworkPeeringListResultIterator, err error)
}
var _ VirtualNetworkPeeringsClientAPI = (*network.VirtualNetworkPeeringsClient)(nil)
@@ -606,7 +679,9 @@ type VirtualNetworkTapsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, tapName string) (result network.VirtualNetworkTapsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, tapName string) (result network.VirtualNetworkTap, err error)
ListAll(ctx context.Context) (result network.VirtualNetworkTapListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.VirtualNetworkTapListResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkTapListResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkTapListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, tapName string, tapParameters network.TagsObject) (result network.VirtualNetworkTapsUpdateTagsFuture, err error)
}
@@ -625,7 +700,9 @@ type VirtualNetworkGatewaysClientAPI interface {
GetVpnclientIpsecParameters(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGatewaysGetVpnclientIpsecParametersFuture, err error)
GetVpnProfilePackageURL(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGatewaysGetVpnProfilePackageURLFuture, err error)
List(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayListResultIterator, err error)
ListConnections(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGatewayListConnectionsResultPage, err error)
+ ListConnectionsComplete(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGatewayListConnectionsResultIterator, err error)
Reset(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, gatewayVip string) (result network.VirtualNetworkGatewaysResetFuture, err error)
ResetVpnClientSharedKey(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGatewaysResetVpnClientSharedKeyFuture, err error)
SetVpnclientIpsecParameters(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, vpnclientIpsecParams network.VpnClientIPsecParameters) (result network.VirtualNetworkGatewaysSetVpnclientIpsecParametersFuture, err error)
@@ -643,6 +720,7 @@ type VirtualNetworkGatewayConnectionsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string) (result network.VirtualNetworkGatewayConnection, err error)
GetSharedKey(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string) (result network.ConnectionSharedKey, err error)
List(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayConnectionListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayConnectionListResultIterator, err error)
ResetSharedKey(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string, parameters network.ConnectionResetSharedKey) (result network.VirtualNetworkGatewayConnectionsResetSharedKeyFuture, err error)
SetSharedKey(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string, parameters network.ConnectionSharedKey) (result network.VirtualNetworkGatewayConnectionsSetSharedKeyFuture, err error)
UpdateTags(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string, parameters network.TagsObject) (result network.VirtualNetworkGatewayConnectionsUpdateTagsFuture, err error)
@@ -656,6 +734,7 @@ type LocalNetworkGatewaysClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, localNetworkGatewayName string) (result network.LocalNetworkGatewaysDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, localNetworkGatewayName string) (result network.LocalNetworkGateway, err error)
List(ctx context.Context, resourceGroupName string) (result network.LocalNetworkGatewayListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.LocalNetworkGatewayListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, localNetworkGatewayName string, parameters network.TagsObject) (result network.LocalNetworkGatewaysUpdateTagsFuture, err error)
}
@@ -667,7 +746,9 @@ type VirtualWansClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualWANName string) (result network.VirtualWansDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualWANName string) (result network.VirtualWAN, err error)
List(ctx context.Context) (result network.ListVirtualWANsResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ListVirtualWANsResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ListVirtualWANsResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ListVirtualWANsResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, virtualWANName string, wANParameters network.TagsObject) (result network.VirtualWansUpdateTagsFuture, err error)
}
@@ -679,7 +760,9 @@ type VpnSitesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, vpnSiteName string) (result network.VpnSitesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, vpnSiteName string) (result network.VpnSite, err error)
List(ctx context.Context) (result network.ListVpnSitesResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ListVpnSitesResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ListVpnSitesResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ListVpnSitesResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, vpnSiteName string, vpnSiteParameters network.TagsObject) (result network.VpnSitesUpdateTagsFuture, err error)
}
@@ -698,7 +781,9 @@ type VirtualHubsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualHubName string) (result network.VirtualHubsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualHubName string) (result network.VirtualHub, err error)
List(ctx context.Context) (result network.ListVirtualHubsResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ListVirtualHubsResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ListVirtualHubsResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ListVirtualHubsResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, virtualHubName string, virtualHubParameters network.TagsObject) (result network.VirtualHubsUpdateTagsFuture, err error)
}
@@ -708,6 +793,7 @@ var _ VirtualHubsClientAPI = (*network.VirtualHubsClient)(nil)
type HubVirtualNetworkConnectionsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, virtualHubName string, connectionName string) (result network.HubVirtualNetworkConnection, err error)
List(ctx context.Context, resourceGroupName string, virtualHubName string) (result network.ListHubVirtualNetworkConnectionsResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, virtualHubName string) (result network.ListHubVirtualNetworkConnectionsResultIterator, err error)
}
var _ HubVirtualNetworkConnectionsClientAPI = (*network.HubVirtualNetworkConnectionsClient)(nil)
@@ -718,7 +804,9 @@ type VpnGatewaysClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, gatewayName string) (result network.VpnGatewaysDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, gatewayName string) (result network.VpnGateway, err error)
List(ctx context.Context) (result network.ListVpnGatewaysResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ListVpnGatewaysResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ListVpnGatewaysResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ListVpnGatewaysResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, gatewayName string, vpnGatewayParameters network.TagsObject) (result network.VpnGatewaysUpdateTagsFuture, err error)
}
@@ -730,6 +818,7 @@ type VpnConnectionsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, gatewayName string, connectionName string) (result network.VpnConnectionsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, gatewayName string, connectionName string) (result network.VpnConnection, err error)
ListByVpnGateway(ctx context.Context, resourceGroupName string, gatewayName string) (result network.ListVpnConnectionsResultPage, err error)
+ ListByVpnGatewayComplete(ctx context.Context, resourceGroupName string, gatewayName string) (result network.ListVpnConnectionsResultIterator, err error)
}
var _ VpnConnectionsClientAPI = (*network.VpnConnectionsClient)(nil)
@@ -740,6 +829,7 @@ type P2sVpnServerConfigurationsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualWanName string, p2SVpnServerConfigurationName string) (result network.P2sVpnServerConfigurationsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualWanName string, p2SVpnServerConfigurationName string) (result network.P2SVpnServerConfiguration, err error)
ListByVirtualWan(ctx context.Context, resourceGroupName string, virtualWanName string) (result network.ListP2SVpnServerConfigurationsResultPage, err error)
+ ListByVirtualWanComplete(ctx context.Context, resourceGroupName string, virtualWanName string) (result network.ListP2SVpnServerConfigurationsResultIterator, err error)
}
var _ P2sVpnServerConfigurationsClientAPI = (*network.P2sVpnServerConfigurationsClient)(nil)
@@ -751,7 +841,9 @@ type P2sVpnGatewaysClientAPI interface {
GenerateVpnProfile(ctx context.Context, resourceGroupName string, gatewayName string, parameters network.P2SVpnProfileParameters) (result network.P2sVpnGatewaysGenerateVpnProfileFuture, err error)
Get(ctx context.Context, resourceGroupName string, gatewayName string) (result network.P2SVpnGateway, err error)
List(ctx context.Context) (result network.ListP2SVpnGatewaysResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ListP2SVpnGatewaysResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ListP2SVpnGatewaysResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ListP2SVpnGatewaysResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, gatewayName string, p2SVpnGatewayParameters network.TagsObject) (result network.P2sVpnGatewaysUpdateTagsFuture, err error)
}
diff --git a/services/network/mgmt/2018-08-01/network/operations.go b/services/network/mgmt/2018-08-01/network/operations.go
index 96851bf74565..d432f59d00ca 100644
--- a/services/network/mgmt/2018-08-01/network/operations.go
+++ b/services/network/mgmt/2018-08-01/network/operations.go
@@ -35,7 +35,8 @@ func NewOperationsClient(subscriptionID string) OperationsClient {
return NewOperationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewOperationsClientWithBaseURI creates an instance of the OperationsClient client.
+// NewOperationsClientWithBaseURI creates an instance of the OperationsClient client using a custom endpoint. Use this
+// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient {
return OperationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-08-01/network/p2svpngateways.go b/services/network/mgmt/2018-08-01/network/p2svpngateways.go
index 588b5d8da16c..fe6406a46218 100644
--- a/services/network/mgmt/2018-08-01/network/p2svpngateways.go
+++ b/services/network/mgmt/2018-08-01/network/p2svpngateways.go
@@ -35,7 +35,8 @@ func NewP2sVpnGatewaysClient(subscriptionID string) P2sVpnGatewaysClient {
return NewP2sVpnGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewP2sVpnGatewaysClientWithBaseURI creates an instance of the P2sVpnGatewaysClient client.
+// NewP2sVpnGatewaysClientWithBaseURI creates an instance of the P2sVpnGatewaysClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewP2sVpnGatewaysClientWithBaseURI(baseURI string, subscriptionID string) P2sVpnGatewaysClient {
return P2sVpnGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-08-01/network/p2svpnserverconfigurations.go b/services/network/mgmt/2018-08-01/network/p2svpnserverconfigurations.go
index 79368eda5079..44108d991f61 100644
--- a/services/network/mgmt/2018-08-01/network/p2svpnserverconfigurations.go
+++ b/services/network/mgmt/2018-08-01/network/p2svpnserverconfigurations.go
@@ -35,7 +35,9 @@ func NewP2sVpnServerConfigurationsClient(subscriptionID string) P2sVpnServerConf
return NewP2sVpnServerConfigurationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewP2sVpnServerConfigurationsClientWithBaseURI creates an instance of the P2sVpnServerConfigurationsClient client.
+// NewP2sVpnServerConfigurationsClientWithBaseURI creates an instance of the P2sVpnServerConfigurationsClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewP2sVpnServerConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) P2sVpnServerConfigurationsClient {
return P2sVpnServerConfigurationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-08-01/network/packetcaptures.go b/services/network/mgmt/2018-08-01/network/packetcaptures.go
index 5d13d0d82f5c..5311652e3a88 100644
--- a/services/network/mgmt/2018-08-01/network/packetcaptures.go
+++ b/services/network/mgmt/2018-08-01/network/packetcaptures.go
@@ -36,7 +36,8 @@ func NewPacketCapturesClient(subscriptionID string) PacketCapturesClient {
return NewPacketCapturesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewPacketCapturesClientWithBaseURI creates an instance of the PacketCapturesClient client.
+// NewPacketCapturesClientWithBaseURI creates an instance of the PacketCapturesClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewPacketCapturesClientWithBaseURI(baseURI string, subscriptionID string) PacketCapturesClient {
return PacketCapturesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-08-01/network/profiles.go b/services/network/mgmt/2018-08-01/network/profiles.go
index b540040c9634..2601355ee75c 100644
--- a/services/network/mgmt/2018-08-01/network/profiles.go
+++ b/services/network/mgmt/2018-08-01/network/profiles.go
@@ -35,7 +35,8 @@ func NewProfilesClient(subscriptionID string) ProfilesClient {
return NewProfilesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewProfilesClientWithBaseURI creates an instance of the ProfilesClient client.
+// NewProfilesClientWithBaseURI creates an instance of the ProfilesClient client using a custom endpoint. Use this
+// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewProfilesClientWithBaseURI(baseURI string, subscriptionID string) ProfilesClient {
return ProfilesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-08-01/network/publicipaddresses.go b/services/network/mgmt/2018-08-01/network/publicipaddresses.go
index b89bf865c079..ccc1d387f3d6 100644
--- a/services/network/mgmt/2018-08-01/network/publicipaddresses.go
+++ b/services/network/mgmt/2018-08-01/network/publicipaddresses.go
@@ -36,7 +36,9 @@ func NewPublicIPAddressesClient(subscriptionID string) PublicIPAddressesClient {
return NewPublicIPAddressesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewPublicIPAddressesClientWithBaseURI creates an instance of the PublicIPAddressesClient client.
+// NewPublicIPAddressesClientWithBaseURI creates an instance of the PublicIPAddressesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewPublicIPAddressesClientWithBaseURI(baseURI string, subscriptionID string) PublicIPAddressesClient {
return PublicIPAddressesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-08-01/network/publicipprefixes.go b/services/network/mgmt/2018-08-01/network/publicipprefixes.go
index 9f74cd4842d3..e6d7528ff43c 100644
--- a/services/network/mgmt/2018-08-01/network/publicipprefixes.go
+++ b/services/network/mgmt/2018-08-01/network/publicipprefixes.go
@@ -35,7 +35,9 @@ func NewPublicIPPrefixesClient(subscriptionID string) PublicIPPrefixesClient {
return NewPublicIPPrefixesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewPublicIPPrefixesClientWithBaseURI creates an instance of the PublicIPPrefixesClient client.
+// NewPublicIPPrefixesClientWithBaseURI creates an instance of the PublicIPPrefixesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewPublicIPPrefixesClientWithBaseURI(baseURI string, subscriptionID string) PublicIPPrefixesClient {
return PublicIPPrefixesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-08-01/network/routefilterrules.go b/services/network/mgmt/2018-08-01/network/routefilterrules.go
index 4b44d48d6270..834faa2de287 100644
--- a/services/network/mgmt/2018-08-01/network/routefilterrules.go
+++ b/services/network/mgmt/2018-08-01/network/routefilterrules.go
@@ -36,7 +36,9 @@ func NewRouteFilterRulesClient(subscriptionID string) RouteFilterRulesClient {
return NewRouteFilterRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewRouteFilterRulesClientWithBaseURI creates an instance of the RouteFilterRulesClient client.
+// NewRouteFilterRulesClientWithBaseURI creates an instance of the RouteFilterRulesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewRouteFilterRulesClientWithBaseURI(baseURI string, subscriptionID string) RouteFilterRulesClient {
return RouteFilterRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-08-01/network/routefilters.go b/services/network/mgmt/2018-08-01/network/routefilters.go
index b470c9de5876..e3c6d64429c0 100644
--- a/services/network/mgmt/2018-08-01/network/routefilters.go
+++ b/services/network/mgmt/2018-08-01/network/routefilters.go
@@ -35,7 +35,8 @@ func NewRouteFiltersClient(subscriptionID string) RouteFiltersClient {
return NewRouteFiltersClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewRouteFiltersClientWithBaseURI creates an instance of the RouteFiltersClient client.
+// NewRouteFiltersClientWithBaseURI creates an instance of the RouteFiltersClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewRouteFiltersClientWithBaseURI(baseURI string, subscriptionID string) RouteFiltersClient {
return RouteFiltersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-08-01/network/routes.go b/services/network/mgmt/2018-08-01/network/routes.go
index 79e4844e9ad6..1c566fa42ba4 100644
--- a/services/network/mgmt/2018-08-01/network/routes.go
+++ b/services/network/mgmt/2018-08-01/network/routes.go
@@ -35,7 +35,8 @@ func NewRoutesClient(subscriptionID string) RoutesClient {
return NewRoutesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewRoutesClientWithBaseURI creates an instance of the RoutesClient client.
+// NewRoutesClientWithBaseURI creates an instance of the RoutesClient client using a custom endpoint. Use this when
+// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewRoutesClientWithBaseURI(baseURI string, subscriptionID string) RoutesClient {
return RoutesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-08-01/network/routetables.go b/services/network/mgmt/2018-08-01/network/routetables.go
index 0e54ea95115a..fb000fe77dca 100644
--- a/services/network/mgmt/2018-08-01/network/routetables.go
+++ b/services/network/mgmt/2018-08-01/network/routetables.go
@@ -35,7 +35,8 @@ func NewRouteTablesClient(subscriptionID string) RouteTablesClient {
return NewRouteTablesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewRouteTablesClientWithBaseURI creates an instance of the RouteTablesClient client.
+// NewRouteTablesClientWithBaseURI creates an instance of the RouteTablesClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewRouteTablesClientWithBaseURI(baseURI string, subscriptionID string) RouteTablesClient {
return RouteTablesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-08-01/network/securitygroups.go b/services/network/mgmt/2018-08-01/network/securitygroups.go
index 7611a7bad316..13dba7af22ff 100644
--- a/services/network/mgmt/2018-08-01/network/securitygroups.go
+++ b/services/network/mgmt/2018-08-01/network/securitygroups.go
@@ -35,7 +35,8 @@ func NewSecurityGroupsClient(subscriptionID string) SecurityGroupsClient {
return NewSecurityGroupsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewSecurityGroupsClientWithBaseURI creates an instance of the SecurityGroupsClient client.
+// NewSecurityGroupsClientWithBaseURI creates an instance of the SecurityGroupsClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewSecurityGroupsClientWithBaseURI(baseURI string, subscriptionID string) SecurityGroupsClient {
return SecurityGroupsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-08-01/network/securityrules.go b/services/network/mgmt/2018-08-01/network/securityrules.go
index 58adaa358910..09dbfa4f9d53 100644
--- a/services/network/mgmt/2018-08-01/network/securityrules.go
+++ b/services/network/mgmt/2018-08-01/network/securityrules.go
@@ -35,7 +35,8 @@ func NewSecurityRulesClient(subscriptionID string) SecurityRulesClient {
return NewSecurityRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewSecurityRulesClientWithBaseURI creates an instance of the SecurityRulesClient client.
+// NewSecurityRulesClientWithBaseURI creates an instance of the SecurityRulesClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewSecurityRulesClientWithBaseURI(baseURI string, subscriptionID string) SecurityRulesClient {
return SecurityRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-08-01/network/serviceendpointpolicies.go b/services/network/mgmt/2018-08-01/network/serviceendpointpolicies.go
index 344480755e5f..d781f3faff5c 100644
--- a/services/network/mgmt/2018-08-01/network/serviceendpointpolicies.go
+++ b/services/network/mgmt/2018-08-01/network/serviceendpointpolicies.go
@@ -35,7 +35,9 @@ func NewServiceEndpointPoliciesClient(subscriptionID string) ServiceEndpointPoli
return NewServiceEndpointPoliciesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewServiceEndpointPoliciesClientWithBaseURI creates an instance of the ServiceEndpointPoliciesClient client.
+// NewServiceEndpointPoliciesClientWithBaseURI creates an instance of the ServiceEndpointPoliciesClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewServiceEndpointPoliciesClientWithBaseURI(baseURI string, subscriptionID string) ServiceEndpointPoliciesClient {
return ServiceEndpointPoliciesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-08-01/network/serviceendpointpolicydefinitions.go b/services/network/mgmt/2018-08-01/network/serviceendpointpolicydefinitions.go
index 76d55adff0b7..79ae7424a6b2 100644
--- a/services/network/mgmt/2018-08-01/network/serviceendpointpolicydefinitions.go
+++ b/services/network/mgmt/2018-08-01/network/serviceendpointpolicydefinitions.go
@@ -36,7 +36,8 @@ func NewServiceEndpointPolicyDefinitionsClient(subscriptionID string) ServiceEnd
}
// NewServiceEndpointPolicyDefinitionsClientWithBaseURI creates an instance of the
-// ServiceEndpointPolicyDefinitionsClient client.
+// ServiceEndpointPolicyDefinitionsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewServiceEndpointPolicyDefinitionsClientWithBaseURI(baseURI string, subscriptionID string) ServiceEndpointPolicyDefinitionsClient {
return ServiceEndpointPolicyDefinitionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-08-01/network/subnets.go b/services/network/mgmt/2018-08-01/network/subnets.go
index a4381818b559..deface8be28b 100644
--- a/services/network/mgmt/2018-08-01/network/subnets.go
+++ b/services/network/mgmt/2018-08-01/network/subnets.go
@@ -35,7 +35,8 @@ func NewSubnetsClient(subscriptionID string) SubnetsClient {
return NewSubnetsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewSubnetsClientWithBaseURI creates an instance of the SubnetsClient client.
+// NewSubnetsClientWithBaseURI creates an instance of the SubnetsClient client using a custom endpoint. Use this when
+// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewSubnetsClientWithBaseURI(baseURI string, subscriptionID string) SubnetsClient {
return SubnetsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-08-01/network/usages.go b/services/network/mgmt/2018-08-01/network/usages.go
index b6643eeddf14..2d52f04dd377 100644
--- a/services/network/mgmt/2018-08-01/network/usages.go
+++ b/services/network/mgmt/2018-08-01/network/usages.go
@@ -36,7 +36,8 @@ func NewUsagesClient(subscriptionID string) UsagesClient {
return NewUsagesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewUsagesClientWithBaseURI creates an instance of the UsagesClient client.
+// NewUsagesClientWithBaseURI creates an instance of the UsagesClient client using a custom endpoint. Use this when
+// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewUsagesClientWithBaseURI(baseURI string, subscriptionID string) UsagesClient {
return UsagesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-08-01/network/virtualhubs.go b/services/network/mgmt/2018-08-01/network/virtualhubs.go
index 38191211d4d3..ea73907977d1 100644
--- a/services/network/mgmt/2018-08-01/network/virtualhubs.go
+++ b/services/network/mgmt/2018-08-01/network/virtualhubs.go
@@ -35,7 +35,8 @@ func NewVirtualHubsClient(subscriptionID string) VirtualHubsClient {
return NewVirtualHubsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualHubsClientWithBaseURI creates an instance of the VirtualHubsClient client.
+// NewVirtualHubsClientWithBaseURI creates an instance of the VirtualHubsClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVirtualHubsClientWithBaseURI(baseURI string, subscriptionID string) VirtualHubsClient {
return VirtualHubsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-08-01/network/virtualnetworkgatewayconnections.go b/services/network/mgmt/2018-08-01/network/virtualnetworkgatewayconnections.go
index 25f01057f291..0af127f55d49 100644
--- a/services/network/mgmt/2018-08-01/network/virtualnetworkgatewayconnections.go
+++ b/services/network/mgmt/2018-08-01/network/virtualnetworkgatewayconnections.go
@@ -37,7 +37,8 @@ func NewVirtualNetworkGatewayConnectionsClient(subscriptionID string) VirtualNet
}
// NewVirtualNetworkGatewayConnectionsClientWithBaseURI creates an instance of the
-// VirtualNetworkGatewayConnectionsClient client.
+// VirtualNetworkGatewayConnectionsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVirtualNetworkGatewayConnectionsClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworkGatewayConnectionsClient {
return VirtualNetworkGatewayConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-08-01/network/virtualnetworkgateways.go b/services/network/mgmt/2018-08-01/network/virtualnetworkgateways.go
index 9f58e9c19248..4cbbd6d8f250 100644
--- a/services/network/mgmt/2018-08-01/network/virtualnetworkgateways.go
+++ b/services/network/mgmt/2018-08-01/network/virtualnetworkgateways.go
@@ -36,7 +36,9 @@ func NewVirtualNetworkGatewaysClient(subscriptionID string) VirtualNetworkGatewa
return NewVirtualNetworkGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualNetworkGatewaysClientWithBaseURI creates an instance of the VirtualNetworkGatewaysClient client.
+// NewVirtualNetworkGatewaysClientWithBaseURI creates an instance of the VirtualNetworkGatewaysClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewVirtualNetworkGatewaysClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworkGatewaysClient {
return VirtualNetworkGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-08-01/network/virtualnetworkpeerings.go b/services/network/mgmt/2018-08-01/network/virtualnetworkpeerings.go
index 8979dcad3f2e..01fff3982a7c 100644
--- a/services/network/mgmt/2018-08-01/network/virtualnetworkpeerings.go
+++ b/services/network/mgmt/2018-08-01/network/virtualnetworkpeerings.go
@@ -35,7 +35,9 @@ func NewVirtualNetworkPeeringsClient(subscriptionID string) VirtualNetworkPeerin
return NewVirtualNetworkPeeringsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualNetworkPeeringsClientWithBaseURI creates an instance of the VirtualNetworkPeeringsClient client.
+// NewVirtualNetworkPeeringsClientWithBaseURI creates an instance of the VirtualNetworkPeeringsClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewVirtualNetworkPeeringsClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworkPeeringsClient {
return VirtualNetworkPeeringsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-08-01/network/virtualnetworks.go b/services/network/mgmt/2018-08-01/network/virtualnetworks.go
index cc586a16dea5..9b23e824f98f 100644
--- a/services/network/mgmt/2018-08-01/network/virtualnetworks.go
+++ b/services/network/mgmt/2018-08-01/network/virtualnetworks.go
@@ -35,7 +35,8 @@ func NewVirtualNetworksClient(subscriptionID string) VirtualNetworksClient {
return NewVirtualNetworksClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualNetworksClientWithBaseURI creates an instance of the VirtualNetworksClient client.
+// NewVirtualNetworksClientWithBaseURI creates an instance of the VirtualNetworksClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVirtualNetworksClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworksClient {
return VirtualNetworksClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-08-01/network/virtualnetworktaps.go b/services/network/mgmt/2018-08-01/network/virtualnetworktaps.go
index 12d02c76b8ad..40ed2ee0ac2e 100644
--- a/services/network/mgmt/2018-08-01/network/virtualnetworktaps.go
+++ b/services/network/mgmt/2018-08-01/network/virtualnetworktaps.go
@@ -36,7 +36,9 @@ func NewVirtualNetworkTapsClient(subscriptionID string) VirtualNetworkTapsClient
return NewVirtualNetworkTapsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualNetworkTapsClientWithBaseURI creates an instance of the VirtualNetworkTapsClient client.
+// NewVirtualNetworkTapsClientWithBaseURI creates an instance of the VirtualNetworkTapsClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewVirtualNetworkTapsClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworkTapsClient {
return VirtualNetworkTapsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-08-01/network/virtualwans.go b/services/network/mgmt/2018-08-01/network/virtualwans.go
index 295c55a63007..6211cb8913f8 100644
--- a/services/network/mgmt/2018-08-01/network/virtualwans.go
+++ b/services/network/mgmt/2018-08-01/network/virtualwans.go
@@ -35,7 +35,8 @@ func NewVirtualWansClient(subscriptionID string) VirtualWansClient {
return NewVirtualWansClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualWansClientWithBaseURI creates an instance of the VirtualWansClient client.
+// NewVirtualWansClientWithBaseURI creates an instance of the VirtualWansClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVirtualWansClientWithBaseURI(baseURI string, subscriptionID string) VirtualWansClient {
return VirtualWansClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-08-01/network/vpnconnections.go b/services/network/mgmt/2018-08-01/network/vpnconnections.go
index c2997a38af03..2f5282e58d3b 100644
--- a/services/network/mgmt/2018-08-01/network/vpnconnections.go
+++ b/services/network/mgmt/2018-08-01/network/vpnconnections.go
@@ -35,7 +35,8 @@ func NewVpnConnectionsClient(subscriptionID string) VpnConnectionsClient {
return NewVpnConnectionsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVpnConnectionsClientWithBaseURI creates an instance of the VpnConnectionsClient client.
+// NewVpnConnectionsClientWithBaseURI creates an instance of the VpnConnectionsClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVpnConnectionsClientWithBaseURI(baseURI string, subscriptionID string) VpnConnectionsClient {
return VpnConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-08-01/network/vpngateways.go b/services/network/mgmt/2018-08-01/network/vpngateways.go
index 7ec09a11db5b..bfdb88f4f63f 100644
--- a/services/network/mgmt/2018-08-01/network/vpngateways.go
+++ b/services/network/mgmt/2018-08-01/network/vpngateways.go
@@ -35,7 +35,8 @@ func NewVpnGatewaysClient(subscriptionID string) VpnGatewaysClient {
return NewVpnGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVpnGatewaysClientWithBaseURI creates an instance of the VpnGatewaysClient client.
+// NewVpnGatewaysClientWithBaseURI creates an instance of the VpnGatewaysClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVpnGatewaysClientWithBaseURI(baseURI string, subscriptionID string) VpnGatewaysClient {
return VpnGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-08-01/network/vpnsites.go b/services/network/mgmt/2018-08-01/network/vpnsites.go
index 3f8f7f02b354..d9968004e797 100644
--- a/services/network/mgmt/2018-08-01/network/vpnsites.go
+++ b/services/network/mgmt/2018-08-01/network/vpnsites.go
@@ -35,7 +35,8 @@ func NewVpnSitesClient(subscriptionID string) VpnSitesClient {
return NewVpnSitesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVpnSitesClientWithBaseURI creates an instance of the VpnSitesClient client.
+// NewVpnSitesClientWithBaseURI creates an instance of the VpnSitesClient client using a custom endpoint. Use this
+// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVpnSitesClientWithBaseURI(baseURI string, subscriptionID string) VpnSitesClient {
return VpnSitesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-08-01/network/vpnsitesconfiguration.go b/services/network/mgmt/2018-08-01/network/vpnsitesconfiguration.go
index 4bc1c05a1e3e..4cd70210b4c5 100644
--- a/services/network/mgmt/2018-08-01/network/vpnsitesconfiguration.go
+++ b/services/network/mgmt/2018-08-01/network/vpnsitesconfiguration.go
@@ -35,7 +35,9 @@ func NewVpnSitesConfigurationClient(subscriptionID string) VpnSitesConfiguration
return NewVpnSitesConfigurationClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVpnSitesConfigurationClientWithBaseURI creates an instance of the VpnSitesConfigurationClient client.
+// NewVpnSitesConfigurationClientWithBaseURI creates an instance of the VpnSitesConfigurationClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewVpnSitesConfigurationClientWithBaseURI(baseURI string, subscriptionID string) VpnSitesConfigurationClient {
return VpnSitesConfigurationClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-08-01/network/watchers.go b/services/network/mgmt/2018-08-01/network/watchers.go
index fd377e9826a9..fbf02721eed1 100644
--- a/services/network/mgmt/2018-08-01/network/watchers.go
+++ b/services/network/mgmt/2018-08-01/network/watchers.go
@@ -36,7 +36,8 @@ func NewWatchersClient(subscriptionID string) WatchersClient {
return NewWatchersClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewWatchersClientWithBaseURI creates an instance of the WatchersClient client.
+// NewWatchersClientWithBaseURI creates an instance of the WatchersClient client using a custom endpoint. Use this
+// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewWatchersClientWithBaseURI(baseURI string, subscriptionID string) WatchersClient {
return WatchersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-10-01/network/applicationgateways.go b/services/network/mgmt/2018-10-01/network/applicationgateways.go
index baae0dd35f7d..6bce06a046a8 100644
--- a/services/network/mgmt/2018-10-01/network/applicationgateways.go
+++ b/services/network/mgmt/2018-10-01/network/applicationgateways.go
@@ -36,7 +36,9 @@ func NewApplicationGatewaysClient(subscriptionID string) ApplicationGatewaysClie
return NewApplicationGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewApplicationGatewaysClientWithBaseURI creates an instance of the ApplicationGatewaysClient client.
+// NewApplicationGatewaysClientWithBaseURI creates an instance of the ApplicationGatewaysClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewApplicationGatewaysClientWithBaseURI(baseURI string, subscriptionID string) ApplicationGatewaysClient {
return ApplicationGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-10-01/network/applicationsecuritygroups.go b/services/network/mgmt/2018-10-01/network/applicationsecuritygroups.go
index 067a6c7ba56b..01b992f5abe9 100644
--- a/services/network/mgmt/2018-10-01/network/applicationsecuritygroups.go
+++ b/services/network/mgmt/2018-10-01/network/applicationsecuritygroups.go
@@ -35,7 +35,9 @@ func NewApplicationSecurityGroupsClient(subscriptionID string) ApplicationSecuri
return NewApplicationSecurityGroupsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewApplicationSecurityGroupsClientWithBaseURI creates an instance of the ApplicationSecurityGroupsClient client.
+// NewApplicationSecurityGroupsClientWithBaseURI creates an instance of the ApplicationSecurityGroupsClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewApplicationSecurityGroupsClientWithBaseURI(baseURI string, subscriptionID string) ApplicationSecurityGroupsClient {
return ApplicationSecurityGroupsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-10-01/network/availabledelegations.go b/services/network/mgmt/2018-10-01/network/availabledelegations.go
index aa1e01eaf472..bdd8ee889411 100644
--- a/services/network/mgmt/2018-10-01/network/availabledelegations.go
+++ b/services/network/mgmt/2018-10-01/network/availabledelegations.go
@@ -35,7 +35,9 @@ func NewAvailableDelegationsClient(subscriptionID string) AvailableDelegationsCl
return NewAvailableDelegationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewAvailableDelegationsClientWithBaseURI creates an instance of the AvailableDelegationsClient client.
+// NewAvailableDelegationsClientWithBaseURI creates an instance of the AvailableDelegationsClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewAvailableDelegationsClientWithBaseURI(baseURI string, subscriptionID string) AvailableDelegationsClient {
return AvailableDelegationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-10-01/network/availableendpointservices.go b/services/network/mgmt/2018-10-01/network/availableendpointservices.go
index 9e7f53f0b5cc..861468af707c 100644
--- a/services/network/mgmt/2018-10-01/network/availableendpointservices.go
+++ b/services/network/mgmt/2018-10-01/network/availableendpointservices.go
@@ -35,7 +35,9 @@ func NewAvailableEndpointServicesClient(subscriptionID string) AvailableEndpoint
return NewAvailableEndpointServicesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewAvailableEndpointServicesClientWithBaseURI creates an instance of the AvailableEndpointServicesClient client.
+// NewAvailableEndpointServicesClientWithBaseURI creates an instance of the AvailableEndpointServicesClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewAvailableEndpointServicesClientWithBaseURI(baseURI string, subscriptionID string) AvailableEndpointServicesClient {
return AvailableEndpointServicesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-10-01/network/availableresourcegroupdelegations.go b/services/network/mgmt/2018-10-01/network/availableresourcegroupdelegations.go
index 09d3ba2a9850..69050b6b9518 100644
--- a/services/network/mgmt/2018-10-01/network/availableresourcegroupdelegations.go
+++ b/services/network/mgmt/2018-10-01/network/availableresourcegroupdelegations.go
@@ -37,7 +37,8 @@ func NewAvailableResourceGroupDelegationsClient(subscriptionID string) Available
}
// NewAvailableResourceGroupDelegationsClientWithBaseURI creates an instance of the
-// AvailableResourceGroupDelegationsClient client.
+// AvailableResourceGroupDelegationsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewAvailableResourceGroupDelegationsClientWithBaseURI(baseURI string, subscriptionID string) AvailableResourceGroupDelegationsClient {
return AvailableResourceGroupDelegationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-10-01/network/azurefirewallfqdntags.go b/services/network/mgmt/2018-10-01/network/azurefirewallfqdntags.go
index 1c31c0e95289..082b8138908c 100644
--- a/services/network/mgmt/2018-10-01/network/azurefirewallfqdntags.go
+++ b/services/network/mgmt/2018-10-01/network/azurefirewallfqdntags.go
@@ -35,7 +35,9 @@ func NewAzureFirewallFqdnTagsClient(subscriptionID string) AzureFirewallFqdnTags
return NewAzureFirewallFqdnTagsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewAzureFirewallFqdnTagsClientWithBaseURI creates an instance of the AzureFirewallFqdnTagsClient client.
+// NewAzureFirewallFqdnTagsClientWithBaseURI creates an instance of the AzureFirewallFqdnTagsClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewAzureFirewallFqdnTagsClientWithBaseURI(baseURI string, subscriptionID string) AzureFirewallFqdnTagsClient {
return AzureFirewallFqdnTagsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-10-01/network/azurefirewalls.go b/services/network/mgmt/2018-10-01/network/azurefirewalls.go
index c5827e286b57..e663123ff294 100644
--- a/services/network/mgmt/2018-10-01/network/azurefirewalls.go
+++ b/services/network/mgmt/2018-10-01/network/azurefirewalls.go
@@ -35,7 +35,8 @@ func NewAzureFirewallsClient(subscriptionID string) AzureFirewallsClient {
return NewAzureFirewallsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewAzureFirewallsClientWithBaseURI creates an instance of the AzureFirewallsClient client.
+// NewAzureFirewallsClientWithBaseURI creates an instance of the AzureFirewallsClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewAzureFirewallsClientWithBaseURI(baseURI string, subscriptionID string) AzureFirewallsClient {
return AzureFirewallsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-10-01/network/bgpservicecommunities.go b/services/network/mgmt/2018-10-01/network/bgpservicecommunities.go
index 4f34d25347f8..4af006166f8a 100644
--- a/services/network/mgmt/2018-10-01/network/bgpservicecommunities.go
+++ b/services/network/mgmt/2018-10-01/network/bgpservicecommunities.go
@@ -35,7 +35,9 @@ func NewBgpServiceCommunitiesClient(subscriptionID string) BgpServiceCommunities
return NewBgpServiceCommunitiesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewBgpServiceCommunitiesClientWithBaseURI creates an instance of the BgpServiceCommunitiesClient client.
+// NewBgpServiceCommunitiesClientWithBaseURI creates an instance of the BgpServiceCommunitiesClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewBgpServiceCommunitiesClientWithBaseURI(baseURI string, subscriptionID string) BgpServiceCommunitiesClient {
return BgpServiceCommunitiesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-10-01/network/client.go b/services/network/mgmt/2018-10-01/network/client.go
index 221e41d3a09f..894a94d76fbc 100644
--- a/services/network/mgmt/2018-10-01/network/client.go
+++ b/services/network/mgmt/2018-10-01/network/client.go
@@ -45,7 +45,8 @@ func New(subscriptionID string) BaseClient {
return NewWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewWithBaseURI creates an instance of the BaseClient client.
+// NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with
+// an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient {
return BaseClient{
Client: autorest.NewClientWithUserAgent(UserAgent()),
diff --git a/services/network/mgmt/2018-10-01/network/connectionmonitors.go b/services/network/mgmt/2018-10-01/network/connectionmonitors.go
index 1c0840933922..8db1e1185529 100644
--- a/services/network/mgmt/2018-10-01/network/connectionmonitors.go
+++ b/services/network/mgmt/2018-10-01/network/connectionmonitors.go
@@ -36,7 +36,9 @@ func NewConnectionMonitorsClient(subscriptionID string) ConnectionMonitorsClient
return NewConnectionMonitorsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewConnectionMonitorsClientWithBaseURI creates an instance of the ConnectionMonitorsClient client.
+// NewConnectionMonitorsClientWithBaseURI creates an instance of the ConnectionMonitorsClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewConnectionMonitorsClientWithBaseURI(baseURI string, subscriptionID string) ConnectionMonitorsClient {
return ConnectionMonitorsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-10-01/network/ddosprotectionplans.go b/services/network/mgmt/2018-10-01/network/ddosprotectionplans.go
index 48ef701bd320..04da1737ec06 100644
--- a/services/network/mgmt/2018-10-01/network/ddosprotectionplans.go
+++ b/services/network/mgmt/2018-10-01/network/ddosprotectionplans.go
@@ -35,7 +35,9 @@ func NewDdosProtectionPlansClient(subscriptionID string) DdosProtectionPlansClie
return NewDdosProtectionPlansClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewDdosProtectionPlansClientWithBaseURI creates an instance of the DdosProtectionPlansClient client.
+// NewDdosProtectionPlansClientWithBaseURI creates an instance of the DdosProtectionPlansClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewDdosProtectionPlansClientWithBaseURI(baseURI string, subscriptionID string) DdosProtectionPlansClient {
return DdosProtectionPlansClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-10-01/network/defaultsecurityrules.go b/services/network/mgmt/2018-10-01/network/defaultsecurityrules.go
index 37b9c64c6126..3f885021c81b 100644
--- a/services/network/mgmt/2018-10-01/network/defaultsecurityrules.go
+++ b/services/network/mgmt/2018-10-01/network/defaultsecurityrules.go
@@ -35,7 +35,9 @@ func NewDefaultSecurityRulesClient(subscriptionID string) DefaultSecurityRulesCl
return NewDefaultSecurityRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewDefaultSecurityRulesClientWithBaseURI creates an instance of the DefaultSecurityRulesClient client.
+// NewDefaultSecurityRulesClientWithBaseURI creates an instance of the DefaultSecurityRulesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewDefaultSecurityRulesClientWithBaseURI(baseURI string, subscriptionID string) DefaultSecurityRulesClient {
return DefaultSecurityRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-10-01/network/expressroutecircuitauthorizations.go b/services/network/mgmt/2018-10-01/network/expressroutecircuitauthorizations.go
index 3028d0d240aa..bf6239001344 100644
--- a/services/network/mgmt/2018-10-01/network/expressroutecircuitauthorizations.go
+++ b/services/network/mgmt/2018-10-01/network/expressroutecircuitauthorizations.go
@@ -37,7 +37,8 @@ func NewExpressRouteCircuitAuthorizationsClient(subscriptionID string) ExpressRo
}
// NewExpressRouteCircuitAuthorizationsClientWithBaseURI creates an instance of the
-// ExpressRouteCircuitAuthorizationsClient client.
+// ExpressRouteCircuitAuthorizationsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewExpressRouteCircuitAuthorizationsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCircuitAuthorizationsClient {
return ExpressRouteCircuitAuthorizationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-10-01/network/expressroutecircuitconnections.go b/services/network/mgmt/2018-10-01/network/expressroutecircuitconnections.go
index beaf7691f294..cb7512613201 100644
--- a/services/network/mgmt/2018-10-01/network/expressroutecircuitconnections.go
+++ b/services/network/mgmt/2018-10-01/network/expressroutecircuitconnections.go
@@ -36,7 +36,8 @@ func NewExpressRouteCircuitConnectionsClient(subscriptionID string) ExpressRoute
}
// NewExpressRouteCircuitConnectionsClientWithBaseURI creates an instance of the ExpressRouteCircuitConnectionsClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewExpressRouteCircuitConnectionsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCircuitConnectionsClient {
return ExpressRouteCircuitConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-10-01/network/expressroutecircuitpeerings.go b/services/network/mgmt/2018-10-01/network/expressroutecircuitpeerings.go
index 2547c8830e55..36aa88b83e00 100644
--- a/services/network/mgmt/2018-10-01/network/expressroutecircuitpeerings.go
+++ b/services/network/mgmt/2018-10-01/network/expressroutecircuitpeerings.go
@@ -36,7 +36,9 @@ func NewExpressRouteCircuitPeeringsClient(subscriptionID string) ExpressRouteCir
return NewExpressRouteCircuitPeeringsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewExpressRouteCircuitPeeringsClientWithBaseURI creates an instance of the ExpressRouteCircuitPeeringsClient client.
+// NewExpressRouteCircuitPeeringsClientWithBaseURI creates an instance of the ExpressRouteCircuitPeeringsClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewExpressRouteCircuitPeeringsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCircuitPeeringsClient {
return ExpressRouteCircuitPeeringsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-10-01/network/expressroutecircuits.go b/services/network/mgmt/2018-10-01/network/expressroutecircuits.go
index 080f8b0f2b6d..cee05a408a77 100644
--- a/services/network/mgmt/2018-10-01/network/expressroutecircuits.go
+++ b/services/network/mgmt/2018-10-01/network/expressroutecircuits.go
@@ -35,7 +35,9 @@ func NewExpressRouteCircuitsClient(subscriptionID string) ExpressRouteCircuitsCl
return NewExpressRouteCircuitsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewExpressRouteCircuitsClientWithBaseURI creates an instance of the ExpressRouteCircuitsClient client.
+// NewExpressRouteCircuitsClientWithBaseURI creates an instance of the ExpressRouteCircuitsClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewExpressRouteCircuitsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCircuitsClient {
return ExpressRouteCircuitsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-10-01/network/expressrouteconnections.go b/services/network/mgmt/2018-10-01/network/expressrouteconnections.go
index 5ff89f2e1dfa..fe2af2bf861e 100644
--- a/services/network/mgmt/2018-10-01/network/expressrouteconnections.go
+++ b/services/network/mgmt/2018-10-01/network/expressrouteconnections.go
@@ -36,7 +36,9 @@ func NewExpressRouteConnectionsClient(subscriptionID string) ExpressRouteConnect
return NewExpressRouteConnectionsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewExpressRouteConnectionsClientWithBaseURI creates an instance of the ExpressRouteConnectionsClient client.
+// NewExpressRouteConnectionsClientWithBaseURI creates an instance of the ExpressRouteConnectionsClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewExpressRouteConnectionsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteConnectionsClient {
return ExpressRouteConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-10-01/network/expressroutecrossconnectionpeerings.go b/services/network/mgmt/2018-10-01/network/expressroutecrossconnectionpeerings.go
index bf2cc5b7c29b..275a8c3c56bb 100644
--- a/services/network/mgmt/2018-10-01/network/expressroutecrossconnectionpeerings.go
+++ b/services/network/mgmt/2018-10-01/network/expressroutecrossconnectionpeerings.go
@@ -38,7 +38,8 @@ func NewExpressRouteCrossConnectionPeeringsClient(subscriptionID string) Express
}
// NewExpressRouteCrossConnectionPeeringsClientWithBaseURI creates an instance of the
-// ExpressRouteCrossConnectionPeeringsClient client.
+// ExpressRouteCrossConnectionPeeringsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewExpressRouteCrossConnectionPeeringsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCrossConnectionPeeringsClient {
return ExpressRouteCrossConnectionPeeringsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-10-01/network/expressroutecrossconnections.go b/services/network/mgmt/2018-10-01/network/expressroutecrossconnections.go
index 211c00a7f270..ceed882f3300 100644
--- a/services/network/mgmt/2018-10-01/network/expressroutecrossconnections.go
+++ b/services/network/mgmt/2018-10-01/network/expressroutecrossconnections.go
@@ -36,7 +36,8 @@ func NewExpressRouteCrossConnectionsClient(subscriptionID string) ExpressRouteCr
}
// NewExpressRouteCrossConnectionsClientWithBaseURI creates an instance of the ExpressRouteCrossConnectionsClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewExpressRouteCrossConnectionsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCrossConnectionsClient {
return ExpressRouteCrossConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-10-01/network/expressroutegateways.go b/services/network/mgmt/2018-10-01/network/expressroutegateways.go
index 4d71329547d7..0b45c56bb6d4 100644
--- a/services/network/mgmt/2018-10-01/network/expressroutegateways.go
+++ b/services/network/mgmt/2018-10-01/network/expressroutegateways.go
@@ -36,7 +36,9 @@ func NewExpressRouteGatewaysClient(subscriptionID string) ExpressRouteGatewaysCl
return NewExpressRouteGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewExpressRouteGatewaysClientWithBaseURI creates an instance of the ExpressRouteGatewaysClient client.
+// NewExpressRouteGatewaysClientWithBaseURI creates an instance of the ExpressRouteGatewaysClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewExpressRouteGatewaysClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteGatewaysClient {
return ExpressRouteGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-10-01/network/expressroutelinks.go b/services/network/mgmt/2018-10-01/network/expressroutelinks.go
index b8a228f420da..da693f88a6a4 100644
--- a/services/network/mgmt/2018-10-01/network/expressroutelinks.go
+++ b/services/network/mgmt/2018-10-01/network/expressroutelinks.go
@@ -35,7 +35,9 @@ func NewExpressRouteLinksClient(subscriptionID string) ExpressRouteLinksClient {
return NewExpressRouteLinksClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewExpressRouteLinksClientWithBaseURI creates an instance of the ExpressRouteLinksClient client.
+// NewExpressRouteLinksClientWithBaseURI creates an instance of the ExpressRouteLinksClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewExpressRouteLinksClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteLinksClient {
return ExpressRouteLinksClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-10-01/network/expressrouteports.go b/services/network/mgmt/2018-10-01/network/expressrouteports.go
index aa5712d0a76d..940629744ede 100644
--- a/services/network/mgmt/2018-10-01/network/expressrouteports.go
+++ b/services/network/mgmt/2018-10-01/network/expressrouteports.go
@@ -35,7 +35,9 @@ func NewExpressRoutePortsClient(subscriptionID string) ExpressRoutePortsClient {
return NewExpressRoutePortsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewExpressRoutePortsClientWithBaseURI creates an instance of the ExpressRoutePortsClient client.
+// NewExpressRoutePortsClientWithBaseURI creates an instance of the ExpressRoutePortsClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewExpressRoutePortsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRoutePortsClient {
return ExpressRoutePortsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-10-01/network/expressrouteportslocations.go b/services/network/mgmt/2018-10-01/network/expressrouteportslocations.go
index a81991dd4082..746531082940 100644
--- a/services/network/mgmt/2018-10-01/network/expressrouteportslocations.go
+++ b/services/network/mgmt/2018-10-01/network/expressrouteportslocations.go
@@ -35,7 +35,9 @@ func NewExpressRoutePortsLocationsClient(subscriptionID string) ExpressRoutePort
return NewExpressRoutePortsLocationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewExpressRoutePortsLocationsClientWithBaseURI creates an instance of the ExpressRoutePortsLocationsClient client.
+// NewExpressRoutePortsLocationsClientWithBaseURI creates an instance of the ExpressRoutePortsLocationsClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewExpressRoutePortsLocationsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRoutePortsLocationsClient {
return ExpressRoutePortsLocationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-10-01/network/expressrouteserviceproviders.go b/services/network/mgmt/2018-10-01/network/expressrouteserviceproviders.go
index e99520037ca7..9be16d11232b 100644
--- a/services/network/mgmt/2018-10-01/network/expressrouteserviceproviders.go
+++ b/services/network/mgmt/2018-10-01/network/expressrouteserviceproviders.go
@@ -36,7 +36,8 @@ func NewExpressRouteServiceProvidersClient(subscriptionID string) ExpressRouteSe
}
// NewExpressRouteServiceProvidersClientWithBaseURI creates an instance of the ExpressRouteServiceProvidersClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewExpressRouteServiceProvidersClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteServiceProvidersClient {
return ExpressRouteServiceProvidersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-10-01/network/hubvirtualnetworkconnections.go b/services/network/mgmt/2018-10-01/network/hubvirtualnetworkconnections.go
index 082baf188756..3a43f3abec94 100644
--- a/services/network/mgmt/2018-10-01/network/hubvirtualnetworkconnections.go
+++ b/services/network/mgmt/2018-10-01/network/hubvirtualnetworkconnections.go
@@ -36,7 +36,8 @@ func NewHubVirtualNetworkConnectionsClient(subscriptionID string) HubVirtualNetw
}
// NewHubVirtualNetworkConnectionsClientWithBaseURI creates an instance of the HubVirtualNetworkConnectionsClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewHubVirtualNetworkConnectionsClientWithBaseURI(baseURI string, subscriptionID string) HubVirtualNetworkConnectionsClient {
return HubVirtualNetworkConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-10-01/network/inboundnatrules.go b/services/network/mgmt/2018-10-01/network/inboundnatrules.go
index 0e4d45f01813..43ca4b8d4263 100644
--- a/services/network/mgmt/2018-10-01/network/inboundnatrules.go
+++ b/services/network/mgmt/2018-10-01/network/inboundnatrules.go
@@ -36,7 +36,8 @@ func NewInboundNatRulesClient(subscriptionID string) InboundNatRulesClient {
return NewInboundNatRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewInboundNatRulesClientWithBaseURI creates an instance of the InboundNatRulesClient client.
+// NewInboundNatRulesClientWithBaseURI creates an instance of the InboundNatRulesClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewInboundNatRulesClientWithBaseURI(baseURI string, subscriptionID string) InboundNatRulesClient {
return InboundNatRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-10-01/network/interfaceendpoints.go b/services/network/mgmt/2018-10-01/network/interfaceendpoints.go
index 62b083e3b065..2c40dc897d41 100644
--- a/services/network/mgmt/2018-10-01/network/interfaceendpoints.go
+++ b/services/network/mgmt/2018-10-01/network/interfaceendpoints.go
@@ -35,7 +35,9 @@ func NewInterfaceEndpointsClient(subscriptionID string) InterfaceEndpointsClient
return NewInterfaceEndpointsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewInterfaceEndpointsClientWithBaseURI creates an instance of the InterfaceEndpointsClient client.
+// NewInterfaceEndpointsClientWithBaseURI creates an instance of the InterfaceEndpointsClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewInterfaceEndpointsClientWithBaseURI(baseURI string, subscriptionID string) InterfaceEndpointsClient {
return InterfaceEndpointsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-10-01/network/interfaceipconfigurations.go b/services/network/mgmt/2018-10-01/network/interfaceipconfigurations.go
index fe7eef5ef6b6..ed51a0107193 100644
--- a/services/network/mgmt/2018-10-01/network/interfaceipconfigurations.go
+++ b/services/network/mgmt/2018-10-01/network/interfaceipconfigurations.go
@@ -35,7 +35,9 @@ func NewInterfaceIPConfigurationsClient(subscriptionID string) InterfaceIPConfig
return NewInterfaceIPConfigurationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewInterfaceIPConfigurationsClientWithBaseURI creates an instance of the InterfaceIPConfigurationsClient client.
+// NewInterfaceIPConfigurationsClientWithBaseURI creates an instance of the InterfaceIPConfigurationsClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewInterfaceIPConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) InterfaceIPConfigurationsClient {
return InterfaceIPConfigurationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-10-01/network/interfaceloadbalancers.go b/services/network/mgmt/2018-10-01/network/interfaceloadbalancers.go
index 5d5bc9f0e1da..a9e65416e76f 100644
--- a/services/network/mgmt/2018-10-01/network/interfaceloadbalancers.go
+++ b/services/network/mgmt/2018-10-01/network/interfaceloadbalancers.go
@@ -35,7 +35,9 @@ func NewInterfaceLoadBalancersClient(subscriptionID string) InterfaceLoadBalance
return NewInterfaceLoadBalancersClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewInterfaceLoadBalancersClientWithBaseURI creates an instance of the InterfaceLoadBalancersClient client.
+// NewInterfaceLoadBalancersClientWithBaseURI creates an instance of the InterfaceLoadBalancersClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewInterfaceLoadBalancersClientWithBaseURI(baseURI string, subscriptionID string) InterfaceLoadBalancersClient {
return InterfaceLoadBalancersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-10-01/network/interfacesgroup.go b/services/network/mgmt/2018-10-01/network/interfacesgroup.go
index 9f3b30389280..2e0e5262ba1a 100644
--- a/services/network/mgmt/2018-10-01/network/interfacesgroup.go
+++ b/services/network/mgmt/2018-10-01/network/interfacesgroup.go
@@ -35,7 +35,8 @@ func NewInterfacesClient(subscriptionID string) InterfacesClient {
return NewInterfacesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewInterfacesClientWithBaseURI creates an instance of the InterfacesClient client.
+// NewInterfacesClientWithBaseURI creates an instance of the InterfacesClient client using a custom endpoint. Use this
+// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewInterfacesClientWithBaseURI(baseURI string, subscriptionID string) InterfacesClient {
return InterfacesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-10-01/network/interfacetapconfigurations.go b/services/network/mgmt/2018-10-01/network/interfacetapconfigurations.go
index 680958cbe81e..d09980a3ba22 100644
--- a/services/network/mgmt/2018-10-01/network/interfacetapconfigurations.go
+++ b/services/network/mgmt/2018-10-01/network/interfacetapconfigurations.go
@@ -36,7 +36,9 @@ func NewInterfaceTapConfigurationsClient(subscriptionID string) InterfaceTapConf
return NewInterfaceTapConfigurationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewInterfaceTapConfigurationsClientWithBaseURI creates an instance of the InterfaceTapConfigurationsClient client.
+// NewInterfaceTapConfigurationsClientWithBaseURI creates an instance of the InterfaceTapConfigurationsClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewInterfaceTapConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) InterfaceTapConfigurationsClient {
return InterfaceTapConfigurationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-10-01/network/loadbalancerbackendaddresspools.go b/services/network/mgmt/2018-10-01/network/loadbalancerbackendaddresspools.go
index 09601ca69e8f..526e34534b89 100644
--- a/services/network/mgmt/2018-10-01/network/loadbalancerbackendaddresspools.go
+++ b/services/network/mgmt/2018-10-01/network/loadbalancerbackendaddresspools.go
@@ -36,7 +36,8 @@ func NewLoadBalancerBackendAddressPoolsClient(subscriptionID string) LoadBalance
}
// NewLoadBalancerBackendAddressPoolsClientWithBaseURI creates an instance of the LoadBalancerBackendAddressPoolsClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewLoadBalancerBackendAddressPoolsClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerBackendAddressPoolsClient {
return LoadBalancerBackendAddressPoolsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-10-01/network/loadbalancerfrontendipconfigurations.go b/services/network/mgmt/2018-10-01/network/loadbalancerfrontendipconfigurations.go
index 7b6724ed272c..41c523045b61 100644
--- a/services/network/mgmt/2018-10-01/network/loadbalancerfrontendipconfigurations.go
+++ b/services/network/mgmt/2018-10-01/network/loadbalancerfrontendipconfigurations.go
@@ -37,7 +37,8 @@ func NewLoadBalancerFrontendIPConfigurationsClient(subscriptionID string) LoadBa
}
// NewLoadBalancerFrontendIPConfigurationsClientWithBaseURI creates an instance of the
-// LoadBalancerFrontendIPConfigurationsClient client.
+// LoadBalancerFrontendIPConfigurationsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewLoadBalancerFrontendIPConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerFrontendIPConfigurationsClient {
return LoadBalancerFrontendIPConfigurationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-10-01/network/loadbalancerloadbalancingrules.go b/services/network/mgmt/2018-10-01/network/loadbalancerloadbalancingrules.go
index 048f25525a54..b3b659e6c0bd 100644
--- a/services/network/mgmt/2018-10-01/network/loadbalancerloadbalancingrules.go
+++ b/services/network/mgmt/2018-10-01/network/loadbalancerloadbalancingrules.go
@@ -36,7 +36,8 @@ func NewLoadBalancerLoadBalancingRulesClient(subscriptionID string) LoadBalancer
}
// NewLoadBalancerLoadBalancingRulesClientWithBaseURI creates an instance of the LoadBalancerLoadBalancingRulesClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewLoadBalancerLoadBalancingRulesClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerLoadBalancingRulesClient {
return LoadBalancerLoadBalancingRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-10-01/network/loadbalancernetworkinterfaces.go b/services/network/mgmt/2018-10-01/network/loadbalancernetworkinterfaces.go
index 2a2a8febf815..f1e8c4b72268 100644
--- a/services/network/mgmt/2018-10-01/network/loadbalancernetworkinterfaces.go
+++ b/services/network/mgmt/2018-10-01/network/loadbalancernetworkinterfaces.go
@@ -36,7 +36,8 @@ func NewLoadBalancerNetworkInterfacesClient(subscriptionID string) LoadBalancerN
}
// NewLoadBalancerNetworkInterfacesClientWithBaseURI creates an instance of the LoadBalancerNetworkInterfacesClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewLoadBalancerNetworkInterfacesClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerNetworkInterfacesClient {
return LoadBalancerNetworkInterfacesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-10-01/network/loadbalanceroutboundrules.go b/services/network/mgmt/2018-10-01/network/loadbalanceroutboundrules.go
index 4005d2bc9427..6d18dfebf4be 100644
--- a/services/network/mgmt/2018-10-01/network/loadbalanceroutboundrules.go
+++ b/services/network/mgmt/2018-10-01/network/loadbalanceroutboundrules.go
@@ -35,7 +35,9 @@ func NewLoadBalancerOutboundRulesClient(subscriptionID string) LoadBalancerOutbo
return NewLoadBalancerOutboundRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewLoadBalancerOutboundRulesClientWithBaseURI creates an instance of the LoadBalancerOutboundRulesClient client.
+// NewLoadBalancerOutboundRulesClientWithBaseURI creates an instance of the LoadBalancerOutboundRulesClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewLoadBalancerOutboundRulesClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerOutboundRulesClient {
return LoadBalancerOutboundRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-10-01/network/loadbalancerprobes.go b/services/network/mgmt/2018-10-01/network/loadbalancerprobes.go
index 1821887ed321..b44fb2bc8838 100644
--- a/services/network/mgmt/2018-10-01/network/loadbalancerprobes.go
+++ b/services/network/mgmt/2018-10-01/network/loadbalancerprobes.go
@@ -35,7 +35,9 @@ func NewLoadBalancerProbesClient(subscriptionID string) LoadBalancerProbesClient
return NewLoadBalancerProbesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewLoadBalancerProbesClientWithBaseURI creates an instance of the LoadBalancerProbesClient client.
+// NewLoadBalancerProbesClientWithBaseURI creates an instance of the LoadBalancerProbesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewLoadBalancerProbesClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerProbesClient {
return LoadBalancerProbesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-10-01/network/loadbalancers.go b/services/network/mgmt/2018-10-01/network/loadbalancers.go
index 7200e50a3fdc..5edc03e9d2d6 100644
--- a/services/network/mgmt/2018-10-01/network/loadbalancers.go
+++ b/services/network/mgmt/2018-10-01/network/loadbalancers.go
@@ -35,7 +35,8 @@ func NewLoadBalancersClient(subscriptionID string) LoadBalancersClient {
return NewLoadBalancersClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewLoadBalancersClientWithBaseURI creates an instance of the LoadBalancersClient client.
+// NewLoadBalancersClientWithBaseURI creates an instance of the LoadBalancersClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewLoadBalancersClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancersClient {
return LoadBalancersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-10-01/network/localnetworkgateways.go b/services/network/mgmt/2018-10-01/network/localnetworkgateways.go
index bc305c2254fb..4b4e647c93e3 100644
--- a/services/network/mgmt/2018-10-01/network/localnetworkgateways.go
+++ b/services/network/mgmt/2018-10-01/network/localnetworkgateways.go
@@ -36,7 +36,9 @@ func NewLocalNetworkGatewaysClient(subscriptionID string) LocalNetworkGatewaysCl
return NewLocalNetworkGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewLocalNetworkGatewaysClientWithBaseURI creates an instance of the LocalNetworkGatewaysClient client.
+// NewLocalNetworkGatewaysClientWithBaseURI creates an instance of the LocalNetworkGatewaysClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewLocalNetworkGatewaysClientWithBaseURI(baseURI string, subscriptionID string) LocalNetworkGatewaysClient {
return LocalNetworkGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-10-01/network/networkapi/interfaces.go b/services/network/mgmt/2018-10-01/network/networkapi/interfaces.go
index 1fa8da4b603b..053999a5c159 100644
--- a/services/network/mgmt/2018-10-01/network/networkapi/interfaces.go
+++ b/services/network/mgmt/2018-10-01/network/networkapi/interfaces.go
@@ -38,9 +38,12 @@ type ApplicationGatewaysClientAPI interface {
Get(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result network.ApplicationGateway, err error)
GetSslPredefinedPolicy(ctx context.Context, predefinedPolicyName string) (result network.ApplicationGatewaySslPredefinedPolicy, err error)
List(ctx context.Context, resourceGroupName string) (result network.ApplicationGatewayListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.ApplicationGatewayListResultIterator, err error)
ListAll(ctx context.Context) (result network.ApplicationGatewayListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.ApplicationGatewayListResultIterator, err error)
ListAvailableSslOptions(ctx context.Context) (result network.ApplicationGatewayAvailableSslOptions, err error)
ListAvailableSslPredefinedPolicies(ctx context.Context) (result network.ApplicationGatewayAvailableSslPredefinedPoliciesPage, err error)
+ ListAvailableSslPredefinedPoliciesComplete(ctx context.Context) (result network.ApplicationGatewayAvailableSslPredefinedPoliciesIterator, err error)
ListAvailableWafRuleSets(ctx context.Context) (result network.ApplicationGatewayAvailableWafRuleSetsResult, err error)
Start(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result network.ApplicationGatewaysStartFuture, err error)
Stop(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result network.ApplicationGatewaysStopFuture, err error)
@@ -55,7 +58,9 @@ type ApplicationSecurityGroupsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, applicationSecurityGroupName string) (result network.ApplicationSecurityGroupsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, applicationSecurityGroupName string) (result network.ApplicationSecurityGroup, err error)
List(ctx context.Context, resourceGroupName string) (result network.ApplicationSecurityGroupListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.ApplicationSecurityGroupListResultIterator, err error)
ListAll(ctx context.Context) (result network.ApplicationSecurityGroupListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.ApplicationSecurityGroupListResultIterator, err error)
}
var _ ApplicationSecurityGroupsClientAPI = (*network.ApplicationSecurityGroupsClient)(nil)
@@ -63,6 +68,7 @@ var _ ApplicationSecurityGroupsClientAPI = (*network.ApplicationSecurityGroupsCl
// AvailableDelegationsClientAPI contains the set of methods on the AvailableDelegationsClient type.
type AvailableDelegationsClientAPI interface {
List(ctx context.Context, location string) (result network.AvailableDelegationsResultPage, err error)
+ ListComplete(ctx context.Context, location string) (result network.AvailableDelegationsResultIterator, err error)
}
var _ AvailableDelegationsClientAPI = (*network.AvailableDelegationsClient)(nil)
@@ -70,6 +76,7 @@ var _ AvailableDelegationsClientAPI = (*network.AvailableDelegationsClient)(nil)
// AvailableResourceGroupDelegationsClientAPI contains the set of methods on the AvailableResourceGroupDelegationsClient type.
type AvailableResourceGroupDelegationsClientAPI interface {
List(ctx context.Context, location string, resourceGroupName string) (result network.AvailableDelegationsResultPage, err error)
+ ListComplete(ctx context.Context, location string, resourceGroupName string) (result network.AvailableDelegationsResultIterator, err error)
}
var _ AvailableResourceGroupDelegationsClientAPI = (*network.AvailableResourceGroupDelegationsClient)(nil)
@@ -80,7 +87,9 @@ type AzureFirewallsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, azureFirewallName string) (result network.AzureFirewallsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, azureFirewallName string) (result network.AzureFirewall, err error)
List(ctx context.Context, resourceGroupName string) (result network.AzureFirewallListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.AzureFirewallListResultIterator, err error)
ListAll(ctx context.Context) (result network.AzureFirewallListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.AzureFirewallListResultIterator, err error)
}
var _ AzureFirewallsClientAPI = (*network.AzureFirewallsClient)(nil)
@@ -88,6 +97,7 @@ var _ AzureFirewallsClientAPI = (*network.AzureFirewallsClient)(nil)
// AzureFirewallFqdnTagsClientAPI contains the set of methods on the AzureFirewallFqdnTagsClient type.
type AzureFirewallFqdnTagsClientAPI interface {
ListAll(ctx context.Context) (result network.AzureFirewallFqdnTagListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.AzureFirewallFqdnTagListResultIterator, err error)
}
var _ AzureFirewallFqdnTagsClientAPI = (*network.AzureFirewallFqdnTagsClient)(nil)
@@ -98,7 +108,9 @@ type DdosProtectionPlansClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, ddosProtectionPlanName string) (result network.DdosProtectionPlansDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, ddosProtectionPlanName string) (result network.DdosProtectionPlan, err error)
List(ctx context.Context) (result network.DdosProtectionPlanListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.DdosProtectionPlanListResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.DdosProtectionPlanListResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.DdosProtectionPlanListResultIterator, err error)
}
var _ DdosProtectionPlansClientAPI = (*network.DdosProtectionPlansClient)(nil)
@@ -106,6 +118,7 @@ var _ DdosProtectionPlansClientAPI = (*network.DdosProtectionPlansClient)(nil)
// AvailableEndpointServicesClientAPI contains the set of methods on the AvailableEndpointServicesClient type.
type AvailableEndpointServicesClientAPI interface {
List(ctx context.Context, location string) (result network.EndpointServicesListResultPage, err error)
+ ListComplete(ctx context.Context, location string) (result network.EndpointServicesListResultIterator, err error)
}
var _ AvailableEndpointServicesClientAPI = (*network.AvailableEndpointServicesClient)(nil)
@@ -116,6 +129,7 @@ type ExpressRouteCircuitAuthorizationsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, circuitName string, authorizationName string) (result network.ExpressRouteCircuitAuthorizationsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, circuitName string, authorizationName string) (result network.ExpressRouteCircuitAuthorization, err error)
List(ctx context.Context, resourceGroupName string, circuitName string) (result network.AuthorizationListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, circuitName string) (result network.AuthorizationListResultIterator, err error)
}
var _ ExpressRouteCircuitAuthorizationsClientAPI = (*network.ExpressRouteCircuitAuthorizationsClient)(nil)
@@ -126,6 +140,7 @@ type ExpressRouteCircuitPeeringsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.ExpressRouteCircuitPeeringsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.ExpressRouteCircuitPeering, err error)
List(ctx context.Context, resourceGroupName string, circuitName string) (result network.ExpressRouteCircuitPeeringListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, circuitName string) (result network.ExpressRouteCircuitPeeringListResultIterator, err error)
}
var _ ExpressRouteCircuitPeeringsClientAPI = (*network.ExpressRouteCircuitPeeringsClient)(nil)
@@ -136,6 +151,7 @@ type ExpressRouteCircuitConnectionsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, connectionName string) (result network.ExpressRouteCircuitConnectionsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, connectionName string) (result network.ExpressRouteCircuitConnection, err error)
List(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.ExpressRouteCircuitConnectionListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.ExpressRouteCircuitConnectionListResultIterator, err error)
}
var _ ExpressRouteCircuitConnectionsClientAPI = (*network.ExpressRouteCircuitConnectionsClient)(nil)
@@ -148,7 +164,9 @@ type ExpressRouteCircuitsClientAPI interface {
GetPeeringStats(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.ExpressRouteCircuitStats, err error)
GetStats(ctx context.Context, resourceGroupName string, circuitName string) (result network.ExpressRouteCircuitStats, err error)
List(ctx context.Context, resourceGroupName string) (result network.ExpressRouteCircuitListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.ExpressRouteCircuitListResultIterator, err error)
ListAll(ctx context.Context) (result network.ExpressRouteCircuitListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.ExpressRouteCircuitListResultIterator, err error)
ListArpTable(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, devicePath string) (result network.ExpressRouteCircuitsListArpTableFuture, err error)
ListRoutesTable(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, devicePath string) (result network.ExpressRouteCircuitsListRoutesTableFuture, err error)
ListRoutesTableSummary(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, devicePath string) (result network.ExpressRouteCircuitsListRoutesTableSummaryFuture, err error)
@@ -160,6 +178,7 @@ var _ ExpressRouteCircuitsClientAPI = (*network.ExpressRouteCircuitsClient)(nil)
// ExpressRouteServiceProvidersClientAPI contains the set of methods on the ExpressRouteServiceProvidersClient type.
type ExpressRouteServiceProvidersClientAPI interface {
List(ctx context.Context) (result network.ExpressRouteServiceProviderListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ExpressRouteServiceProviderListResultIterator, err error)
}
var _ ExpressRouteServiceProvidersClientAPI = (*network.ExpressRouteServiceProvidersClient)(nil)
@@ -169,8 +188,10 @@ type ExpressRouteCrossConnectionsClientAPI interface {
CreateOrUpdate(ctx context.Context, resourceGroupName string, crossConnectionName string, parameters network.ExpressRouteCrossConnection) (result network.ExpressRouteCrossConnectionsCreateOrUpdateFuture, err error)
Get(ctx context.Context, resourceGroupName string, crossConnectionName string) (result network.ExpressRouteCrossConnection, err error)
List(ctx context.Context) (result network.ExpressRouteCrossConnectionListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ExpressRouteCrossConnectionListResultIterator, err error)
ListArpTable(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string, devicePath string) (result network.ExpressRouteCrossConnectionsListArpTableFuture, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ExpressRouteCrossConnectionListResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ExpressRouteCrossConnectionListResultIterator, err error)
ListRoutesTable(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string, devicePath string) (result network.ExpressRouteCrossConnectionsListRoutesTableFuture, err error)
ListRoutesTableSummary(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string, devicePath string) (result network.ExpressRouteCrossConnectionsListRoutesTableSummaryFuture, err error)
UpdateTags(ctx context.Context, resourceGroupName string, crossConnectionName string, crossConnectionParameters network.TagsObject) (result network.ExpressRouteCrossConnectionsUpdateTagsFuture, err error)
@@ -184,6 +205,7 @@ type ExpressRouteCrossConnectionPeeringsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string) (result network.ExpressRouteCrossConnectionPeeringsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string) (result network.ExpressRouteCrossConnectionPeering, err error)
List(ctx context.Context, resourceGroupName string, crossConnectionName string) (result network.ExpressRouteCrossConnectionPeeringListPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, crossConnectionName string) (result network.ExpressRouteCrossConnectionPeeringListIterator, err error)
}
var _ ExpressRouteCrossConnectionPeeringsClientAPI = (*network.ExpressRouteCrossConnectionPeeringsClient)(nil)
@@ -213,6 +235,7 @@ var _ ExpressRouteConnectionsClientAPI = (*network.ExpressRouteConnectionsClient
type ExpressRoutePortsLocationsClientAPI interface {
Get(ctx context.Context, locationName string) (result network.ExpressRoutePortsLocation, err error)
List(ctx context.Context) (result network.ExpressRoutePortsLocationListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ExpressRoutePortsLocationListResultIterator, err error)
}
var _ ExpressRoutePortsLocationsClientAPI = (*network.ExpressRoutePortsLocationsClient)(nil)
@@ -223,7 +246,9 @@ type ExpressRoutePortsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, expressRoutePortName string) (result network.ExpressRoutePortsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, expressRoutePortName string) (result network.ExpressRoutePort, err error)
List(ctx context.Context) (result network.ExpressRoutePortListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ExpressRoutePortListResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ExpressRoutePortListResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ExpressRoutePortListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, expressRoutePortName string, parameters network.TagsObject) (result network.ExpressRoutePortsUpdateTagsFuture, err error)
}
@@ -233,6 +258,7 @@ var _ ExpressRoutePortsClientAPI = (*network.ExpressRoutePortsClient)(nil)
type ExpressRouteLinksClientAPI interface {
Get(ctx context.Context, resourceGroupName string, expressRoutePortName string, linkName string) (result network.ExpressRouteLink, err error)
List(ctx context.Context, resourceGroupName string, expressRoutePortName string) (result network.ExpressRouteLinkListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, expressRoutePortName string) (result network.ExpressRouteLinkListResultIterator, err error)
}
var _ ExpressRouteLinksClientAPI = (*network.ExpressRouteLinksClient)(nil)
@@ -243,7 +269,9 @@ type InterfaceEndpointsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, interfaceEndpointName string) (result network.InterfaceEndpointsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, interfaceEndpointName string, expand string) (result network.InterfaceEndpoint, err error)
List(ctx context.Context, resourceGroupName string) (result network.InterfaceEndpointListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.InterfaceEndpointListResultIterator, err error)
ListBySubscription(ctx context.Context) (result network.InterfaceEndpointListResultPage, err error)
+ ListBySubscriptionComplete(ctx context.Context) (result network.InterfaceEndpointListResultIterator, err error)
}
var _ InterfaceEndpointsClientAPI = (*network.InterfaceEndpointsClient)(nil)
@@ -254,7 +282,9 @@ type LoadBalancersClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancersDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, expand string) (result network.LoadBalancer, err error)
List(ctx context.Context, resourceGroupName string) (result network.LoadBalancerListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.LoadBalancerListResultIterator, err error)
ListAll(ctx context.Context) (result network.LoadBalancerListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.LoadBalancerListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, loadBalancerName string, parameters network.TagsObject) (result network.LoadBalancersUpdateTagsFuture, err error)
}
@@ -264,6 +294,7 @@ var _ LoadBalancersClientAPI = (*network.LoadBalancersClient)(nil)
type LoadBalancerBackendAddressPoolsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, backendAddressPoolName string) (result network.BackendAddressPool, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerBackendAddressPoolListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerBackendAddressPoolListResultIterator, err error)
}
var _ LoadBalancerBackendAddressPoolsClientAPI = (*network.LoadBalancerBackendAddressPoolsClient)(nil)
@@ -272,6 +303,7 @@ var _ LoadBalancerBackendAddressPoolsClientAPI = (*network.LoadBalancerBackendAd
type LoadBalancerFrontendIPConfigurationsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, frontendIPConfigurationName string) (result network.FrontendIPConfiguration, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerFrontendIPConfigurationListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerFrontendIPConfigurationListResultIterator, err error)
}
var _ LoadBalancerFrontendIPConfigurationsClientAPI = (*network.LoadBalancerFrontendIPConfigurationsClient)(nil)
@@ -282,6 +314,7 @@ type InboundNatRulesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, loadBalancerName string, inboundNatRuleName string) (result network.InboundNatRulesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, inboundNatRuleName string, expand string) (result network.InboundNatRule, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.InboundNatRuleListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.InboundNatRuleListResultIterator, err error)
}
var _ InboundNatRulesClientAPI = (*network.InboundNatRulesClient)(nil)
@@ -290,6 +323,7 @@ var _ InboundNatRulesClientAPI = (*network.InboundNatRulesClient)(nil)
type LoadBalancerLoadBalancingRulesClientAPI interface {
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, loadBalancingRuleName string) (result network.LoadBalancingRule, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerLoadBalancingRuleListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerLoadBalancingRuleListResultIterator, err error)
}
var _ LoadBalancerLoadBalancingRulesClientAPI = (*network.LoadBalancerLoadBalancingRulesClient)(nil)
@@ -298,6 +332,7 @@ var _ LoadBalancerLoadBalancingRulesClientAPI = (*network.LoadBalancerLoadBalanc
type LoadBalancerOutboundRulesClientAPI interface {
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, outboundRuleName string) (result network.OutboundRule, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerOutboundRuleListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerOutboundRuleListResultIterator, err error)
}
var _ LoadBalancerOutboundRulesClientAPI = (*network.LoadBalancerOutboundRulesClient)(nil)
@@ -305,6 +340,7 @@ var _ LoadBalancerOutboundRulesClientAPI = (*network.LoadBalancerOutboundRulesCl
// LoadBalancerNetworkInterfacesClientAPI contains the set of methods on the LoadBalancerNetworkInterfacesClient type.
type LoadBalancerNetworkInterfacesClientAPI interface {
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.InterfaceListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.InterfaceListResultIterator, err error)
}
var _ LoadBalancerNetworkInterfacesClientAPI = (*network.LoadBalancerNetworkInterfacesClient)(nil)
@@ -313,6 +349,7 @@ var _ LoadBalancerNetworkInterfacesClientAPI = (*network.LoadBalancerNetworkInte
type LoadBalancerProbesClientAPI interface {
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, probeName string) (result network.Probe, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerProbeListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerProbeListResultIterator, err error)
}
var _ LoadBalancerProbesClientAPI = (*network.LoadBalancerProbesClient)(nil)
@@ -326,11 +363,16 @@ type InterfacesClientAPI interface {
GetVirtualMachineScaleSetIPConfiguration(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, IPConfigurationName string, expand string) (result network.InterfaceIPConfiguration, err error)
GetVirtualMachineScaleSetNetworkInterface(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, expand string) (result network.Interface, err error)
List(ctx context.Context, resourceGroupName string) (result network.InterfaceListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.InterfaceListResultIterator, err error)
ListAll(ctx context.Context) (result network.InterfaceListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.InterfaceListResultIterator, err error)
ListEffectiveNetworkSecurityGroups(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfacesListEffectiveNetworkSecurityGroupsFuture, err error)
ListVirtualMachineScaleSetIPConfigurations(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, expand string) (result network.InterfaceIPConfigurationListResultPage, err error)
+ ListVirtualMachineScaleSetIPConfigurationsComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, expand string) (result network.InterfaceIPConfigurationListResultIterator, err error)
ListVirtualMachineScaleSetNetworkInterfaces(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result network.InterfaceListResultPage, err error)
+ ListVirtualMachineScaleSetNetworkInterfacesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result network.InterfaceListResultIterator, err error)
ListVirtualMachineScaleSetVMNetworkInterfaces(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string) (result network.InterfaceListResultPage, err error)
+ ListVirtualMachineScaleSetVMNetworkInterfacesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string) (result network.InterfaceListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, networkInterfaceName string, parameters network.TagsObject) (result network.InterfacesUpdateTagsFuture, err error)
}
@@ -340,6 +382,7 @@ var _ InterfacesClientAPI = (*network.InterfacesClient)(nil)
type InterfaceIPConfigurationsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, networkInterfaceName string, IPConfigurationName string) (result network.InterfaceIPConfiguration, err error)
List(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceIPConfigurationListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceIPConfigurationListResultIterator, err error)
}
var _ InterfaceIPConfigurationsClientAPI = (*network.InterfaceIPConfigurationsClient)(nil)
@@ -347,6 +390,7 @@ var _ InterfaceIPConfigurationsClientAPI = (*network.InterfaceIPConfigurationsCl
// InterfaceLoadBalancersClientAPI contains the set of methods on the InterfaceLoadBalancersClient type.
type InterfaceLoadBalancersClientAPI interface {
List(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceLoadBalancerListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceLoadBalancerListResultIterator, err error)
}
var _ InterfaceLoadBalancersClientAPI = (*network.InterfaceLoadBalancersClient)(nil)
@@ -357,6 +401,7 @@ type InterfaceTapConfigurationsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, networkInterfaceName string, tapConfigurationName string) (result network.InterfaceTapConfigurationsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, networkInterfaceName string, tapConfigurationName string) (result network.InterfaceTapConfiguration, err error)
List(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceTapConfigurationListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceTapConfigurationListResultIterator, err error)
}
var _ InterfaceTapConfigurationsClientAPI = (*network.InterfaceTapConfigurationsClient)(nil)
@@ -367,7 +412,9 @@ type ProfilesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, networkProfileName string) (result network.ProfilesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, networkProfileName string, expand string) (result network.Profile, err error)
List(ctx context.Context, resourceGroupName string) (result network.ProfileListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.ProfileListResultIterator, err error)
ListAll(ctx context.Context) (result network.ProfileListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.ProfileListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, networkProfileName string, parameters network.TagsObject) (result network.Profile, err error)
}
@@ -379,7 +426,9 @@ type SecurityGroupsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityGroupsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, expand string) (result network.SecurityGroup, err error)
List(ctx context.Context, resourceGroupName string) (result network.SecurityGroupListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.SecurityGroupListResultIterator, err error)
ListAll(ctx context.Context) (result network.SecurityGroupListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.SecurityGroupListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, parameters network.TagsObject) (result network.SecurityGroupsUpdateTagsFuture, err error)
}
@@ -391,6 +440,7 @@ type SecurityRulesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, securityRuleName string) (result network.SecurityRulesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, securityRuleName string) (result network.SecurityRule, err error)
List(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityRuleListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityRuleListResultIterator, err error)
}
var _ SecurityRulesClientAPI = (*network.SecurityRulesClient)(nil)
@@ -399,6 +449,7 @@ var _ SecurityRulesClientAPI = (*network.SecurityRulesClient)(nil)
type DefaultSecurityRulesClientAPI interface {
Get(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, defaultSecurityRuleName string) (result network.SecurityRule, err error)
List(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityRuleListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityRuleListResultIterator, err error)
}
var _ DefaultSecurityRulesClientAPI = (*network.DefaultSecurityRulesClient)(nil)
@@ -455,6 +506,7 @@ var _ ConnectionMonitorsClientAPI = (*network.ConnectionMonitorsClient)(nil)
// OperationsClientAPI contains the set of methods on the OperationsClient type.
type OperationsClientAPI interface {
List(ctx context.Context) (result network.OperationListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.OperationListResultIterator, err error)
}
var _ OperationsClientAPI = (*network.OperationsClient)(nil)
@@ -466,9 +518,13 @@ type PublicIPAddressesClientAPI interface {
Get(ctx context.Context, resourceGroupName string, publicIPAddressName string, expand string) (result network.PublicIPAddress, err error)
GetVirtualMachineScaleSetPublicIPAddress(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, IPConfigurationName string, publicIPAddressName string, expand string) (result network.PublicIPAddress, err error)
List(ctx context.Context, resourceGroupName string) (result network.PublicIPAddressListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.PublicIPAddressListResultIterator, err error)
ListAll(ctx context.Context) (result network.PublicIPAddressListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.PublicIPAddressListResultIterator, err error)
ListVirtualMachineScaleSetPublicIPAddresses(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result network.PublicIPAddressListResultPage, err error)
+ ListVirtualMachineScaleSetPublicIPAddressesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result network.PublicIPAddressListResultIterator, err error)
ListVirtualMachineScaleSetVMPublicIPAddresses(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, IPConfigurationName string) (result network.PublicIPAddressListResultPage, err error)
+ ListVirtualMachineScaleSetVMPublicIPAddressesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, IPConfigurationName string) (result network.PublicIPAddressListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, publicIPAddressName string, parameters network.TagsObject) (result network.PublicIPAddressesUpdateTagsFuture, err error)
}
@@ -480,7 +536,9 @@ type PublicIPPrefixesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, publicIPPrefixName string) (result network.PublicIPPrefixesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, publicIPPrefixName string, expand string) (result network.PublicIPPrefix, err error)
List(ctx context.Context, resourceGroupName string) (result network.PublicIPPrefixListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.PublicIPPrefixListResultIterator, err error)
ListAll(ctx context.Context) (result network.PublicIPPrefixListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.PublicIPPrefixListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, publicIPPrefixName string, parameters network.TagsObject) (result network.PublicIPPrefixesUpdateTagsFuture, err error)
}
@@ -492,7 +550,9 @@ type RouteFiltersClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, routeFilterName string) (result network.RouteFiltersDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, routeFilterName string, expand string) (result network.RouteFilter, err error)
List(ctx context.Context) (result network.RouteFilterListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.RouteFilterListResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.RouteFilterListResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.RouteFilterListResultIterator, err error)
Update(ctx context.Context, resourceGroupName string, routeFilterName string, routeFilterParameters network.PatchRouteFilter) (result network.RouteFiltersUpdateFuture, err error)
}
@@ -504,6 +564,7 @@ type RouteFilterRulesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, routeFilterName string, ruleName string) (result network.RouteFilterRulesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, routeFilterName string, ruleName string) (result network.RouteFilterRule, err error)
ListByRouteFilter(ctx context.Context, resourceGroupName string, routeFilterName string) (result network.RouteFilterRuleListResultPage, err error)
+ ListByRouteFilterComplete(ctx context.Context, resourceGroupName string, routeFilterName string) (result network.RouteFilterRuleListResultIterator, err error)
Update(ctx context.Context, resourceGroupName string, routeFilterName string, ruleName string, routeFilterRuleParameters network.PatchRouteFilterRule) (result network.RouteFilterRulesUpdateFuture, err error)
}
@@ -515,7 +576,9 @@ type RouteTablesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, routeTableName string) (result network.RouteTablesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, routeTableName string, expand string) (result network.RouteTable, err error)
List(ctx context.Context, resourceGroupName string) (result network.RouteTableListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.RouteTableListResultIterator, err error)
ListAll(ctx context.Context) (result network.RouteTableListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.RouteTableListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, routeTableName string, parameters network.TagsObject) (result network.RouteTablesUpdateTagsFuture, err error)
}
@@ -527,6 +590,7 @@ type RoutesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, routeTableName string, routeName string) (result network.RoutesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, routeTableName string, routeName string) (result network.Route, err error)
List(ctx context.Context, resourceGroupName string, routeTableName string) (result network.RouteListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, routeTableName string) (result network.RouteListResultIterator, err error)
}
var _ RoutesClientAPI = (*network.RoutesClient)(nil)
@@ -534,6 +598,7 @@ var _ RoutesClientAPI = (*network.RoutesClient)(nil)
// BgpServiceCommunitiesClientAPI contains the set of methods on the BgpServiceCommunitiesClient type.
type BgpServiceCommunitiesClientAPI interface {
List(ctx context.Context) (result network.BgpServiceCommunityListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.BgpServiceCommunityListResultIterator, err error)
}
var _ BgpServiceCommunitiesClientAPI = (*network.BgpServiceCommunitiesClient)(nil)
@@ -544,7 +609,9 @@ type ServiceEndpointPoliciesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string) (result network.ServiceEndpointPoliciesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string, expand string) (result network.ServiceEndpointPolicy, err error)
List(ctx context.Context) (result network.ServiceEndpointPolicyListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ServiceEndpointPolicyListResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ServiceEndpointPolicyListResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ServiceEndpointPolicyListResultIterator, err error)
Update(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string, parameters network.TagsObject) (result network.ServiceEndpointPoliciesUpdateFuture, err error)
}
@@ -556,6 +623,7 @@ type ServiceEndpointPolicyDefinitionsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string, serviceEndpointPolicyDefinitionName string) (result network.ServiceEndpointPolicyDefinitionsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string, serviceEndpointPolicyDefinitionName string) (result network.ServiceEndpointPolicyDefinition, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string) (result network.ServiceEndpointPolicyDefinitionListResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string) (result network.ServiceEndpointPolicyDefinitionListResultIterator, err error)
}
var _ ServiceEndpointPolicyDefinitionsClientAPI = (*network.ServiceEndpointPolicyDefinitionsClient)(nil)
@@ -563,6 +631,7 @@ var _ ServiceEndpointPolicyDefinitionsClientAPI = (*network.ServiceEndpointPolic
// UsagesClientAPI contains the set of methods on the UsagesClient type.
type UsagesClientAPI interface {
List(ctx context.Context, location string) (result network.UsagesListResultPage, err error)
+ ListComplete(ctx context.Context, location string) (result network.UsagesListResultIterator, err error)
}
var _ UsagesClientAPI = (*network.UsagesClient)(nil)
@@ -574,8 +643,11 @@ type VirtualNetworksClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworksDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualNetworkName string, expand string) (result network.VirtualNetwork, err error)
List(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkListResultIterator, err error)
ListAll(ctx context.Context) (result network.VirtualNetworkListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.VirtualNetworkListResultIterator, err error)
ListUsage(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworkListUsageResultPage, err error)
+ ListUsageComplete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworkListUsageResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, virtualNetworkName string, parameters network.TagsObject) (result network.VirtualNetworksUpdateTagsFuture, err error)
}
@@ -587,6 +659,7 @@ type SubnetsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualNetworkName string, subnetName string) (result network.SubnetsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualNetworkName string, subnetName string, expand string) (result network.Subnet, err error)
List(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.SubnetListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.SubnetListResultIterator, err error)
}
var _ SubnetsClientAPI = (*network.SubnetsClient)(nil)
@@ -597,6 +670,7 @@ type VirtualNetworkPeeringsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualNetworkName string, virtualNetworkPeeringName string) (result network.VirtualNetworkPeeringsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualNetworkName string, virtualNetworkPeeringName string) (result network.VirtualNetworkPeering, err error)
List(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworkPeeringListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworkPeeringListResultIterator, err error)
}
var _ VirtualNetworkPeeringsClientAPI = (*network.VirtualNetworkPeeringsClient)(nil)
@@ -614,7 +688,9 @@ type VirtualNetworkGatewaysClientAPI interface {
GetVpnclientIpsecParameters(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGatewaysGetVpnclientIpsecParametersFuture, err error)
GetVpnProfilePackageURL(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGatewaysGetVpnProfilePackageURLFuture, err error)
List(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayListResultIterator, err error)
ListConnections(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGatewayListConnectionsResultPage, err error)
+ ListConnectionsComplete(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGatewayListConnectionsResultIterator, err error)
Reset(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, gatewayVip string) (result network.VirtualNetworkGatewaysResetFuture, err error)
ResetVpnClientSharedKey(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGatewaysResetVpnClientSharedKeyFuture, err error)
SetVpnclientIpsecParameters(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, vpnclientIpsecParams network.VpnClientIPsecParameters) (result network.VirtualNetworkGatewaysSetVpnclientIpsecParametersFuture, err error)
@@ -632,6 +708,7 @@ type VirtualNetworkGatewayConnectionsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string) (result network.VirtualNetworkGatewayConnection, err error)
GetSharedKey(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string) (result network.ConnectionSharedKey, err error)
List(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayConnectionListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayConnectionListResultIterator, err error)
ResetSharedKey(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string, parameters network.ConnectionResetSharedKey) (result network.VirtualNetworkGatewayConnectionsResetSharedKeyFuture, err error)
SetSharedKey(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string, parameters network.ConnectionSharedKey) (result network.VirtualNetworkGatewayConnectionsSetSharedKeyFuture, err error)
UpdateTags(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string, parameters network.TagsObject) (result network.VirtualNetworkGatewayConnectionsUpdateTagsFuture, err error)
@@ -645,6 +722,7 @@ type LocalNetworkGatewaysClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, localNetworkGatewayName string) (result network.LocalNetworkGatewaysDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, localNetworkGatewayName string) (result network.LocalNetworkGateway, err error)
List(ctx context.Context, resourceGroupName string) (result network.LocalNetworkGatewayListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.LocalNetworkGatewayListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, localNetworkGatewayName string, parameters network.TagsObject) (result network.LocalNetworkGatewaysUpdateTagsFuture, err error)
}
@@ -656,7 +734,9 @@ type VirtualNetworkTapsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, tapName string) (result network.VirtualNetworkTapsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, tapName string) (result network.VirtualNetworkTap, err error)
ListAll(ctx context.Context) (result network.VirtualNetworkTapListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.VirtualNetworkTapListResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkTapListResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkTapListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, tapName string, tapParameters network.TagsObject) (result network.VirtualNetworkTapsUpdateTagsFuture, err error)
}
@@ -668,7 +748,9 @@ type VirtualWansClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualWANName string) (result network.VirtualWansDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualWANName string) (result network.VirtualWAN, err error)
List(ctx context.Context) (result network.ListVirtualWANsResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ListVirtualWANsResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ListVirtualWANsResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ListVirtualWANsResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, virtualWANName string, wANParameters network.TagsObject) (result network.VirtualWansUpdateTagsFuture, err error)
}
@@ -680,7 +762,9 @@ type VpnSitesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, vpnSiteName string) (result network.VpnSitesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, vpnSiteName string) (result network.VpnSite, err error)
List(ctx context.Context) (result network.ListVpnSitesResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ListVpnSitesResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ListVpnSitesResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ListVpnSitesResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, vpnSiteName string, vpnSiteParameters network.TagsObject) (result network.VpnSitesUpdateTagsFuture, err error)
}
@@ -699,7 +783,9 @@ type VirtualHubsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualHubName string) (result network.VirtualHubsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualHubName string) (result network.VirtualHub, err error)
List(ctx context.Context) (result network.ListVirtualHubsResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ListVirtualHubsResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ListVirtualHubsResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ListVirtualHubsResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, virtualHubName string, virtualHubParameters network.TagsObject) (result network.VirtualHubsUpdateTagsFuture, err error)
}
@@ -709,6 +795,7 @@ var _ VirtualHubsClientAPI = (*network.VirtualHubsClient)(nil)
type HubVirtualNetworkConnectionsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, virtualHubName string, connectionName string) (result network.HubVirtualNetworkConnection, err error)
List(ctx context.Context, resourceGroupName string, virtualHubName string) (result network.ListHubVirtualNetworkConnectionsResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, virtualHubName string) (result network.ListHubVirtualNetworkConnectionsResultIterator, err error)
}
var _ HubVirtualNetworkConnectionsClientAPI = (*network.HubVirtualNetworkConnectionsClient)(nil)
@@ -719,7 +806,9 @@ type VpnGatewaysClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, gatewayName string) (result network.VpnGatewaysDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, gatewayName string) (result network.VpnGateway, err error)
List(ctx context.Context) (result network.ListVpnGatewaysResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ListVpnGatewaysResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ListVpnGatewaysResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ListVpnGatewaysResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, gatewayName string, vpnGatewayParameters network.TagsObject) (result network.VpnGatewaysUpdateTagsFuture, err error)
}
@@ -731,6 +820,7 @@ type VpnConnectionsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, gatewayName string, connectionName string) (result network.VpnConnectionsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, gatewayName string, connectionName string) (result network.VpnConnection, err error)
ListByVpnGateway(ctx context.Context, resourceGroupName string, gatewayName string) (result network.ListVpnConnectionsResultPage, err error)
+ ListByVpnGatewayComplete(ctx context.Context, resourceGroupName string, gatewayName string) (result network.ListVpnConnectionsResultIterator, err error)
}
var _ VpnConnectionsClientAPI = (*network.VpnConnectionsClient)(nil)
@@ -741,6 +831,7 @@ type P2sVpnServerConfigurationsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualWanName string, p2SVpnServerConfigurationName string) (result network.P2sVpnServerConfigurationsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualWanName string, p2SVpnServerConfigurationName string) (result network.P2SVpnServerConfiguration, err error)
ListByVirtualWan(ctx context.Context, resourceGroupName string, virtualWanName string) (result network.ListP2SVpnServerConfigurationsResultPage, err error)
+ ListByVirtualWanComplete(ctx context.Context, resourceGroupName string, virtualWanName string) (result network.ListP2SVpnServerConfigurationsResultIterator, err error)
}
var _ P2sVpnServerConfigurationsClientAPI = (*network.P2sVpnServerConfigurationsClient)(nil)
@@ -752,7 +843,9 @@ type P2sVpnGatewaysClientAPI interface {
GenerateVpnProfile(ctx context.Context, resourceGroupName string, gatewayName string, parameters network.P2SVpnProfileParameters) (result network.P2sVpnGatewaysGenerateVpnProfileFuture, err error)
Get(ctx context.Context, resourceGroupName string, gatewayName string) (result network.P2SVpnGateway, err error)
List(ctx context.Context) (result network.ListP2SVpnGatewaysResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ListP2SVpnGatewaysResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ListP2SVpnGatewaysResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ListP2SVpnGatewaysResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, gatewayName string, p2SVpnGatewayParameters network.TagsObject) (result network.P2sVpnGatewaysUpdateTagsFuture, err error)
}
diff --git a/services/network/mgmt/2018-10-01/network/operations.go b/services/network/mgmt/2018-10-01/network/operations.go
index ac506d639cb5..fbd7e01dd064 100644
--- a/services/network/mgmt/2018-10-01/network/operations.go
+++ b/services/network/mgmt/2018-10-01/network/operations.go
@@ -35,7 +35,8 @@ func NewOperationsClient(subscriptionID string) OperationsClient {
return NewOperationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewOperationsClientWithBaseURI creates an instance of the OperationsClient client.
+// NewOperationsClientWithBaseURI creates an instance of the OperationsClient client using a custom endpoint. Use this
+// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient {
return OperationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-10-01/network/p2svpngateways.go b/services/network/mgmt/2018-10-01/network/p2svpngateways.go
index be9a66b39f83..fdd7b2538d83 100644
--- a/services/network/mgmt/2018-10-01/network/p2svpngateways.go
+++ b/services/network/mgmt/2018-10-01/network/p2svpngateways.go
@@ -35,7 +35,8 @@ func NewP2sVpnGatewaysClient(subscriptionID string) P2sVpnGatewaysClient {
return NewP2sVpnGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewP2sVpnGatewaysClientWithBaseURI creates an instance of the P2sVpnGatewaysClient client.
+// NewP2sVpnGatewaysClientWithBaseURI creates an instance of the P2sVpnGatewaysClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewP2sVpnGatewaysClientWithBaseURI(baseURI string, subscriptionID string) P2sVpnGatewaysClient {
return P2sVpnGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-10-01/network/p2svpnserverconfigurations.go b/services/network/mgmt/2018-10-01/network/p2svpnserverconfigurations.go
index 00c813d662d4..03ee6b838f8f 100644
--- a/services/network/mgmt/2018-10-01/network/p2svpnserverconfigurations.go
+++ b/services/network/mgmt/2018-10-01/network/p2svpnserverconfigurations.go
@@ -35,7 +35,9 @@ func NewP2sVpnServerConfigurationsClient(subscriptionID string) P2sVpnServerConf
return NewP2sVpnServerConfigurationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewP2sVpnServerConfigurationsClientWithBaseURI creates an instance of the P2sVpnServerConfigurationsClient client.
+// NewP2sVpnServerConfigurationsClientWithBaseURI creates an instance of the P2sVpnServerConfigurationsClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewP2sVpnServerConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) P2sVpnServerConfigurationsClient {
return P2sVpnServerConfigurationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-10-01/network/packetcaptures.go b/services/network/mgmt/2018-10-01/network/packetcaptures.go
index 416fedbaeadf..0303b09a6880 100644
--- a/services/network/mgmt/2018-10-01/network/packetcaptures.go
+++ b/services/network/mgmt/2018-10-01/network/packetcaptures.go
@@ -36,7 +36,8 @@ func NewPacketCapturesClient(subscriptionID string) PacketCapturesClient {
return NewPacketCapturesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewPacketCapturesClientWithBaseURI creates an instance of the PacketCapturesClient client.
+// NewPacketCapturesClientWithBaseURI creates an instance of the PacketCapturesClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewPacketCapturesClientWithBaseURI(baseURI string, subscriptionID string) PacketCapturesClient {
return PacketCapturesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-10-01/network/profiles.go b/services/network/mgmt/2018-10-01/network/profiles.go
index f21c6fe5166f..82275bd7bc68 100644
--- a/services/network/mgmt/2018-10-01/network/profiles.go
+++ b/services/network/mgmt/2018-10-01/network/profiles.go
@@ -35,7 +35,8 @@ func NewProfilesClient(subscriptionID string) ProfilesClient {
return NewProfilesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewProfilesClientWithBaseURI creates an instance of the ProfilesClient client.
+// NewProfilesClientWithBaseURI creates an instance of the ProfilesClient client using a custom endpoint. Use this
+// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewProfilesClientWithBaseURI(baseURI string, subscriptionID string) ProfilesClient {
return ProfilesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-10-01/network/publicipaddresses.go b/services/network/mgmt/2018-10-01/network/publicipaddresses.go
index 54cd993d71f4..f800c87ae137 100644
--- a/services/network/mgmt/2018-10-01/network/publicipaddresses.go
+++ b/services/network/mgmt/2018-10-01/network/publicipaddresses.go
@@ -36,7 +36,9 @@ func NewPublicIPAddressesClient(subscriptionID string) PublicIPAddressesClient {
return NewPublicIPAddressesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewPublicIPAddressesClientWithBaseURI creates an instance of the PublicIPAddressesClient client.
+// NewPublicIPAddressesClientWithBaseURI creates an instance of the PublicIPAddressesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewPublicIPAddressesClientWithBaseURI(baseURI string, subscriptionID string) PublicIPAddressesClient {
return PublicIPAddressesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-10-01/network/publicipprefixes.go b/services/network/mgmt/2018-10-01/network/publicipprefixes.go
index 5b0a2d8af239..15a9d5681b88 100644
--- a/services/network/mgmt/2018-10-01/network/publicipprefixes.go
+++ b/services/network/mgmt/2018-10-01/network/publicipprefixes.go
@@ -35,7 +35,9 @@ func NewPublicIPPrefixesClient(subscriptionID string) PublicIPPrefixesClient {
return NewPublicIPPrefixesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewPublicIPPrefixesClientWithBaseURI creates an instance of the PublicIPPrefixesClient client.
+// NewPublicIPPrefixesClientWithBaseURI creates an instance of the PublicIPPrefixesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewPublicIPPrefixesClientWithBaseURI(baseURI string, subscriptionID string) PublicIPPrefixesClient {
return PublicIPPrefixesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-10-01/network/routefilterrules.go b/services/network/mgmt/2018-10-01/network/routefilterrules.go
index 6435b4936a32..ea24b5a5ca05 100644
--- a/services/network/mgmt/2018-10-01/network/routefilterrules.go
+++ b/services/network/mgmt/2018-10-01/network/routefilterrules.go
@@ -36,7 +36,9 @@ func NewRouteFilterRulesClient(subscriptionID string) RouteFilterRulesClient {
return NewRouteFilterRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewRouteFilterRulesClientWithBaseURI creates an instance of the RouteFilterRulesClient client.
+// NewRouteFilterRulesClientWithBaseURI creates an instance of the RouteFilterRulesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewRouteFilterRulesClientWithBaseURI(baseURI string, subscriptionID string) RouteFilterRulesClient {
return RouteFilterRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-10-01/network/routefilters.go b/services/network/mgmt/2018-10-01/network/routefilters.go
index 1dcaaef0e13a..95cd96b6da89 100644
--- a/services/network/mgmt/2018-10-01/network/routefilters.go
+++ b/services/network/mgmt/2018-10-01/network/routefilters.go
@@ -35,7 +35,8 @@ func NewRouteFiltersClient(subscriptionID string) RouteFiltersClient {
return NewRouteFiltersClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewRouteFiltersClientWithBaseURI creates an instance of the RouteFiltersClient client.
+// NewRouteFiltersClientWithBaseURI creates an instance of the RouteFiltersClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewRouteFiltersClientWithBaseURI(baseURI string, subscriptionID string) RouteFiltersClient {
return RouteFiltersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-10-01/network/routes.go b/services/network/mgmt/2018-10-01/network/routes.go
index c5506c1deed3..581118a3e51b 100644
--- a/services/network/mgmt/2018-10-01/network/routes.go
+++ b/services/network/mgmt/2018-10-01/network/routes.go
@@ -35,7 +35,8 @@ func NewRoutesClient(subscriptionID string) RoutesClient {
return NewRoutesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewRoutesClientWithBaseURI creates an instance of the RoutesClient client.
+// NewRoutesClientWithBaseURI creates an instance of the RoutesClient client using a custom endpoint. Use this when
+// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewRoutesClientWithBaseURI(baseURI string, subscriptionID string) RoutesClient {
return RoutesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-10-01/network/routetables.go b/services/network/mgmt/2018-10-01/network/routetables.go
index 15e06db242c7..22a502006258 100644
--- a/services/network/mgmt/2018-10-01/network/routetables.go
+++ b/services/network/mgmt/2018-10-01/network/routetables.go
@@ -35,7 +35,8 @@ func NewRouteTablesClient(subscriptionID string) RouteTablesClient {
return NewRouteTablesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewRouteTablesClientWithBaseURI creates an instance of the RouteTablesClient client.
+// NewRouteTablesClientWithBaseURI creates an instance of the RouteTablesClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewRouteTablesClientWithBaseURI(baseURI string, subscriptionID string) RouteTablesClient {
return RouteTablesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-10-01/network/securitygroups.go b/services/network/mgmt/2018-10-01/network/securitygroups.go
index 75b8d454aeac..56a78d38ab32 100644
--- a/services/network/mgmt/2018-10-01/network/securitygroups.go
+++ b/services/network/mgmt/2018-10-01/network/securitygroups.go
@@ -35,7 +35,8 @@ func NewSecurityGroupsClient(subscriptionID string) SecurityGroupsClient {
return NewSecurityGroupsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewSecurityGroupsClientWithBaseURI creates an instance of the SecurityGroupsClient client.
+// NewSecurityGroupsClientWithBaseURI creates an instance of the SecurityGroupsClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewSecurityGroupsClientWithBaseURI(baseURI string, subscriptionID string) SecurityGroupsClient {
return SecurityGroupsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-10-01/network/securityrules.go b/services/network/mgmt/2018-10-01/network/securityrules.go
index e185b82f0613..877646f46dba 100644
--- a/services/network/mgmt/2018-10-01/network/securityrules.go
+++ b/services/network/mgmt/2018-10-01/network/securityrules.go
@@ -35,7 +35,8 @@ func NewSecurityRulesClient(subscriptionID string) SecurityRulesClient {
return NewSecurityRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewSecurityRulesClientWithBaseURI creates an instance of the SecurityRulesClient client.
+// NewSecurityRulesClientWithBaseURI creates an instance of the SecurityRulesClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewSecurityRulesClientWithBaseURI(baseURI string, subscriptionID string) SecurityRulesClient {
return SecurityRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-10-01/network/serviceendpointpolicies.go b/services/network/mgmt/2018-10-01/network/serviceendpointpolicies.go
index 7d45d05192bf..7e202f3a37ca 100644
--- a/services/network/mgmt/2018-10-01/network/serviceendpointpolicies.go
+++ b/services/network/mgmt/2018-10-01/network/serviceendpointpolicies.go
@@ -35,7 +35,9 @@ func NewServiceEndpointPoliciesClient(subscriptionID string) ServiceEndpointPoli
return NewServiceEndpointPoliciesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewServiceEndpointPoliciesClientWithBaseURI creates an instance of the ServiceEndpointPoliciesClient client.
+// NewServiceEndpointPoliciesClientWithBaseURI creates an instance of the ServiceEndpointPoliciesClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewServiceEndpointPoliciesClientWithBaseURI(baseURI string, subscriptionID string) ServiceEndpointPoliciesClient {
return ServiceEndpointPoliciesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-10-01/network/serviceendpointpolicydefinitions.go b/services/network/mgmt/2018-10-01/network/serviceendpointpolicydefinitions.go
index 0e39f573af7c..16a58d6b1f12 100644
--- a/services/network/mgmt/2018-10-01/network/serviceendpointpolicydefinitions.go
+++ b/services/network/mgmt/2018-10-01/network/serviceendpointpolicydefinitions.go
@@ -36,7 +36,8 @@ func NewServiceEndpointPolicyDefinitionsClient(subscriptionID string) ServiceEnd
}
// NewServiceEndpointPolicyDefinitionsClientWithBaseURI creates an instance of the
-// ServiceEndpointPolicyDefinitionsClient client.
+// ServiceEndpointPolicyDefinitionsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewServiceEndpointPolicyDefinitionsClientWithBaseURI(baseURI string, subscriptionID string) ServiceEndpointPolicyDefinitionsClient {
return ServiceEndpointPolicyDefinitionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-10-01/network/subnets.go b/services/network/mgmt/2018-10-01/network/subnets.go
index 0867512d4aa7..414a30adc6bb 100644
--- a/services/network/mgmt/2018-10-01/network/subnets.go
+++ b/services/network/mgmt/2018-10-01/network/subnets.go
@@ -35,7 +35,8 @@ func NewSubnetsClient(subscriptionID string) SubnetsClient {
return NewSubnetsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewSubnetsClientWithBaseURI creates an instance of the SubnetsClient client.
+// NewSubnetsClientWithBaseURI creates an instance of the SubnetsClient client using a custom endpoint. Use this when
+// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewSubnetsClientWithBaseURI(baseURI string, subscriptionID string) SubnetsClient {
return SubnetsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-10-01/network/usages.go b/services/network/mgmt/2018-10-01/network/usages.go
index 3c96a4f2c516..e5b2c99530ce 100644
--- a/services/network/mgmt/2018-10-01/network/usages.go
+++ b/services/network/mgmt/2018-10-01/network/usages.go
@@ -36,7 +36,8 @@ func NewUsagesClient(subscriptionID string) UsagesClient {
return NewUsagesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewUsagesClientWithBaseURI creates an instance of the UsagesClient client.
+// NewUsagesClientWithBaseURI creates an instance of the UsagesClient client using a custom endpoint. Use this when
+// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewUsagesClientWithBaseURI(baseURI string, subscriptionID string) UsagesClient {
return UsagesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-10-01/network/virtualhubs.go b/services/network/mgmt/2018-10-01/network/virtualhubs.go
index d7d6f54b4cca..2c9b6199a2a1 100644
--- a/services/network/mgmt/2018-10-01/network/virtualhubs.go
+++ b/services/network/mgmt/2018-10-01/network/virtualhubs.go
@@ -35,7 +35,8 @@ func NewVirtualHubsClient(subscriptionID string) VirtualHubsClient {
return NewVirtualHubsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualHubsClientWithBaseURI creates an instance of the VirtualHubsClient client.
+// NewVirtualHubsClientWithBaseURI creates an instance of the VirtualHubsClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVirtualHubsClientWithBaseURI(baseURI string, subscriptionID string) VirtualHubsClient {
return VirtualHubsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-10-01/network/virtualnetworkgatewayconnections.go b/services/network/mgmt/2018-10-01/network/virtualnetworkgatewayconnections.go
index 58deedfadb35..7286676a16a1 100644
--- a/services/network/mgmt/2018-10-01/network/virtualnetworkgatewayconnections.go
+++ b/services/network/mgmt/2018-10-01/network/virtualnetworkgatewayconnections.go
@@ -37,7 +37,8 @@ func NewVirtualNetworkGatewayConnectionsClient(subscriptionID string) VirtualNet
}
// NewVirtualNetworkGatewayConnectionsClientWithBaseURI creates an instance of the
-// VirtualNetworkGatewayConnectionsClient client.
+// VirtualNetworkGatewayConnectionsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVirtualNetworkGatewayConnectionsClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworkGatewayConnectionsClient {
return VirtualNetworkGatewayConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-10-01/network/virtualnetworkgateways.go b/services/network/mgmt/2018-10-01/network/virtualnetworkgateways.go
index 16610c29b670..39aa05738bfe 100644
--- a/services/network/mgmt/2018-10-01/network/virtualnetworkgateways.go
+++ b/services/network/mgmt/2018-10-01/network/virtualnetworkgateways.go
@@ -36,7 +36,9 @@ func NewVirtualNetworkGatewaysClient(subscriptionID string) VirtualNetworkGatewa
return NewVirtualNetworkGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualNetworkGatewaysClientWithBaseURI creates an instance of the VirtualNetworkGatewaysClient client.
+// NewVirtualNetworkGatewaysClientWithBaseURI creates an instance of the VirtualNetworkGatewaysClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewVirtualNetworkGatewaysClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworkGatewaysClient {
return VirtualNetworkGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-10-01/network/virtualnetworkpeerings.go b/services/network/mgmt/2018-10-01/network/virtualnetworkpeerings.go
index 707cbbda2040..97c6e047f6e1 100644
--- a/services/network/mgmt/2018-10-01/network/virtualnetworkpeerings.go
+++ b/services/network/mgmt/2018-10-01/network/virtualnetworkpeerings.go
@@ -35,7 +35,9 @@ func NewVirtualNetworkPeeringsClient(subscriptionID string) VirtualNetworkPeerin
return NewVirtualNetworkPeeringsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualNetworkPeeringsClientWithBaseURI creates an instance of the VirtualNetworkPeeringsClient client.
+// NewVirtualNetworkPeeringsClientWithBaseURI creates an instance of the VirtualNetworkPeeringsClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewVirtualNetworkPeeringsClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworkPeeringsClient {
return VirtualNetworkPeeringsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-10-01/network/virtualnetworks.go b/services/network/mgmt/2018-10-01/network/virtualnetworks.go
index a368a97be24a..d8ab2649244a 100644
--- a/services/network/mgmt/2018-10-01/network/virtualnetworks.go
+++ b/services/network/mgmt/2018-10-01/network/virtualnetworks.go
@@ -35,7 +35,8 @@ func NewVirtualNetworksClient(subscriptionID string) VirtualNetworksClient {
return NewVirtualNetworksClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualNetworksClientWithBaseURI creates an instance of the VirtualNetworksClient client.
+// NewVirtualNetworksClientWithBaseURI creates an instance of the VirtualNetworksClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVirtualNetworksClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworksClient {
return VirtualNetworksClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-10-01/network/virtualnetworktaps.go b/services/network/mgmt/2018-10-01/network/virtualnetworktaps.go
index 49b46f2bec4b..3cc6fcfe49a0 100644
--- a/services/network/mgmt/2018-10-01/network/virtualnetworktaps.go
+++ b/services/network/mgmt/2018-10-01/network/virtualnetworktaps.go
@@ -36,7 +36,9 @@ func NewVirtualNetworkTapsClient(subscriptionID string) VirtualNetworkTapsClient
return NewVirtualNetworkTapsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualNetworkTapsClientWithBaseURI creates an instance of the VirtualNetworkTapsClient client.
+// NewVirtualNetworkTapsClientWithBaseURI creates an instance of the VirtualNetworkTapsClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewVirtualNetworkTapsClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworkTapsClient {
return VirtualNetworkTapsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-10-01/network/virtualwans.go b/services/network/mgmt/2018-10-01/network/virtualwans.go
index 7758156310a6..72bfca977728 100644
--- a/services/network/mgmt/2018-10-01/network/virtualwans.go
+++ b/services/network/mgmt/2018-10-01/network/virtualwans.go
@@ -35,7 +35,8 @@ func NewVirtualWansClient(subscriptionID string) VirtualWansClient {
return NewVirtualWansClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualWansClientWithBaseURI creates an instance of the VirtualWansClient client.
+// NewVirtualWansClientWithBaseURI creates an instance of the VirtualWansClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVirtualWansClientWithBaseURI(baseURI string, subscriptionID string) VirtualWansClient {
return VirtualWansClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-10-01/network/vpnconnections.go b/services/network/mgmt/2018-10-01/network/vpnconnections.go
index e4571993177b..0ce9a0085501 100644
--- a/services/network/mgmt/2018-10-01/network/vpnconnections.go
+++ b/services/network/mgmt/2018-10-01/network/vpnconnections.go
@@ -35,7 +35,8 @@ func NewVpnConnectionsClient(subscriptionID string) VpnConnectionsClient {
return NewVpnConnectionsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVpnConnectionsClientWithBaseURI creates an instance of the VpnConnectionsClient client.
+// NewVpnConnectionsClientWithBaseURI creates an instance of the VpnConnectionsClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVpnConnectionsClientWithBaseURI(baseURI string, subscriptionID string) VpnConnectionsClient {
return VpnConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-10-01/network/vpngateways.go b/services/network/mgmt/2018-10-01/network/vpngateways.go
index 2278c7105413..53fe941b941f 100644
--- a/services/network/mgmt/2018-10-01/network/vpngateways.go
+++ b/services/network/mgmt/2018-10-01/network/vpngateways.go
@@ -35,7 +35,8 @@ func NewVpnGatewaysClient(subscriptionID string) VpnGatewaysClient {
return NewVpnGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVpnGatewaysClientWithBaseURI creates an instance of the VpnGatewaysClient client.
+// NewVpnGatewaysClientWithBaseURI creates an instance of the VpnGatewaysClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVpnGatewaysClientWithBaseURI(baseURI string, subscriptionID string) VpnGatewaysClient {
return VpnGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-10-01/network/vpnsites.go b/services/network/mgmt/2018-10-01/network/vpnsites.go
index b6e8ac26e9dd..45e0cab544cf 100644
--- a/services/network/mgmt/2018-10-01/network/vpnsites.go
+++ b/services/network/mgmt/2018-10-01/network/vpnsites.go
@@ -35,7 +35,8 @@ func NewVpnSitesClient(subscriptionID string) VpnSitesClient {
return NewVpnSitesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVpnSitesClientWithBaseURI creates an instance of the VpnSitesClient client.
+// NewVpnSitesClientWithBaseURI creates an instance of the VpnSitesClient client using a custom endpoint. Use this
+// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVpnSitesClientWithBaseURI(baseURI string, subscriptionID string) VpnSitesClient {
return VpnSitesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-10-01/network/vpnsitesconfiguration.go b/services/network/mgmt/2018-10-01/network/vpnsitesconfiguration.go
index 888b91a434b7..3811a580d889 100644
--- a/services/network/mgmt/2018-10-01/network/vpnsitesconfiguration.go
+++ b/services/network/mgmt/2018-10-01/network/vpnsitesconfiguration.go
@@ -35,7 +35,9 @@ func NewVpnSitesConfigurationClient(subscriptionID string) VpnSitesConfiguration
return NewVpnSitesConfigurationClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVpnSitesConfigurationClientWithBaseURI creates an instance of the VpnSitesConfigurationClient client.
+// NewVpnSitesConfigurationClientWithBaseURI creates an instance of the VpnSitesConfigurationClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewVpnSitesConfigurationClientWithBaseURI(baseURI string, subscriptionID string) VpnSitesConfigurationClient {
return VpnSitesConfigurationClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-10-01/network/watchers.go b/services/network/mgmt/2018-10-01/network/watchers.go
index 365b2aceec97..f1f678dd6e85 100644
--- a/services/network/mgmt/2018-10-01/network/watchers.go
+++ b/services/network/mgmt/2018-10-01/network/watchers.go
@@ -36,7 +36,8 @@ func NewWatchersClient(subscriptionID string) WatchersClient {
return NewWatchersClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewWatchersClientWithBaseURI creates an instance of the WatchersClient client.
+// NewWatchersClientWithBaseURI creates an instance of the WatchersClient client using a custom endpoint. Use this
+// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewWatchersClientWithBaseURI(baseURI string, subscriptionID string) WatchersClient {
return WatchersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-11-01/network/applicationgateways.go b/services/network/mgmt/2018-11-01/network/applicationgateways.go
index a37ab8cca99e..017a43c53bbc 100644
--- a/services/network/mgmt/2018-11-01/network/applicationgateways.go
+++ b/services/network/mgmt/2018-11-01/network/applicationgateways.go
@@ -36,7 +36,9 @@ func NewApplicationGatewaysClient(subscriptionID string) ApplicationGatewaysClie
return NewApplicationGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewApplicationGatewaysClientWithBaseURI creates an instance of the ApplicationGatewaysClient client.
+// NewApplicationGatewaysClientWithBaseURI creates an instance of the ApplicationGatewaysClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewApplicationGatewaysClientWithBaseURI(baseURI string, subscriptionID string) ApplicationGatewaysClient {
return ApplicationGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-11-01/network/applicationsecuritygroups.go b/services/network/mgmt/2018-11-01/network/applicationsecuritygroups.go
index 705925ceba1e..c4934cb4ff5b 100644
--- a/services/network/mgmt/2018-11-01/network/applicationsecuritygroups.go
+++ b/services/network/mgmt/2018-11-01/network/applicationsecuritygroups.go
@@ -35,7 +35,9 @@ func NewApplicationSecurityGroupsClient(subscriptionID string) ApplicationSecuri
return NewApplicationSecurityGroupsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewApplicationSecurityGroupsClientWithBaseURI creates an instance of the ApplicationSecurityGroupsClient client.
+// NewApplicationSecurityGroupsClientWithBaseURI creates an instance of the ApplicationSecurityGroupsClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewApplicationSecurityGroupsClientWithBaseURI(baseURI string, subscriptionID string) ApplicationSecurityGroupsClient {
return ApplicationSecurityGroupsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-11-01/network/availabledelegations.go b/services/network/mgmt/2018-11-01/network/availabledelegations.go
index 6b0992cbfbff..b115fefffb8f 100644
--- a/services/network/mgmt/2018-11-01/network/availabledelegations.go
+++ b/services/network/mgmt/2018-11-01/network/availabledelegations.go
@@ -35,7 +35,9 @@ func NewAvailableDelegationsClient(subscriptionID string) AvailableDelegationsCl
return NewAvailableDelegationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewAvailableDelegationsClientWithBaseURI creates an instance of the AvailableDelegationsClient client.
+// NewAvailableDelegationsClientWithBaseURI creates an instance of the AvailableDelegationsClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewAvailableDelegationsClientWithBaseURI(baseURI string, subscriptionID string) AvailableDelegationsClient {
return AvailableDelegationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-11-01/network/availableendpointservices.go b/services/network/mgmt/2018-11-01/network/availableendpointservices.go
index e4e835f72b07..e168a2bc72ab 100644
--- a/services/network/mgmt/2018-11-01/network/availableendpointservices.go
+++ b/services/network/mgmt/2018-11-01/network/availableendpointservices.go
@@ -35,7 +35,9 @@ func NewAvailableEndpointServicesClient(subscriptionID string) AvailableEndpoint
return NewAvailableEndpointServicesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewAvailableEndpointServicesClientWithBaseURI creates an instance of the AvailableEndpointServicesClient client.
+// NewAvailableEndpointServicesClientWithBaseURI creates an instance of the AvailableEndpointServicesClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewAvailableEndpointServicesClientWithBaseURI(baseURI string, subscriptionID string) AvailableEndpointServicesClient {
return AvailableEndpointServicesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-11-01/network/availableresourcegroupdelegations.go b/services/network/mgmt/2018-11-01/network/availableresourcegroupdelegations.go
index c20f86d67e46..ebbe9c06ad0c 100644
--- a/services/network/mgmt/2018-11-01/network/availableresourcegroupdelegations.go
+++ b/services/network/mgmt/2018-11-01/network/availableresourcegroupdelegations.go
@@ -37,7 +37,8 @@ func NewAvailableResourceGroupDelegationsClient(subscriptionID string) Available
}
// NewAvailableResourceGroupDelegationsClientWithBaseURI creates an instance of the
-// AvailableResourceGroupDelegationsClient client.
+// AvailableResourceGroupDelegationsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewAvailableResourceGroupDelegationsClientWithBaseURI(baseURI string, subscriptionID string) AvailableResourceGroupDelegationsClient {
return AvailableResourceGroupDelegationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-11-01/network/azurefirewallfqdntags.go b/services/network/mgmt/2018-11-01/network/azurefirewallfqdntags.go
index 0fb525002419..ceed293b645a 100644
--- a/services/network/mgmt/2018-11-01/network/azurefirewallfqdntags.go
+++ b/services/network/mgmt/2018-11-01/network/azurefirewallfqdntags.go
@@ -35,7 +35,9 @@ func NewAzureFirewallFqdnTagsClient(subscriptionID string) AzureFirewallFqdnTags
return NewAzureFirewallFqdnTagsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewAzureFirewallFqdnTagsClientWithBaseURI creates an instance of the AzureFirewallFqdnTagsClient client.
+// NewAzureFirewallFqdnTagsClientWithBaseURI creates an instance of the AzureFirewallFqdnTagsClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewAzureFirewallFqdnTagsClientWithBaseURI(baseURI string, subscriptionID string) AzureFirewallFqdnTagsClient {
return AzureFirewallFqdnTagsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-11-01/network/azurefirewalls.go b/services/network/mgmt/2018-11-01/network/azurefirewalls.go
index 0987b067f273..235f8773406d 100644
--- a/services/network/mgmt/2018-11-01/network/azurefirewalls.go
+++ b/services/network/mgmt/2018-11-01/network/azurefirewalls.go
@@ -35,7 +35,8 @@ func NewAzureFirewallsClient(subscriptionID string) AzureFirewallsClient {
return NewAzureFirewallsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewAzureFirewallsClientWithBaseURI creates an instance of the AzureFirewallsClient client.
+// NewAzureFirewallsClientWithBaseURI creates an instance of the AzureFirewallsClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewAzureFirewallsClientWithBaseURI(baseURI string, subscriptionID string) AzureFirewallsClient {
return AzureFirewallsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-11-01/network/bgpservicecommunities.go b/services/network/mgmt/2018-11-01/network/bgpservicecommunities.go
index 057f71e46563..67f068f46085 100644
--- a/services/network/mgmt/2018-11-01/network/bgpservicecommunities.go
+++ b/services/network/mgmt/2018-11-01/network/bgpservicecommunities.go
@@ -35,7 +35,9 @@ func NewBgpServiceCommunitiesClient(subscriptionID string) BgpServiceCommunities
return NewBgpServiceCommunitiesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewBgpServiceCommunitiesClientWithBaseURI creates an instance of the BgpServiceCommunitiesClient client.
+// NewBgpServiceCommunitiesClientWithBaseURI creates an instance of the BgpServiceCommunitiesClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewBgpServiceCommunitiesClientWithBaseURI(baseURI string, subscriptionID string) BgpServiceCommunitiesClient {
return BgpServiceCommunitiesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-11-01/network/client.go b/services/network/mgmt/2018-11-01/network/client.go
index 8fc1637e059f..8b76a6a99a09 100644
--- a/services/network/mgmt/2018-11-01/network/client.go
+++ b/services/network/mgmt/2018-11-01/network/client.go
@@ -45,7 +45,8 @@ func New(subscriptionID string) BaseClient {
return NewWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewWithBaseURI creates an instance of the BaseClient client.
+// NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with
+// an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient {
return BaseClient{
Client: autorest.NewClientWithUserAgent(UserAgent()),
diff --git a/services/network/mgmt/2018-11-01/network/connectionmonitors.go b/services/network/mgmt/2018-11-01/network/connectionmonitors.go
index 5dd7d8be4da2..c856721e9980 100644
--- a/services/network/mgmt/2018-11-01/network/connectionmonitors.go
+++ b/services/network/mgmt/2018-11-01/network/connectionmonitors.go
@@ -36,7 +36,9 @@ func NewConnectionMonitorsClient(subscriptionID string) ConnectionMonitorsClient
return NewConnectionMonitorsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewConnectionMonitorsClientWithBaseURI creates an instance of the ConnectionMonitorsClient client.
+// NewConnectionMonitorsClientWithBaseURI creates an instance of the ConnectionMonitorsClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewConnectionMonitorsClientWithBaseURI(baseURI string, subscriptionID string) ConnectionMonitorsClient {
return ConnectionMonitorsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-11-01/network/ddoscustompolicies.go b/services/network/mgmt/2018-11-01/network/ddoscustompolicies.go
index 0c9f089b4ede..e77308bcba8f 100644
--- a/services/network/mgmt/2018-11-01/network/ddoscustompolicies.go
+++ b/services/network/mgmt/2018-11-01/network/ddoscustompolicies.go
@@ -35,7 +35,9 @@ func NewDdosCustomPoliciesClient(subscriptionID string) DdosCustomPoliciesClient
return NewDdosCustomPoliciesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewDdosCustomPoliciesClientWithBaseURI creates an instance of the DdosCustomPoliciesClient client.
+// NewDdosCustomPoliciesClientWithBaseURI creates an instance of the DdosCustomPoliciesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewDdosCustomPoliciesClientWithBaseURI(baseURI string, subscriptionID string) DdosCustomPoliciesClient {
return DdosCustomPoliciesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-11-01/network/ddosprotectionplans.go b/services/network/mgmt/2018-11-01/network/ddosprotectionplans.go
index 7b03626a5d65..38aba78a7941 100644
--- a/services/network/mgmt/2018-11-01/network/ddosprotectionplans.go
+++ b/services/network/mgmt/2018-11-01/network/ddosprotectionplans.go
@@ -35,7 +35,9 @@ func NewDdosProtectionPlansClient(subscriptionID string) DdosProtectionPlansClie
return NewDdosProtectionPlansClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewDdosProtectionPlansClientWithBaseURI creates an instance of the DdosProtectionPlansClient client.
+// NewDdosProtectionPlansClientWithBaseURI creates an instance of the DdosProtectionPlansClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewDdosProtectionPlansClientWithBaseURI(baseURI string, subscriptionID string) DdosProtectionPlansClient {
return DdosProtectionPlansClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-11-01/network/defaultsecurityrules.go b/services/network/mgmt/2018-11-01/network/defaultsecurityrules.go
index 848275e97f1d..457543eb875a 100644
--- a/services/network/mgmt/2018-11-01/network/defaultsecurityrules.go
+++ b/services/network/mgmt/2018-11-01/network/defaultsecurityrules.go
@@ -35,7 +35,9 @@ func NewDefaultSecurityRulesClient(subscriptionID string) DefaultSecurityRulesCl
return NewDefaultSecurityRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewDefaultSecurityRulesClientWithBaseURI creates an instance of the DefaultSecurityRulesClient client.
+// NewDefaultSecurityRulesClientWithBaseURI creates an instance of the DefaultSecurityRulesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewDefaultSecurityRulesClientWithBaseURI(baseURI string, subscriptionID string) DefaultSecurityRulesClient {
return DefaultSecurityRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-11-01/network/expressroutecircuitauthorizations.go b/services/network/mgmt/2018-11-01/network/expressroutecircuitauthorizations.go
index e2de6b284be3..6046454a12af 100644
--- a/services/network/mgmt/2018-11-01/network/expressroutecircuitauthorizations.go
+++ b/services/network/mgmt/2018-11-01/network/expressroutecircuitauthorizations.go
@@ -37,7 +37,8 @@ func NewExpressRouteCircuitAuthorizationsClient(subscriptionID string) ExpressRo
}
// NewExpressRouteCircuitAuthorizationsClientWithBaseURI creates an instance of the
-// ExpressRouteCircuitAuthorizationsClient client.
+// ExpressRouteCircuitAuthorizationsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewExpressRouteCircuitAuthorizationsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCircuitAuthorizationsClient {
return ExpressRouteCircuitAuthorizationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-11-01/network/expressroutecircuitconnections.go b/services/network/mgmt/2018-11-01/network/expressroutecircuitconnections.go
index 1cb2a0e25b37..7c09598d2905 100644
--- a/services/network/mgmt/2018-11-01/network/expressroutecircuitconnections.go
+++ b/services/network/mgmt/2018-11-01/network/expressroutecircuitconnections.go
@@ -36,7 +36,8 @@ func NewExpressRouteCircuitConnectionsClient(subscriptionID string) ExpressRoute
}
// NewExpressRouteCircuitConnectionsClientWithBaseURI creates an instance of the ExpressRouteCircuitConnectionsClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewExpressRouteCircuitConnectionsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCircuitConnectionsClient {
return ExpressRouteCircuitConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-11-01/network/expressroutecircuitpeerings.go b/services/network/mgmt/2018-11-01/network/expressroutecircuitpeerings.go
index 7d11625dcb9b..de45130901f5 100644
--- a/services/network/mgmt/2018-11-01/network/expressroutecircuitpeerings.go
+++ b/services/network/mgmt/2018-11-01/network/expressroutecircuitpeerings.go
@@ -36,7 +36,9 @@ func NewExpressRouteCircuitPeeringsClient(subscriptionID string) ExpressRouteCir
return NewExpressRouteCircuitPeeringsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewExpressRouteCircuitPeeringsClientWithBaseURI creates an instance of the ExpressRouteCircuitPeeringsClient client.
+// NewExpressRouteCircuitPeeringsClientWithBaseURI creates an instance of the ExpressRouteCircuitPeeringsClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewExpressRouteCircuitPeeringsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCircuitPeeringsClient {
return ExpressRouteCircuitPeeringsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-11-01/network/expressroutecircuits.go b/services/network/mgmt/2018-11-01/network/expressroutecircuits.go
index c32aad8a876d..5ca471ba3530 100644
--- a/services/network/mgmt/2018-11-01/network/expressroutecircuits.go
+++ b/services/network/mgmt/2018-11-01/network/expressroutecircuits.go
@@ -35,7 +35,9 @@ func NewExpressRouteCircuitsClient(subscriptionID string) ExpressRouteCircuitsCl
return NewExpressRouteCircuitsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewExpressRouteCircuitsClientWithBaseURI creates an instance of the ExpressRouteCircuitsClient client.
+// NewExpressRouteCircuitsClientWithBaseURI creates an instance of the ExpressRouteCircuitsClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewExpressRouteCircuitsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCircuitsClient {
return ExpressRouteCircuitsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-11-01/network/expressrouteconnections.go b/services/network/mgmt/2018-11-01/network/expressrouteconnections.go
index 00e746525492..31246658a89b 100644
--- a/services/network/mgmt/2018-11-01/network/expressrouteconnections.go
+++ b/services/network/mgmt/2018-11-01/network/expressrouteconnections.go
@@ -36,7 +36,9 @@ func NewExpressRouteConnectionsClient(subscriptionID string) ExpressRouteConnect
return NewExpressRouteConnectionsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewExpressRouteConnectionsClientWithBaseURI creates an instance of the ExpressRouteConnectionsClient client.
+// NewExpressRouteConnectionsClientWithBaseURI creates an instance of the ExpressRouteConnectionsClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewExpressRouteConnectionsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteConnectionsClient {
return ExpressRouteConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-11-01/network/expressroutecrossconnectionpeerings.go b/services/network/mgmt/2018-11-01/network/expressroutecrossconnectionpeerings.go
index 69bb033ea767..e80774779831 100644
--- a/services/network/mgmt/2018-11-01/network/expressroutecrossconnectionpeerings.go
+++ b/services/network/mgmt/2018-11-01/network/expressroutecrossconnectionpeerings.go
@@ -38,7 +38,8 @@ func NewExpressRouteCrossConnectionPeeringsClient(subscriptionID string) Express
}
// NewExpressRouteCrossConnectionPeeringsClientWithBaseURI creates an instance of the
-// ExpressRouteCrossConnectionPeeringsClient client.
+// ExpressRouteCrossConnectionPeeringsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewExpressRouteCrossConnectionPeeringsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCrossConnectionPeeringsClient {
return ExpressRouteCrossConnectionPeeringsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-11-01/network/expressroutecrossconnections.go b/services/network/mgmt/2018-11-01/network/expressroutecrossconnections.go
index c6f612f479e3..9c3c7844941b 100644
--- a/services/network/mgmt/2018-11-01/network/expressroutecrossconnections.go
+++ b/services/network/mgmt/2018-11-01/network/expressroutecrossconnections.go
@@ -36,7 +36,8 @@ func NewExpressRouteCrossConnectionsClient(subscriptionID string) ExpressRouteCr
}
// NewExpressRouteCrossConnectionsClientWithBaseURI creates an instance of the ExpressRouteCrossConnectionsClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewExpressRouteCrossConnectionsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCrossConnectionsClient {
return ExpressRouteCrossConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-11-01/network/expressroutegateways.go b/services/network/mgmt/2018-11-01/network/expressroutegateways.go
index 2f6739ab058a..a94bde28f6a1 100644
--- a/services/network/mgmt/2018-11-01/network/expressroutegateways.go
+++ b/services/network/mgmt/2018-11-01/network/expressroutegateways.go
@@ -36,7 +36,9 @@ func NewExpressRouteGatewaysClient(subscriptionID string) ExpressRouteGatewaysCl
return NewExpressRouteGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewExpressRouteGatewaysClientWithBaseURI creates an instance of the ExpressRouteGatewaysClient client.
+// NewExpressRouteGatewaysClientWithBaseURI creates an instance of the ExpressRouteGatewaysClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewExpressRouteGatewaysClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteGatewaysClient {
return ExpressRouteGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-11-01/network/expressroutelinks.go b/services/network/mgmt/2018-11-01/network/expressroutelinks.go
index dff04e93ba9f..ae58d1cfc784 100644
--- a/services/network/mgmt/2018-11-01/network/expressroutelinks.go
+++ b/services/network/mgmt/2018-11-01/network/expressroutelinks.go
@@ -35,7 +35,9 @@ func NewExpressRouteLinksClient(subscriptionID string) ExpressRouteLinksClient {
return NewExpressRouteLinksClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewExpressRouteLinksClientWithBaseURI creates an instance of the ExpressRouteLinksClient client.
+// NewExpressRouteLinksClientWithBaseURI creates an instance of the ExpressRouteLinksClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewExpressRouteLinksClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteLinksClient {
return ExpressRouteLinksClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-11-01/network/expressrouteports.go b/services/network/mgmt/2018-11-01/network/expressrouteports.go
index 7b916502ee46..2e69164d7ef0 100644
--- a/services/network/mgmt/2018-11-01/network/expressrouteports.go
+++ b/services/network/mgmt/2018-11-01/network/expressrouteports.go
@@ -35,7 +35,9 @@ func NewExpressRoutePortsClient(subscriptionID string) ExpressRoutePortsClient {
return NewExpressRoutePortsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewExpressRoutePortsClientWithBaseURI creates an instance of the ExpressRoutePortsClient client.
+// NewExpressRoutePortsClientWithBaseURI creates an instance of the ExpressRoutePortsClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewExpressRoutePortsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRoutePortsClient {
return ExpressRoutePortsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-11-01/network/expressrouteportslocations.go b/services/network/mgmt/2018-11-01/network/expressrouteportslocations.go
index 783eb8aa2275..71b9171ec531 100644
--- a/services/network/mgmt/2018-11-01/network/expressrouteportslocations.go
+++ b/services/network/mgmt/2018-11-01/network/expressrouteportslocations.go
@@ -35,7 +35,9 @@ func NewExpressRoutePortsLocationsClient(subscriptionID string) ExpressRoutePort
return NewExpressRoutePortsLocationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewExpressRoutePortsLocationsClientWithBaseURI creates an instance of the ExpressRoutePortsLocationsClient client.
+// NewExpressRoutePortsLocationsClientWithBaseURI creates an instance of the ExpressRoutePortsLocationsClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewExpressRoutePortsLocationsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRoutePortsLocationsClient {
return ExpressRoutePortsLocationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-11-01/network/expressrouteserviceproviders.go b/services/network/mgmt/2018-11-01/network/expressrouteserviceproviders.go
index 99c534493342..5c37b70029ba 100644
--- a/services/network/mgmt/2018-11-01/network/expressrouteserviceproviders.go
+++ b/services/network/mgmt/2018-11-01/network/expressrouteserviceproviders.go
@@ -36,7 +36,8 @@ func NewExpressRouteServiceProvidersClient(subscriptionID string) ExpressRouteSe
}
// NewExpressRouteServiceProvidersClientWithBaseURI creates an instance of the ExpressRouteServiceProvidersClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewExpressRouteServiceProvidersClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteServiceProvidersClient {
return ExpressRouteServiceProvidersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-11-01/network/hubvirtualnetworkconnections.go b/services/network/mgmt/2018-11-01/network/hubvirtualnetworkconnections.go
index 49e5d9fe218c..2990636cb981 100644
--- a/services/network/mgmt/2018-11-01/network/hubvirtualnetworkconnections.go
+++ b/services/network/mgmt/2018-11-01/network/hubvirtualnetworkconnections.go
@@ -36,7 +36,8 @@ func NewHubVirtualNetworkConnectionsClient(subscriptionID string) HubVirtualNetw
}
// NewHubVirtualNetworkConnectionsClientWithBaseURI creates an instance of the HubVirtualNetworkConnectionsClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewHubVirtualNetworkConnectionsClientWithBaseURI(baseURI string, subscriptionID string) HubVirtualNetworkConnectionsClient {
return HubVirtualNetworkConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-11-01/network/inboundnatrules.go b/services/network/mgmt/2018-11-01/network/inboundnatrules.go
index cec27071217d..0169dc7a6ed0 100644
--- a/services/network/mgmt/2018-11-01/network/inboundnatrules.go
+++ b/services/network/mgmt/2018-11-01/network/inboundnatrules.go
@@ -36,7 +36,8 @@ func NewInboundNatRulesClient(subscriptionID string) InboundNatRulesClient {
return NewInboundNatRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewInboundNatRulesClientWithBaseURI creates an instance of the InboundNatRulesClient client.
+// NewInboundNatRulesClientWithBaseURI creates an instance of the InboundNatRulesClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewInboundNatRulesClientWithBaseURI(baseURI string, subscriptionID string) InboundNatRulesClient {
return InboundNatRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-11-01/network/interfaceendpoints.go b/services/network/mgmt/2018-11-01/network/interfaceendpoints.go
index 01422694a69e..b6fae87bcf86 100644
--- a/services/network/mgmt/2018-11-01/network/interfaceendpoints.go
+++ b/services/network/mgmt/2018-11-01/network/interfaceendpoints.go
@@ -35,7 +35,9 @@ func NewInterfaceEndpointsClient(subscriptionID string) InterfaceEndpointsClient
return NewInterfaceEndpointsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewInterfaceEndpointsClientWithBaseURI creates an instance of the InterfaceEndpointsClient client.
+// NewInterfaceEndpointsClientWithBaseURI creates an instance of the InterfaceEndpointsClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewInterfaceEndpointsClientWithBaseURI(baseURI string, subscriptionID string) InterfaceEndpointsClient {
return InterfaceEndpointsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-11-01/network/interfaceipconfigurations.go b/services/network/mgmt/2018-11-01/network/interfaceipconfigurations.go
index 66eb1d64c5be..e656d99bc86a 100644
--- a/services/network/mgmt/2018-11-01/network/interfaceipconfigurations.go
+++ b/services/network/mgmt/2018-11-01/network/interfaceipconfigurations.go
@@ -35,7 +35,9 @@ func NewInterfaceIPConfigurationsClient(subscriptionID string) InterfaceIPConfig
return NewInterfaceIPConfigurationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewInterfaceIPConfigurationsClientWithBaseURI creates an instance of the InterfaceIPConfigurationsClient client.
+// NewInterfaceIPConfigurationsClientWithBaseURI creates an instance of the InterfaceIPConfigurationsClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewInterfaceIPConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) InterfaceIPConfigurationsClient {
return InterfaceIPConfigurationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-11-01/network/interfaceloadbalancers.go b/services/network/mgmt/2018-11-01/network/interfaceloadbalancers.go
index 63e8bb1a9ec0..64ed8a91ca66 100644
--- a/services/network/mgmt/2018-11-01/network/interfaceloadbalancers.go
+++ b/services/network/mgmt/2018-11-01/network/interfaceloadbalancers.go
@@ -35,7 +35,9 @@ func NewInterfaceLoadBalancersClient(subscriptionID string) InterfaceLoadBalance
return NewInterfaceLoadBalancersClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewInterfaceLoadBalancersClientWithBaseURI creates an instance of the InterfaceLoadBalancersClient client.
+// NewInterfaceLoadBalancersClientWithBaseURI creates an instance of the InterfaceLoadBalancersClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewInterfaceLoadBalancersClientWithBaseURI(baseURI string, subscriptionID string) InterfaceLoadBalancersClient {
return InterfaceLoadBalancersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-11-01/network/interfacesgroup.go b/services/network/mgmt/2018-11-01/network/interfacesgroup.go
index c5ecaab6c57b..3560616c1fb1 100644
--- a/services/network/mgmt/2018-11-01/network/interfacesgroup.go
+++ b/services/network/mgmt/2018-11-01/network/interfacesgroup.go
@@ -35,7 +35,8 @@ func NewInterfacesClient(subscriptionID string) InterfacesClient {
return NewInterfacesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewInterfacesClientWithBaseURI creates an instance of the InterfacesClient client.
+// NewInterfacesClientWithBaseURI creates an instance of the InterfacesClient client using a custom endpoint. Use this
+// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewInterfacesClientWithBaseURI(baseURI string, subscriptionID string) InterfacesClient {
return InterfacesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-11-01/network/interfacetapconfigurations.go b/services/network/mgmt/2018-11-01/network/interfacetapconfigurations.go
index 3b3479f85192..351822409f9f 100644
--- a/services/network/mgmt/2018-11-01/network/interfacetapconfigurations.go
+++ b/services/network/mgmt/2018-11-01/network/interfacetapconfigurations.go
@@ -36,7 +36,9 @@ func NewInterfaceTapConfigurationsClient(subscriptionID string) InterfaceTapConf
return NewInterfaceTapConfigurationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewInterfaceTapConfigurationsClientWithBaseURI creates an instance of the InterfaceTapConfigurationsClient client.
+// NewInterfaceTapConfigurationsClientWithBaseURI creates an instance of the InterfaceTapConfigurationsClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewInterfaceTapConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) InterfaceTapConfigurationsClient {
return InterfaceTapConfigurationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-11-01/network/loadbalancerbackendaddresspools.go b/services/network/mgmt/2018-11-01/network/loadbalancerbackendaddresspools.go
index 65ca9817e034..63831e3d272b 100644
--- a/services/network/mgmt/2018-11-01/network/loadbalancerbackendaddresspools.go
+++ b/services/network/mgmt/2018-11-01/network/loadbalancerbackendaddresspools.go
@@ -36,7 +36,8 @@ func NewLoadBalancerBackendAddressPoolsClient(subscriptionID string) LoadBalance
}
// NewLoadBalancerBackendAddressPoolsClientWithBaseURI creates an instance of the LoadBalancerBackendAddressPoolsClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewLoadBalancerBackendAddressPoolsClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerBackendAddressPoolsClient {
return LoadBalancerBackendAddressPoolsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-11-01/network/loadbalancerfrontendipconfigurations.go b/services/network/mgmt/2018-11-01/network/loadbalancerfrontendipconfigurations.go
index 9cdd41d577c3..5713616acc22 100644
--- a/services/network/mgmt/2018-11-01/network/loadbalancerfrontendipconfigurations.go
+++ b/services/network/mgmt/2018-11-01/network/loadbalancerfrontendipconfigurations.go
@@ -37,7 +37,8 @@ func NewLoadBalancerFrontendIPConfigurationsClient(subscriptionID string) LoadBa
}
// NewLoadBalancerFrontendIPConfigurationsClientWithBaseURI creates an instance of the
-// LoadBalancerFrontendIPConfigurationsClient client.
+// LoadBalancerFrontendIPConfigurationsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewLoadBalancerFrontendIPConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerFrontendIPConfigurationsClient {
return LoadBalancerFrontendIPConfigurationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-11-01/network/loadbalancerloadbalancingrules.go b/services/network/mgmt/2018-11-01/network/loadbalancerloadbalancingrules.go
index 9638a9b05630..c5bc13bcd2e2 100644
--- a/services/network/mgmt/2018-11-01/network/loadbalancerloadbalancingrules.go
+++ b/services/network/mgmt/2018-11-01/network/loadbalancerloadbalancingrules.go
@@ -36,7 +36,8 @@ func NewLoadBalancerLoadBalancingRulesClient(subscriptionID string) LoadBalancer
}
// NewLoadBalancerLoadBalancingRulesClientWithBaseURI creates an instance of the LoadBalancerLoadBalancingRulesClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewLoadBalancerLoadBalancingRulesClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerLoadBalancingRulesClient {
return LoadBalancerLoadBalancingRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-11-01/network/loadbalancernetworkinterfaces.go b/services/network/mgmt/2018-11-01/network/loadbalancernetworkinterfaces.go
index e3efe844e965..70c745d8049d 100644
--- a/services/network/mgmt/2018-11-01/network/loadbalancernetworkinterfaces.go
+++ b/services/network/mgmt/2018-11-01/network/loadbalancernetworkinterfaces.go
@@ -36,7 +36,8 @@ func NewLoadBalancerNetworkInterfacesClient(subscriptionID string) LoadBalancerN
}
// NewLoadBalancerNetworkInterfacesClientWithBaseURI creates an instance of the LoadBalancerNetworkInterfacesClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewLoadBalancerNetworkInterfacesClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerNetworkInterfacesClient {
return LoadBalancerNetworkInterfacesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-11-01/network/loadbalanceroutboundrules.go b/services/network/mgmt/2018-11-01/network/loadbalanceroutboundrules.go
index 07444741d8b2..05c54b9060ec 100644
--- a/services/network/mgmt/2018-11-01/network/loadbalanceroutboundrules.go
+++ b/services/network/mgmt/2018-11-01/network/loadbalanceroutboundrules.go
@@ -35,7 +35,9 @@ func NewLoadBalancerOutboundRulesClient(subscriptionID string) LoadBalancerOutbo
return NewLoadBalancerOutboundRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewLoadBalancerOutboundRulesClientWithBaseURI creates an instance of the LoadBalancerOutboundRulesClient client.
+// NewLoadBalancerOutboundRulesClientWithBaseURI creates an instance of the LoadBalancerOutboundRulesClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewLoadBalancerOutboundRulesClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerOutboundRulesClient {
return LoadBalancerOutboundRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-11-01/network/loadbalancerprobes.go b/services/network/mgmt/2018-11-01/network/loadbalancerprobes.go
index 05dd86242161..2197c1df5237 100644
--- a/services/network/mgmt/2018-11-01/network/loadbalancerprobes.go
+++ b/services/network/mgmt/2018-11-01/network/loadbalancerprobes.go
@@ -35,7 +35,9 @@ func NewLoadBalancerProbesClient(subscriptionID string) LoadBalancerProbesClient
return NewLoadBalancerProbesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewLoadBalancerProbesClientWithBaseURI creates an instance of the LoadBalancerProbesClient client.
+// NewLoadBalancerProbesClientWithBaseURI creates an instance of the LoadBalancerProbesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewLoadBalancerProbesClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerProbesClient {
return LoadBalancerProbesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-11-01/network/loadbalancers.go b/services/network/mgmt/2018-11-01/network/loadbalancers.go
index 9a80c63e0101..cc2d651c59ea 100644
--- a/services/network/mgmt/2018-11-01/network/loadbalancers.go
+++ b/services/network/mgmt/2018-11-01/network/loadbalancers.go
@@ -35,7 +35,8 @@ func NewLoadBalancersClient(subscriptionID string) LoadBalancersClient {
return NewLoadBalancersClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewLoadBalancersClientWithBaseURI creates an instance of the LoadBalancersClient client.
+// NewLoadBalancersClientWithBaseURI creates an instance of the LoadBalancersClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewLoadBalancersClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancersClient {
return LoadBalancersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-11-01/network/localnetworkgateways.go b/services/network/mgmt/2018-11-01/network/localnetworkgateways.go
index 3e9e61d70d67..86db299ca26c 100644
--- a/services/network/mgmt/2018-11-01/network/localnetworkgateways.go
+++ b/services/network/mgmt/2018-11-01/network/localnetworkgateways.go
@@ -36,7 +36,9 @@ func NewLocalNetworkGatewaysClient(subscriptionID string) LocalNetworkGatewaysCl
return NewLocalNetworkGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewLocalNetworkGatewaysClientWithBaseURI creates an instance of the LocalNetworkGatewaysClient client.
+// NewLocalNetworkGatewaysClientWithBaseURI creates an instance of the LocalNetworkGatewaysClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewLocalNetworkGatewaysClientWithBaseURI(baseURI string, subscriptionID string) LocalNetworkGatewaysClient {
return LocalNetworkGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-11-01/network/networkapi/interfaces.go b/services/network/mgmt/2018-11-01/network/networkapi/interfaces.go
index 6eb113b4abe4..a6071d097227 100644
--- a/services/network/mgmt/2018-11-01/network/networkapi/interfaces.go
+++ b/services/network/mgmt/2018-11-01/network/networkapi/interfaces.go
@@ -38,12 +38,15 @@ type ApplicationGatewaysClientAPI interface {
Get(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result network.ApplicationGateway, err error)
GetSslPredefinedPolicy(ctx context.Context, predefinedPolicyName string) (result network.ApplicationGatewaySslPredefinedPolicy, err error)
List(ctx context.Context, resourceGroupName string) (result network.ApplicationGatewayListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.ApplicationGatewayListResultIterator, err error)
ListAll(ctx context.Context) (result network.ApplicationGatewayListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.ApplicationGatewayListResultIterator, err error)
ListAvailableRequestHeaders(ctx context.Context) (result network.ListString, err error)
ListAvailableResponseHeaders(ctx context.Context) (result network.ListString, err error)
ListAvailableServerVariables(ctx context.Context) (result network.ListString, err error)
ListAvailableSslOptions(ctx context.Context) (result network.ApplicationGatewayAvailableSslOptions, err error)
ListAvailableSslPredefinedPolicies(ctx context.Context) (result network.ApplicationGatewayAvailableSslPredefinedPoliciesPage, err error)
+ ListAvailableSslPredefinedPoliciesComplete(ctx context.Context) (result network.ApplicationGatewayAvailableSslPredefinedPoliciesIterator, err error)
ListAvailableWafRuleSets(ctx context.Context) (result network.ApplicationGatewayAvailableWafRuleSetsResult, err error)
Start(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result network.ApplicationGatewaysStartFuture, err error)
Stop(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result network.ApplicationGatewaysStopFuture, err error)
@@ -58,7 +61,9 @@ type ApplicationSecurityGroupsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, applicationSecurityGroupName string) (result network.ApplicationSecurityGroupsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, applicationSecurityGroupName string) (result network.ApplicationSecurityGroup, err error)
List(ctx context.Context, resourceGroupName string) (result network.ApplicationSecurityGroupListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.ApplicationSecurityGroupListResultIterator, err error)
ListAll(ctx context.Context) (result network.ApplicationSecurityGroupListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.ApplicationSecurityGroupListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, applicationSecurityGroupName string, parameters network.TagsObject) (result network.ApplicationSecurityGroupsUpdateTagsFuture, err error)
}
@@ -67,6 +72,7 @@ var _ ApplicationSecurityGroupsClientAPI = (*network.ApplicationSecurityGroupsCl
// AvailableDelegationsClientAPI contains the set of methods on the AvailableDelegationsClient type.
type AvailableDelegationsClientAPI interface {
List(ctx context.Context, location string) (result network.AvailableDelegationsResultPage, err error)
+ ListComplete(ctx context.Context, location string) (result network.AvailableDelegationsResultIterator, err error)
}
var _ AvailableDelegationsClientAPI = (*network.AvailableDelegationsClient)(nil)
@@ -74,6 +80,7 @@ var _ AvailableDelegationsClientAPI = (*network.AvailableDelegationsClient)(nil)
// AvailableResourceGroupDelegationsClientAPI contains the set of methods on the AvailableResourceGroupDelegationsClient type.
type AvailableResourceGroupDelegationsClientAPI interface {
List(ctx context.Context, location string, resourceGroupName string) (result network.AvailableDelegationsResultPage, err error)
+ ListComplete(ctx context.Context, location string, resourceGroupName string) (result network.AvailableDelegationsResultIterator, err error)
}
var _ AvailableResourceGroupDelegationsClientAPI = (*network.AvailableResourceGroupDelegationsClient)(nil)
@@ -84,7 +91,9 @@ type AzureFirewallsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, azureFirewallName string) (result network.AzureFirewallsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, azureFirewallName string) (result network.AzureFirewall, err error)
List(ctx context.Context, resourceGroupName string) (result network.AzureFirewallListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.AzureFirewallListResultIterator, err error)
ListAll(ctx context.Context) (result network.AzureFirewallListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.AzureFirewallListResultIterator, err error)
}
var _ AzureFirewallsClientAPI = (*network.AzureFirewallsClient)(nil)
@@ -92,6 +101,7 @@ var _ AzureFirewallsClientAPI = (*network.AzureFirewallsClient)(nil)
// AzureFirewallFqdnTagsClientAPI contains the set of methods on the AzureFirewallFqdnTagsClient type.
type AzureFirewallFqdnTagsClientAPI interface {
ListAll(ctx context.Context) (result network.AzureFirewallFqdnTagListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.AzureFirewallFqdnTagListResultIterator, err error)
}
var _ AzureFirewallFqdnTagsClientAPI = (*network.AzureFirewallFqdnTagsClient)(nil)
@@ -112,7 +122,9 @@ type DdosProtectionPlansClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, ddosProtectionPlanName string) (result network.DdosProtectionPlansDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, ddosProtectionPlanName string) (result network.DdosProtectionPlan, err error)
List(ctx context.Context) (result network.DdosProtectionPlanListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.DdosProtectionPlanListResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.DdosProtectionPlanListResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.DdosProtectionPlanListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, ddosProtectionPlanName string, parameters network.TagsObject) (result network.DdosProtectionPlansUpdateTagsFuture, err error)
}
@@ -121,6 +133,7 @@ var _ DdosProtectionPlansClientAPI = (*network.DdosProtectionPlansClient)(nil)
// AvailableEndpointServicesClientAPI contains the set of methods on the AvailableEndpointServicesClient type.
type AvailableEndpointServicesClientAPI interface {
List(ctx context.Context, location string) (result network.EndpointServicesListResultPage, err error)
+ ListComplete(ctx context.Context, location string) (result network.EndpointServicesListResultIterator, err error)
}
var _ AvailableEndpointServicesClientAPI = (*network.AvailableEndpointServicesClient)(nil)
@@ -131,6 +144,7 @@ type ExpressRouteCircuitAuthorizationsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, circuitName string, authorizationName string) (result network.ExpressRouteCircuitAuthorizationsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, circuitName string, authorizationName string) (result network.ExpressRouteCircuitAuthorization, err error)
List(ctx context.Context, resourceGroupName string, circuitName string) (result network.AuthorizationListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, circuitName string) (result network.AuthorizationListResultIterator, err error)
}
var _ ExpressRouteCircuitAuthorizationsClientAPI = (*network.ExpressRouteCircuitAuthorizationsClient)(nil)
@@ -141,6 +155,7 @@ type ExpressRouteCircuitPeeringsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.ExpressRouteCircuitPeeringsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.ExpressRouteCircuitPeering, err error)
List(ctx context.Context, resourceGroupName string, circuitName string) (result network.ExpressRouteCircuitPeeringListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, circuitName string) (result network.ExpressRouteCircuitPeeringListResultIterator, err error)
}
var _ ExpressRouteCircuitPeeringsClientAPI = (*network.ExpressRouteCircuitPeeringsClient)(nil)
@@ -151,6 +166,7 @@ type ExpressRouteCircuitConnectionsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, connectionName string) (result network.ExpressRouteCircuitConnectionsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, connectionName string) (result network.ExpressRouteCircuitConnection, err error)
List(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.ExpressRouteCircuitConnectionListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.ExpressRouteCircuitConnectionListResultIterator, err error)
}
var _ ExpressRouteCircuitConnectionsClientAPI = (*network.ExpressRouteCircuitConnectionsClient)(nil)
@@ -163,7 +179,9 @@ type ExpressRouteCircuitsClientAPI interface {
GetPeeringStats(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.ExpressRouteCircuitStats, err error)
GetStats(ctx context.Context, resourceGroupName string, circuitName string) (result network.ExpressRouteCircuitStats, err error)
List(ctx context.Context, resourceGroupName string) (result network.ExpressRouteCircuitListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.ExpressRouteCircuitListResultIterator, err error)
ListAll(ctx context.Context) (result network.ExpressRouteCircuitListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.ExpressRouteCircuitListResultIterator, err error)
ListArpTable(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, devicePath string) (result network.ExpressRouteCircuitsListArpTableFuture, err error)
ListRoutesTable(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, devicePath string) (result network.ExpressRouteCircuitsListRoutesTableFuture, err error)
ListRoutesTableSummary(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, devicePath string) (result network.ExpressRouteCircuitsListRoutesTableSummaryFuture, err error)
@@ -175,6 +193,7 @@ var _ ExpressRouteCircuitsClientAPI = (*network.ExpressRouteCircuitsClient)(nil)
// ExpressRouteServiceProvidersClientAPI contains the set of methods on the ExpressRouteServiceProvidersClient type.
type ExpressRouteServiceProvidersClientAPI interface {
List(ctx context.Context) (result network.ExpressRouteServiceProviderListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ExpressRouteServiceProviderListResultIterator, err error)
}
var _ ExpressRouteServiceProvidersClientAPI = (*network.ExpressRouteServiceProvidersClient)(nil)
@@ -184,8 +203,10 @@ type ExpressRouteCrossConnectionsClientAPI interface {
CreateOrUpdate(ctx context.Context, resourceGroupName string, crossConnectionName string, parameters network.ExpressRouteCrossConnection) (result network.ExpressRouteCrossConnectionsCreateOrUpdateFuture, err error)
Get(ctx context.Context, resourceGroupName string, crossConnectionName string) (result network.ExpressRouteCrossConnection, err error)
List(ctx context.Context) (result network.ExpressRouteCrossConnectionListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ExpressRouteCrossConnectionListResultIterator, err error)
ListArpTable(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string, devicePath string) (result network.ExpressRouteCrossConnectionsListArpTableFuture, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ExpressRouteCrossConnectionListResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ExpressRouteCrossConnectionListResultIterator, err error)
ListRoutesTable(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string, devicePath string) (result network.ExpressRouteCrossConnectionsListRoutesTableFuture, err error)
ListRoutesTableSummary(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string, devicePath string) (result network.ExpressRouteCrossConnectionsListRoutesTableSummaryFuture, err error)
UpdateTags(ctx context.Context, resourceGroupName string, crossConnectionName string, crossConnectionParameters network.TagsObject) (result network.ExpressRouteCrossConnectionsUpdateTagsFuture, err error)
@@ -199,6 +220,7 @@ type ExpressRouteCrossConnectionPeeringsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string) (result network.ExpressRouteCrossConnectionPeeringsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string) (result network.ExpressRouteCrossConnectionPeering, err error)
List(ctx context.Context, resourceGroupName string, crossConnectionName string) (result network.ExpressRouteCrossConnectionPeeringListPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, crossConnectionName string) (result network.ExpressRouteCrossConnectionPeeringListIterator, err error)
}
var _ ExpressRouteCrossConnectionPeeringsClientAPI = (*network.ExpressRouteCrossConnectionPeeringsClient)(nil)
@@ -228,6 +250,7 @@ var _ ExpressRouteConnectionsClientAPI = (*network.ExpressRouteConnectionsClient
type ExpressRoutePortsLocationsClientAPI interface {
Get(ctx context.Context, locationName string) (result network.ExpressRoutePortsLocation, err error)
List(ctx context.Context) (result network.ExpressRoutePortsLocationListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ExpressRoutePortsLocationListResultIterator, err error)
}
var _ ExpressRoutePortsLocationsClientAPI = (*network.ExpressRoutePortsLocationsClient)(nil)
@@ -238,7 +261,9 @@ type ExpressRoutePortsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, expressRoutePortName string) (result network.ExpressRoutePortsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, expressRoutePortName string) (result network.ExpressRoutePort, err error)
List(ctx context.Context) (result network.ExpressRoutePortListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ExpressRoutePortListResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ExpressRoutePortListResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ExpressRoutePortListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, expressRoutePortName string, parameters network.TagsObject) (result network.ExpressRoutePortsUpdateTagsFuture, err error)
}
@@ -248,6 +273,7 @@ var _ ExpressRoutePortsClientAPI = (*network.ExpressRoutePortsClient)(nil)
type ExpressRouteLinksClientAPI interface {
Get(ctx context.Context, resourceGroupName string, expressRoutePortName string, linkName string) (result network.ExpressRouteLink, err error)
List(ctx context.Context, resourceGroupName string, expressRoutePortName string) (result network.ExpressRouteLinkListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, expressRoutePortName string) (result network.ExpressRouteLinkListResultIterator, err error)
}
var _ ExpressRouteLinksClientAPI = (*network.ExpressRouteLinksClient)(nil)
@@ -258,7 +284,9 @@ type InterfaceEndpointsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, interfaceEndpointName string) (result network.InterfaceEndpointsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, interfaceEndpointName string, expand string) (result network.InterfaceEndpoint, err error)
List(ctx context.Context, resourceGroupName string) (result network.InterfaceEndpointListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.InterfaceEndpointListResultIterator, err error)
ListBySubscription(ctx context.Context) (result network.InterfaceEndpointListResultPage, err error)
+ ListBySubscriptionComplete(ctx context.Context) (result network.InterfaceEndpointListResultIterator, err error)
}
var _ InterfaceEndpointsClientAPI = (*network.InterfaceEndpointsClient)(nil)
@@ -269,7 +297,9 @@ type LoadBalancersClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancersDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, expand string) (result network.LoadBalancer, err error)
List(ctx context.Context, resourceGroupName string) (result network.LoadBalancerListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.LoadBalancerListResultIterator, err error)
ListAll(ctx context.Context) (result network.LoadBalancerListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.LoadBalancerListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, loadBalancerName string, parameters network.TagsObject) (result network.LoadBalancersUpdateTagsFuture, err error)
}
@@ -279,6 +309,7 @@ var _ LoadBalancersClientAPI = (*network.LoadBalancersClient)(nil)
type LoadBalancerBackendAddressPoolsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, backendAddressPoolName string) (result network.BackendAddressPool, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerBackendAddressPoolListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerBackendAddressPoolListResultIterator, err error)
}
var _ LoadBalancerBackendAddressPoolsClientAPI = (*network.LoadBalancerBackendAddressPoolsClient)(nil)
@@ -287,6 +318,7 @@ var _ LoadBalancerBackendAddressPoolsClientAPI = (*network.LoadBalancerBackendAd
type LoadBalancerFrontendIPConfigurationsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, frontendIPConfigurationName string) (result network.FrontendIPConfiguration, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerFrontendIPConfigurationListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerFrontendIPConfigurationListResultIterator, err error)
}
var _ LoadBalancerFrontendIPConfigurationsClientAPI = (*network.LoadBalancerFrontendIPConfigurationsClient)(nil)
@@ -297,6 +329,7 @@ type InboundNatRulesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, loadBalancerName string, inboundNatRuleName string) (result network.InboundNatRulesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, inboundNatRuleName string, expand string) (result network.InboundNatRule, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.InboundNatRuleListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.InboundNatRuleListResultIterator, err error)
}
var _ InboundNatRulesClientAPI = (*network.InboundNatRulesClient)(nil)
@@ -305,6 +338,7 @@ var _ InboundNatRulesClientAPI = (*network.InboundNatRulesClient)(nil)
type LoadBalancerLoadBalancingRulesClientAPI interface {
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, loadBalancingRuleName string) (result network.LoadBalancingRule, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerLoadBalancingRuleListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerLoadBalancingRuleListResultIterator, err error)
}
var _ LoadBalancerLoadBalancingRulesClientAPI = (*network.LoadBalancerLoadBalancingRulesClient)(nil)
@@ -313,6 +347,7 @@ var _ LoadBalancerLoadBalancingRulesClientAPI = (*network.LoadBalancerLoadBalanc
type LoadBalancerOutboundRulesClientAPI interface {
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, outboundRuleName string) (result network.OutboundRule, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerOutboundRuleListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerOutboundRuleListResultIterator, err error)
}
var _ LoadBalancerOutboundRulesClientAPI = (*network.LoadBalancerOutboundRulesClient)(nil)
@@ -320,6 +355,7 @@ var _ LoadBalancerOutboundRulesClientAPI = (*network.LoadBalancerOutboundRulesCl
// LoadBalancerNetworkInterfacesClientAPI contains the set of methods on the LoadBalancerNetworkInterfacesClient type.
type LoadBalancerNetworkInterfacesClientAPI interface {
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.InterfaceListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.InterfaceListResultIterator, err error)
}
var _ LoadBalancerNetworkInterfacesClientAPI = (*network.LoadBalancerNetworkInterfacesClient)(nil)
@@ -328,6 +364,7 @@ var _ LoadBalancerNetworkInterfacesClientAPI = (*network.LoadBalancerNetworkInte
type LoadBalancerProbesClientAPI interface {
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, probeName string) (result network.Probe, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerProbeListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerProbeListResultIterator, err error)
}
var _ LoadBalancerProbesClientAPI = (*network.LoadBalancerProbesClient)(nil)
@@ -341,11 +378,16 @@ type InterfacesClientAPI interface {
GetVirtualMachineScaleSetIPConfiguration(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, IPConfigurationName string, expand string) (result network.InterfaceIPConfiguration, err error)
GetVirtualMachineScaleSetNetworkInterface(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, expand string) (result network.Interface, err error)
List(ctx context.Context, resourceGroupName string) (result network.InterfaceListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.InterfaceListResultIterator, err error)
ListAll(ctx context.Context) (result network.InterfaceListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.InterfaceListResultIterator, err error)
ListEffectiveNetworkSecurityGroups(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfacesListEffectiveNetworkSecurityGroupsFuture, err error)
ListVirtualMachineScaleSetIPConfigurations(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, expand string) (result network.InterfaceIPConfigurationListResultPage, err error)
+ ListVirtualMachineScaleSetIPConfigurationsComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, expand string) (result network.InterfaceIPConfigurationListResultIterator, err error)
ListVirtualMachineScaleSetNetworkInterfaces(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result network.InterfaceListResultPage, err error)
+ ListVirtualMachineScaleSetNetworkInterfacesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result network.InterfaceListResultIterator, err error)
ListVirtualMachineScaleSetVMNetworkInterfaces(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string) (result network.InterfaceListResultPage, err error)
+ ListVirtualMachineScaleSetVMNetworkInterfacesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string) (result network.InterfaceListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, networkInterfaceName string, parameters network.TagsObject) (result network.InterfacesUpdateTagsFuture, err error)
}
@@ -355,6 +397,7 @@ var _ InterfacesClientAPI = (*network.InterfacesClient)(nil)
type InterfaceIPConfigurationsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, networkInterfaceName string, IPConfigurationName string) (result network.InterfaceIPConfiguration, err error)
List(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceIPConfigurationListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceIPConfigurationListResultIterator, err error)
}
var _ InterfaceIPConfigurationsClientAPI = (*network.InterfaceIPConfigurationsClient)(nil)
@@ -362,6 +405,7 @@ var _ InterfaceIPConfigurationsClientAPI = (*network.InterfaceIPConfigurationsCl
// InterfaceLoadBalancersClientAPI contains the set of methods on the InterfaceLoadBalancersClient type.
type InterfaceLoadBalancersClientAPI interface {
List(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceLoadBalancerListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceLoadBalancerListResultIterator, err error)
}
var _ InterfaceLoadBalancersClientAPI = (*network.InterfaceLoadBalancersClient)(nil)
@@ -372,6 +416,7 @@ type InterfaceTapConfigurationsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, networkInterfaceName string, tapConfigurationName string) (result network.InterfaceTapConfigurationsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, networkInterfaceName string, tapConfigurationName string) (result network.InterfaceTapConfiguration, err error)
List(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceTapConfigurationListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceTapConfigurationListResultIterator, err error)
}
var _ InterfaceTapConfigurationsClientAPI = (*network.InterfaceTapConfigurationsClient)(nil)
@@ -382,7 +427,9 @@ type ProfilesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, networkProfileName string) (result network.ProfilesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, networkProfileName string, expand string) (result network.Profile, err error)
List(ctx context.Context, resourceGroupName string) (result network.ProfileListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.ProfileListResultIterator, err error)
ListAll(ctx context.Context) (result network.ProfileListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.ProfileListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, networkProfileName string, parameters network.TagsObject) (result network.Profile, err error)
}
@@ -394,7 +441,9 @@ type SecurityGroupsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityGroupsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, expand string) (result network.SecurityGroup, err error)
List(ctx context.Context, resourceGroupName string) (result network.SecurityGroupListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.SecurityGroupListResultIterator, err error)
ListAll(ctx context.Context) (result network.SecurityGroupListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.SecurityGroupListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, parameters network.TagsObject) (result network.SecurityGroupsUpdateTagsFuture, err error)
}
@@ -406,6 +455,7 @@ type SecurityRulesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, securityRuleName string) (result network.SecurityRulesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, securityRuleName string) (result network.SecurityRule, err error)
List(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityRuleListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityRuleListResultIterator, err error)
}
var _ SecurityRulesClientAPI = (*network.SecurityRulesClient)(nil)
@@ -414,6 +464,7 @@ var _ SecurityRulesClientAPI = (*network.SecurityRulesClient)(nil)
type DefaultSecurityRulesClientAPI interface {
Get(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, defaultSecurityRuleName string) (result network.SecurityRule, err error)
List(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityRuleListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityRuleListResultIterator, err error)
}
var _ DefaultSecurityRulesClientAPI = (*network.DefaultSecurityRulesClient)(nil)
@@ -470,6 +521,7 @@ var _ ConnectionMonitorsClientAPI = (*network.ConnectionMonitorsClient)(nil)
// OperationsClientAPI contains the set of methods on the OperationsClient type.
type OperationsClientAPI interface {
List(ctx context.Context) (result network.OperationListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.OperationListResultIterator, err error)
}
var _ OperationsClientAPI = (*network.OperationsClient)(nil)
@@ -481,9 +533,13 @@ type PublicIPAddressesClientAPI interface {
Get(ctx context.Context, resourceGroupName string, publicIPAddressName string, expand string) (result network.PublicIPAddress, err error)
GetVirtualMachineScaleSetPublicIPAddress(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, IPConfigurationName string, publicIPAddressName string, expand string) (result network.PublicIPAddress, err error)
List(ctx context.Context, resourceGroupName string) (result network.PublicIPAddressListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.PublicIPAddressListResultIterator, err error)
ListAll(ctx context.Context) (result network.PublicIPAddressListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.PublicIPAddressListResultIterator, err error)
ListVirtualMachineScaleSetPublicIPAddresses(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result network.PublicIPAddressListResultPage, err error)
+ ListVirtualMachineScaleSetPublicIPAddressesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result network.PublicIPAddressListResultIterator, err error)
ListVirtualMachineScaleSetVMPublicIPAddresses(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, IPConfigurationName string) (result network.PublicIPAddressListResultPage, err error)
+ ListVirtualMachineScaleSetVMPublicIPAddressesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, IPConfigurationName string) (result network.PublicIPAddressListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, publicIPAddressName string, parameters network.TagsObject) (result network.PublicIPAddressesUpdateTagsFuture, err error)
}
@@ -495,7 +551,9 @@ type PublicIPPrefixesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, publicIPPrefixName string) (result network.PublicIPPrefixesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, publicIPPrefixName string, expand string) (result network.PublicIPPrefix, err error)
List(ctx context.Context, resourceGroupName string) (result network.PublicIPPrefixListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.PublicIPPrefixListResultIterator, err error)
ListAll(ctx context.Context) (result network.PublicIPPrefixListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.PublicIPPrefixListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, publicIPPrefixName string, parameters network.TagsObject) (result network.PublicIPPrefixesUpdateTagsFuture, err error)
}
@@ -507,7 +565,9 @@ type RouteFiltersClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, routeFilterName string) (result network.RouteFiltersDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, routeFilterName string, expand string) (result network.RouteFilter, err error)
List(ctx context.Context) (result network.RouteFilterListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.RouteFilterListResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.RouteFilterListResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.RouteFilterListResultIterator, err error)
Update(ctx context.Context, resourceGroupName string, routeFilterName string, routeFilterParameters network.PatchRouteFilter) (result network.RouteFiltersUpdateFuture, err error)
}
@@ -519,6 +579,7 @@ type RouteFilterRulesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, routeFilterName string, ruleName string) (result network.RouteFilterRulesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, routeFilterName string, ruleName string) (result network.RouteFilterRule, err error)
ListByRouteFilter(ctx context.Context, resourceGroupName string, routeFilterName string) (result network.RouteFilterRuleListResultPage, err error)
+ ListByRouteFilterComplete(ctx context.Context, resourceGroupName string, routeFilterName string) (result network.RouteFilterRuleListResultIterator, err error)
Update(ctx context.Context, resourceGroupName string, routeFilterName string, ruleName string, routeFilterRuleParameters network.PatchRouteFilterRule) (result network.RouteFilterRulesUpdateFuture, err error)
}
@@ -530,7 +591,9 @@ type RouteTablesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, routeTableName string) (result network.RouteTablesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, routeTableName string, expand string) (result network.RouteTable, err error)
List(ctx context.Context, resourceGroupName string) (result network.RouteTableListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.RouteTableListResultIterator, err error)
ListAll(ctx context.Context) (result network.RouteTableListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.RouteTableListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, routeTableName string, parameters network.TagsObject) (result network.RouteTablesUpdateTagsFuture, err error)
}
@@ -542,6 +605,7 @@ type RoutesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, routeTableName string, routeName string) (result network.RoutesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, routeTableName string, routeName string) (result network.Route, err error)
List(ctx context.Context, resourceGroupName string, routeTableName string) (result network.RouteListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, routeTableName string) (result network.RouteListResultIterator, err error)
}
var _ RoutesClientAPI = (*network.RoutesClient)(nil)
@@ -549,6 +613,7 @@ var _ RoutesClientAPI = (*network.RoutesClient)(nil)
// BgpServiceCommunitiesClientAPI contains the set of methods on the BgpServiceCommunitiesClient type.
type BgpServiceCommunitiesClientAPI interface {
List(ctx context.Context) (result network.BgpServiceCommunityListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.BgpServiceCommunityListResultIterator, err error)
}
var _ BgpServiceCommunitiesClientAPI = (*network.BgpServiceCommunitiesClient)(nil)
@@ -559,7 +624,9 @@ type ServiceEndpointPoliciesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string) (result network.ServiceEndpointPoliciesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string, expand string) (result network.ServiceEndpointPolicy, err error)
List(ctx context.Context) (result network.ServiceEndpointPolicyListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ServiceEndpointPolicyListResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ServiceEndpointPolicyListResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ServiceEndpointPolicyListResultIterator, err error)
Update(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string, parameters network.TagsObject) (result network.ServiceEndpointPoliciesUpdateFuture, err error)
}
@@ -571,6 +638,7 @@ type ServiceEndpointPolicyDefinitionsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string, serviceEndpointPolicyDefinitionName string) (result network.ServiceEndpointPolicyDefinitionsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string, serviceEndpointPolicyDefinitionName string) (result network.ServiceEndpointPolicyDefinition, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string) (result network.ServiceEndpointPolicyDefinitionListResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string) (result network.ServiceEndpointPolicyDefinitionListResultIterator, err error)
}
var _ ServiceEndpointPolicyDefinitionsClientAPI = (*network.ServiceEndpointPolicyDefinitionsClient)(nil)
@@ -578,6 +646,7 @@ var _ ServiceEndpointPolicyDefinitionsClientAPI = (*network.ServiceEndpointPolic
// UsagesClientAPI contains the set of methods on the UsagesClient type.
type UsagesClientAPI interface {
List(ctx context.Context, location string) (result network.UsagesListResultPage, err error)
+ ListComplete(ctx context.Context, location string) (result network.UsagesListResultIterator, err error)
}
var _ UsagesClientAPI = (*network.UsagesClient)(nil)
@@ -589,8 +658,11 @@ type VirtualNetworksClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworksDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualNetworkName string, expand string) (result network.VirtualNetwork, err error)
List(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkListResultIterator, err error)
ListAll(ctx context.Context) (result network.VirtualNetworkListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.VirtualNetworkListResultIterator, err error)
ListUsage(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworkListUsageResultPage, err error)
+ ListUsageComplete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworkListUsageResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, virtualNetworkName string, parameters network.TagsObject) (result network.VirtualNetworksUpdateTagsFuture, err error)
}
@@ -602,6 +674,7 @@ type SubnetsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualNetworkName string, subnetName string) (result network.SubnetsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualNetworkName string, subnetName string, expand string) (result network.Subnet, err error)
List(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.SubnetListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.SubnetListResultIterator, err error)
}
var _ SubnetsClientAPI = (*network.SubnetsClient)(nil)
@@ -612,6 +685,7 @@ type VirtualNetworkPeeringsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualNetworkName string, virtualNetworkPeeringName string) (result network.VirtualNetworkPeeringsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualNetworkName string, virtualNetworkPeeringName string) (result network.VirtualNetworkPeering, err error)
List(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworkPeeringListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworkPeeringListResultIterator, err error)
}
var _ VirtualNetworkPeeringsClientAPI = (*network.VirtualNetworkPeeringsClient)(nil)
@@ -629,7 +703,9 @@ type VirtualNetworkGatewaysClientAPI interface {
GetVpnclientIpsecParameters(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGatewaysGetVpnclientIpsecParametersFuture, err error)
GetVpnProfilePackageURL(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGatewaysGetVpnProfilePackageURLFuture, err error)
List(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayListResultIterator, err error)
ListConnections(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGatewayListConnectionsResultPage, err error)
+ ListConnectionsComplete(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGatewayListConnectionsResultIterator, err error)
Reset(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, gatewayVip string) (result network.VirtualNetworkGatewaysResetFuture, err error)
ResetVpnClientSharedKey(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGatewaysResetVpnClientSharedKeyFuture, err error)
SetVpnclientIpsecParameters(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, vpnclientIpsecParams network.VpnClientIPsecParameters) (result network.VirtualNetworkGatewaysSetVpnclientIpsecParametersFuture, err error)
@@ -647,6 +723,7 @@ type VirtualNetworkGatewayConnectionsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string) (result network.VirtualNetworkGatewayConnection, err error)
GetSharedKey(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string) (result network.ConnectionSharedKey, err error)
List(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayConnectionListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayConnectionListResultIterator, err error)
ResetSharedKey(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string, parameters network.ConnectionResetSharedKey) (result network.VirtualNetworkGatewayConnectionsResetSharedKeyFuture, err error)
SetSharedKey(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string, parameters network.ConnectionSharedKey) (result network.VirtualNetworkGatewayConnectionsSetSharedKeyFuture, err error)
UpdateTags(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string, parameters network.TagsObject) (result network.VirtualNetworkGatewayConnectionsUpdateTagsFuture, err error)
@@ -660,6 +737,7 @@ type LocalNetworkGatewaysClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, localNetworkGatewayName string) (result network.LocalNetworkGatewaysDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, localNetworkGatewayName string) (result network.LocalNetworkGateway, err error)
List(ctx context.Context, resourceGroupName string) (result network.LocalNetworkGatewayListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.LocalNetworkGatewayListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, localNetworkGatewayName string, parameters network.TagsObject) (result network.LocalNetworkGatewaysUpdateTagsFuture, err error)
}
@@ -671,7 +749,9 @@ type VirtualNetworkTapsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, tapName string) (result network.VirtualNetworkTapsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, tapName string) (result network.VirtualNetworkTap, err error)
ListAll(ctx context.Context) (result network.VirtualNetworkTapListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.VirtualNetworkTapListResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkTapListResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkTapListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, tapName string, tapParameters network.TagsObject) (result network.VirtualNetworkTapsUpdateTagsFuture, err error)
}
@@ -683,7 +763,9 @@ type VirtualWansClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualWANName string) (result network.VirtualWansDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualWANName string) (result network.VirtualWAN, err error)
List(ctx context.Context) (result network.ListVirtualWANsResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ListVirtualWANsResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ListVirtualWANsResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ListVirtualWANsResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, virtualWANName string, wANParameters network.TagsObject) (result network.VirtualWansUpdateTagsFuture, err error)
}
@@ -695,7 +777,9 @@ type VpnSitesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, vpnSiteName string) (result network.VpnSitesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, vpnSiteName string) (result network.VpnSite, err error)
List(ctx context.Context) (result network.ListVpnSitesResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ListVpnSitesResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ListVpnSitesResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ListVpnSitesResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, vpnSiteName string, vpnSiteParameters network.TagsObject) (result network.VpnSitesUpdateTagsFuture, err error)
}
@@ -714,7 +798,9 @@ type VirtualHubsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualHubName string) (result network.VirtualHubsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualHubName string) (result network.VirtualHub, err error)
List(ctx context.Context) (result network.ListVirtualHubsResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ListVirtualHubsResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ListVirtualHubsResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ListVirtualHubsResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, virtualHubName string, virtualHubParameters network.TagsObject) (result network.VirtualHubsUpdateTagsFuture, err error)
}
@@ -724,6 +810,7 @@ var _ VirtualHubsClientAPI = (*network.VirtualHubsClient)(nil)
type HubVirtualNetworkConnectionsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, virtualHubName string, connectionName string) (result network.HubVirtualNetworkConnection, err error)
List(ctx context.Context, resourceGroupName string, virtualHubName string) (result network.ListHubVirtualNetworkConnectionsResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, virtualHubName string) (result network.ListHubVirtualNetworkConnectionsResultIterator, err error)
}
var _ HubVirtualNetworkConnectionsClientAPI = (*network.HubVirtualNetworkConnectionsClient)(nil)
@@ -734,7 +821,9 @@ type VpnGatewaysClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, gatewayName string) (result network.VpnGatewaysDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, gatewayName string) (result network.VpnGateway, err error)
List(ctx context.Context) (result network.ListVpnGatewaysResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ListVpnGatewaysResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ListVpnGatewaysResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ListVpnGatewaysResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, gatewayName string, vpnGatewayParameters network.TagsObject) (result network.VpnGatewaysUpdateTagsFuture, err error)
}
@@ -746,6 +835,7 @@ type VpnConnectionsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, gatewayName string, connectionName string) (result network.VpnConnectionsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, gatewayName string, connectionName string) (result network.VpnConnection, err error)
ListByVpnGateway(ctx context.Context, resourceGroupName string, gatewayName string) (result network.ListVpnConnectionsResultPage, err error)
+ ListByVpnGatewayComplete(ctx context.Context, resourceGroupName string, gatewayName string) (result network.ListVpnConnectionsResultIterator, err error)
}
var _ VpnConnectionsClientAPI = (*network.VpnConnectionsClient)(nil)
@@ -756,6 +846,7 @@ type P2sVpnServerConfigurationsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualWanName string, p2SVpnServerConfigurationName string) (result network.P2sVpnServerConfigurationsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualWanName string, p2SVpnServerConfigurationName string) (result network.P2SVpnServerConfiguration, err error)
ListByVirtualWan(ctx context.Context, resourceGroupName string, virtualWanName string) (result network.ListP2SVpnServerConfigurationsResultPage, err error)
+ ListByVirtualWanComplete(ctx context.Context, resourceGroupName string, virtualWanName string) (result network.ListP2SVpnServerConfigurationsResultIterator, err error)
}
var _ P2sVpnServerConfigurationsClientAPI = (*network.P2sVpnServerConfigurationsClient)(nil)
@@ -767,7 +858,9 @@ type P2sVpnGatewaysClientAPI interface {
GenerateVpnProfile(ctx context.Context, resourceGroupName string, gatewayName string, parameters network.P2SVpnProfileParameters) (result network.P2sVpnGatewaysGenerateVpnProfileFuture, err error)
Get(ctx context.Context, resourceGroupName string, gatewayName string) (result network.P2SVpnGateway, err error)
List(ctx context.Context) (result network.ListP2SVpnGatewaysResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ListP2SVpnGatewaysResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ListP2SVpnGatewaysResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ListP2SVpnGatewaysResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, gatewayName string, p2SVpnGatewayParameters network.TagsObject) (result network.P2sVpnGatewaysUpdateTagsFuture, err error)
}
diff --git a/services/network/mgmt/2018-11-01/network/operations.go b/services/network/mgmt/2018-11-01/network/operations.go
index a19bd6cb7605..e4a96d153112 100644
--- a/services/network/mgmt/2018-11-01/network/operations.go
+++ b/services/network/mgmt/2018-11-01/network/operations.go
@@ -35,7 +35,8 @@ func NewOperationsClient(subscriptionID string) OperationsClient {
return NewOperationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewOperationsClientWithBaseURI creates an instance of the OperationsClient client.
+// NewOperationsClientWithBaseURI creates an instance of the OperationsClient client using a custom endpoint. Use this
+// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient {
return OperationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-11-01/network/p2svpngateways.go b/services/network/mgmt/2018-11-01/network/p2svpngateways.go
index 3866f12f0624..0347712eddc0 100644
--- a/services/network/mgmt/2018-11-01/network/p2svpngateways.go
+++ b/services/network/mgmt/2018-11-01/network/p2svpngateways.go
@@ -35,7 +35,8 @@ func NewP2sVpnGatewaysClient(subscriptionID string) P2sVpnGatewaysClient {
return NewP2sVpnGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewP2sVpnGatewaysClientWithBaseURI creates an instance of the P2sVpnGatewaysClient client.
+// NewP2sVpnGatewaysClientWithBaseURI creates an instance of the P2sVpnGatewaysClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewP2sVpnGatewaysClientWithBaseURI(baseURI string, subscriptionID string) P2sVpnGatewaysClient {
return P2sVpnGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-11-01/network/p2svpnserverconfigurations.go b/services/network/mgmt/2018-11-01/network/p2svpnserverconfigurations.go
index 976ef277d68c..a905334e7d5a 100644
--- a/services/network/mgmt/2018-11-01/network/p2svpnserverconfigurations.go
+++ b/services/network/mgmt/2018-11-01/network/p2svpnserverconfigurations.go
@@ -35,7 +35,9 @@ func NewP2sVpnServerConfigurationsClient(subscriptionID string) P2sVpnServerConf
return NewP2sVpnServerConfigurationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewP2sVpnServerConfigurationsClientWithBaseURI creates an instance of the P2sVpnServerConfigurationsClient client.
+// NewP2sVpnServerConfigurationsClientWithBaseURI creates an instance of the P2sVpnServerConfigurationsClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewP2sVpnServerConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) P2sVpnServerConfigurationsClient {
return P2sVpnServerConfigurationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-11-01/network/packetcaptures.go b/services/network/mgmt/2018-11-01/network/packetcaptures.go
index 2a727ac62bd5..798dea030578 100644
--- a/services/network/mgmt/2018-11-01/network/packetcaptures.go
+++ b/services/network/mgmt/2018-11-01/network/packetcaptures.go
@@ -36,7 +36,8 @@ func NewPacketCapturesClient(subscriptionID string) PacketCapturesClient {
return NewPacketCapturesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewPacketCapturesClientWithBaseURI creates an instance of the PacketCapturesClient client.
+// NewPacketCapturesClientWithBaseURI creates an instance of the PacketCapturesClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewPacketCapturesClientWithBaseURI(baseURI string, subscriptionID string) PacketCapturesClient {
return PacketCapturesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-11-01/network/profiles.go b/services/network/mgmt/2018-11-01/network/profiles.go
index 214c68b6e31d..7eb8753117bd 100644
--- a/services/network/mgmt/2018-11-01/network/profiles.go
+++ b/services/network/mgmt/2018-11-01/network/profiles.go
@@ -35,7 +35,8 @@ func NewProfilesClient(subscriptionID string) ProfilesClient {
return NewProfilesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewProfilesClientWithBaseURI creates an instance of the ProfilesClient client.
+// NewProfilesClientWithBaseURI creates an instance of the ProfilesClient client using a custom endpoint. Use this
+// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewProfilesClientWithBaseURI(baseURI string, subscriptionID string) ProfilesClient {
return ProfilesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-11-01/network/publicipaddresses.go b/services/network/mgmt/2018-11-01/network/publicipaddresses.go
index 030dcce8cdb9..6f9650cae822 100644
--- a/services/network/mgmt/2018-11-01/network/publicipaddresses.go
+++ b/services/network/mgmt/2018-11-01/network/publicipaddresses.go
@@ -36,7 +36,9 @@ func NewPublicIPAddressesClient(subscriptionID string) PublicIPAddressesClient {
return NewPublicIPAddressesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewPublicIPAddressesClientWithBaseURI creates an instance of the PublicIPAddressesClient client.
+// NewPublicIPAddressesClientWithBaseURI creates an instance of the PublicIPAddressesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewPublicIPAddressesClientWithBaseURI(baseURI string, subscriptionID string) PublicIPAddressesClient {
return PublicIPAddressesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-11-01/network/publicipprefixes.go b/services/network/mgmt/2018-11-01/network/publicipprefixes.go
index a2a069b41c62..26de68d1dd95 100644
--- a/services/network/mgmt/2018-11-01/network/publicipprefixes.go
+++ b/services/network/mgmt/2018-11-01/network/publicipprefixes.go
@@ -35,7 +35,9 @@ func NewPublicIPPrefixesClient(subscriptionID string) PublicIPPrefixesClient {
return NewPublicIPPrefixesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewPublicIPPrefixesClientWithBaseURI creates an instance of the PublicIPPrefixesClient client.
+// NewPublicIPPrefixesClientWithBaseURI creates an instance of the PublicIPPrefixesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewPublicIPPrefixesClientWithBaseURI(baseURI string, subscriptionID string) PublicIPPrefixesClient {
return PublicIPPrefixesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-11-01/network/routefilterrules.go b/services/network/mgmt/2018-11-01/network/routefilterrules.go
index 21e832b2c5b9..e3843f6172e8 100644
--- a/services/network/mgmt/2018-11-01/network/routefilterrules.go
+++ b/services/network/mgmt/2018-11-01/network/routefilterrules.go
@@ -36,7 +36,9 @@ func NewRouteFilterRulesClient(subscriptionID string) RouteFilterRulesClient {
return NewRouteFilterRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewRouteFilterRulesClientWithBaseURI creates an instance of the RouteFilterRulesClient client.
+// NewRouteFilterRulesClientWithBaseURI creates an instance of the RouteFilterRulesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewRouteFilterRulesClientWithBaseURI(baseURI string, subscriptionID string) RouteFilterRulesClient {
return RouteFilterRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-11-01/network/routefilters.go b/services/network/mgmt/2018-11-01/network/routefilters.go
index 5c813ec00ae3..db5701af0bf2 100644
--- a/services/network/mgmt/2018-11-01/network/routefilters.go
+++ b/services/network/mgmt/2018-11-01/network/routefilters.go
@@ -35,7 +35,8 @@ func NewRouteFiltersClient(subscriptionID string) RouteFiltersClient {
return NewRouteFiltersClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewRouteFiltersClientWithBaseURI creates an instance of the RouteFiltersClient client.
+// NewRouteFiltersClientWithBaseURI creates an instance of the RouteFiltersClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewRouteFiltersClientWithBaseURI(baseURI string, subscriptionID string) RouteFiltersClient {
return RouteFiltersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-11-01/network/routes.go b/services/network/mgmt/2018-11-01/network/routes.go
index 1dbd32f39650..4e49a0a357e6 100644
--- a/services/network/mgmt/2018-11-01/network/routes.go
+++ b/services/network/mgmt/2018-11-01/network/routes.go
@@ -35,7 +35,8 @@ func NewRoutesClient(subscriptionID string) RoutesClient {
return NewRoutesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewRoutesClientWithBaseURI creates an instance of the RoutesClient client.
+// NewRoutesClientWithBaseURI creates an instance of the RoutesClient client using a custom endpoint. Use this when
+// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewRoutesClientWithBaseURI(baseURI string, subscriptionID string) RoutesClient {
return RoutesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-11-01/network/routetables.go b/services/network/mgmt/2018-11-01/network/routetables.go
index 4bfbe2f7795e..1fa4a26150a1 100644
--- a/services/network/mgmt/2018-11-01/network/routetables.go
+++ b/services/network/mgmt/2018-11-01/network/routetables.go
@@ -35,7 +35,8 @@ func NewRouteTablesClient(subscriptionID string) RouteTablesClient {
return NewRouteTablesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewRouteTablesClientWithBaseURI creates an instance of the RouteTablesClient client.
+// NewRouteTablesClientWithBaseURI creates an instance of the RouteTablesClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewRouteTablesClientWithBaseURI(baseURI string, subscriptionID string) RouteTablesClient {
return RouteTablesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-11-01/network/securitygroups.go b/services/network/mgmt/2018-11-01/network/securitygroups.go
index 2244027e7c09..136ba34e4e27 100644
--- a/services/network/mgmt/2018-11-01/network/securitygroups.go
+++ b/services/network/mgmt/2018-11-01/network/securitygroups.go
@@ -35,7 +35,8 @@ func NewSecurityGroupsClient(subscriptionID string) SecurityGroupsClient {
return NewSecurityGroupsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewSecurityGroupsClientWithBaseURI creates an instance of the SecurityGroupsClient client.
+// NewSecurityGroupsClientWithBaseURI creates an instance of the SecurityGroupsClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewSecurityGroupsClientWithBaseURI(baseURI string, subscriptionID string) SecurityGroupsClient {
return SecurityGroupsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-11-01/network/securityrules.go b/services/network/mgmt/2018-11-01/network/securityrules.go
index eb9a740e9573..a1de1ab110d5 100644
--- a/services/network/mgmt/2018-11-01/network/securityrules.go
+++ b/services/network/mgmt/2018-11-01/network/securityrules.go
@@ -35,7 +35,8 @@ func NewSecurityRulesClient(subscriptionID string) SecurityRulesClient {
return NewSecurityRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewSecurityRulesClientWithBaseURI creates an instance of the SecurityRulesClient client.
+// NewSecurityRulesClientWithBaseURI creates an instance of the SecurityRulesClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewSecurityRulesClientWithBaseURI(baseURI string, subscriptionID string) SecurityRulesClient {
return SecurityRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-11-01/network/serviceendpointpolicies.go b/services/network/mgmt/2018-11-01/network/serviceendpointpolicies.go
index ce4729d58b45..4cd730ccd80d 100644
--- a/services/network/mgmt/2018-11-01/network/serviceendpointpolicies.go
+++ b/services/network/mgmt/2018-11-01/network/serviceendpointpolicies.go
@@ -35,7 +35,9 @@ func NewServiceEndpointPoliciesClient(subscriptionID string) ServiceEndpointPoli
return NewServiceEndpointPoliciesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewServiceEndpointPoliciesClientWithBaseURI creates an instance of the ServiceEndpointPoliciesClient client.
+// NewServiceEndpointPoliciesClientWithBaseURI creates an instance of the ServiceEndpointPoliciesClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewServiceEndpointPoliciesClientWithBaseURI(baseURI string, subscriptionID string) ServiceEndpointPoliciesClient {
return ServiceEndpointPoliciesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-11-01/network/serviceendpointpolicydefinitions.go b/services/network/mgmt/2018-11-01/network/serviceendpointpolicydefinitions.go
index 587705bcfe48..eb666bb73237 100644
--- a/services/network/mgmt/2018-11-01/network/serviceendpointpolicydefinitions.go
+++ b/services/network/mgmt/2018-11-01/network/serviceendpointpolicydefinitions.go
@@ -36,7 +36,8 @@ func NewServiceEndpointPolicyDefinitionsClient(subscriptionID string) ServiceEnd
}
// NewServiceEndpointPolicyDefinitionsClientWithBaseURI creates an instance of the
-// ServiceEndpointPolicyDefinitionsClient client.
+// ServiceEndpointPolicyDefinitionsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewServiceEndpointPolicyDefinitionsClientWithBaseURI(baseURI string, subscriptionID string) ServiceEndpointPolicyDefinitionsClient {
return ServiceEndpointPolicyDefinitionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-11-01/network/subnets.go b/services/network/mgmt/2018-11-01/network/subnets.go
index 2161d1230066..9579ebeb65d8 100644
--- a/services/network/mgmt/2018-11-01/network/subnets.go
+++ b/services/network/mgmt/2018-11-01/network/subnets.go
@@ -35,7 +35,8 @@ func NewSubnetsClient(subscriptionID string) SubnetsClient {
return NewSubnetsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewSubnetsClientWithBaseURI creates an instance of the SubnetsClient client.
+// NewSubnetsClientWithBaseURI creates an instance of the SubnetsClient client using a custom endpoint. Use this when
+// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewSubnetsClientWithBaseURI(baseURI string, subscriptionID string) SubnetsClient {
return SubnetsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-11-01/network/usages.go b/services/network/mgmt/2018-11-01/network/usages.go
index 341241adf2f2..959ff7c198c0 100644
--- a/services/network/mgmt/2018-11-01/network/usages.go
+++ b/services/network/mgmt/2018-11-01/network/usages.go
@@ -36,7 +36,8 @@ func NewUsagesClient(subscriptionID string) UsagesClient {
return NewUsagesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewUsagesClientWithBaseURI creates an instance of the UsagesClient client.
+// NewUsagesClientWithBaseURI creates an instance of the UsagesClient client using a custom endpoint. Use this when
+// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewUsagesClientWithBaseURI(baseURI string, subscriptionID string) UsagesClient {
return UsagesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-11-01/network/virtualhubs.go b/services/network/mgmt/2018-11-01/network/virtualhubs.go
index e72a37caabfd..9493c6519d18 100644
--- a/services/network/mgmt/2018-11-01/network/virtualhubs.go
+++ b/services/network/mgmt/2018-11-01/network/virtualhubs.go
@@ -35,7 +35,8 @@ func NewVirtualHubsClient(subscriptionID string) VirtualHubsClient {
return NewVirtualHubsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualHubsClientWithBaseURI creates an instance of the VirtualHubsClient client.
+// NewVirtualHubsClientWithBaseURI creates an instance of the VirtualHubsClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVirtualHubsClientWithBaseURI(baseURI string, subscriptionID string) VirtualHubsClient {
return VirtualHubsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-11-01/network/virtualnetworkgatewayconnections.go b/services/network/mgmt/2018-11-01/network/virtualnetworkgatewayconnections.go
index f705bee65c66..b55db01df4df 100644
--- a/services/network/mgmt/2018-11-01/network/virtualnetworkgatewayconnections.go
+++ b/services/network/mgmt/2018-11-01/network/virtualnetworkgatewayconnections.go
@@ -37,7 +37,8 @@ func NewVirtualNetworkGatewayConnectionsClient(subscriptionID string) VirtualNet
}
// NewVirtualNetworkGatewayConnectionsClientWithBaseURI creates an instance of the
-// VirtualNetworkGatewayConnectionsClient client.
+// VirtualNetworkGatewayConnectionsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVirtualNetworkGatewayConnectionsClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworkGatewayConnectionsClient {
return VirtualNetworkGatewayConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-11-01/network/virtualnetworkgateways.go b/services/network/mgmt/2018-11-01/network/virtualnetworkgateways.go
index f170e82d20bd..e79838ffc47c 100644
--- a/services/network/mgmt/2018-11-01/network/virtualnetworkgateways.go
+++ b/services/network/mgmt/2018-11-01/network/virtualnetworkgateways.go
@@ -36,7 +36,9 @@ func NewVirtualNetworkGatewaysClient(subscriptionID string) VirtualNetworkGatewa
return NewVirtualNetworkGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualNetworkGatewaysClientWithBaseURI creates an instance of the VirtualNetworkGatewaysClient client.
+// NewVirtualNetworkGatewaysClientWithBaseURI creates an instance of the VirtualNetworkGatewaysClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewVirtualNetworkGatewaysClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworkGatewaysClient {
return VirtualNetworkGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-11-01/network/virtualnetworkpeerings.go b/services/network/mgmt/2018-11-01/network/virtualnetworkpeerings.go
index 7415d407e3db..bf460be3412c 100644
--- a/services/network/mgmt/2018-11-01/network/virtualnetworkpeerings.go
+++ b/services/network/mgmt/2018-11-01/network/virtualnetworkpeerings.go
@@ -35,7 +35,9 @@ func NewVirtualNetworkPeeringsClient(subscriptionID string) VirtualNetworkPeerin
return NewVirtualNetworkPeeringsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualNetworkPeeringsClientWithBaseURI creates an instance of the VirtualNetworkPeeringsClient client.
+// NewVirtualNetworkPeeringsClientWithBaseURI creates an instance of the VirtualNetworkPeeringsClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewVirtualNetworkPeeringsClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworkPeeringsClient {
return VirtualNetworkPeeringsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-11-01/network/virtualnetworks.go b/services/network/mgmt/2018-11-01/network/virtualnetworks.go
index f82be17c246d..cfa1f6b6f50a 100644
--- a/services/network/mgmt/2018-11-01/network/virtualnetworks.go
+++ b/services/network/mgmt/2018-11-01/network/virtualnetworks.go
@@ -35,7 +35,8 @@ func NewVirtualNetworksClient(subscriptionID string) VirtualNetworksClient {
return NewVirtualNetworksClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualNetworksClientWithBaseURI creates an instance of the VirtualNetworksClient client.
+// NewVirtualNetworksClientWithBaseURI creates an instance of the VirtualNetworksClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVirtualNetworksClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworksClient {
return VirtualNetworksClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-11-01/network/virtualnetworktaps.go b/services/network/mgmt/2018-11-01/network/virtualnetworktaps.go
index aa736e3e84ea..41b9a2dbece6 100644
--- a/services/network/mgmt/2018-11-01/network/virtualnetworktaps.go
+++ b/services/network/mgmt/2018-11-01/network/virtualnetworktaps.go
@@ -36,7 +36,9 @@ func NewVirtualNetworkTapsClient(subscriptionID string) VirtualNetworkTapsClient
return NewVirtualNetworkTapsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualNetworkTapsClientWithBaseURI creates an instance of the VirtualNetworkTapsClient client.
+// NewVirtualNetworkTapsClientWithBaseURI creates an instance of the VirtualNetworkTapsClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewVirtualNetworkTapsClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworkTapsClient {
return VirtualNetworkTapsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-11-01/network/virtualwans.go b/services/network/mgmt/2018-11-01/network/virtualwans.go
index a93847ecaeed..bb1cc9ee2473 100644
--- a/services/network/mgmt/2018-11-01/network/virtualwans.go
+++ b/services/network/mgmt/2018-11-01/network/virtualwans.go
@@ -35,7 +35,8 @@ func NewVirtualWansClient(subscriptionID string) VirtualWansClient {
return NewVirtualWansClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualWansClientWithBaseURI creates an instance of the VirtualWansClient client.
+// NewVirtualWansClientWithBaseURI creates an instance of the VirtualWansClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVirtualWansClientWithBaseURI(baseURI string, subscriptionID string) VirtualWansClient {
return VirtualWansClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-11-01/network/vpnconnections.go b/services/network/mgmt/2018-11-01/network/vpnconnections.go
index 3602bcd3a5b0..fa9ff00d66bc 100644
--- a/services/network/mgmt/2018-11-01/network/vpnconnections.go
+++ b/services/network/mgmt/2018-11-01/network/vpnconnections.go
@@ -35,7 +35,8 @@ func NewVpnConnectionsClient(subscriptionID string) VpnConnectionsClient {
return NewVpnConnectionsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVpnConnectionsClientWithBaseURI creates an instance of the VpnConnectionsClient client.
+// NewVpnConnectionsClientWithBaseURI creates an instance of the VpnConnectionsClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVpnConnectionsClientWithBaseURI(baseURI string, subscriptionID string) VpnConnectionsClient {
return VpnConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-11-01/network/vpngateways.go b/services/network/mgmt/2018-11-01/network/vpngateways.go
index 6c09be3074bd..7384792e0ecc 100644
--- a/services/network/mgmt/2018-11-01/network/vpngateways.go
+++ b/services/network/mgmt/2018-11-01/network/vpngateways.go
@@ -35,7 +35,8 @@ func NewVpnGatewaysClient(subscriptionID string) VpnGatewaysClient {
return NewVpnGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVpnGatewaysClientWithBaseURI creates an instance of the VpnGatewaysClient client.
+// NewVpnGatewaysClientWithBaseURI creates an instance of the VpnGatewaysClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVpnGatewaysClientWithBaseURI(baseURI string, subscriptionID string) VpnGatewaysClient {
return VpnGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-11-01/network/vpnsites.go b/services/network/mgmt/2018-11-01/network/vpnsites.go
index 1dba1a5cb618..8022d6f845b3 100644
--- a/services/network/mgmt/2018-11-01/network/vpnsites.go
+++ b/services/network/mgmt/2018-11-01/network/vpnsites.go
@@ -35,7 +35,8 @@ func NewVpnSitesClient(subscriptionID string) VpnSitesClient {
return NewVpnSitesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVpnSitesClientWithBaseURI creates an instance of the VpnSitesClient client.
+// NewVpnSitesClientWithBaseURI creates an instance of the VpnSitesClient client using a custom endpoint. Use this
+// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVpnSitesClientWithBaseURI(baseURI string, subscriptionID string) VpnSitesClient {
return VpnSitesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-11-01/network/vpnsitesconfiguration.go b/services/network/mgmt/2018-11-01/network/vpnsitesconfiguration.go
index 4f1c2318e2ac..2369eaa25e89 100644
--- a/services/network/mgmt/2018-11-01/network/vpnsitesconfiguration.go
+++ b/services/network/mgmt/2018-11-01/network/vpnsitesconfiguration.go
@@ -35,7 +35,9 @@ func NewVpnSitesConfigurationClient(subscriptionID string) VpnSitesConfiguration
return NewVpnSitesConfigurationClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVpnSitesConfigurationClientWithBaseURI creates an instance of the VpnSitesConfigurationClient client.
+// NewVpnSitesConfigurationClientWithBaseURI creates an instance of the VpnSitesConfigurationClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewVpnSitesConfigurationClientWithBaseURI(baseURI string, subscriptionID string) VpnSitesConfigurationClient {
return VpnSitesConfigurationClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-11-01/network/watchers.go b/services/network/mgmt/2018-11-01/network/watchers.go
index 26c14759295b..25e41f830edd 100644
--- a/services/network/mgmt/2018-11-01/network/watchers.go
+++ b/services/network/mgmt/2018-11-01/network/watchers.go
@@ -36,7 +36,8 @@ func NewWatchersClient(subscriptionID string) WatchersClient {
return NewWatchersClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewWatchersClientWithBaseURI creates an instance of the WatchersClient client.
+// NewWatchersClientWithBaseURI creates an instance of the WatchersClient client using a custom endpoint. Use this
+// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewWatchersClientWithBaseURI(baseURI string, subscriptionID string) WatchersClient {
return WatchersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-12-01/network/applicationgateways.go b/services/network/mgmt/2018-12-01/network/applicationgateways.go
index cc48a66c2980..1feff391d89f 100644
--- a/services/network/mgmt/2018-12-01/network/applicationgateways.go
+++ b/services/network/mgmt/2018-12-01/network/applicationgateways.go
@@ -36,7 +36,9 @@ func NewApplicationGatewaysClient(subscriptionID string) ApplicationGatewaysClie
return NewApplicationGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewApplicationGatewaysClientWithBaseURI creates an instance of the ApplicationGatewaysClient client.
+// NewApplicationGatewaysClientWithBaseURI creates an instance of the ApplicationGatewaysClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewApplicationGatewaysClientWithBaseURI(baseURI string, subscriptionID string) ApplicationGatewaysClient {
return ApplicationGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-12-01/network/applicationsecuritygroups.go b/services/network/mgmt/2018-12-01/network/applicationsecuritygroups.go
index 5a29905be5d2..4738701baed1 100644
--- a/services/network/mgmt/2018-12-01/network/applicationsecuritygroups.go
+++ b/services/network/mgmt/2018-12-01/network/applicationsecuritygroups.go
@@ -35,7 +35,9 @@ func NewApplicationSecurityGroupsClient(subscriptionID string) ApplicationSecuri
return NewApplicationSecurityGroupsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewApplicationSecurityGroupsClientWithBaseURI creates an instance of the ApplicationSecurityGroupsClient client.
+// NewApplicationSecurityGroupsClientWithBaseURI creates an instance of the ApplicationSecurityGroupsClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewApplicationSecurityGroupsClientWithBaseURI(baseURI string, subscriptionID string) ApplicationSecurityGroupsClient {
return ApplicationSecurityGroupsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-12-01/network/availabledelegations.go b/services/network/mgmt/2018-12-01/network/availabledelegations.go
index b56bf1fc6884..2978f020385e 100644
--- a/services/network/mgmt/2018-12-01/network/availabledelegations.go
+++ b/services/network/mgmt/2018-12-01/network/availabledelegations.go
@@ -35,7 +35,9 @@ func NewAvailableDelegationsClient(subscriptionID string) AvailableDelegationsCl
return NewAvailableDelegationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewAvailableDelegationsClientWithBaseURI creates an instance of the AvailableDelegationsClient client.
+// NewAvailableDelegationsClientWithBaseURI creates an instance of the AvailableDelegationsClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewAvailableDelegationsClientWithBaseURI(baseURI string, subscriptionID string) AvailableDelegationsClient {
return AvailableDelegationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-12-01/network/availableendpointservices.go b/services/network/mgmt/2018-12-01/network/availableendpointservices.go
index e0be03e5d7da..f553711fb21d 100644
--- a/services/network/mgmt/2018-12-01/network/availableendpointservices.go
+++ b/services/network/mgmt/2018-12-01/network/availableendpointservices.go
@@ -35,7 +35,9 @@ func NewAvailableEndpointServicesClient(subscriptionID string) AvailableEndpoint
return NewAvailableEndpointServicesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewAvailableEndpointServicesClientWithBaseURI creates an instance of the AvailableEndpointServicesClient client.
+// NewAvailableEndpointServicesClientWithBaseURI creates an instance of the AvailableEndpointServicesClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewAvailableEndpointServicesClientWithBaseURI(baseURI string, subscriptionID string) AvailableEndpointServicesClient {
return AvailableEndpointServicesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-12-01/network/availableresourcegroupdelegations.go b/services/network/mgmt/2018-12-01/network/availableresourcegroupdelegations.go
index f8f71bc8003c..918908942fef 100644
--- a/services/network/mgmt/2018-12-01/network/availableresourcegroupdelegations.go
+++ b/services/network/mgmt/2018-12-01/network/availableresourcegroupdelegations.go
@@ -37,7 +37,8 @@ func NewAvailableResourceGroupDelegationsClient(subscriptionID string) Available
}
// NewAvailableResourceGroupDelegationsClientWithBaseURI creates an instance of the
-// AvailableResourceGroupDelegationsClient client.
+// AvailableResourceGroupDelegationsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewAvailableResourceGroupDelegationsClientWithBaseURI(baseURI string, subscriptionID string) AvailableResourceGroupDelegationsClient {
return AvailableResourceGroupDelegationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-12-01/network/azurefirewallfqdntags.go b/services/network/mgmt/2018-12-01/network/azurefirewallfqdntags.go
index 5c4322a73334..3f1559beb746 100644
--- a/services/network/mgmt/2018-12-01/network/azurefirewallfqdntags.go
+++ b/services/network/mgmt/2018-12-01/network/azurefirewallfqdntags.go
@@ -35,7 +35,9 @@ func NewAzureFirewallFqdnTagsClient(subscriptionID string) AzureFirewallFqdnTags
return NewAzureFirewallFqdnTagsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewAzureFirewallFqdnTagsClientWithBaseURI creates an instance of the AzureFirewallFqdnTagsClient client.
+// NewAzureFirewallFqdnTagsClientWithBaseURI creates an instance of the AzureFirewallFqdnTagsClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewAzureFirewallFqdnTagsClientWithBaseURI(baseURI string, subscriptionID string) AzureFirewallFqdnTagsClient {
return AzureFirewallFqdnTagsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-12-01/network/azurefirewalls.go b/services/network/mgmt/2018-12-01/network/azurefirewalls.go
index f6ef8ed20b6b..b728d465b1bb 100644
--- a/services/network/mgmt/2018-12-01/network/azurefirewalls.go
+++ b/services/network/mgmt/2018-12-01/network/azurefirewalls.go
@@ -35,7 +35,8 @@ func NewAzureFirewallsClient(subscriptionID string) AzureFirewallsClient {
return NewAzureFirewallsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewAzureFirewallsClientWithBaseURI creates an instance of the AzureFirewallsClient client.
+// NewAzureFirewallsClientWithBaseURI creates an instance of the AzureFirewallsClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewAzureFirewallsClientWithBaseURI(baseURI string, subscriptionID string) AzureFirewallsClient {
return AzureFirewallsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-12-01/network/bgpservicecommunities.go b/services/network/mgmt/2018-12-01/network/bgpservicecommunities.go
index 4ebec5676a65..4ba08208a3f2 100644
--- a/services/network/mgmt/2018-12-01/network/bgpservicecommunities.go
+++ b/services/network/mgmt/2018-12-01/network/bgpservicecommunities.go
@@ -35,7 +35,9 @@ func NewBgpServiceCommunitiesClient(subscriptionID string) BgpServiceCommunities
return NewBgpServiceCommunitiesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewBgpServiceCommunitiesClientWithBaseURI creates an instance of the BgpServiceCommunitiesClient client.
+// NewBgpServiceCommunitiesClientWithBaseURI creates an instance of the BgpServiceCommunitiesClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewBgpServiceCommunitiesClientWithBaseURI(baseURI string, subscriptionID string) BgpServiceCommunitiesClient {
return BgpServiceCommunitiesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-12-01/network/client.go b/services/network/mgmt/2018-12-01/network/client.go
index d828f9091dd7..a7a1838cd924 100644
--- a/services/network/mgmt/2018-12-01/network/client.go
+++ b/services/network/mgmt/2018-12-01/network/client.go
@@ -45,7 +45,8 @@ func New(subscriptionID string) BaseClient {
return NewWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewWithBaseURI creates an instance of the BaseClient client.
+// NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with
+// an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient {
return BaseClient{
Client: autorest.NewClientWithUserAgent(UserAgent()),
diff --git a/services/network/mgmt/2018-12-01/network/connectionmonitors.go b/services/network/mgmt/2018-12-01/network/connectionmonitors.go
index 21559ad7ff0e..feaed8c1c0b0 100644
--- a/services/network/mgmt/2018-12-01/network/connectionmonitors.go
+++ b/services/network/mgmt/2018-12-01/network/connectionmonitors.go
@@ -36,7 +36,9 @@ func NewConnectionMonitorsClient(subscriptionID string) ConnectionMonitorsClient
return NewConnectionMonitorsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewConnectionMonitorsClientWithBaseURI creates an instance of the ConnectionMonitorsClient client.
+// NewConnectionMonitorsClientWithBaseURI creates an instance of the ConnectionMonitorsClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewConnectionMonitorsClientWithBaseURI(baseURI string, subscriptionID string) ConnectionMonitorsClient {
return ConnectionMonitorsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-12-01/network/ddoscustompolicies.go b/services/network/mgmt/2018-12-01/network/ddoscustompolicies.go
index abec5cdaaa8f..925de11ca567 100644
--- a/services/network/mgmt/2018-12-01/network/ddoscustompolicies.go
+++ b/services/network/mgmt/2018-12-01/network/ddoscustompolicies.go
@@ -35,7 +35,9 @@ func NewDdosCustomPoliciesClient(subscriptionID string) DdosCustomPoliciesClient
return NewDdosCustomPoliciesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewDdosCustomPoliciesClientWithBaseURI creates an instance of the DdosCustomPoliciesClient client.
+// NewDdosCustomPoliciesClientWithBaseURI creates an instance of the DdosCustomPoliciesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewDdosCustomPoliciesClientWithBaseURI(baseURI string, subscriptionID string) DdosCustomPoliciesClient {
return DdosCustomPoliciesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-12-01/network/ddosprotectionplans.go b/services/network/mgmt/2018-12-01/network/ddosprotectionplans.go
index 475cc54622c3..9332a627a893 100644
--- a/services/network/mgmt/2018-12-01/network/ddosprotectionplans.go
+++ b/services/network/mgmt/2018-12-01/network/ddosprotectionplans.go
@@ -35,7 +35,9 @@ func NewDdosProtectionPlansClient(subscriptionID string) DdosProtectionPlansClie
return NewDdosProtectionPlansClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewDdosProtectionPlansClientWithBaseURI creates an instance of the DdosProtectionPlansClient client.
+// NewDdosProtectionPlansClientWithBaseURI creates an instance of the DdosProtectionPlansClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewDdosProtectionPlansClientWithBaseURI(baseURI string, subscriptionID string) DdosProtectionPlansClient {
return DdosProtectionPlansClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-12-01/network/defaultsecurityrules.go b/services/network/mgmt/2018-12-01/network/defaultsecurityrules.go
index 13168e9efbab..54004eb4db27 100644
--- a/services/network/mgmt/2018-12-01/network/defaultsecurityrules.go
+++ b/services/network/mgmt/2018-12-01/network/defaultsecurityrules.go
@@ -35,7 +35,9 @@ func NewDefaultSecurityRulesClient(subscriptionID string) DefaultSecurityRulesCl
return NewDefaultSecurityRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewDefaultSecurityRulesClientWithBaseURI creates an instance of the DefaultSecurityRulesClient client.
+// NewDefaultSecurityRulesClientWithBaseURI creates an instance of the DefaultSecurityRulesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewDefaultSecurityRulesClientWithBaseURI(baseURI string, subscriptionID string) DefaultSecurityRulesClient {
return DefaultSecurityRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-12-01/network/expressroutecircuitauthorizations.go b/services/network/mgmt/2018-12-01/network/expressroutecircuitauthorizations.go
index 25f4b6f74cb1..ba1c060ddf07 100644
--- a/services/network/mgmt/2018-12-01/network/expressroutecircuitauthorizations.go
+++ b/services/network/mgmt/2018-12-01/network/expressroutecircuitauthorizations.go
@@ -37,7 +37,8 @@ func NewExpressRouteCircuitAuthorizationsClient(subscriptionID string) ExpressRo
}
// NewExpressRouteCircuitAuthorizationsClientWithBaseURI creates an instance of the
-// ExpressRouteCircuitAuthorizationsClient client.
+// ExpressRouteCircuitAuthorizationsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewExpressRouteCircuitAuthorizationsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCircuitAuthorizationsClient {
return ExpressRouteCircuitAuthorizationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-12-01/network/expressroutecircuitconnections.go b/services/network/mgmt/2018-12-01/network/expressroutecircuitconnections.go
index 8aa02346771f..43a1e20448c5 100644
--- a/services/network/mgmt/2018-12-01/network/expressroutecircuitconnections.go
+++ b/services/network/mgmt/2018-12-01/network/expressroutecircuitconnections.go
@@ -36,7 +36,8 @@ func NewExpressRouteCircuitConnectionsClient(subscriptionID string) ExpressRoute
}
// NewExpressRouteCircuitConnectionsClientWithBaseURI creates an instance of the ExpressRouteCircuitConnectionsClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewExpressRouteCircuitConnectionsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCircuitConnectionsClient {
return ExpressRouteCircuitConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-12-01/network/expressroutecircuitpeerings.go b/services/network/mgmt/2018-12-01/network/expressroutecircuitpeerings.go
index f3d156793ef5..a0e16616b733 100644
--- a/services/network/mgmt/2018-12-01/network/expressroutecircuitpeerings.go
+++ b/services/network/mgmt/2018-12-01/network/expressroutecircuitpeerings.go
@@ -36,7 +36,9 @@ func NewExpressRouteCircuitPeeringsClient(subscriptionID string) ExpressRouteCir
return NewExpressRouteCircuitPeeringsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewExpressRouteCircuitPeeringsClientWithBaseURI creates an instance of the ExpressRouteCircuitPeeringsClient client.
+// NewExpressRouteCircuitPeeringsClientWithBaseURI creates an instance of the ExpressRouteCircuitPeeringsClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewExpressRouteCircuitPeeringsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCircuitPeeringsClient {
return ExpressRouteCircuitPeeringsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-12-01/network/expressroutecircuits.go b/services/network/mgmt/2018-12-01/network/expressroutecircuits.go
index ffad40c249e3..fe328634cf58 100644
--- a/services/network/mgmt/2018-12-01/network/expressroutecircuits.go
+++ b/services/network/mgmt/2018-12-01/network/expressroutecircuits.go
@@ -35,7 +35,9 @@ func NewExpressRouteCircuitsClient(subscriptionID string) ExpressRouteCircuitsCl
return NewExpressRouteCircuitsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewExpressRouteCircuitsClientWithBaseURI creates an instance of the ExpressRouteCircuitsClient client.
+// NewExpressRouteCircuitsClientWithBaseURI creates an instance of the ExpressRouteCircuitsClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewExpressRouteCircuitsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCircuitsClient {
return ExpressRouteCircuitsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-12-01/network/expressrouteconnections.go b/services/network/mgmt/2018-12-01/network/expressrouteconnections.go
index f5a9aa561c7e..3e106f7a5c4f 100644
--- a/services/network/mgmt/2018-12-01/network/expressrouteconnections.go
+++ b/services/network/mgmt/2018-12-01/network/expressrouteconnections.go
@@ -36,7 +36,9 @@ func NewExpressRouteConnectionsClient(subscriptionID string) ExpressRouteConnect
return NewExpressRouteConnectionsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewExpressRouteConnectionsClientWithBaseURI creates an instance of the ExpressRouteConnectionsClient client.
+// NewExpressRouteConnectionsClientWithBaseURI creates an instance of the ExpressRouteConnectionsClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewExpressRouteConnectionsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteConnectionsClient {
return ExpressRouteConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-12-01/network/expressroutecrossconnectionpeerings.go b/services/network/mgmt/2018-12-01/network/expressroutecrossconnectionpeerings.go
index 8b2a926cfd0f..7d6f78b325db 100644
--- a/services/network/mgmt/2018-12-01/network/expressroutecrossconnectionpeerings.go
+++ b/services/network/mgmt/2018-12-01/network/expressroutecrossconnectionpeerings.go
@@ -38,7 +38,8 @@ func NewExpressRouteCrossConnectionPeeringsClient(subscriptionID string) Express
}
// NewExpressRouteCrossConnectionPeeringsClientWithBaseURI creates an instance of the
-// ExpressRouteCrossConnectionPeeringsClient client.
+// ExpressRouteCrossConnectionPeeringsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewExpressRouteCrossConnectionPeeringsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCrossConnectionPeeringsClient {
return ExpressRouteCrossConnectionPeeringsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-12-01/network/expressroutecrossconnections.go b/services/network/mgmt/2018-12-01/network/expressroutecrossconnections.go
index 1d3979532814..9a0c5006a09f 100644
--- a/services/network/mgmt/2018-12-01/network/expressroutecrossconnections.go
+++ b/services/network/mgmt/2018-12-01/network/expressroutecrossconnections.go
@@ -36,7 +36,8 @@ func NewExpressRouteCrossConnectionsClient(subscriptionID string) ExpressRouteCr
}
// NewExpressRouteCrossConnectionsClientWithBaseURI creates an instance of the ExpressRouteCrossConnectionsClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewExpressRouteCrossConnectionsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCrossConnectionsClient {
return ExpressRouteCrossConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-12-01/network/expressroutegateways.go b/services/network/mgmt/2018-12-01/network/expressroutegateways.go
index dd76946e576a..b95d8c9c1705 100644
--- a/services/network/mgmt/2018-12-01/network/expressroutegateways.go
+++ b/services/network/mgmt/2018-12-01/network/expressroutegateways.go
@@ -36,7 +36,9 @@ func NewExpressRouteGatewaysClient(subscriptionID string) ExpressRouteGatewaysCl
return NewExpressRouteGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewExpressRouteGatewaysClientWithBaseURI creates an instance of the ExpressRouteGatewaysClient client.
+// NewExpressRouteGatewaysClientWithBaseURI creates an instance of the ExpressRouteGatewaysClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewExpressRouteGatewaysClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteGatewaysClient {
return ExpressRouteGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-12-01/network/expressroutelinks.go b/services/network/mgmt/2018-12-01/network/expressroutelinks.go
index 43acdc1b19b7..4640758fd2e4 100644
--- a/services/network/mgmt/2018-12-01/network/expressroutelinks.go
+++ b/services/network/mgmt/2018-12-01/network/expressroutelinks.go
@@ -35,7 +35,9 @@ func NewExpressRouteLinksClient(subscriptionID string) ExpressRouteLinksClient {
return NewExpressRouteLinksClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewExpressRouteLinksClientWithBaseURI creates an instance of the ExpressRouteLinksClient client.
+// NewExpressRouteLinksClientWithBaseURI creates an instance of the ExpressRouteLinksClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewExpressRouteLinksClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteLinksClient {
return ExpressRouteLinksClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-12-01/network/expressrouteports.go b/services/network/mgmt/2018-12-01/network/expressrouteports.go
index 260d652e8cc7..b1856fa44608 100644
--- a/services/network/mgmt/2018-12-01/network/expressrouteports.go
+++ b/services/network/mgmt/2018-12-01/network/expressrouteports.go
@@ -35,7 +35,9 @@ func NewExpressRoutePortsClient(subscriptionID string) ExpressRoutePortsClient {
return NewExpressRoutePortsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewExpressRoutePortsClientWithBaseURI creates an instance of the ExpressRoutePortsClient client.
+// NewExpressRoutePortsClientWithBaseURI creates an instance of the ExpressRoutePortsClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewExpressRoutePortsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRoutePortsClient {
return ExpressRoutePortsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-12-01/network/expressrouteportslocations.go b/services/network/mgmt/2018-12-01/network/expressrouteportslocations.go
index ff825bdd3dcd..2c5ef7ba9e6c 100644
--- a/services/network/mgmt/2018-12-01/network/expressrouteportslocations.go
+++ b/services/network/mgmt/2018-12-01/network/expressrouteportslocations.go
@@ -35,7 +35,9 @@ func NewExpressRoutePortsLocationsClient(subscriptionID string) ExpressRoutePort
return NewExpressRoutePortsLocationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewExpressRoutePortsLocationsClientWithBaseURI creates an instance of the ExpressRoutePortsLocationsClient client.
+// NewExpressRoutePortsLocationsClientWithBaseURI creates an instance of the ExpressRoutePortsLocationsClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewExpressRoutePortsLocationsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRoutePortsLocationsClient {
return ExpressRoutePortsLocationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-12-01/network/expressrouteserviceproviders.go b/services/network/mgmt/2018-12-01/network/expressrouteserviceproviders.go
index c578a1e47bf0..bf7d2480142e 100644
--- a/services/network/mgmt/2018-12-01/network/expressrouteserviceproviders.go
+++ b/services/network/mgmt/2018-12-01/network/expressrouteserviceproviders.go
@@ -36,7 +36,8 @@ func NewExpressRouteServiceProvidersClient(subscriptionID string) ExpressRouteSe
}
// NewExpressRouteServiceProvidersClientWithBaseURI creates an instance of the ExpressRouteServiceProvidersClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewExpressRouteServiceProvidersClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteServiceProvidersClient {
return ExpressRouteServiceProvidersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-12-01/network/hubvirtualnetworkconnections.go b/services/network/mgmt/2018-12-01/network/hubvirtualnetworkconnections.go
index 1faf332292b2..1ce9393d308b 100644
--- a/services/network/mgmt/2018-12-01/network/hubvirtualnetworkconnections.go
+++ b/services/network/mgmt/2018-12-01/network/hubvirtualnetworkconnections.go
@@ -36,7 +36,8 @@ func NewHubVirtualNetworkConnectionsClient(subscriptionID string) HubVirtualNetw
}
// NewHubVirtualNetworkConnectionsClientWithBaseURI creates an instance of the HubVirtualNetworkConnectionsClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewHubVirtualNetworkConnectionsClientWithBaseURI(baseURI string, subscriptionID string) HubVirtualNetworkConnectionsClient {
return HubVirtualNetworkConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-12-01/network/inboundnatrules.go b/services/network/mgmt/2018-12-01/network/inboundnatrules.go
index 4e38ae3fe3a4..fa2c0f6f3bd9 100644
--- a/services/network/mgmt/2018-12-01/network/inboundnatrules.go
+++ b/services/network/mgmt/2018-12-01/network/inboundnatrules.go
@@ -36,7 +36,8 @@ func NewInboundNatRulesClient(subscriptionID string) InboundNatRulesClient {
return NewInboundNatRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewInboundNatRulesClientWithBaseURI creates an instance of the InboundNatRulesClient client.
+// NewInboundNatRulesClientWithBaseURI creates an instance of the InboundNatRulesClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewInboundNatRulesClientWithBaseURI(baseURI string, subscriptionID string) InboundNatRulesClient {
return InboundNatRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-12-01/network/interfaceendpoints.go b/services/network/mgmt/2018-12-01/network/interfaceendpoints.go
index 8693933138b0..d408e99d3aa6 100644
--- a/services/network/mgmt/2018-12-01/network/interfaceendpoints.go
+++ b/services/network/mgmt/2018-12-01/network/interfaceendpoints.go
@@ -35,7 +35,9 @@ func NewInterfaceEndpointsClient(subscriptionID string) InterfaceEndpointsClient
return NewInterfaceEndpointsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewInterfaceEndpointsClientWithBaseURI creates an instance of the InterfaceEndpointsClient client.
+// NewInterfaceEndpointsClientWithBaseURI creates an instance of the InterfaceEndpointsClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewInterfaceEndpointsClientWithBaseURI(baseURI string, subscriptionID string) InterfaceEndpointsClient {
return InterfaceEndpointsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-12-01/network/interfaceipconfigurations.go b/services/network/mgmt/2018-12-01/network/interfaceipconfigurations.go
index fda9948c8339..8efe5defc9fd 100644
--- a/services/network/mgmt/2018-12-01/network/interfaceipconfigurations.go
+++ b/services/network/mgmt/2018-12-01/network/interfaceipconfigurations.go
@@ -35,7 +35,9 @@ func NewInterfaceIPConfigurationsClient(subscriptionID string) InterfaceIPConfig
return NewInterfaceIPConfigurationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewInterfaceIPConfigurationsClientWithBaseURI creates an instance of the InterfaceIPConfigurationsClient client.
+// NewInterfaceIPConfigurationsClientWithBaseURI creates an instance of the InterfaceIPConfigurationsClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewInterfaceIPConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) InterfaceIPConfigurationsClient {
return InterfaceIPConfigurationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-12-01/network/interfaceloadbalancers.go b/services/network/mgmt/2018-12-01/network/interfaceloadbalancers.go
index 8df5132c983a..8dbc33f6b275 100644
--- a/services/network/mgmt/2018-12-01/network/interfaceloadbalancers.go
+++ b/services/network/mgmt/2018-12-01/network/interfaceloadbalancers.go
@@ -35,7 +35,9 @@ func NewInterfaceLoadBalancersClient(subscriptionID string) InterfaceLoadBalance
return NewInterfaceLoadBalancersClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewInterfaceLoadBalancersClientWithBaseURI creates an instance of the InterfaceLoadBalancersClient client.
+// NewInterfaceLoadBalancersClientWithBaseURI creates an instance of the InterfaceLoadBalancersClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewInterfaceLoadBalancersClientWithBaseURI(baseURI string, subscriptionID string) InterfaceLoadBalancersClient {
return InterfaceLoadBalancersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-12-01/network/interfacesgroup.go b/services/network/mgmt/2018-12-01/network/interfacesgroup.go
index 815da9c46792..03df7ec10eb9 100644
--- a/services/network/mgmt/2018-12-01/network/interfacesgroup.go
+++ b/services/network/mgmt/2018-12-01/network/interfacesgroup.go
@@ -35,7 +35,8 @@ func NewInterfacesClient(subscriptionID string) InterfacesClient {
return NewInterfacesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewInterfacesClientWithBaseURI creates an instance of the InterfacesClient client.
+// NewInterfacesClientWithBaseURI creates an instance of the InterfacesClient client using a custom endpoint. Use this
+// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewInterfacesClientWithBaseURI(baseURI string, subscriptionID string) InterfacesClient {
return InterfacesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-12-01/network/interfacetapconfigurations.go b/services/network/mgmt/2018-12-01/network/interfacetapconfigurations.go
index 4a0b7ed0cc0a..da1b6cad890c 100644
--- a/services/network/mgmt/2018-12-01/network/interfacetapconfigurations.go
+++ b/services/network/mgmt/2018-12-01/network/interfacetapconfigurations.go
@@ -36,7 +36,9 @@ func NewInterfaceTapConfigurationsClient(subscriptionID string) InterfaceTapConf
return NewInterfaceTapConfigurationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewInterfaceTapConfigurationsClientWithBaseURI creates an instance of the InterfaceTapConfigurationsClient client.
+// NewInterfaceTapConfigurationsClientWithBaseURI creates an instance of the InterfaceTapConfigurationsClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewInterfaceTapConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) InterfaceTapConfigurationsClient {
return InterfaceTapConfigurationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-12-01/network/loadbalancerbackendaddresspools.go b/services/network/mgmt/2018-12-01/network/loadbalancerbackendaddresspools.go
index e70f0664451a..d0931c96b0f6 100644
--- a/services/network/mgmt/2018-12-01/network/loadbalancerbackendaddresspools.go
+++ b/services/network/mgmt/2018-12-01/network/loadbalancerbackendaddresspools.go
@@ -36,7 +36,8 @@ func NewLoadBalancerBackendAddressPoolsClient(subscriptionID string) LoadBalance
}
// NewLoadBalancerBackendAddressPoolsClientWithBaseURI creates an instance of the LoadBalancerBackendAddressPoolsClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewLoadBalancerBackendAddressPoolsClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerBackendAddressPoolsClient {
return LoadBalancerBackendAddressPoolsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-12-01/network/loadbalancerfrontendipconfigurations.go b/services/network/mgmt/2018-12-01/network/loadbalancerfrontendipconfigurations.go
index 3bd423fb2f67..a7ec1cc2e44f 100644
--- a/services/network/mgmt/2018-12-01/network/loadbalancerfrontendipconfigurations.go
+++ b/services/network/mgmt/2018-12-01/network/loadbalancerfrontendipconfigurations.go
@@ -37,7 +37,8 @@ func NewLoadBalancerFrontendIPConfigurationsClient(subscriptionID string) LoadBa
}
// NewLoadBalancerFrontendIPConfigurationsClientWithBaseURI creates an instance of the
-// LoadBalancerFrontendIPConfigurationsClient client.
+// LoadBalancerFrontendIPConfigurationsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewLoadBalancerFrontendIPConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerFrontendIPConfigurationsClient {
return LoadBalancerFrontendIPConfigurationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-12-01/network/loadbalancerloadbalancingrules.go b/services/network/mgmt/2018-12-01/network/loadbalancerloadbalancingrules.go
index 4b6d6c31d6f6..1e302f2b4def 100644
--- a/services/network/mgmt/2018-12-01/network/loadbalancerloadbalancingrules.go
+++ b/services/network/mgmt/2018-12-01/network/loadbalancerloadbalancingrules.go
@@ -36,7 +36,8 @@ func NewLoadBalancerLoadBalancingRulesClient(subscriptionID string) LoadBalancer
}
// NewLoadBalancerLoadBalancingRulesClientWithBaseURI creates an instance of the LoadBalancerLoadBalancingRulesClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewLoadBalancerLoadBalancingRulesClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerLoadBalancingRulesClient {
return LoadBalancerLoadBalancingRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-12-01/network/loadbalancernetworkinterfaces.go b/services/network/mgmt/2018-12-01/network/loadbalancernetworkinterfaces.go
index 65b69588c7cc..938e0d04ac0c 100644
--- a/services/network/mgmt/2018-12-01/network/loadbalancernetworkinterfaces.go
+++ b/services/network/mgmt/2018-12-01/network/loadbalancernetworkinterfaces.go
@@ -36,7 +36,8 @@ func NewLoadBalancerNetworkInterfacesClient(subscriptionID string) LoadBalancerN
}
// NewLoadBalancerNetworkInterfacesClientWithBaseURI creates an instance of the LoadBalancerNetworkInterfacesClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewLoadBalancerNetworkInterfacesClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerNetworkInterfacesClient {
return LoadBalancerNetworkInterfacesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-12-01/network/loadbalanceroutboundrules.go b/services/network/mgmt/2018-12-01/network/loadbalanceroutboundrules.go
index 38c77fb70a51..e93f0e77194f 100644
--- a/services/network/mgmt/2018-12-01/network/loadbalanceroutboundrules.go
+++ b/services/network/mgmt/2018-12-01/network/loadbalanceroutboundrules.go
@@ -35,7 +35,9 @@ func NewLoadBalancerOutboundRulesClient(subscriptionID string) LoadBalancerOutbo
return NewLoadBalancerOutboundRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewLoadBalancerOutboundRulesClientWithBaseURI creates an instance of the LoadBalancerOutboundRulesClient client.
+// NewLoadBalancerOutboundRulesClientWithBaseURI creates an instance of the LoadBalancerOutboundRulesClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewLoadBalancerOutboundRulesClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerOutboundRulesClient {
return LoadBalancerOutboundRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-12-01/network/loadbalancerprobes.go b/services/network/mgmt/2018-12-01/network/loadbalancerprobes.go
index cd9e2a2500c9..5b0040a7f798 100644
--- a/services/network/mgmt/2018-12-01/network/loadbalancerprobes.go
+++ b/services/network/mgmt/2018-12-01/network/loadbalancerprobes.go
@@ -35,7 +35,9 @@ func NewLoadBalancerProbesClient(subscriptionID string) LoadBalancerProbesClient
return NewLoadBalancerProbesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewLoadBalancerProbesClientWithBaseURI creates an instance of the LoadBalancerProbesClient client.
+// NewLoadBalancerProbesClientWithBaseURI creates an instance of the LoadBalancerProbesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewLoadBalancerProbesClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerProbesClient {
return LoadBalancerProbesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-12-01/network/loadbalancers.go b/services/network/mgmt/2018-12-01/network/loadbalancers.go
index 0d3b74f77081..f6331ff41b2b 100644
--- a/services/network/mgmt/2018-12-01/network/loadbalancers.go
+++ b/services/network/mgmt/2018-12-01/network/loadbalancers.go
@@ -35,7 +35,8 @@ func NewLoadBalancersClient(subscriptionID string) LoadBalancersClient {
return NewLoadBalancersClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewLoadBalancersClientWithBaseURI creates an instance of the LoadBalancersClient client.
+// NewLoadBalancersClientWithBaseURI creates an instance of the LoadBalancersClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewLoadBalancersClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancersClient {
return LoadBalancersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-12-01/network/localnetworkgateways.go b/services/network/mgmt/2018-12-01/network/localnetworkgateways.go
index 066dbf406d8f..20c0c20259cf 100644
--- a/services/network/mgmt/2018-12-01/network/localnetworkgateways.go
+++ b/services/network/mgmt/2018-12-01/network/localnetworkgateways.go
@@ -36,7 +36,9 @@ func NewLocalNetworkGatewaysClient(subscriptionID string) LocalNetworkGatewaysCl
return NewLocalNetworkGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewLocalNetworkGatewaysClientWithBaseURI creates an instance of the LocalNetworkGatewaysClient client.
+// NewLocalNetworkGatewaysClientWithBaseURI creates an instance of the LocalNetworkGatewaysClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewLocalNetworkGatewaysClientWithBaseURI(baseURI string, subscriptionID string) LocalNetworkGatewaysClient {
return LocalNetworkGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-12-01/network/networkapi/interfaces.go b/services/network/mgmt/2018-12-01/network/networkapi/interfaces.go
index 20fc314b5b35..1b17aecbe149 100644
--- a/services/network/mgmt/2018-12-01/network/networkapi/interfaces.go
+++ b/services/network/mgmt/2018-12-01/network/networkapi/interfaces.go
@@ -38,12 +38,15 @@ type ApplicationGatewaysClientAPI interface {
Get(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result network.ApplicationGateway, err error)
GetSslPredefinedPolicy(ctx context.Context, predefinedPolicyName string) (result network.ApplicationGatewaySslPredefinedPolicy, err error)
List(ctx context.Context, resourceGroupName string) (result network.ApplicationGatewayListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.ApplicationGatewayListResultIterator, err error)
ListAll(ctx context.Context) (result network.ApplicationGatewayListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.ApplicationGatewayListResultIterator, err error)
ListAvailableRequestHeaders(ctx context.Context) (result network.ListString, err error)
ListAvailableResponseHeaders(ctx context.Context) (result network.ListString, err error)
ListAvailableServerVariables(ctx context.Context) (result network.ListString, err error)
ListAvailableSslOptions(ctx context.Context) (result network.ApplicationGatewayAvailableSslOptions, err error)
ListAvailableSslPredefinedPolicies(ctx context.Context) (result network.ApplicationGatewayAvailableSslPredefinedPoliciesPage, err error)
+ ListAvailableSslPredefinedPoliciesComplete(ctx context.Context) (result network.ApplicationGatewayAvailableSslPredefinedPoliciesIterator, err error)
ListAvailableWafRuleSets(ctx context.Context) (result network.ApplicationGatewayAvailableWafRuleSetsResult, err error)
Start(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result network.ApplicationGatewaysStartFuture, err error)
Stop(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result network.ApplicationGatewaysStopFuture, err error)
@@ -58,7 +61,9 @@ type ApplicationSecurityGroupsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, applicationSecurityGroupName string) (result network.ApplicationSecurityGroupsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, applicationSecurityGroupName string) (result network.ApplicationSecurityGroup, err error)
List(ctx context.Context, resourceGroupName string) (result network.ApplicationSecurityGroupListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.ApplicationSecurityGroupListResultIterator, err error)
ListAll(ctx context.Context) (result network.ApplicationSecurityGroupListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.ApplicationSecurityGroupListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, applicationSecurityGroupName string, parameters network.TagsObject) (result network.ApplicationSecurityGroupsUpdateTagsFuture, err error)
}
@@ -67,6 +72,7 @@ var _ ApplicationSecurityGroupsClientAPI = (*network.ApplicationSecurityGroupsCl
// AvailableDelegationsClientAPI contains the set of methods on the AvailableDelegationsClient type.
type AvailableDelegationsClientAPI interface {
List(ctx context.Context, location string) (result network.AvailableDelegationsResultPage, err error)
+ ListComplete(ctx context.Context, location string) (result network.AvailableDelegationsResultIterator, err error)
}
var _ AvailableDelegationsClientAPI = (*network.AvailableDelegationsClient)(nil)
@@ -74,6 +80,7 @@ var _ AvailableDelegationsClientAPI = (*network.AvailableDelegationsClient)(nil)
// AvailableResourceGroupDelegationsClientAPI contains the set of methods on the AvailableResourceGroupDelegationsClient type.
type AvailableResourceGroupDelegationsClientAPI interface {
List(ctx context.Context, location string, resourceGroupName string) (result network.AvailableDelegationsResultPage, err error)
+ ListComplete(ctx context.Context, location string, resourceGroupName string) (result network.AvailableDelegationsResultIterator, err error)
}
var _ AvailableResourceGroupDelegationsClientAPI = (*network.AvailableResourceGroupDelegationsClient)(nil)
@@ -84,7 +91,9 @@ type AzureFirewallsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, azureFirewallName string) (result network.AzureFirewallsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, azureFirewallName string) (result network.AzureFirewall, err error)
List(ctx context.Context, resourceGroupName string) (result network.AzureFirewallListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.AzureFirewallListResultIterator, err error)
ListAll(ctx context.Context) (result network.AzureFirewallListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.AzureFirewallListResultIterator, err error)
}
var _ AzureFirewallsClientAPI = (*network.AzureFirewallsClient)(nil)
@@ -92,6 +101,7 @@ var _ AzureFirewallsClientAPI = (*network.AzureFirewallsClient)(nil)
// AzureFirewallFqdnTagsClientAPI contains the set of methods on the AzureFirewallFqdnTagsClient type.
type AzureFirewallFqdnTagsClientAPI interface {
ListAll(ctx context.Context) (result network.AzureFirewallFqdnTagListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.AzureFirewallFqdnTagListResultIterator, err error)
}
var _ AzureFirewallFqdnTagsClientAPI = (*network.AzureFirewallFqdnTagsClient)(nil)
@@ -112,7 +122,9 @@ type DdosProtectionPlansClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, ddosProtectionPlanName string) (result network.DdosProtectionPlansDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, ddosProtectionPlanName string) (result network.DdosProtectionPlan, err error)
List(ctx context.Context) (result network.DdosProtectionPlanListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.DdosProtectionPlanListResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.DdosProtectionPlanListResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.DdosProtectionPlanListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, ddosProtectionPlanName string, parameters network.TagsObject) (result network.DdosProtectionPlansUpdateTagsFuture, err error)
}
@@ -121,6 +133,7 @@ var _ DdosProtectionPlansClientAPI = (*network.DdosProtectionPlansClient)(nil)
// AvailableEndpointServicesClientAPI contains the set of methods on the AvailableEndpointServicesClient type.
type AvailableEndpointServicesClientAPI interface {
List(ctx context.Context, location string) (result network.EndpointServicesListResultPage, err error)
+ ListComplete(ctx context.Context, location string) (result network.EndpointServicesListResultIterator, err error)
}
var _ AvailableEndpointServicesClientAPI = (*network.AvailableEndpointServicesClient)(nil)
@@ -131,6 +144,7 @@ type ExpressRouteCircuitAuthorizationsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, circuitName string, authorizationName string) (result network.ExpressRouteCircuitAuthorizationsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, circuitName string, authorizationName string) (result network.ExpressRouteCircuitAuthorization, err error)
List(ctx context.Context, resourceGroupName string, circuitName string) (result network.AuthorizationListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, circuitName string) (result network.AuthorizationListResultIterator, err error)
}
var _ ExpressRouteCircuitAuthorizationsClientAPI = (*network.ExpressRouteCircuitAuthorizationsClient)(nil)
@@ -141,6 +155,7 @@ type ExpressRouteCircuitPeeringsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.ExpressRouteCircuitPeeringsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.ExpressRouteCircuitPeering, err error)
List(ctx context.Context, resourceGroupName string, circuitName string) (result network.ExpressRouteCircuitPeeringListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, circuitName string) (result network.ExpressRouteCircuitPeeringListResultIterator, err error)
}
var _ ExpressRouteCircuitPeeringsClientAPI = (*network.ExpressRouteCircuitPeeringsClient)(nil)
@@ -151,6 +166,7 @@ type ExpressRouteCircuitConnectionsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, connectionName string) (result network.ExpressRouteCircuitConnectionsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, connectionName string) (result network.ExpressRouteCircuitConnection, err error)
List(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.ExpressRouteCircuitConnectionListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.ExpressRouteCircuitConnectionListResultIterator, err error)
}
var _ ExpressRouteCircuitConnectionsClientAPI = (*network.ExpressRouteCircuitConnectionsClient)(nil)
@@ -159,6 +175,7 @@ var _ ExpressRouteCircuitConnectionsClientAPI = (*network.ExpressRouteCircuitCon
type PeerExpressRouteCircuitConnectionsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, connectionName string) (result network.PeerExpressRouteCircuitConnection, err error)
List(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.PeerExpressRouteCircuitConnectionListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.PeerExpressRouteCircuitConnectionListResultIterator, err error)
}
var _ PeerExpressRouteCircuitConnectionsClientAPI = (*network.PeerExpressRouteCircuitConnectionsClient)(nil)
@@ -171,7 +188,9 @@ type ExpressRouteCircuitsClientAPI interface {
GetPeeringStats(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.ExpressRouteCircuitStats, err error)
GetStats(ctx context.Context, resourceGroupName string, circuitName string) (result network.ExpressRouteCircuitStats, err error)
List(ctx context.Context, resourceGroupName string) (result network.ExpressRouteCircuitListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.ExpressRouteCircuitListResultIterator, err error)
ListAll(ctx context.Context) (result network.ExpressRouteCircuitListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.ExpressRouteCircuitListResultIterator, err error)
ListArpTable(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, devicePath string) (result network.ExpressRouteCircuitsListArpTableFuture, err error)
ListRoutesTable(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, devicePath string) (result network.ExpressRouteCircuitsListRoutesTableFuture, err error)
ListRoutesTableSummary(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, devicePath string) (result network.ExpressRouteCircuitsListRoutesTableSummaryFuture, err error)
@@ -183,6 +202,7 @@ var _ ExpressRouteCircuitsClientAPI = (*network.ExpressRouteCircuitsClient)(nil)
// ExpressRouteServiceProvidersClientAPI contains the set of methods on the ExpressRouteServiceProvidersClient type.
type ExpressRouteServiceProvidersClientAPI interface {
List(ctx context.Context) (result network.ExpressRouteServiceProviderListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ExpressRouteServiceProviderListResultIterator, err error)
}
var _ ExpressRouteServiceProvidersClientAPI = (*network.ExpressRouteServiceProvidersClient)(nil)
@@ -192,8 +212,10 @@ type ExpressRouteCrossConnectionsClientAPI interface {
CreateOrUpdate(ctx context.Context, resourceGroupName string, crossConnectionName string, parameters network.ExpressRouteCrossConnection) (result network.ExpressRouteCrossConnectionsCreateOrUpdateFuture, err error)
Get(ctx context.Context, resourceGroupName string, crossConnectionName string) (result network.ExpressRouteCrossConnection, err error)
List(ctx context.Context) (result network.ExpressRouteCrossConnectionListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ExpressRouteCrossConnectionListResultIterator, err error)
ListArpTable(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string, devicePath string) (result network.ExpressRouteCrossConnectionsListArpTableFuture, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ExpressRouteCrossConnectionListResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ExpressRouteCrossConnectionListResultIterator, err error)
ListRoutesTable(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string, devicePath string) (result network.ExpressRouteCrossConnectionsListRoutesTableFuture, err error)
ListRoutesTableSummary(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string, devicePath string) (result network.ExpressRouteCrossConnectionsListRoutesTableSummaryFuture, err error)
UpdateTags(ctx context.Context, resourceGroupName string, crossConnectionName string, crossConnectionParameters network.TagsObject) (result network.ExpressRouteCrossConnectionsUpdateTagsFuture, err error)
@@ -207,6 +229,7 @@ type ExpressRouteCrossConnectionPeeringsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string) (result network.ExpressRouteCrossConnectionPeeringsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string) (result network.ExpressRouteCrossConnectionPeering, err error)
List(ctx context.Context, resourceGroupName string, crossConnectionName string) (result network.ExpressRouteCrossConnectionPeeringListPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, crossConnectionName string) (result network.ExpressRouteCrossConnectionPeeringListIterator, err error)
}
var _ ExpressRouteCrossConnectionPeeringsClientAPI = (*network.ExpressRouteCrossConnectionPeeringsClient)(nil)
@@ -236,6 +259,7 @@ var _ ExpressRouteConnectionsClientAPI = (*network.ExpressRouteConnectionsClient
type ExpressRoutePortsLocationsClientAPI interface {
Get(ctx context.Context, locationName string) (result network.ExpressRoutePortsLocation, err error)
List(ctx context.Context) (result network.ExpressRoutePortsLocationListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ExpressRoutePortsLocationListResultIterator, err error)
}
var _ ExpressRoutePortsLocationsClientAPI = (*network.ExpressRoutePortsLocationsClient)(nil)
@@ -246,7 +270,9 @@ type ExpressRoutePortsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, expressRoutePortName string) (result network.ExpressRoutePortsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, expressRoutePortName string) (result network.ExpressRoutePort, err error)
List(ctx context.Context) (result network.ExpressRoutePortListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ExpressRoutePortListResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ExpressRoutePortListResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ExpressRoutePortListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, expressRoutePortName string, parameters network.TagsObject) (result network.ExpressRoutePortsUpdateTagsFuture, err error)
}
@@ -256,6 +282,7 @@ var _ ExpressRoutePortsClientAPI = (*network.ExpressRoutePortsClient)(nil)
type ExpressRouteLinksClientAPI interface {
Get(ctx context.Context, resourceGroupName string, expressRoutePortName string, linkName string) (result network.ExpressRouteLink, err error)
List(ctx context.Context, resourceGroupName string, expressRoutePortName string) (result network.ExpressRouteLinkListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, expressRoutePortName string) (result network.ExpressRouteLinkListResultIterator, err error)
}
var _ ExpressRouteLinksClientAPI = (*network.ExpressRouteLinksClient)(nil)
@@ -266,7 +293,9 @@ type InterfaceEndpointsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, interfaceEndpointName string) (result network.InterfaceEndpointsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, interfaceEndpointName string, expand string) (result network.InterfaceEndpoint, err error)
List(ctx context.Context, resourceGroupName string) (result network.InterfaceEndpointListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.InterfaceEndpointListResultIterator, err error)
ListBySubscription(ctx context.Context) (result network.InterfaceEndpointListResultPage, err error)
+ ListBySubscriptionComplete(ctx context.Context) (result network.InterfaceEndpointListResultIterator, err error)
}
var _ InterfaceEndpointsClientAPI = (*network.InterfaceEndpointsClient)(nil)
@@ -277,7 +306,9 @@ type LoadBalancersClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancersDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, expand string) (result network.LoadBalancer, err error)
List(ctx context.Context, resourceGroupName string) (result network.LoadBalancerListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.LoadBalancerListResultIterator, err error)
ListAll(ctx context.Context) (result network.LoadBalancerListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.LoadBalancerListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, loadBalancerName string, parameters network.TagsObject) (result network.LoadBalancersUpdateTagsFuture, err error)
}
@@ -287,6 +318,7 @@ var _ LoadBalancersClientAPI = (*network.LoadBalancersClient)(nil)
type LoadBalancerBackendAddressPoolsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, backendAddressPoolName string) (result network.BackendAddressPool, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerBackendAddressPoolListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerBackendAddressPoolListResultIterator, err error)
}
var _ LoadBalancerBackendAddressPoolsClientAPI = (*network.LoadBalancerBackendAddressPoolsClient)(nil)
@@ -295,6 +327,7 @@ var _ LoadBalancerBackendAddressPoolsClientAPI = (*network.LoadBalancerBackendAd
type LoadBalancerFrontendIPConfigurationsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, frontendIPConfigurationName string) (result network.FrontendIPConfiguration, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerFrontendIPConfigurationListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerFrontendIPConfigurationListResultIterator, err error)
}
var _ LoadBalancerFrontendIPConfigurationsClientAPI = (*network.LoadBalancerFrontendIPConfigurationsClient)(nil)
@@ -305,6 +338,7 @@ type InboundNatRulesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, loadBalancerName string, inboundNatRuleName string) (result network.InboundNatRulesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, inboundNatRuleName string, expand string) (result network.InboundNatRule, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.InboundNatRuleListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.InboundNatRuleListResultIterator, err error)
}
var _ InboundNatRulesClientAPI = (*network.InboundNatRulesClient)(nil)
@@ -313,6 +347,7 @@ var _ InboundNatRulesClientAPI = (*network.InboundNatRulesClient)(nil)
type LoadBalancerLoadBalancingRulesClientAPI interface {
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, loadBalancingRuleName string) (result network.LoadBalancingRule, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerLoadBalancingRuleListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerLoadBalancingRuleListResultIterator, err error)
}
var _ LoadBalancerLoadBalancingRulesClientAPI = (*network.LoadBalancerLoadBalancingRulesClient)(nil)
@@ -321,6 +356,7 @@ var _ LoadBalancerLoadBalancingRulesClientAPI = (*network.LoadBalancerLoadBalanc
type LoadBalancerOutboundRulesClientAPI interface {
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, outboundRuleName string) (result network.OutboundRule, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerOutboundRuleListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerOutboundRuleListResultIterator, err error)
}
var _ LoadBalancerOutboundRulesClientAPI = (*network.LoadBalancerOutboundRulesClient)(nil)
@@ -328,6 +364,7 @@ var _ LoadBalancerOutboundRulesClientAPI = (*network.LoadBalancerOutboundRulesCl
// LoadBalancerNetworkInterfacesClientAPI contains the set of methods on the LoadBalancerNetworkInterfacesClient type.
type LoadBalancerNetworkInterfacesClientAPI interface {
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.InterfaceListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.InterfaceListResultIterator, err error)
}
var _ LoadBalancerNetworkInterfacesClientAPI = (*network.LoadBalancerNetworkInterfacesClient)(nil)
@@ -336,6 +373,7 @@ var _ LoadBalancerNetworkInterfacesClientAPI = (*network.LoadBalancerNetworkInte
type LoadBalancerProbesClientAPI interface {
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, probeName string) (result network.Probe, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerProbeListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerProbeListResultIterator, err error)
}
var _ LoadBalancerProbesClientAPI = (*network.LoadBalancerProbesClient)(nil)
@@ -349,11 +387,16 @@ type InterfacesClientAPI interface {
GetVirtualMachineScaleSetIPConfiguration(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, IPConfigurationName string, expand string) (result network.InterfaceIPConfiguration, err error)
GetVirtualMachineScaleSetNetworkInterface(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, expand string) (result network.Interface, err error)
List(ctx context.Context, resourceGroupName string) (result network.InterfaceListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.InterfaceListResultIterator, err error)
ListAll(ctx context.Context) (result network.InterfaceListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.InterfaceListResultIterator, err error)
ListEffectiveNetworkSecurityGroups(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfacesListEffectiveNetworkSecurityGroupsFuture, err error)
ListVirtualMachineScaleSetIPConfigurations(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, expand string) (result network.InterfaceIPConfigurationListResultPage, err error)
+ ListVirtualMachineScaleSetIPConfigurationsComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, expand string) (result network.InterfaceIPConfigurationListResultIterator, err error)
ListVirtualMachineScaleSetNetworkInterfaces(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result network.InterfaceListResultPage, err error)
+ ListVirtualMachineScaleSetNetworkInterfacesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result network.InterfaceListResultIterator, err error)
ListVirtualMachineScaleSetVMNetworkInterfaces(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string) (result network.InterfaceListResultPage, err error)
+ ListVirtualMachineScaleSetVMNetworkInterfacesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string) (result network.InterfaceListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, networkInterfaceName string, parameters network.TagsObject) (result network.InterfacesUpdateTagsFuture, err error)
}
@@ -363,6 +406,7 @@ var _ InterfacesClientAPI = (*network.InterfacesClient)(nil)
type InterfaceIPConfigurationsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, networkInterfaceName string, IPConfigurationName string) (result network.InterfaceIPConfiguration, err error)
List(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceIPConfigurationListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceIPConfigurationListResultIterator, err error)
}
var _ InterfaceIPConfigurationsClientAPI = (*network.InterfaceIPConfigurationsClient)(nil)
@@ -370,6 +414,7 @@ var _ InterfaceIPConfigurationsClientAPI = (*network.InterfaceIPConfigurationsCl
// InterfaceLoadBalancersClientAPI contains the set of methods on the InterfaceLoadBalancersClient type.
type InterfaceLoadBalancersClientAPI interface {
List(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceLoadBalancerListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceLoadBalancerListResultIterator, err error)
}
var _ InterfaceLoadBalancersClientAPI = (*network.InterfaceLoadBalancersClient)(nil)
@@ -380,6 +425,7 @@ type InterfaceTapConfigurationsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, networkInterfaceName string, tapConfigurationName string) (result network.InterfaceTapConfigurationsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, networkInterfaceName string, tapConfigurationName string) (result network.InterfaceTapConfiguration, err error)
List(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceTapConfigurationListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceTapConfigurationListResultIterator, err error)
}
var _ InterfaceTapConfigurationsClientAPI = (*network.InterfaceTapConfigurationsClient)(nil)
@@ -390,7 +436,9 @@ type ProfilesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, networkProfileName string) (result network.ProfilesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, networkProfileName string, expand string) (result network.Profile, err error)
List(ctx context.Context, resourceGroupName string) (result network.ProfileListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.ProfileListResultIterator, err error)
ListAll(ctx context.Context) (result network.ProfileListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.ProfileListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, networkProfileName string, parameters network.TagsObject) (result network.Profile, err error)
}
@@ -402,7 +450,9 @@ type SecurityGroupsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityGroupsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, expand string) (result network.SecurityGroup, err error)
List(ctx context.Context, resourceGroupName string) (result network.SecurityGroupListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.SecurityGroupListResultIterator, err error)
ListAll(ctx context.Context) (result network.SecurityGroupListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.SecurityGroupListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, parameters network.TagsObject) (result network.SecurityGroupsUpdateTagsFuture, err error)
}
@@ -414,6 +464,7 @@ type SecurityRulesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, securityRuleName string) (result network.SecurityRulesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, securityRuleName string) (result network.SecurityRule, err error)
List(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityRuleListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityRuleListResultIterator, err error)
}
var _ SecurityRulesClientAPI = (*network.SecurityRulesClient)(nil)
@@ -422,6 +473,7 @@ var _ SecurityRulesClientAPI = (*network.SecurityRulesClient)(nil)
type DefaultSecurityRulesClientAPI interface {
Get(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, defaultSecurityRuleName string) (result network.SecurityRule, err error)
List(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityRuleListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityRuleListResultIterator, err error)
}
var _ DefaultSecurityRulesClientAPI = (*network.DefaultSecurityRulesClient)(nil)
@@ -478,6 +530,7 @@ var _ ConnectionMonitorsClientAPI = (*network.ConnectionMonitorsClient)(nil)
// OperationsClientAPI contains the set of methods on the OperationsClient type.
type OperationsClientAPI interface {
List(ctx context.Context) (result network.OperationListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.OperationListResultIterator, err error)
}
var _ OperationsClientAPI = (*network.OperationsClient)(nil)
@@ -489,9 +542,13 @@ type PublicIPAddressesClientAPI interface {
Get(ctx context.Context, resourceGroupName string, publicIPAddressName string, expand string) (result network.PublicIPAddress, err error)
GetVirtualMachineScaleSetPublicIPAddress(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, IPConfigurationName string, publicIPAddressName string, expand string) (result network.PublicIPAddress, err error)
List(ctx context.Context, resourceGroupName string) (result network.PublicIPAddressListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.PublicIPAddressListResultIterator, err error)
ListAll(ctx context.Context) (result network.PublicIPAddressListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.PublicIPAddressListResultIterator, err error)
ListVirtualMachineScaleSetPublicIPAddresses(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result network.PublicIPAddressListResultPage, err error)
+ ListVirtualMachineScaleSetPublicIPAddressesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result network.PublicIPAddressListResultIterator, err error)
ListVirtualMachineScaleSetVMPublicIPAddresses(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, IPConfigurationName string) (result network.PublicIPAddressListResultPage, err error)
+ ListVirtualMachineScaleSetVMPublicIPAddressesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, IPConfigurationName string) (result network.PublicIPAddressListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, publicIPAddressName string, parameters network.TagsObject) (result network.PublicIPAddressesUpdateTagsFuture, err error)
}
@@ -503,7 +560,9 @@ type PublicIPPrefixesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, publicIPPrefixName string) (result network.PublicIPPrefixesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, publicIPPrefixName string, expand string) (result network.PublicIPPrefix, err error)
List(ctx context.Context, resourceGroupName string) (result network.PublicIPPrefixListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.PublicIPPrefixListResultIterator, err error)
ListAll(ctx context.Context) (result network.PublicIPPrefixListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.PublicIPPrefixListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, publicIPPrefixName string, parameters network.TagsObject) (result network.PublicIPPrefixesUpdateTagsFuture, err error)
}
@@ -515,7 +574,9 @@ type RouteFiltersClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, routeFilterName string) (result network.RouteFiltersDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, routeFilterName string, expand string) (result network.RouteFilter, err error)
List(ctx context.Context) (result network.RouteFilterListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.RouteFilterListResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.RouteFilterListResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.RouteFilterListResultIterator, err error)
Update(ctx context.Context, resourceGroupName string, routeFilterName string, routeFilterParameters network.PatchRouteFilter) (result network.RouteFiltersUpdateFuture, err error)
}
@@ -527,6 +588,7 @@ type RouteFilterRulesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, routeFilterName string, ruleName string) (result network.RouteFilterRulesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, routeFilterName string, ruleName string) (result network.RouteFilterRule, err error)
ListByRouteFilter(ctx context.Context, resourceGroupName string, routeFilterName string) (result network.RouteFilterRuleListResultPage, err error)
+ ListByRouteFilterComplete(ctx context.Context, resourceGroupName string, routeFilterName string) (result network.RouteFilterRuleListResultIterator, err error)
Update(ctx context.Context, resourceGroupName string, routeFilterName string, ruleName string, routeFilterRuleParameters network.PatchRouteFilterRule) (result network.RouteFilterRulesUpdateFuture, err error)
}
@@ -538,7 +600,9 @@ type RouteTablesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, routeTableName string) (result network.RouteTablesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, routeTableName string, expand string) (result network.RouteTable, err error)
List(ctx context.Context, resourceGroupName string) (result network.RouteTableListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.RouteTableListResultIterator, err error)
ListAll(ctx context.Context) (result network.RouteTableListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.RouteTableListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, routeTableName string, parameters network.TagsObject) (result network.RouteTablesUpdateTagsFuture, err error)
}
@@ -550,6 +614,7 @@ type RoutesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, routeTableName string, routeName string) (result network.RoutesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, routeTableName string, routeName string) (result network.Route, err error)
List(ctx context.Context, resourceGroupName string, routeTableName string) (result network.RouteListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, routeTableName string) (result network.RouteListResultIterator, err error)
}
var _ RoutesClientAPI = (*network.RoutesClient)(nil)
@@ -557,6 +622,7 @@ var _ RoutesClientAPI = (*network.RoutesClient)(nil)
// BgpServiceCommunitiesClientAPI contains the set of methods on the BgpServiceCommunitiesClient type.
type BgpServiceCommunitiesClientAPI interface {
List(ctx context.Context) (result network.BgpServiceCommunityListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.BgpServiceCommunityListResultIterator, err error)
}
var _ BgpServiceCommunitiesClientAPI = (*network.BgpServiceCommunitiesClient)(nil)
@@ -567,7 +633,9 @@ type ServiceEndpointPoliciesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string) (result network.ServiceEndpointPoliciesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string, expand string) (result network.ServiceEndpointPolicy, err error)
List(ctx context.Context) (result network.ServiceEndpointPolicyListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ServiceEndpointPolicyListResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ServiceEndpointPolicyListResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ServiceEndpointPolicyListResultIterator, err error)
Update(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string, parameters network.TagsObject) (result network.ServiceEndpointPoliciesUpdateFuture, err error)
}
@@ -579,6 +647,7 @@ type ServiceEndpointPolicyDefinitionsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string, serviceEndpointPolicyDefinitionName string) (result network.ServiceEndpointPolicyDefinitionsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string, serviceEndpointPolicyDefinitionName string) (result network.ServiceEndpointPolicyDefinition, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string) (result network.ServiceEndpointPolicyDefinitionListResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string) (result network.ServiceEndpointPolicyDefinitionListResultIterator, err error)
}
var _ ServiceEndpointPolicyDefinitionsClientAPI = (*network.ServiceEndpointPolicyDefinitionsClient)(nil)
@@ -586,6 +655,7 @@ var _ ServiceEndpointPolicyDefinitionsClientAPI = (*network.ServiceEndpointPolic
// UsagesClientAPI contains the set of methods on the UsagesClient type.
type UsagesClientAPI interface {
List(ctx context.Context, location string) (result network.UsagesListResultPage, err error)
+ ListComplete(ctx context.Context, location string) (result network.UsagesListResultIterator, err error)
}
var _ UsagesClientAPI = (*network.UsagesClient)(nil)
@@ -597,8 +667,11 @@ type VirtualNetworksClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworksDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualNetworkName string, expand string) (result network.VirtualNetwork, err error)
List(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkListResultIterator, err error)
ListAll(ctx context.Context) (result network.VirtualNetworkListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.VirtualNetworkListResultIterator, err error)
ListUsage(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworkListUsageResultPage, err error)
+ ListUsageComplete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworkListUsageResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, virtualNetworkName string, parameters network.TagsObject) (result network.VirtualNetworksUpdateTagsFuture, err error)
}
@@ -610,6 +683,7 @@ type SubnetsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualNetworkName string, subnetName string) (result network.SubnetsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualNetworkName string, subnetName string, expand string) (result network.Subnet, err error)
List(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.SubnetListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.SubnetListResultIterator, err error)
PrepareNetworkPolicies(ctx context.Context, resourceGroupName string, virtualNetworkName string, subnetName string, prepareNetworkPoliciesRequestParameters network.PrepareNetworkPoliciesRequest) (result network.SubnetsPrepareNetworkPoliciesFuture, err error)
}
@@ -621,6 +695,7 @@ type VirtualNetworkPeeringsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualNetworkName string, virtualNetworkPeeringName string) (result network.VirtualNetworkPeeringsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualNetworkName string, virtualNetworkPeeringName string) (result network.VirtualNetworkPeering, err error)
List(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworkPeeringListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworkPeeringListResultIterator, err error)
}
var _ VirtualNetworkPeeringsClientAPI = (*network.VirtualNetworkPeeringsClient)(nil)
@@ -638,7 +713,9 @@ type VirtualNetworkGatewaysClientAPI interface {
GetVpnclientIpsecParameters(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGatewaysGetVpnclientIpsecParametersFuture, err error)
GetVpnProfilePackageURL(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGatewaysGetVpnProfilePackageURLFuture, err error)
List(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayListResultIterator, err error)
ListConnections(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGatewayListConnectionsResultPage, err error)
+ ListConnectionsComplete(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGatewayListConnectionsResultIterator, err error)
Reset(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, gatewayVip string) (result network.VirtualNetworkGatewaysResetFuture, err error)
ResetVpnClientSharedKey(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGatewaysResetVpnClientSharedKeyFuture, err error)
SetVpnclientIpsecParameters(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, vpnclientIpsecParams network.VpnClientIPsecParameters) (result network.VirtualNetworkGatewaysSetVpnclientIpsecParametersFuture, err error)
@@ -656,6 +733,7 @@ type VirtualNetworkGatewayConnectionsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string) (result network.VirtualNetworkGatewayConnection, err error)
GetSharedKey(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string) (result network.ConnectionSharedKey, err error)
List(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayConnectionListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayConnectionListResultIterator, err error)
ResetSharedKey(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string, parameters network.ConnectionResetSharedKey) (result network.VirtualNetworkGatewayConnectionsResetSharedKeyFuture, err error)
SetSharedKey(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string, parameters network.ConnectionSharedKey) (result network.VirtualNetworkGatewayConnectionsSetSharedKeyFuture, err error)
UpdateTags(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string, parameters network.TagsObject) (result network.VirtualNetworkGatewayConnectionsUpdateTagsFuture, err error)
@@ -669,6 +747,7 @@ type LocalNetworkGatewaysClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, localNetworkGatewayName string) (result network.LocalNetworkGatewaysDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, localNetworkGatewayName string) (result network.LocalNetworkGateway, err error)
List(ctx context.Context, resourceGroupName string) (result network.LocalNetworkGatewayListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.LocalNetworkGatewayListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, localNetworkGatewayName string, parameters network.TagsObject) (result network.LocalNetworkGatewaysUpdateTagsFuture, err error)
}
@@ -680,7 +759,9 @@ type VirtualNetworkTapsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, tapName string) (result network.VirtualNetworkTapsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, tapName string) (result network.VirtualNetworkTap, err error)
ListAll(ctx context.Context) (result network.VirtualNetworkTapListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.VirtualNetworkTapListResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkTapListResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkTapListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, tapName string, tapParameters network.TagsObject) (result network.VirtualNetworkTapsUpdateTagsFuture, err error)
}
@@ -692,7 +773,9 @@ type VirtualWansClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualWANName string) (result network.VirtualWansDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualWANName string) (result network.VirtualWAN, err error)
List(ctx context.Context) (result network.ListVirtualWANsResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ListVirtualWANsResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ListVirtualWANsResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ListVirtualWANsResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, virtualWANName string, wANParameters network.TagsObject) (result network.VirtualWansUpdateTagsFuture, err error)
}
@@ -704,7 +787,9 @@ type VpnSitesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, vpnSiteName string) (result network.VpnSitesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, vpnSiteName string) (result network.VpnSite, err error)
List(ctx context.Context) (result network.ListVpnSitesResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ListVpnSitesResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ListVpnSitesResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ListVpnSitesResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, vpnSiteName string, vpnSiteParameters network.TagsObject) (result network.VpnSitesUpdateTagsFuture, err error)
}
@@ -723,7 +808,9 @@ type VirtualHubsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualHubName string) (result network.VirtualHubsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualHubName string) (result network.VirtualHub, err error)
List(ctx context.Context) (result network.ListVirtualHubsResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ListVirtualHubsResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ListVirtualHubsResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ListVirtualHubsResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, virtualHubName string, virtualHubParameters network.TagsObject) (result network.VirtualHubsUpdateTagsFuture, err error)
}
@@ -733,6 +820,7 @@ var _ VirtualHubsClientAPI = (*network.VirtualHubsClient)(nil)
type HubVirtualNetworkConnectionsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, virtualHubName string, connectionName string) (result network.HubVirtualNetworkConnection, err error)
List(ctx context.Context, resourceGroupName string, virtualHubName string) (result network.ListHubVirtualNetworkConnectionsResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, virtualHubName string) (result network.ListHubVirtualNetworkConnectionsResultIterator, err error)
}
var _ HubVirtualNetworkConnectionsClientAPI = (*network.HubVirtualNetworkConnectionsClient)(nil)
@@ -743,7 +831,9 @@ type VpnGatewaysClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, gatewayName string) (result network.VpnGatewaysDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, gatewayName string) (result network.VpnGateway, err error)
List(ctx context.Context) (result network.ListVpnGatewaysResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ListVpnGatewaysResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ListVpnGatewaysResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ListVpnGatewaysResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, gatewayName string, vpnGatewayParameters network.TagsObject) (result network.VpnGatewaysUpdateTagsFuture, err error)
}
@@ -755,6 +845,7 @@ type VpnConnectionsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, gatewayName string, connectionName string) (result network.VpnConnectionsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, gatewayName string, connectionName string) (result network.VpnConnection, err error)
ListByVpnGateway(ctx context.Context, resourceGroupName string, gatewayName string) (result network.ListVpnConnectionsResultPage, err error)
+ ListByVpnGatewayComplete(ctx context.Context, resourceGroupName string, gatewayName string) (result network.ListVpnConnectionsResultIterator, err error)
}
var _ VpnConnectionsClientAPI = (*network.VpnConnectionsClient)(nil)
@@ -765,6 +856,7 @@ type P2sVpnServerConfigurationsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualWanName string, p2SVpnServerConfigurationName string) (result network.P2sVpnServerConfigurationsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualWanName string, p2SVpnServerConfigurationName string) (result network.P2SVpnServerConfiguration, err error)
ListByVirtualWan(ctx context.Context, resourceGroupName string, virtualWanName string) (result network.ListP2SVpnServerConfigurationsResultPage, err error)
+ ListByVirtualWanComplete(ctx context.Context, resourceGroupName string, virtualWanName string) (result network.ListP2SVpnServerConfigurationsResultIterator, err error)
}
var _ P2sVpnServerConfigurationsClientAPI = (*network.P2sVpnServerConfigurationsClient)(nil)
@@ -776,7 +868,9 @@ type P2sVpnGatewaysClientAPI interface {
GenerateVpnProfile(ctx context.Context, resourceGroupName string, gatewayName string, parameters network.P2SVpnProfileParameters) (result network.P2sVpnGatewaysGenerateVpnProfileFuture, err error)
Get(ctx context.Context, resourceGroupName string, gatewayName string) (result network.P2SVpnGateway, err error)
List(ctx context.Context) (result network.ListP2SVpnGatewaysResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ListP2SVpnGatewaysResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ListP2SVpnGatewaysResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ListP2SVpnGatewaysResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, gatewayName string, p2SVpnGatewayParameters network.TagsObject) (result network.P2sVpnGatewaysUpdateTagsFuture, err error)
}
@@ -788,7 +882,9 @@ type WebApplicationFirewallPoliciesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, policyName string) (result network.WebApplicationFirewallPoliciesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, policyName string) (result network.WebApplicationFirewallPolicy, err error)
List(ctx context.Context, resourceGroupName string) (result network.WebApplicationFirewallPolicyListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.WebApplicationFirewallPolicyListResultIterator, err error)
ListAll(ctx context.Context) (result network.WebApplicationFirewallPolicyListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.WebApplicationFirewallPolicyListResultIterator, err error)
}
var _ WebApplicationFirewallPoliciesClientAPI = (*network.WebApplicationFirewallPoliciesClient)(nil)
diff --git a/services/network/mgmt/2018-12-01/network/operations.go b/services/network/mgmt/2018-12-01/network/operations.go
index 8ad5923c80bc..dde639b29fa1 100644
--- a/services/network/mgmt/2018-12-01/network/operations.go
+++ b/services/network/mgmt/2018-12-01/network/operations.go
@@ -35,7 +35,8 @@ func NewOperationsClient(subscriptionID string) OperationsClient {
return NewOperationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewOperationsClientWithBaseURI creates an instance of the OperationsClient client.
+// NewOperationsClientWithBaseURI creates an instance of the OperationsClient client using a custom endpoint. Use this
+// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient {
return OperationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-12-01/network/p2svpngateways.go b/services/network/mgmt/2018-12-01/network/p2svpngateways.go
index d1256e399a37..86b314360424 100644
--- a/services/network/mgmt/2018-12-01/network/p2svpngateways.go
+++ b/services/network/mgmt/2018-12-01/network/p2svpngateways.go
@@ -35,7 +35,8 @@ func NewP2sVpnGatewaysClient(subscriptionID string) P2sVpnGatewaysClient {
return NewP2sVpnGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewP2sVpnGatewaysClientWithBaseURI creates an instance of the P2sVpnGatewaysClient client.
+// NewP2sVpnGatewaysClientWithBaseURI creates an instance of the P2sVpnGatewaysClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewP2sVpnGatewaysClientWithBaseURI(baseURI string, subscriptionID string) P2sVpnGatewaysClient {
return P2sVpnGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-12-01/network/p2svpnserverconfigurations.go b/services/network/mgmt/2018-12-01/network/p2svpnserverconfigurations.go
index aa9638e46110..7f57bb32e2e0 100644
--- a/services/network/mgmt/2018-12-01/network/p2svpnserverconfigurations.go
+++ b/services/network/mgmt/2018-12-01/network/p2svpnserverconfigurations.go
@@ -35,7 +35,9 @@ func NewP2sVpnServerConfigurationsClient(subscriptionID string) P2sVpnServerConf
return NewP2sVpnServerConfigurationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewP2sVpnServerConfigurationsClientWithBaseURI creates an instance of the P2sVpnServerConfigurationsClient client.
+// NewP2sVpnServerConfigurationsClientWithBaseURI creates an instance of the P2sVpnServerConfigurationsClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewP2sVpnServerConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) P2sVpnServerConfigurationsClient {
return P2sVpnServerConfigurationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-12-01/network/packetcaptures.go b/services/network/mgmt/2018-12-01/network/packetcaptures.go
index 8c32b8e996ca..1df383071e95 100644
--- a/services/network/mgmt/2018-12-01/network/packetcaptures.go
+++ b/services/network/mgmt/2018-12-01/network/packetcaptures.go
@@ -36,7 +36,8 @@ func NewPacketCapturesClient(subscriptionID string) PacketCapturesClient {
return NewPacketCapturesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewPacketCapturesClientWithBaseURI creates an instance of the PacketCapturesClient client.
+// NewPacketCapturesClientWithBaseURI creates an instance of the PacketCapturesClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewPacketCapturesClientWithBaseURI(baseURI string, subscriptionID string) PacketCapturesClient {
return PacketCapturesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-12-01/network/peerexpressroutecircuitconnections.go b/services/network/mgmt/2018-12-01/network/peerexpressroutecircuitconnections.go
index a7d3a21a0686..390a7c787470 100644
--- a/services/network/mgmt/2018-12-01/network/peerexpressroutecircuitconnections.go
+++ b/services/network/mgmt/2018-12-01/network/peerexpressroutecircuitconnections.go
@@ -37,7 +37,8 @@ func NewPeerExpressRouteCircuitConnectionsClient(subscriptionID string) PeerExpr
}
// NewPeerExpressRouteCircuitConnectionsClientWithBaseURI creates an instance of the
-// PeerExpressRouteCircuitConnectionsClient client.
+// PeerExpressRouteCircuitConnectionsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewPeerExpressRouteCircuitConnectionsClientWithBaseURI(baseURI string, subscriptionID string) PeerExpressRouteCircuitConnectionsClient {
return PeerExpressRouteCircuitConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-12-01/network/profiles.go b/services/network/mgmt/2018-12-01/network/profiles.go
index 362193ee7b4f..1a47ccd9f260 100644
--- a/services/network/mgmt/2018-12-01/network/profiles.go
+++ b/services/network/mgmt/2018-12-01/network/profiles.go
@@ -35,7 +35,8 @@ func NewProfilesClient(subscriptionID string) ProfilesClient {
return NewProfilesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewProfilesClientWithBaseURI creates an instance of the ProfilesClient client.
+// NewProfilesClientWithBaseURI creates an instance of the ProfilesClient client using a custom endpoint. Use this
+// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewProfilesClientWithBaseURI(baseURI string, subscriptionID string) ProfilesClient {
return ProfilesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-12-01/network/publicipaddresses.go b/services/network/mgmt/2018-12-01/network/publicipaddresses.go
index 8acaf7f3e922..71488801bf5f 100644
--- a/services/network/mgmt/2018-12-01/network/publicipaddresses.go
+++ b/services/network/mgmt/2018-12-01/network/publicipaddresses.go
@@ -36,7 +36,9 @@ func NewPublicIPAddressesClient(subscriptionID string) PublicIPAddressesClient {
return NewPublicIPAddressesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewPublicIPAddressesClientWithBaseURI creates an instance of the PublicIPAddressesClient client.
+// NewPublicIPAddressesClientWithBaseURI creates an instance of the PublicIPAddressesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewPublicIPAddressesClientWithBaseURI(baseURI string, subscriptionID string) PublicIPAddressesClient {
return PublicIPAddressesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-12-01/network/publicipprefixes.go b/services/network/mgmt/2018-12-01/network/publicipprefixes.go
index 6b11bac35b72..2caee3752161 100644
--- a/services/network/mgmt/2018-12-01/network/publicipprefixes.go
+++ b/services/network/mgmt/2018-12-01/network/publicipprefixes.go
@@ -35,7 +35,9 @@ func NewPublicIPPrefixesClient(subscriptionID string) PublicIPPrefixesClient {
return NewPublicIPPrefixesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewPublicIPPrefixesClientWithBaseURI creates an instance of the PublicIPPrefixesClient client.
+// NewPublicIPPrefixesClientWithBaseURI creates an instance of the PublicIPPrefixesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewPublicIPPrefixesClientWithBaseURI(baseURI string, subscriptionID string) PublicIPPrefixesClient {
return PublicIPPrefixesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-12-01/network/routefilterrules.go b/services/network/mgmt/2018-12-01/network/routefilterrules.go
index 3043eaed2373..0f4c9797e7ac 100644
--- a/services/network/mgmt/2018-12-01/network/routefilterrules.go
+++ b/services/network/mgmt/2018-12-01/network/routefilterrules.go
@@ -36,7 +36,9 @@ func NewRouteFilterRulesClient(subscriptionID string) RouteFilterRulesClient {
return NewRouteFilterRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewRouteFilterRulesClientWithBaseURI creates an instance of the RouteFilterRulesClient client.
+// NewRouteFilterRulesClientWithBaseURI creates an instance of the RouteFilterRulesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewRouteFilterRulesClientWithBaseURI(baseURI string, subscriptionID string) RouteFilterRulesClient {
return RouteFilterRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-12-01/network/routefilters.go b/services/network/mgmt/2018-12-01/network/routefilters.go
index 6a2e4f380bad..5c442fcfeb6c 100644
--- a/services/network/mgmt/2018-12-01/network/routefilters.go
+++ b/services/network/mgmt/2018-12-01/network/routefilters.go
@@ -35,7 +35,8 @@ func NewRouteFiltersClient(subscriptionID string) RouteFiltersClient {
return NewRouteFiltersClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewRouteFiltersClientWithBaseURI creates an instance of the RouteFiltersClient client.
+// NewRouteFiltersClientWithBaseURI creates an instance of the RouteFiltersClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewRouteFiltersClientWithBaseURI(baseURI string, subscriptionID string) RouteFiltersClient {
return RouteFiltersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-12-01/network/routes.go b/services/network/mgmt/2018-12-01/network/routes.go
index ede8a8e4b788..f61703282a34 100644
--- a/services/network/mgmt/2018-12-01/network/routes.go
+++ b/services/network/mgmt/2018-12-01/network/routes.go
@@ -35,7 +35,8 @@ func NewRoutesClient(subscriptionID string) RoutesClient {
return NewRoutesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewRoutesClientWithBaseURI creates an instance of the RoutesClient client.
+// NewRoutesClientWithBaseURI creates an instance of the RoutesClient client using a custom endpoint. Use this when
+// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewRoutesClientWithBaseURI(baseURI string, subscriptionID string) RoutesClient {
return RoutesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-12-01/network/routetables.go b/services/network/mgmt/2018-12-01/network/routetables.go
index 5c1ab554a6bd..62b6a566f644 100644
--- a/services/network/mgmt/2018-12-01/network/routetables.go
+++ b/services/network/mgmt/2018-12-01/network/routetables.go
@@ -35,7 +35,8 @@ func NewRouteTablesClient(subscriptionID string) RouteTablesClient {
return NewRouteTablesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewRouteTablesClientWithBaseURI creates an instance of the RouteTablesClient client.
+// NewRouteTablesClientWithBaseURI creates an instance of the RouteTablesClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewRouteTablesClientWithBaseURI(baseURI string, subscriptionID string) RouteTablesClient {
return RouteTablesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-12-01/network/securitygroups.go b/services/network/mgmt/2018-12-01/network/securitygroups.go
index 500ac1d16ae2..5d2145297c04 100644
--- a/services/network/mgmt/2018-12-01/network/securitygroups.go
+++ b/services/network/mgmt/2018-12-01/network/securitygroups.go
@@ -35,7 +35,8 @@ func NewSecurityGroupsClient(subscriptionID string) SecurityGroupsClient {
return NewSecurityGroupsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewSecurityGroupsClientWithBaseURI creates an instance of the SecurityGroupsClient client.
+// NewSecurityGroupsClientWithBaseURI creates an instance of the SecurityGroupsClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewSecurityGroupsClientWithBaseURI(baseURI string, subscriptionID string) SecurityGroupsClient {
return SecurityGroupsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-12-01/network/securityrules.go b/services/network/mgmt/2018-12-01/network/securityrules.go
index 4c7d51e7e2ff..e041ce4ba064 100644
--- a/services/network/mgmt/2018-12-01/network/securityrules.go
+++ b/services/network/mgmt/2018-12-01/network/securityrules.go
@@ -35,7 +35,8 @@ func NewSecurityRulesClient(subscriptionID string) SecurityRulesClient {
return NewSecurityRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewSecurityRulesClientWithBaseURI creates an instance of the SecurityRulesClient client.
+// NewSecurityRulesClientWithBaseURI creates an instance of the SecurityRulesClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewSecurityRulesClientWithBaseURI(baseURI string, subscriptionID string) SecurityRulesClient {
return SecurityRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-12-01/network/serviceendpointpolicies.go b/services/network/mgmt/2018-12-01/network/serviceendpointpolicies.go
index 5d9cc864f5d1..2495d6f6f99a 100644
--- a/services/network/mgmt/2018-12-01/network/serviceendpointpolicies.go
+++ b/services/network/mgmt/2018-12-01/network/serviceendpointpolicies.go
@@ -35,7 +35,9 @@ func NewServiceEndpointPoliciesClient(subscriptionID string) ServiceEndpointPoli
return NewServiceEndpointPoliciesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewServiceEndpointPoliciesClientWithBaseURI creates an instance of the ServiceEndpointPoliciesClient client.
+// NewServiceEndpointPoliciesClientWithBaseURI creates an instance of the ServiceEndpointPoliciesClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewServiceEndpointPoliciesClientWithBaseURI(baseURI string, subscriptionID string) ServiceEndpointPoliciesClient {
return ServiceEndpointPoliciesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-12-01/network/serviceendpointpolicydefinitions.go b/services/network/mgmt/2018-12-01/network/serviceendpointpolicydefinitions.go
index 1b0d56242683..6cf6c7a16294 100644
--- a/services/network/mgmt/2018-12-01/network/serviceendpointpolicydefinitions.go
+++ b/services/network/mgmt/2018-12-01/network/serviceendpointpolicydefinitions.go
@@ -36,7 +36,8 @@ func NewServiceEndpointPolicyDefinitionsClient(subscriptionID string) ServiceEnd
}
// NewServiceEndpointPolicyDefinitionsClientWithBaseURI creates an instance of the
-// ServiceEndpointPolicyDefinitionsClient client.
+// ServiceEndpointPolicyDefinitionsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewServiceEndpointPolicyDefinitionsClientWithBaseURI(baseURI string, subscriptionID string) ServiceEndpointPolicyDefinitionsClient {
return ServiceEndpointPolicyDefinitionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-12-01/network/subnets.go b/services/network/mgmt/2018-12-01/network/subnets.go
index 2091fc9c0ee7..963d26eae4e5 100644
--- a/services/network/mgmt/2018-12-01/network/subnets.go
+++ b/services/network/mgmt/2018-12-01/network/subnets.go
@@ -35,7 +35,8 @@ func NewSubnetsClient(subscriptionID string) SubnetsClient {
return NewSubnetsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewSubnetsClientWithBaseURI creates an instance of the SubnetsClient client.
+// NewSubnetsClientWithBaseURI creates an instance of the SubnetsClient client using a custom endpoint. Use this when
+// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewSubnetsClientWithBaseURI(baseURI string, subscriptionID string) SubnetsClient {
return SubnetsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-12-01/network/usages.go b/services/network/mgmt/2018-12-01/network/usages.go
index 7cd0faa7af50..f26368faa0dc 100644
--- a/services/network/mgmt/2018-12-01/network/usages.go
+++ b/services/network/mgmt/2018-12-01/network/usages.go
@@ -36,7 +36,8 @@ func NewUsagesClient(subscriptionID string) UsagesClient {
return NewUsagesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewUsagesClientWithBaseURI creates an instance of the UsagesClient client.
+// NewUsagesClientWithBaseURI creates an instance of the UsagesClient client using a custom endpoint. Use this when
+// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewUsagesClientWithBaseURI(baseURI string, subscriptionID string) UsagesClient {
return UsagesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-12-01/network/virtualhubs.go b/services/network/mgmt/2018-12-01/network/virtualhubs.go
index 9e69acdcdd70..6a33859c77ac 100644
--- a/services/network/mgmt/2018-12-01/network/virtualhubs.go
+++ b/services/network/mgmt/2018-12-01/network/virtualhubs.go
@@ -35,7 +35,8 @@ func NewVirtualHubsClient(subscriptionID string) VirtualHubsClient {
return NewVirtualHubsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualHubsClientWithBaseURI creates an instance of the VirtualHubsClient client.
+// NewVirtualHubsClientWithBaseURI creates an instance of the VirtualHubsClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVirtualHubsClientWithBaseURI(baseURI string, subscriptionID string) VirtualHubsClient {
return VirtualHubsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-12-01/network/virtualnetworkgatewayconnections.go b/services/network/mgmt/2018-12-01/network/virtualnetworkgatewayconnections.go
index 1ee9bc8b3453..9bf84bde13f5 100644
--- a/services/network/mgmt/2018-12-01/network/virtualnetworkgatewayconnections.go
+++ b/services/network/mgmt/2018-12-01/network/virtualnetworkgatewayconnections.go
@@ -37,7 +37,8 @@ func NewVirtualNetworkGatewayConnectionsClient(subscriptionID string) VirtualNet
}
// NewVirtualNetworkGatewayConnectionsClientWithBaseURI creates an instance of the
-// VirtualNetworkGatewayConnectionsClient client.
+// VirtualNetworkGatewayConnectionsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVirtualNetworkGatewayConnectionsClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworkGatewayConnectionsClient {
return VirtualNetworkGatewayConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-12-01/network/virtualnetworkgateways.go b/services/network/mgmt/2018-12-01/network/virtualnetworkgateways.go
index 3861be66b987..36dff4724805 100644
--- a/services/network/mgmt/2018-12-01/network/virtualnetworkgateways.go
+++ b/services/network/mgmt/2018-12-01/network/virtualnetworkgateways.go
@@ -36,7 +36,9 @@ func NewVirtualNetworkGatewaysClient(subscriptionID string) VirtualNetworkGatewa
return NewVirtualNetworkGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualNetworkGatewaysClientWithBaseURI creates an instance of the VirtualNetworkGatewaysClient client.
+// NewVirtualNetworkGatewaysClientWithBaseURI creates an instance of the VirtualNetworkGatewaysClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewVirtualNetworkGatewaysClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworkGatewaysClient {
return VirtualNetworkGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-12-01/network/virtualnetworkpeerings.go b/services/network/mgmt/2018-12-01/network/virtualnetworkpeerings.go
index 8c502e4629f3..c625105dedb4 100644
--- a/services/network/mgmt/2018-12-01/network/virtualnetworkpeerings.go
+++ b/services/network/mgmt/2018-12-01/network/virtualnetworkpeerings.go
@@ -35,7 +35,9 @@ func NewVirtualNetworkPeeringsClient(subscriptionID string) VirtualNetworkPeerin
return NewVirtualNetworkPeeringsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualNetworkPeeringsClientWithBaseURI creates an instance of the VirtualNetworkPeeringsClient client.
+// NewVirtualNetworkPeeringsClientWithBaseURI creates an instance of the VirtualNetworkPeeringsClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewVirtualNetworkPeeringsClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworkPeeringsClient {
return VirtualNetworkPeeringsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-12-01/network/virtualnetworks.go b/services/network/mgmt/2018-12-01/network/virtualnetworks.go
index 2076aebe2f64..fefd314b6659 100644
--- a/services/network/mgmt/2018-12-01/network/virtualnetworks.go
+++ b/services/network/mgmt/2018-12-01/network/virtualnetworks.go
@@ -35,7 +35,8 @@ func NewVirtualNetworksClient(subscriptionID string) VirtualNetworksClient {
return NewVirtualNetworksClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualNetworksClientWithBaseURI creates an instance of the VirtualNetworksClient client.
+// NewVirtualNetworksClientWithBaseURI creates an instance of the VirtualNetworksClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVirtualNetworksClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworksClient {
return VirtualNetworksClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-12-01/network/virtualnetworktaps.go b/services/network/mgmt/2018-12-01/network/virtualnetworktaps.go
index 67c655ebb14b..70417f3dba13 100644
--- a/services/network/mgmt/2018-12-01/network/virtualnetworktaps.go
+++ b/services/network/mgmt/2018-12-01/network/virtualnetworktaps.go
@@ -36,7 +36,9 @@ func NewVirtualNetworkTapsClient(subscriptionID string) VirtualNetworkTapsClient
return NewVirtualNetworkTapsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualNetworkTapsClientWithBaseURI creates an instance of the VirtualNetworkTapsClient client.
+// NewVirtualNetworkTapsClientWithBaseURI creates an instance of the VirtualNetworkTapsClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewVirtualNetworkTapsClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworkTapsClient {
return VirtualNetworkTapsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-12-01/network/virtualwans.go b/services/network/mgmt/2018-12-01/network/virtualwans.go
index 9b307390df9c..3a5ea4c2c9ef 100644
--- a/services/network/mgmt/2018-12-01/network/virtualwans.go
+++ b/services/network/mgmt/2018-12-01/network/virtualwans.go
@@ -35,7 +35,8 @@ func NewVirtualWansClient(subscriptionID string) VirtualWansClient {
return NewVirtualWansClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualWansClientWithBaseURI creates an instance of the VirtualWansClient client.
+// NewVirtualWansClientWithBaseURI creates an instance of the VirtualWansClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVirtualWansClientWithBaseURI(baseURI string, subscriptionID string) VirtualWansClient {
return VirtualWansClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-12-01/network/vpnconnections.go b/services/network/mgmt/2018-12-01/network/vpnconnections.go
index 4702748476e2..d1d210cffce2 100644
--- a/services/network/mgmt/2018-12-01/network/vpnconnections.go
+++ b/services/network/mgmt/2018-12-01/network/vpnconnections.go
@@ -35,7 +35,8 @@ func NewVpnConnectionsClient(subscriptionID string) VpnConnectionsClient {
return NewVpnConnectionsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVpnConnectionsClientWithBaseURI creates an instance of the VpnConnectionsClient client.
+// NewVpnConnectionsClientWithBaseURI creates an instance of the VpnConnectionsClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVpnConnectionsClientWithBaseURI(baseURI string, subscriptionID string) VpnConnectionsClient {
return VpnConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-12-01/network/vpngateways.go b/services/network/mgmt/2018-12-01/network/vpngateways.go
index b9ea9f70ed01..fb4d8d6a0d73 100644
--- a/services/network/mgmt/2018-12-01/network/vpngateways.go
+++ b/services/network/mgmt/2018-12-01/network/vpngateways.go
@@ -35,7 +35,8 @@ func NewVpnGatewaysClient(subscriptionID string) VpnGatewaysClient {
return NewVpnGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVpnGatewaysClientWithBaseURI creates an instance of the VpnGatewaysClient client.
+// NewVpnGatewaysClientWithBaseURI creates an instance of the VpnGatewaysClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVpnGatewaysClientWithBaseURI(baseURI string, subscriptionID string) VpnGatewaysClient {
return VpnGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-12-01/network/vpnsites.go b/services/network/mgmt/2018-12-01/network/vpnsites.go
index ac82ccc9a1f6..7d10fb37f852 100644
--- a/services/network/mgmt/2018-12-01/network/vpnsites.go
+++ b/services/network/mgmt/2018-12-01/network/vpnsites.go
@@ -35,7 +35,8 @@ func NewVpnSitesClient(subscriptionID string) VpnSitesClient {
return NewVpnSitesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVpnSitesClientWithBaseURI creates an instance of the VpnSitesClient client.
+// NewVpnSitesClientWithBaseURI creates an instance of the VpnSitesClient client using a custom endpoint. Use this
+// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVpnSitesClientWithBaseURI(baseURI string, subscriptionID string) VpnSitesClient {
return VpnSitesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-12-01/network/vpnsitesconfiguration.go b/services/network/mgmt/2018-12-01/network/vpnsitesconfiguration.go
index 0222b4f86205..50a577c688ba 100644
--- a/services/network/mgmt/2018-12-01/network/vpnsitesconfiguration.go
+++ b/services/network/mgmt/2018-12-01/network/vpnsitesconfiguration.go
@@ -35,7 +35,9 @@ func NewVpnSitesConfigurationClient(subscriptionID string) VpnSitesConfiguration
return NewVpnSitesConfigurationClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVpnSitesConfigurationClientWithBaseURI creates an instance of the VpnSitesConfigurationClient client.
+// NewVpnSitesConfigurationClientWithBaseURI creates an instance of the VpnSitesConfigurationClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewVpnSitesConfigurationClientWithBaseURI(baseURI string, subscriptionID string) VpnSitesConfigurationClient {
return VpnSitesConfigurationClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-12-01/network/watchers.go b/services/network/mgmt/2018-12-01/network/watchers.go
index 705af8e0d6f0..484bc51de808 100644
--- a/services/network/mgmt/2018-12-01/network/watchers.go
+++ b/services/network/mgmt/2018-12-01/network/watchers.go
@@ -36,7 +36,8 @@ func NewWatchersClient(subscriptionID string) WatchersClient {
return NewWatchersClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewWatchersClientWithBaseURI creates an instance of the WatchersClient client.
+// NewWatchersClientWithBaseURI creates an instance of the WatchersClient client using a custom endpoint. Use this
+// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewWatchersClientWithBaseURI(baseURI string, subscriptionID string) WatchersClient {
return WatchersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2018-12-01/network/webapplicationfirewallpolicies.go b/services/network/mgmt/2018-12-01/network/webapplicationfirewallpolicies.go
index ad9f91391114..3930f1363036 100644
--- a/services/network/mgmt/2018-12-01/network/webapplicationfirewallpolicies.go
+++ b/services/network/mgmt/2018-12-01/network/webapplicationfirewallpolicies.go
@@ -37,7 +37,8 @@ func NewWebApplicationFirewallPoliciesClient(subscriptionID string) WebApplicati
}
// NewWebApplicationFirewallPoliciesClientWithBaseURI creates an instance of the WebApplicationFirewallPoliciesClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewWebApplicationFirewallPoliciesClientWithBaseURI(baseURI string, subscriptionID string) WebApplicationFirewallPoliciesClient {
return WebApplicationFirewallPoliciesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-02-01/network/applicationgateways.go b/services/network/mgmt/2019-02-01/network/applicationgateways.go
index 417f87571112..cb71f490b749 100644
--- a/services/network/mgmt/2019-02-01/network/applicationgateways.go
+++ b/services/network/mgmt/2019-02-01/network/applicationgateways.go
@@ -36,7 +36,9 @@ func NewApplicationGatewaysClient(subscriptionID string) ApplicationGatewaysClie
return NewApplicationGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewApplicationGatewaysClientWithBaseURI creates an instance of the ApplicationGatewaysClient client.
+// NewApplicationGatewaysClientWithBaseURI creates an instance of the ApplicationGatewaysClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewApplicationGatewaysClientWithBaseURI(baseURI string, subscriptionID string) ApplicationGatewaysClient {
return ApplicationGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-02-01/network/applicationsecuritygroups.go b/services/network/mgmt/2019-02-01/network/applicationsecuritygroups.go
index 51d0ce19fb83..29dbd60d4e8d 100644
--- a/services/network/mgmt/2019-02-01/network/applicationsecuritygroups.go
+++ b/services/network/mgmt/2019-02-01/network/applicationsecuritygroups.go
@@ -35,7 +35,9 @@ func NewApplicationSecurityGroupsClient(subscriptionID string) ApplicationSecuri
return NewApplicationSecurityGroupsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewApplicationSecurityGroupsClientWithBaseURI creates an instance of the ApplicationSecurityGroupsClient client.
+// NewApplicationSecurityGroupsClientWithBaseURI creates an instance of the ApplicationSecurityGroupsClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewApplicationSecurityGroupsClientWithBaseURI(baseURI string, subscriptionID string) ApplicationSecurityGroupsClient {
return ApplicationSecurityGroupsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-02-01/network/availabledelegations.go b/services/network/mgmt/2019-02-01/network/availabledelegations.go
index 74b4817bacd2..c831a6ba421d 100644
--- a/services/network/mgmt/2019-02-01/network/availabledelegations.go
+++ b/services/network/mgmt/2019-02-01/network/availabledelegations.go
@@ -35,7 +35,9 @@ func NewAvailableDelegationsClient(subscriptionID string) AvailableDelegationsCl
return NewAvailableDelegationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewAvailableDelegationsClientWithBaseURI creates an instance of the AvailableDelegationsClient client.
+// NewAvailableDelegationsClientWithBaseURI creates an instance of the AvailableDelegationsClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewAvailableDelegationsClientWithBaseURI(baseURI string, subscriptionID string) AvailableDelegationsClient {
return AvailableDelegationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-02-01/network/availableendpointservices.go b/services/network/mgmt/2019-02-01/network/availableendpointservices.go
index 18b241ebeab9..35da39b325be 100644
--- a/services/network/mgmt/2019-02-01/network/availableendpointservices.go
+++ b/services/network/mgmt/2019-02-01/network/availableendpointservices.go
@@ -35,7 +35,9 @@ func NewAvailableEndpointServicesClient(subscriptionID string) AvailableEndpoint
return NewAvailableEndpointServicesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewAvailableEndpointServicesClientWithBaseURI creates an instance of the AvailableEndpointServicesClient client.
+// NewAvailableEndpointServicesClientWithBaseURI creates an instance of the AvailableEndpointServicesClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewAvailableEndpointServicesClientWithBaseURI(baseURI string, subscriptionID string) AvailableEndpointServicesClient {
return AvailableEndpointServicesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-02-01/network/availableresourcegroupdelegations.go b/services/network/mgmt/2019-02-01/network/availableresourcegroupdelegations.go
index 0a59bf0e2be8..24d80a495f5d 100644
--- a/services/network/mgmt/2019-02-01/network/availableresourcegroupdelegations.go
+++ b/services/network/mgmt/2019-02-01/network/availableresourcegroupdelegations.go
@@ -37,7 +37,8 @@ func NewAvailableResourceGroupDelegationsClient(subscriptionID string) Available
}
// NewAvailableResourceGroupDelegationsClientWithBaseURI creates an instance of the
-// AvailableResourceGroupDelegationsClient client.
+// AvailableResourceGroupDelegationsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewAvailableResourceGroupDelegationsClientWithBaseURI(baseURI string, subscriptionID string) AvailableResourceGroupDelegationsClient {
return AvailableResourceGroupDelegationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-02-01/network/azurefirewallfqdntags.go b/services/network/mgmt/2019-02-01/network/azurefirewallfqdntags.go
index f9415dfe2180..95b7f83fcb19 100644
--- a/services/network/mgmt/2019-02-01/network/azurefirewallfqdntags.go
+++ b/services/network/mgmt/2019-02-01/network/azurefirewallfqdntags.go
@@ -35,7 +35,9 @@ func NewAzureFirewallFqdnTagsClient(subscriptionID string) AzureFirewallFqdnTags
return NewAzureFirewallFqdnTagsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewAzureFirewallFqdnTagsClientWithBaseURI creates an instance of the AzureFirewallFqdnTagsClient client.
+// NewAzureFirewallFqdnTagsClientWithBaseURI creates an instance of the AzureFirewallFqdnTagsClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewAzureFirewallFqdnTagsClientWithBaseURI(baseURI string, subscriptionID string) AzureFirewallFqdnTagsClient {
return AzureFirewallFqdnTagsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-02-01/network/azurefirewalls.go b/services/network/mgmt/2019-02-01/network/azurefirewalls.go
index 1f34534c57f9..d684a2427954 100644
--- a/services/network/mgmt/2019-02-01/network/azurefirewalls.go
+++ b/services/network/mgmt/2019-02-01/network/azurefirewalls.go
@@ -35,7 +35,8 @@ func NewAzureFirewallsClient(subscriptionID string) AzureFirewallsClient {
return NewAzureFirewallsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewAzureFirewallsClientWithBaseURI creates an instance of the AzureFirewallsClient client.
+// NewAzureFirewallsClientWithBaseURI creates an instance of the AzureFirewallsClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewAzureFirewallsClientWithBaseURI(baseURI string, subscriptionID string) AzureFirewallsClient {
return AzureFirewallsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-02-01/network/bgpservicecommunities.go b/services/network/mgmt/2019-02-01/network/bgpservicecommunities.go
index aa1d38d5308c..3180fa3a243f 100644
--- a/services/network/mgmt/2019-02-01/network/bgpservicecommunities.go
+++ b/services/network/mgmt/2019-02-01/network/bgpservicecommunities.go
@@ -35,7 +35,9 @@ func NewBgpServiceCommunitiesClient(subscriptionID string) BgpServiceCommunities
return NewBgpServiceCommunitiesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewBgpServiceCommunitiesClientWithBaseURI creates an instance of the BgpServiceCommunitiesClient client.
+// NewBgpServiceCommunitiesClientWithBaseURI creates an instance of the BgpServiceCommunitiesClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewBgpServiceCommunitiesClientWithBaseURI(baseURI string, subscriptionID string) BgpServiceCommunitiesClient {
return BgpServiceCommunitiesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-02-01/network/client.go b/services/network/mgmt/2019-02-01/network/client.go
index c91471a455e8..9c27a2575376 100644
--- a/services/network/mgmt/2019-02-01/network/client.go
+++ b/services/network/mgmt/2019-02-01/network/client.go
@@ -45,7 +45,8 @@ func New(subscriptionID string) BaseClient {
return NewWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewWithBaseURI creates an instance of the BaseClient client.
+// NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with
+// an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient {
return BaseClient{
Client: autorest.NewClientWithUserAgent(UserAgent()),
diff --git a/services/network/mgmt/2019-02-01/network/connectionmonitors.go b/services/network/mgmt/2019-02-01/network/connectionmonitors.go
index d1a316d829c8..75c0d9e8e689 100644
--- a/services/network/mgmt/2019-02-01/network/connectionmonitors.go
+++ b/services/network/mgmt/2019-02-01/network/connectionmonitors.go
@@ -36,7 +36,9 @@ func NewConnectionMonitorsClient(subscriptionID string) ConnectionMonitorsClient
return NewConnectionMonitorsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewConnectionMonitorsClientWithBaseURI creates an instance of the ConnectionMonitorsClient client.
+// NewConnectionMonitorsClientWithBaseURI creates an instance of the ConnectionMonitorsClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewConnectionMonitorsClientWithBaseURI(baseURI string, subscriptionID string) ConnectionMonitorsClient {
return ConnectionMonitorsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-02-01/network/ddoscustompolicies.go b/services/network/mgmt/2019-02-01/network/ddoscustompolicies.go
index 3cf5ed5c0720..10bde707413a 100644
--- a/services/network/mgmt/2019-02-01/network/ddoscustompolicies.go
+++ b/services/network/mgmt/2019-02-01/network/ddoscustompolicies.go
@@ -35,7 +35,9 @@ func NewDdosCustomPoliciesClient(subscriptionID string) DdosCustomPoliciesClient
return NewDdosCustomPoliciesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewDdosCustomPoliciesClientWithBaseURI creates an instance of the DdosCustomPoliciesClient client.
+// NewDdosCustomPoliciesClientWithBaseURI creates an instance of the DdosCustomPoliciesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewDdosCustomPoliciesClientWithBaseURI(baseURI string, subscriptionID string) DdosCustomPoliciesClient {
return DdosCustomPoliciesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-02-01/network/ddosprotectionplans.go b/services/network/mgmt/2019-02-01/network/ddosprotectionplans.go
index bb8f57e53631..8d2adac6d138 100644
--- a/services/network/mgmt/2019-02-01/network/ddosprotectionplans.go
+++ b/services/network/mgmt/2019-02-01/network/ddosprotectionplans.go
@@ -35,7 +35,9 @@ func NewDdosProtectionPlansClient(subscriptionID string) DdosProtectionPlansClie
return NewDdosProtectionPlansClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewDdosProtectionPlansClientWithBaseURI creates an instance of the DdosProtectionPlansClient client.
+// NewDdosProtectionPlansClientWithBaseURI creates an instance of the DdosProtectionPlansClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewDdosProtectionPlansClientWithBaseURI(baseURI string, subscriptionID string) DdosProtectionPlansClient {
return DdosProtectionPlansClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-02-01/network/defaultsecurityrules.go b/services/network/mgmt/2019-02-01/network/defaultsecurityrules.go
index 6e2856020bda..19dd4560a89c 100644
--- a/services/network/mgmt/2019-02-01/network/defaultsecurityrules.go
+++ b/services/network/mgmt/2019-02-01/network/defaultsecurityrules.go
@@ -35,7 +35,9 @@ func NewDefaultSecurityRulesClient(subscriptionID string) DefaultSecurityRulesCl
return NewDefaultSecurityRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewDefaultSecurityRulesClientWithBaseURI creates an instance of the DefaultSecurityRulesClient client.
+// NewDefaultSecurityRulesClientWithBaseURI creates an instance of the DefaultSecurityRulesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewDefaultSecurityRulesClientWithBaseURI(baseURI string, subscriptionID string) DefaultSecurityRulesClient {
return DefaultSecurityRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-02-01/network/expressroutecircuitauthorizations.go b/services/network/mgmt/2019-02-01/network/expressroutecircuitauthorizations.go
index 725db3582cb3..af2a772e9eed 100644
--- a/services/network/mgmt/2019-02-01/network/expressroutecircuitauthorizations.go
+++ b/services/network/mgmt/2019-02-01/network/expressroutecircuitauthorizations.go
@@ -37,7 +37,8 @@ func NewExpressRouteCircuitAuthorizationsClient(subscriptionID string) ExpressRo
}
// NewExpressRouteCircuitAuthorizationsClientWithBaseURI creates an instance of the
-// ExpressRouteCircuitAuthorizationsClient client.
+// ExpressRouteCircuitAuthorizationsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewExpressRouteCircuitAuthorizationsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCircuitAuthorizationsClient {
return ExpressRouteCircuitAuthorizationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-02-01/network/expressroutecircuitconnections.go b/services/network/mgmt/2019-02-01/network/expressroutecircuitconnections.go
index f9e246ba28a1..d3c155b5c267 100644
--- a/services/network/mgmt/2019-02-01/network/expressroutecircuitconnections.go
+++ b/services/network/mgmt/2019-02-01/network/expressroutecircuitconnections.go
@@ -36,7 +36,8 @@ func NewExpressRouteCircuitConnectionsClient(subscriptionID string) ExpressRoute
}
// NewExpressRouteCircuitConnectionsClientWithBaseURI creates an instance of the ExpressRouteCircuitConnectionsClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewExpressRouteCircuitConnectionsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCircuitConnectionsClient {
return ExpressRouteCircuitConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-02-01/network/expressroutecircuitpeerings.go b/services/network/mgmt/2019-02-01/network/expressroutecircuitpeerings.go
index 5f9bf3b57d34..cdac558d398b 100644
--- a/services/network/mgmt/2019-02-01/network/expressroutecircuitpeerings.go
+++ b/services/network/mgmt/2019-02-01/network/expressroutecircuitpeerings.go
@@ -36,7 +36,9 @@ func NewExpressRouteCircuitPeeringsClient(subscriptionID string) ExpressRouteCir
return NewExpressRouteCircuitPeeringsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewExpressRouteCircuitPeeringsClientWithBaseURI creates an instance of the ExpressRouteCircuitPeeringsClient client.
+// NewExpressRouteCircuitPeeringsClientWithBaseURI creates an instance of the ExpressRouteCircuitPeeringsClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewExpressRouteCircuitPeeringsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCircuitPeeringsClient {
return ExpressRouteCircuitPeeringsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-02-01/network/expressroutecircuits.go b/services/network/mgmt/2019-02-01/network/expressroutecircuits.go
index 44490510d51a..69ceaed43929 100644
--- a/services/network/mgmt/2019-02-01/network/expressroutecircuits.go
+++ b/services/network/mgmt/2019-02-01/network/expressroutecircuits.go
@@ -35,7 +35,9 @@ func NewExpressRouteCircuitsClient(subscriptionID string) ExpressRouteCircuitsCl
return NewExpressRouteCircuitsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewExpressRouteCircuitsClientWithBaseURI creates an instance of the ExpressRouteCircuitsClient client.
+// NewExpressRouteCircuitsClientWithBaseURI creates an instance of the ExpressRouteCircuitsClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewExpressRouteCircuitsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCircuitsClient {
return ExpressRouteCircuitsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-02-01/network/expressrouteconnections.go b/services/network/mgmt/2019-02-01/network/expressrouteconnections.go
index 12dad526c3d6..dcb8b6d91f41 100644
--- a/services/network/mgmt/2019-02-01/network/expressrouteconnections.go
+++ b/services/network/mgmt/2019-02-01/network/expressrouteconnections.go
@@ -36,7 +36,9 @@ func NewExpressRouteConnectionsClient(subscriptionID string) ExpressRouteConnect
return NewExpressRouteConnectionsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewExpressRouteConnectionsClientWithBaseURI creates an instance of the ExpressRouteConnectionsClient client.
+// NewExpressRouteConnectionsClientWithBaseURI creates an instance of the ExpressRouteConnectionsClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewExpressRouteConnectionsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteConnectionsClient {
return ExpressRouteConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-02-01/network/expressroutecrossconnectionpeerings.go b/services/network/mgmt/2019-02-01/network/expressroutecrossconnectionpeerings.go
index ec17d6654368..7c2722051888 100644
--- a/services/network/mgmt/2019-02-01/network/expressroutecrossconnectionpeerings.go
+++ b/services/network/mgmt/2019-02-01/network/expressroutecrossconnectionpeerings.go
@@ -38,7 +38,8 @@ func NewExpressRouteCrossConnectionPeeringsClient(subscriptionID string) Express
}
// NewExpressRouteCrossConnectionPeeringsClientWithBaseURI creates an instance of the
-// ExpressRouteCrossConnectionPeeringsClient client.
+// ExpressRouteCrossConnectionPeeringsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewExpressRouteCrossConnectionPeeringsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCrossConnectionPeeringsClient {
return ExpressRouteCrossConnectionPeeringsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-02-01/network/expressroutecrossconnections.go b/services/network/mgmt/2019-02-01/network/expressroutecrossconnections.go
index 588eff7f109d..9bc519cd7d05 100644
--- a/services/network/mgmt/2019-02-01/network/expressroutecrossconnections.go
+++ b/services/network/mgmt/2019-02-01/network/expressroutecrossconnections.go
@@ -36,7 +36,8 @@ func NewExpressRouteCrossConnectionsClient(subscriptionID string) ExpressRouteCr
}
// NewExpressRouteCrossConnectionsClientWithBaseURI creates an instance of the ExpressRouteCrossConnectionsClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewExpressRouteCrossConnectionsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCrossConnectionsClient {
return ExpressRouteCrossConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-02-01/network/expressroutegateways.go b/services/network/mgmt/2019-02-01/network/expressroutegateways.go
index 6ff631c3d6c5..07c7a0b713a8 100644
--- a/services/network/mgmt/2019-02-01/network/expressroutegateways.go
+++ b/services/network/mgmt/2019-02-01/network/expressroutegateways.go
@@ -36,7 +36,9 @@ func NewExpressRouteGatewaysClient(subscriptionID string) ExpressRouteGatewaysCl
return NewExpressRouteGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewExpressRouteGatewaysClientWithBaseURI creates an instance of the ExpressRouteGatewaysClient client.
+// NewExpressRouteGatewaysClientWithBaseURI creates an instance of the ExpressRouteGatewaysClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewExpressRouteGatewaysClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteGatewaysClient {
return ExpressRouteGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-02-01/network/expressroutelinks.go b/services/network/mgmt/2019-02-01/network/expressroutelinks.go
index cc945ede9635..d093a0569385 100644
--- a/services/network/mgmt/2019-02-01/network/expressroutelinks.go
+++ b/services/network/mgmt/2019-02-01/network/expressroutelinks.go
@@ -35,7 +35,9 @@ func NewExpressRouteLinksClient(subscriptionID string) ExpressRouteLinksClient {
return NewExpressRouteLinksClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewExpressRouteLinksClientWithBaseURI creates an instance of the ExpressRouteLinksClient client.
+// NewExpressRouteLinksClientWithBaseURI creates an instance of the ExpressRouteLinksClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewExpressRouteLinksClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteLinksClient {
return ExpressRouteLinksClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-02-01/network/expressrouteports.go b/services/network/mgmt/2019-02-01/network/expressrouteports.go
index 92ab84db7c58..23a68377e7eb 100644
--- a/services/network/mgmt/2019-02-01/network/expressrouteports.go
+++ b/services/network/mgmt/2019-02-01/network/expressrouteports.go
@@ -35,7 +35,9 @@ func NewExpressRoutePortsClient(subscriptionID string) ExpressRoutePortsClient {
return NewExpressRoutePortsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewExpressRoutePortsClientWithBaseURI creates an instance of the ExpressRoutePortsClient client.
+// NewExpressRoutePortsClientWithBaseURI creates an instance of the ExpressRoutePortsClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewExpressRoutePortsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRoutePortsClient {
return ExpressRoutePortsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-02-01/network/expressrouteportslocations.go b/services/network/mgmt/2019-02-01/network/expressrouteportslocations.go
index ef24e1b31116..d7bc86ec18da 100644
--- a/services/network/mgmt/2019-02-01/network/expressrouteportslocations.go
+++ b/services/network/mgmt/2019-02-01/network/expressrouteportslocations.go
@@ -35,7 +35,9 @@ func NewExpressRoutePortsLocationsClient(subscriptionID string) ExpressRoutePort
return NewExpressRoutePortsLocationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewExpressRoutePortsLocationsClientWithBaseURI creates an instance of the ExpressRoutePortsLocationsClient client.
+// NewExpressRoutePortsLocationsClientWithBaseURI creates an instance of the ExpressRoutePortsLocationsClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewExpressRoutePortsLocationsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRoutePortsLocationsClient {
return ExpressRoutePortsLocationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-02-01/network/expressrouteserviceproviders.go b/services/network/mgmt/2019-02-01/network/expressrouteserviceproviders.go
index b25e13535072..fdeb49d90523 100644
--- a/services/network/mgmt/2019-02-01/network/expressrouteserviceproviders.go
+++ b/services/network/mgmt/2019-02-01/network/expressrouteserviceproviders.go
@@ -36,7 +36,8 @@ func NewExpressRouteServiceProvidersClient(subscriptionID string) ExpressRouteSe
}
// NewExpressRouteServiceProvidersClientWithBaseURI creates an instance of the ExpressRouteServiceProvidersClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewExpressRouteServiceProvidersClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteServiceProvidersClient {
return ExpressRouteServiceProvidersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-02-01/network/hubvirtualnetworkconnections.go b/services/network/mgmt/2019-02-01/network/hubvirtualnetworkconnections.go
index 9e058729b663..a1e632b4f720 100644
--- a/services/network/mgmt/2019-02-01/network/hubvirtualnetworkconnections.go
+++ b/services/network/mgmt/2019-02-01/network/hubvirtualnetworkconnections.go
@@ -36,7 +36,8 @@ func NewHubVirtualNetworkConnectionsClient(subscriptionID string) HubVirtualNetw
}
// NewHubVirtualNetworkConnectionsClientWithBaseURI creates an instance of the HubVirtualNetworkConnectionsClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewHubVirtualNetworkConnectionsClientWithBaseURI(baseURI string, subscriptionID string) HubVirtualNetworkConnectionsClient {
return HubVirtualNetworkConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-02-01/network/inboundnatrules.go b/services/network/mgmt/2019-02-01/network/inboundnatrules.go
index 64d8bf6bd0b9..d845a09e6b2b 100644
--- a/services/network/mgmt/2019-02-01/network/inboundnatrules.go
+++ b/services/network/mgmt/2019-02-01/network/inboundnatrules.go
@@ -36,7 +36,8 @@ func NewInboundNatRulesClient(subscriptionID string) InboundNatRulesClient {
return NewInboundNatRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewInboundNatRulesClientWithBaseURI creates an instance of the InboundNatRulesClient client.
+// NewInboundNatRulesClientWithBaseURI creates an instance of the InboundNatRulesClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewInboundNatRulesClientWithBaseURI(baseURI string, subscriptionID string) InboundNatRulesClient {
return InboundNatRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-02-01/network/interfaceendpoints.go b/services/network/mgmt/2019-02-01/network/interfaceendpoints.go
index 1da6ada14f0e..d600675cf27a 100644
--- a/services/network/mgmt/2019-02-01/network/interfaceendpoints.go
+++ b/services/network/mgmt/2019-02-01/network/interfaceendpoints.go
@@ -35,7 +35,9 @@ func NewInterfaceEndpointsClient(subscriptionID string) InterfaceEndpointsClient
return NewInterfaceEndpointsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewInterfaceEndpointsClientWithBaseURI creates an instance of the InterfaceEndpointsClient client.
+// NewInterfaceEndpointsClientWithBaseURI creates an instance of the InterfaceEndpointsClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewInterfaceEndpointsClientWithBaseURI(baseURI string, subscriptionID string) InterfaceEndpointsClient {
return InterfaceEndpointsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-02-01/network/interfaceipconfigurations.go b/services/network/mgmt/2019-02-01/network/interfaceipconfigurations.go
index 5f915ac09c1d..a6e46aa67d33 100644
--- a/services/network/mgmt/2019-02-01/network/interfaceipconfigurations.go
+++ b/services/network/mgmt/2019-02-01/network/interfaceipconfigurations.go
@@ -35,7 +35,9 @@ func NewInterfaceIPConfigurationsClient(subscriptionID string) InterfaceIPConfig
return NewInterfaceIPConfigurationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewInterfaceIPConfigurationsClientWithBaseURI creates an instance of the InterfaceIPConfigurationsClient client.
+// NewInterfaceIPConfigurationsClientWithBaseURI creates an instance of the InterfaceIPConfigurationsClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewInterfaceIPConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) InterfaceIPConfigurationsClient {
return InterfaceIPConfigurationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-02-01/network/interfaceloadbalancers.go b/services/network/mgmt/2019-02-01/network/interfaceloadbalancers.go
index 0abe507d857a..aca4547f5e0f 100644
--- a/services/network/mgmt/2019-02-01/network/interfaceloadbalancers.go
+++ b/services/network/mgmt/2019-02-01/network/interfaceloadbalancers.go
@@ -35,7 +35,9 @@ func NewInterfaceLoadBalancersClient(subscriptionID string) InterfaceLoadBalance
return NewInterfaceLoadBalancersClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewInterfaceLoadBalancersClientWithBaseURI creates an instance of the InterfaceLoadBalancersClient client.
+// NewInterfaceLoadBalancersClientWithBaseURI creates an instance of the InterfaceLoadBalancersClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewInterfaceLoadBalancersClientWithBaseURI(baseURI string, subscriptionID string) InterfaceLoadBalancersClient {
return InterfaceLoadBalancersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-02-01/network/interfacesgroup.go b/services/network/mgmt/2019-02-01/network/interfacesgroup.go
index 9691364c8dfe..262cc00a4d96 100644
--- a/services/network/mgmt/2019-02-01/network/interfacesgroup.go
+++ b/services/network/mgmt/2019-02-01/network/interfacesgroup.go
@@ -35,7 +35,8 @@ func NewInterfacesClient(subscriptionID string) InterfacesClient {
return NewInterfacesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewInterfacesClientWithBaseURI creates an instance of the InterfacesClient client.
+// NewInterfacesClientWithBaseURI creates an instance of the InterfacesClient client using a custom endpoint. Use this
+// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewInterfacesClientWithBaseURI(baseURI string, subscriptionID string) InterfacesClient {
return InterfacesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-02-01/network/interfacetapconfigurations.go b/services/network/mgmt/2019-02-01/network/interfacetapconfigurations.go
index abe850515196..31e7f8d68d56 100644
--- a/services/network/mgmt/2019-02-01/network/interfacetapconfigurations.go
+++ b/services/network/mgmt/2019-02-01/network/interfacetapconfigurations.go
@@ -36,7 +36,9 @@ func NewInterfaceTapConfigurationsClient(subscriptionID string) InterfaceTapConf
return NewInterfaceTapConfigurationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewInterfaceTapConfigurationsClientWithBaseURI creates an instance of the InterfaceTapConfigurationsClient client.
+// NewInterfaceTapConfigurationsClientWithBaseURI creates an instance of the InterfaceTapConfigurationsClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewInterfaceTapConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) InterfaceTapConfigurationsClient {
return InterfaceTapConfigurationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-02-01/network/loadbalancerbackendaddresspools.go b/services/network/mgmt/2019-02-01/network/loadbalancerbackendaddresspools.go
index ba147799374b..5b7cca193f73 100644
--- a/services/network/mgmt/2019-02-01/network/loadbalancerbackendaddresspools.go
+++ b/services/network/mgmt/2019-02-01/network/loadbalancerbackendaddresspools.go
@@ -36,7 +36,8 @@ func NewLoadBalancerBackendAddressPoolsClient(subscriptionID string) LoadBalance
}
// NewLoadBalancerBackendAddressPoolsClientWithBaseURI creates an instance of the LoadBalancerBackendAddressPoolsClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewLoadBalancerBackendAddressPoolsClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerBackendAddressPoolsClient {
return LoadBalancerBackendAddressPoolsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-02-01/network/loadbalancerfrontendipconfigurations.go b/services/network/mgmt/2019-02-01/network/loadbalancerfrontendipconfigurations.go
index c13fb411744a..f7c430b8e9fa 100644
--- a/services/network/mgmt/2019-02-01/network/loadbalancerfrontendipconfigurations.go
+++ b/services/network/mgmt/2019-02-01/network/loadbalancerfrontendipconfigurations.go
@@ -37,7 +37,8 @@ func NewLoadBalancerFrontendIPConfigurationsClient(subscriptionID string) LoadBa
}
// NewLoadBalancerFrontendIPConfigurationsClientWithBaseURI creates an instance of the
-// LoadBalancerFrontendIPConfigurationsClient client.
+// LoadBalancerFrontendIPConfigurationsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewLoadBalancerFrontendIPConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerFrontendIPConfigurationsClient {
return LoadBalancerFrontendIPConfigurationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-02-01/network/loadbalancerloadbalancingrules.go b/services/network/mgmt/2019-02-01/network/loadbalancerloadbalancingrules.go
index 6a3ededfa10f..cfaaefd4a28f 100644
--- a/services/network/mgmt/2019-02-01/network/loadbalancerloadbalancingrules.go
+++ b/services/network/mgmt/2019-02-01/network/loadbalancerloadbalancingrules.go
@@ -36,7 +36,8 @@ func NewLoadBalancerLoadBalancingRulesClient(subscriptionID string) LoadBalancer
}
// NewLoadBalancerLoadBalancingRulesClientWithBaseURI creates an instance of the LoadBalancerLoadBalancingRulesClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewLoadBalancerLoadBalancingRulesClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerLoadBalancingRulesClient {
return LoadBalancerLoadBalancingRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-02-01/network/loadbalancernetworkinterfaces.go b/services/network/mgmt/2019-02-01/network/loadbalancernetworkinterfaces.go
index ca0d2fc9b811..f37351989fe3 100644
--- a/services/network/mgmt/2019-02-01/network/loadbalancernetworkinterfaces.go
+++ b/services/network/mgmt/2019-02-01/network/loadbalancernetworkinterfaces.go
@@ -36,7 +36,8 @@ func NewLoadBalancerNetworkInterfacesClient(subscriptionID string) LoadBalancerN
}
// NewLoadBalancerNetworkInterfacesClientWithBaseURI creates an instance of the LoadBalancerNetworkInterfacesClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewLoadBalancerNetworkInterfacesClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerNetworkInterfacesClient {
return LoadBalancerNetworkInterfacesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-02-01/network/loadbalanceroutboundrules.go b/services/network/mgmt/2019-02-01/network/loadbalanceroutboundrules.go
index b25dba7fef67..a59ec6dce17e 100644
--- a/services/network/mgmt/2019-02-01/network/loadbalanceroutboundrules.go
+++ b/services/network/mgmt/2019-02-01/network/loadbalanceroutboundrules.go
@@ -35,7 +35,9 @@ func NewLoadBalancerOutboundRulesClient(subscriptionID string) LoadBalancerOutbo
return NewLoadBalancerOutboundRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewLoadBalancerOutboundRulesClientWithBaseURI creates an instance of the LoadBalancerOutboundRulesClient client.
+// NewLoadBalancerOutboundRulesClientWithBaseURI creates an instance of the LoadBalancerOutboundRulesClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewLoadBalancerOutboundRulesClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerOutboundRulesClient {
return LoadBalancerOutboundRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-02-01/network/loadbalancerprobes.go b/services/network/mgmt/2019-02-01/network/loadbalancerprobes.go
index a1b0f97ca2c1..d95a520aea7b 100644
--- a/services/network/mgmt/2019-02-01/network/loadbalancerprobes.go
+++ b/services/network/mgmt/2019-02-01/network/loadbalancerprobes.go
@@ -35,7 +35,9 @@ func NewLoadBalancerProbesClient(subscriptionID string) LoadBalancerProbesClient
return NewLoadBalancerProbesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewLoadBalancerProbesClientWithBaseURI creates an instance of the LoadBalancerProbesClient client.
+// NewLoadBalancerProbesClientWithBaseURI creates an instance of the LoadBalancerProbesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewLoadBalancerProbesClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerProbesClient {
return LoadBalancerProbesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-02-01/network/loadbalancers.go b/services/network/mgmt/2019-02-01/network/loadbalancers.go
index c1d1a17fce75..a50260aff7ce 100644
--- a/services/network/mgmt/2019-02-01/network/loadbalancers.go
+++ b/services/network/mgmt/2019-02-01/network/loadbalancers.go
@@ -35,7 +35,8 @@ func NewLoadBalancersClient(subscriptionID string) LoadBalancersClient {
return NewLoadBalancersClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewLoadBalancersClientWithBaseURI creates an instance of the LoadBalancersClient client.
+// NewLoadBalancersClientWithBaseURI creates an instance of the LoadBalancersClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewLoadBalancersClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancersClient {
return LoadBalancersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-02-01/network/localnetworkgateways.go b/services/network/mgmt/2019-02-01/network/localnetworkgateways.go
index d1c31b7a338d..6204c08e21e3 100644
--- a/services/network/mgmt/2019-02-01/network/localnetworkgateways.go
+++ b/services/network/mgmt/2019-02-01/network/localnetworkgateways.go
@@ -36,7 +36,9 @@ func NewLocalNetworkGatewaysClient(subscriptionID string) LocalNetworkGatewaysCl
return NewLocalNetworkGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewLocalNetworkGatewaysClientWithBaseURI creates an instance of the LocalNetworkGatewaysClient client.
+// NewLocalNetworkGatewaysClientWithBaseURI creates an instance of the LocalNetworkGatewaysClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewLocalNetworkGatewaysClientWithBaseURI(baseURI string, subscriptionID string) LocalNetworkGatewaysClient {
return LocalNetworkGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-02-01/network/natgateways.go b/services/network/mgmt/2019-02-01/network/natgateways.go
index 8a0ff9005f73..0adf2ab52dc7 100644
--- a/services/network/mgmt/2019-02-01/network/natgateways.go
+++ b/services/network/mgmt/2019-02-01/network/natgateways.go
@@ -35,7 +35,8 @@ func NewNatGatewaysClient(subscriptionID string) NatGatewaysClient {
return NewNatGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewNatGatewaysClientWithBaseURI creates an instance of the NatGatewaysClient client.
+// NewNatGatewaysClientWithBaseURI creates an instance of the NatGatewaysClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewNatGatewaysClientWithBaseURI(baseURI string, subscriptionID string) NatGatewaysClient {
return NatGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-02-01/network/networkapi/interfaces.go b/services/network/mgmt/2019-02-01/network/networkapi/interfaces.go
index 0ac4cd088e4a..46aca35a0de8 100644
--- a/services/network/mgmt/2019-02-01/network/networkapi/interfaces.go
+++ b/services/network/mgmt/2019-02-01/network/networkapi/interfaces.go
@@ -39,12 +39,15 @@ type ApplicationGatewaysClientAPI interface {
Get(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result network.ApplicationGateway, err error)
GetSslPredefinedPolicy(ctx context.Context, predefinedPolicyName string) (result network.ApplicationGatewaySslPredefinedPolicy, err error)
List(ctx context.Context, resourceGroupName string) (result network.ApplicationGatewayListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.ApplicationGatewayListResultIterator, err error)
ListAll(ctx context.Context) (result network.ApplicationGatewayListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.ApplicationGatewayListResultIterator, err error)
ListAvailableRequestHeaders(ctx context.Context) (result network.ListString, err error)
ListAvailableResponseHeaders(ctx context.Context) (result network.ListString, err error)
ListAvailableServerVariables(ctx context.Context) (result network.ListString, err error)
ListAvailableSslOptions(ctx context.Context) (result network.ApplicationGatewayAvailableSslOptions, err error)
ListAvailableSslPredefinedPolicies(ctx context.Context) (result network.ApplicationGatewayAvailableSslPredefinedPoliciesPage, err error)
+ ListAvailableSslPredefinedPoliciesComplete(ctx context.Context) (result network.ApplicationGatewayAvailableSslPredefinedPoliciesIterator, err error)
ListAvailableWafRuleSets(ctx context.Context) (result network.ApplicationGatewayAvailableWafRuleSetsResult, err error)
Start(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result network.ApplicationGatewaysStartFuture, err error)
Stop(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result network.ApplicationGatewaysStopFuture, err error)
@@ -59,7 +62,9 @@ type ApplicationSecurityGroupsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, applicationSecurityGroupName string) (result network.ApplicationSecurityGroupsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, applicationSecurityGroupName string) (result network.ApplicationSecurityGroup, err error)
List(ctx context.Context, resourceGroupName string) (result network.ApplicationSecurityGroupListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.ApplicationSecurityGroupListResultIterator, err error)
ListAll(ctx context.Context) (result network.ApplicationSecurityGroupListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.ApplicationSecurityGroupListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, applicationSecurityGroupName string, parameters network.TagsObject) (result network.ApplicationSecurityGroupsUpdateTagsFuture, err error)
}
@@ -68,6 +73,7 @@ var _ ApplicationSecurityGroupsClientAPI = (*network.ApplicationSecurityGroupsCl
// AvailableDelegationsClientAPI contains the set of methods on the AvailableDelegationsClient type.
type AvailableDelegationsClientAPI interface {
List(ctx context.Context, location string) (result network.AvailableDelegationsResultPage, err error)
+ ListComplete(ctx context.Context, location string) (result network.AvailableDelegationsResultIterator, err error)
}
var _ AvailableDelegationsClientAPI = (*network.AvailableDelegationsClient)(nil)
@@ -75,6 +81,7 @@ var _ AvailableDelegationsClientAPI = (*network.AvailableDelegationsClient)(nil)
// AvailableResourceGroupDelegationsClientAPI contains the set of methods on the AvailableResourceGroupDelegationsClient type.
type AvailableResourceGroupDelegationsClientAPI interface {
List(ctx context.Context, location string, resourceGroupName string) (result network.AvailableDelegationsResultPage, err error)
+ ListComplete(ctx context.Context, location string, resourceGroupName string) (result network.AvailableDelegationsResultIterator, err error)
}
var _ AvailableResourceGroupDelegationsClientAPI = (*network.AvailableResourceGroupDelegationsClient)(nil)
@@ -85,7 +92,9 @@ type AzureFirewallsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, azureFirewallName string) (result network.AzureFirewallsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, azureFirewallName string) (result network.AzureFirewall, err error)
List(ctx context.Context, resourceGroupName string) (result network.AzureFirewallListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.AzureFirewallListResultIterator, err error)
ListAll(ctx context.Context) (result network.AzureFirewallListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.AzureFirewallListResultIterator, err error)
}
var _ AzureFirewallsClientAPI = (*network.AzureFirewallsClient)(nil)
@@ -93,6 +102,7 @@ var _ AzureFirewallsClientAPI = (*network.AzureFirewallsClient)(nil)
// AzureFirewallFqdnTagsClientAPI contains the set of methods on the AzureFirewallFqdnTagsClient type.
type AzureFirewallFqdnTagsClientAPI interface {
ListAll(ctx context.Context) (result network.AzureFirewallFqdnTagListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.AzureFirewallFqdnTagListResultIterator, err error)
}
var _ AzureFirewallFqdnTagsClientAPI = (*network.AzureFirewallFqdnTagsClient)(nil)
@@ -113,7 +123,9 @@ type DdosProtectionPlansClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, ddosProtectionPlanName string) (result network.DdosProtectionPlansDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, ddosProtectionPlanName string) (result network.DdosProtectionPlan, err error)
List(ctx context.Context) (result network.DdosProtectionPlanListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.DdosProtectionPlanListResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.DdosProtectionPlanListResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.DdosProtectionPlanListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, ddosProtectionPlanName string, parameters network.TagsObject) (result network.DdosProtectionPlansUpdateTagsFuture, err error)
}
@@ -122,6 +134,7 @@ var _ DdosProtectionPlansClientAPI = (*network.DdosProtectionPlansClient)(nil)
// AvailableEndpointServicesClientAPI contains the set of methods on the AvailableEndpointServicesClient type.
type AvailableEndpointServicesClientAPI interface {
List(ctx context.Context, location string) (result network.EndpointServicesListResultPage, err error)
+ ListComplete(ctx context.Context, location string) (result network.EndpointServicesListResultIterator, err error)
}
var _ AvailableEndpointServicesClientAPI = (*network.AvailableEndpointServicesClient)(nil)
@@ -132,6 +145,7 @@ type ExpressRouteCircuitAuthorizationsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, circuitName string, authorizationName string) (result network.ExpressRouteCircuitAuthorizationsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, circuitName string, authorizationName string) (result network.ExpressRouteCircuitAuthorization, err error)
List(ctx context.Context, resourceGroupName string, circuitName string) (result network.AuthorizationListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, circuitName string) (result network.AuthorizationListResultIterator, err error)
}
var _ ExpressRouteCircuitAuthorizationsClientAPI = (*network.ExpressRouteCircuitAuthorizationsClient)(nil)
@@ -142,6 +156,7 @@ type ExpressRouteCircuitPeeringsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.ExpressRouteCircuitPeeringsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.ExpressRouteCircuitPeering, err error)
List(ctx context.Context, resourceGroupName string, circuitName string) (result network.ExpressRouteCircuitPeeringListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, circuitName string) (result network.ExpressRouteCircuitPeeringListResultIterator, err error)
}
var _ ExpressRouteCircuitPeeringsClientAPI = (*network.ExpressRouteCircuitPeeringsClient)(nil)
@@ -152,6 +167,7 @@ type ExpressRouteCircuitConnectionsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, connectionName string) (result network.ExpressRouteCircuitConnectionsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, connectionName string) (result network.ExpressRouteCircuitConnection, err error)
List(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.ExpressRouteCircuitConnectionListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.ExpressRouteCircuitConnectionListResultIterator, err error)
}
var _ ExpressRouteCircuitConnectionsClientAPI = (*network.ExpressRouteCircuitConnectionsClient)(nil)
@@ -160,6 +176,7 @@ var _ ExpressRouteCircuitConnectionsClientAPI = (*network.ExpressRouteCircuitCon
type PeerExpressRouteCircuitConnectionsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, connectionName string) (result network.PeerExpressRouteCircuitConnection, err error)
List(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.PeerExpressRouteCircuitConnectionListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.PeerExpressRouteCircuitConnectionListResultIterator, err error)
}
var _ PeerExpressRouteCircuitConnectionsClientAPI = (*network.PeerExpressRouteCircuitConnectionsClient)(nil)
@@ -172,7 +189,9 @@ type ExpressRouteCircuitsClientAPI interface {
GetPeeringStats(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.ExpressRouteCircuitStats, err error)
GetStats(ctx context.Context, resourceGroupName string, circuitName string) (result network.ExpressRouteCircuitStats, err error)
List(ctx context.Context, resourceGroupName string) (result network.ExpressRouteCircuitListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.ExpressRouteCircuitListResultIterator, err error)
ListAll(ctx context.Context) (result network.ExpressRouteCircuitListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.ExpressRouteCircuitListResultIterator, err error)
ListArpTable(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, devicePath string) (result network.ExpressRouteCircuitsListArpTableFuture, err error)
ListRoutesTable(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, devicePath string) (result network.ExpressRouteCircuitsListRoutesTableFuture, err error)
ListRoutesTableSummary(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, devicePath string) (result network.ExpressRouteCircuitsListRoutesTableSummaryFuture, err error)
@@ -184,6 +203,7 @@ var _ ExpressRouteCircuitsClientAPI = (*network.ExpressRouteCircuitsClient)(nil)
// ExpressRouteServiceProvidersClientAPI contains the set of methods on the ExpressRouteServiceProvidersClient type.
type ExpressRouteServiceProvidersClientAPI interface {
List(ctx context.Context) (result network.ExpressRouteServiceProviderListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ExpressRouteServiceProviderListResultIterator, err error)
}
var _ ExpressRouteServiceProvidersClientAPI = (*network.ExpressRouteServiceProvidersClient)(nil)
@@ -193,8 +213,10 @@ type ExpressRouteCrossConnectionsClientAPI interface {
CreateOrUpdate(ctx context.Context, resourceGroupName string, crossConnectionName string, parameters network.ExpressRouteCrossConnection) (result network.ExpressRouteCrossConnectionsCreateOrUpdateFuture, err error)
Get(ctx context.Context, resourceGroupName string, crossConnectionName string) (result network.ExpressRouteCrossConnection, err error)
List(ctx context.Context) (result network.ExpressRouteCrossConnectionListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ExpressRouteCrossConnectionListResultIterator, err error)
ListArpTable(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string, devicePath string) (result network.ExpressRouteCrossConnectionsListArpTableFuture, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ExpressRouteCrossConnectionListResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ExpressRouteCrossConnectionListResultIterator, err error)
ListRoutesTable(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string, devicePath string) (result network.ExpressRouteCrossConnectionsListRoutesTableFuture, err error)
ListRoutesTableSummary(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string, devicePath string) (result network.ExpressRouteCrossConnectionsListRoutesTableSummaryFuture, err error)
UpdateTags(ctx context.Context, resourceGroupName string, crossConnectionName string, crossConnectionParameters network.TagsObject) (result network.ExpressRouteCrossConnectionsUpdateTagsFuture, err error)
@@ -208,6 +230,7 @@ type ExpressRouteCrossConnectionPeeringsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string) (result network.ExpressRouteCrossConnectionPeeringsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string) (result network.ExpressRouteCrossConnectionPeering, err error)
List(ctx context.Context, resourceGroupName string, crossConnectionName string) (result network.ExpressRouteCrossConnectionPeeringListPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, crossConnectionName string) (result network.ExpressRouteCrossConnectionPeeringListIterator, err error)
}
var _ ExpressRouteCrossConnectionPeeringsClientAPI = (*network.ExpressRouteCrossConnectionPeeringsClient)(nil)
@@ -237,6 +260,7 @@ var _ ExpressRouteConnectionsClientAPI = (*network.ExpressRouteConnectionsClient
type ExpressRoutePortsLocationsClientAPI interface {
Get(ctx context.Context, locationName string) (result network.ExpressRoutePortsLocation, err error)
List(ctx context.Context) (result network.ExpressRoutePortsLocationListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ExpressRoutePortsLocationListResultIterator, err error)
}
var _ ExpressRoutePortsLocationsClientAPI = (*network.ExpressRoutePortsLocationsClient)(nil)
@@ -247,7 +271,9 @@ type ExpressRoutePortsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, expressRoutePortName string) (result network.ExpressRoutePortsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, expressRoutePortName string) (result network.ExpressRoutePort, err error)
List(ctx context.Context) (result network.ExpressRoutePortListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ExpressRoutePortListResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ExpressRoutePortListResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ExpressRoutePortListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, expressRoutePortName string, parameters network.TagsObject) (result network.ExpressRoutePortsUpdateTagsFuture, err error)
}
@@ -257,6 +283,7 @@ var _ ExpressRoutePortsClientAPI = (*network.ExpressRoutePortsClient)(nil)
type ExpressRouteLinksClientAPI interface {
Get(ctx context.Context, resourceGroupName string, expressRoutePortName string, linkName string) (result network.ExpressRouteLink, err error)
List(ctx context.Context, resourceGroupName string, expressRoutePortName string) (result network.ExpressRouteLinkListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, expressRoutePortName string) (result network.ExpressRouteLinkListResultIterator, err error)
}
var _ ExpressRouteLinksClientAPI = (*network.ExpressRouteLinksClient)(nil)
@@ -267,7 +294,9 @@ type InterfaceEndpointsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, interfaceEndpointName string) (result network.InterfaceEndpointsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, interfaceEndpointName string, expand string) (result network.InterfaceEndpoint, err error)
List(ctx context.Context, resourceGroupName string) (result network.InterfaceEndpointListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.InterfaceEndpointListResultIterator, err error)
ListBySubscription(ctx context.Context) (result network.InterfaceEndpointListResultPage, err error)
+ ListBySubscriptionComplete(ctx context.Context) (result network.InterfaceEndpointListResultIterator, err error)
}
var _ InterfaceEndpointsClientAPI = (*network.InterfaceEndpointsClient)(nil)
@@ -278,7 +307,9 @@ type LoadBalancersClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancersDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, expand string) (result network.LoadBalancer, err error)
List(ctx context.Context, resourceGroupName string) (result network.LoadBalancerListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.LoadBalancerListResultIterator, err error)
ListAll(ctx context.Context) (result network.LoadBalancerListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.LoadBalancerListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, loadBalancerName string, parameters network.TagsObject) (result network.LoadBalancersUpdateTagsFuture, err error)
}
@@ -288,6 +319,7 @@ var _ LoadBalancersClientAPI = (*network.LoadBalancersClient)(nil)
type LoadBalancerBackendAddressPoolsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, backendAddressPoolName string) (result network.BackendAddressPool, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerBackendAddressPoolListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerBackendAddressPoolListResultIterator, err error)
}
var _ LoadBalancerBackendAddressPoolsClientAPI = (*network.LoadBalancerBackendAddressPoolsClient)(nil)
@@ -296,6 +328,7 @@ var _ LoadBalancerBackendAddressPoolsClientAPI = (*network.LoadBalancerBackendAd
type LoadBalancerFrontendIPConfigurationsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, frontendIPConfigurationName string) (result network.FrontendIPConfiguration, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerFrontendIPConfigurationListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerFrontendIPConfigurationListResultIterator, err error)
}
var _ LoadBalancerFrontendIPConfigurationsClientAPI = (*network.LoadBalancerFrontendIPConfigurationsClient)(nil)
@@ -306,6 +339,7 @@ type InboundNatRulesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, loadBalancerName string, inboundNatRuleName string) (result network.InboundNatRulesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, inboundNatRuleName string, expand string) (result network.InboundNatRule, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.InboundNatRuleListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.InboundNatRuleListResultIterator, err error)
}
var _ InboundNatRulesClientAPI = (*network.InboundNatRulesClient)(nil)
@@ -314,6 +348,7 @@ var _ InboundNatRulesClientAPI = (*network.InboundNatRulesClient)(nil)
type LoadBalancerLoadBalancingRulesClientAPI interface {
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, loadBalancingRuleName string) (result network.LoadBalancingRule, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerLoadBalancingRuleListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerLoadBalancingRuleListResultIterator, err error)
}
var _ LoadBalancerLoadBalancingRulesClientAPI = (*network.LoadBalancerLoadBalancingRulesClient)(nil)
@@ -322,6 +357,7 @@ var _ LoadBalancerLoadBalancingRulesClientAPI = (*network.LoadBalancerLoadBalanc
type LoadBalancerOutboundRulesClientAPI interface {
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, outboundRuleName string) (result network.OutboundRule, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerOutboundRuleListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerOutboundRuleListResultIterator, err error)
}
var _ LoadBalancerOutboundRulesClientAPI = (*network.LoadBalancerOutboundRulesClient)(nil)
@@ -329,6 +365,7 @@ var _ LoadBalancerOutboundRulesClientAPI = (*network.LoadBalancerOutboundRulesCl
// LoadBalancerNetworkInterfacesClientAPI contains the set of methods on the LoadBalancerNetworkInterfacesClient type.
type LoadBalancerNetworkInterfacesClientAPI interface {
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.InterfaceListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.InterfaceListResultIterator, err error)
}
var _ LoadBalancerNetworkInterfacesClientAPI = (*network.LoadBalancerNetworkInterfacesClient)(nil)
@@ -337,6 +374,7 @@ var _ LoadBalancerNetworkInterfacesClientAPI = (*network.LoadBalancerNetworkInte
type LoadBalancerProbesClientAPI interface {
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, probeName string) (result network.Probe, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerProbeListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerProbeListResultIterator, err error)
}
var _ LoadBalancerProbesClientAPI = (*network.LoadBalancerProbesClient)(nil)
@@ -347,7 +385,9 @@ type NatGatewaysClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, natGatewayName string) (result network.NatGatewaysDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, natGatewayName string, expand string) (result network.NatGateway, err error)
List(ctx context.Context, resourceGroupName string) (result network.NatGatewayListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.NatGatewayListResultIterator, err error)
ListAll(ctx context.Context) (result network.NatGatewayListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.NatGatewayListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, natGatewayName string, parameters network.TagsObject) (result network.NatGateway, err error)
}
@@ -362,11 +402,16 @@ type InterfacesClientAPI interface {
GetVirtualMachineScaleSetIPConfiguration(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, IPConfigurationName string, expand string) (result network.InterfaceIPConfiguration, err error)
GetVirtualMachineScaleSetNetworkInterface(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, expand string) (result network.Interface, err error)
List(ctx context.Context, resourceGroupName string) (result network.InterfaceListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.InterfaceListResultIterator, err error)
ListAll(ctx context.Context) (result network.InterfaceListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.InterfaceListResultIterator, err error)
ListEffectiveNetworkSecurityGroups(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfacesListEffectiveNetworkSecurityGroupsFuture, err error)
ListVirtualMachineScaleSetIPConfigurations(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, expand string) (result network.InterfaceIPConfigurationListResultPage, err error)
+ ListVirtualMachineScaleSetIPConfigurationsComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, expand string) (result network.InterfaceIPConfigurationListResultIterator, err error)
ListVirtualMachineScaleSetNetworkInterfaces(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result network.InterfaceListResultPage, err error)
+ ListVirtualMachineScaleSetNetworkInterfacesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result network.InterfaceListResultIterator, err error)
ListVirtualMachineScaleSetVMNetworkInterfaces(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string) (result network.InterfaceListResultPage, err error)
+ ListVirtualMachineScaleSetVMNetworkInterfacesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string) (result network.InterfaceListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, networkInterfaceName string, parameters network.TagsObject) (result network.InterfacesUpdateTagsFuture, err error)
}
@@ -376,6 +421,7 @@ var _ InterfacesClientAPI = (*network.InterfacesClient)(nil)
type InterfaceIPConfigurationsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, networkInterfaceName string, IPConfigurationName string) (result network.InterfaceIPConfiguration, err error)
List(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceIPConfigurationListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceIPConfigurationListResultIterator, err error)
}
var _ InterfaceIPConfigurationsClientAPI = (*network.InterfaceIPConfigurationsClient)(nil)
@@ -383,6 +429,7 @@ var _ InterfaceIPConfigurationsClientAPI = (*network.InterfaceIPConfigurationsCl
// InterfaceLoadBalancersClientAPI contains the set of methods on the InterfaceLoadBalancersClient type.
type InterfaceLoadBalancersClientAPI interface {
List(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceLoadBalancerListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceLoadBalancerListResultIterator, err error)
}
var _ InterfaceLoadBalancersClientAPI = (*network.InterfaceLoadBalancersClient)(nil)
@@ -393,6 +440,7 @@ type InterfaceTapConfigurationsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, networkInterfaceName string, tapConfigurationName string) (result network.InterfaceTapConfigurationsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, networkInterfaceName string, tapConfigurationName string) (result network.InterfaceTapConfiguration, err error)
List(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceTapConfigurationListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceTapConfigurationListResultIterator, err error)
}
var _ InterfaceTapConfigurationsClientAPI = (*network.InterfaceTapConfigurationsClient)(nil)
@@ -403,7 +451,9 @@ type ProfilesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, networkProfileName string) (result network.ProfilesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, networkProfileName string, expand string) (result network.Profile, err error)
List(ctx context.Context, resourceGroupName string) (result network.ProfileListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.ProfileListResultIterator, err error)
ListAll(ctx context.Context) (result network.ProfileListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.ProfileListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, networkProfileName string, parameters network.TagsObject) (result network.Profile, err error)
}
@@ -415,7 +465,9 @@ type SecurityGroupsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityGroupsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, expand string) (result network.SecurityGroup, err error)
List(ctx context.Context, resourceGroupName string) (result network.SecurityGroupListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.SecurityGroupListResultIterator, err error)
ListAll(ctx context.Context) (result network.SecurityGroupListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.SecurityGroupListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, parameters network.TagsObject) (result network.SecurityGroupsUpdateTagsFuture, err error)
}
@@ -427,6 +479,7 @@ type SecurityRulesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, securityRuleName string) (result network.SecurityRulesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, securityRuleName string) (result network.SecurityRule, err error)
List(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityRuleListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityRuleListResultIterator, err error)
}
var _ SecurityRulesClientAPI = (*network.SecurityRulesClient)(nil)
@@ -435,6 +488,7 @@ var _ SecurityRulesClientAPI = (*network.SecurityRulesClient)(nil)
type DefaultSecurityRulesClientAPI interface {
Get(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, defaultSecurityRuleName string) (result network.SecurityRule, err error)
List(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityRuleListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityRuleListResultIterator, err error)
}
var _ DefaultSecurityRulesClientAPI = (*network.DefaultSecurityRulesClient)(nil)
@@ -491,6 +545,7 @@ var _ ConnectionMonitorsClientAPI = (*network.ConnectionMonitorsClient)(nil)
// OperationsClientAPI contains the set of methods on the OperationsClient type.
type OperationsClientAPI interface {
List(ctx context.Context) (result network.OperationListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.OperationListResultIterator, err error)
}
var _ OperationsClientAPI = (*network.OperationsClient)(nil)
@@ -502,9 +557,13 @@ type PublicIPAddressesClientAPI interface {
Get(ctx context.Context, resourceGroupName string, publicIPAddressName string, expand string) (result network.PublicIPAddress, err error)
GetVirtualMachineScaleSetPublicIPAddress(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, IPConfigurationName string, publicIPAddressName string, expand string) (result network.PublicIPAddress, err error)
List(ctx context.Context, resourceGroupName string) (result network.PublicIPAddressListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.PublicIPAddressListResultIterator, err error)
ListAll(ctx context.Context) (result network.PublicIPAddressListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.PublicIPAddressListResultIterator, err error)
ListVirtualMachineScaleSetPublicIPAddresses(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result network.PublicIPAddressListResultPage, err error)
+ ListVirtualMachineScaleSetPublicIPAddressesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result network.PublicIPAddressListResultIterator, err error)
ListVirtualMachineScaleSetVMPublicIPAddresses(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, IPConfigurationName string) (result network.PublicIPAddressListResultPage, err error)
+ ListVirtualMachineScaleSetVMPublicIPAddressesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, IPConfigurationName string) (result network.PublicIPAddressListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, publicIPAddressName string, parameters network.TagsObject) (result network.PublicIPAddressesUpdateTagsFuture, err error)
}
@@ -516,7 +575,9 @@ type PublicIPPrefixesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, publicIPPrefixName string) (result network.PublicIPPrefixesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, publicIPPrefixName string, expand string) (result network.PublicIPPrefix, err error)
List(ctx context.Context, resourceGroupName string) (result network.PublicIPPrefixListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.PublicIPPrefixListResultIterator, err error)
ListAll(ctx context.Context) (result network.PublicIPPrefixListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.PublicIPPrefixListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, publicIPPrefixName string, parameters network.TagsObject) (result network.PublicIPPrefixesUpdateTagsFuture, err error)
}
@@ -528,7 +589,9 @@ type RouteFiltersClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, routeFilterName string) (result network.RouteFiltersDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, routeFilterName string, expand string) (result network.RouteFilter, err error)
List(ctx context.Context) (result network.RouteFilterListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.RouteFilterListResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.RouteFilterListResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.RouteFilterListResultIterator, err error)
Update(ctx context.Context, resourceGroupName string, routeFilterName string, routeFilterParameters network.PatchRouteFilter) (result network.RouteFiltersUpdateFuture, err error)
}
@@ -540,6 +603,7 @@ type RouteFilterRulesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, routeFilterName string, ruleName string) (result network.RouteFilterRulesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, routeFilterName string, ruleName string) (result network.RouteFilterRule, err error)
ListByRouteFilter(ctx context.Context, resourceGroupName string, routeFilterName string) (result network.RouteFilterRuleListResultPage, err error)
+ ListByRouteFilterComplete(ctx context.Context, resourceGroupName string, routeFilterName string) (result network.RouteFilterRuleListResultIterator, err error)
Update(ctx context.Context, resourceGroupName string, routeFilterName string, ruleName string, routeFilterRuleParameters network.PatchRouteFilterRule) (result network.RouteFilterRulesUpdateFuture, err error)
}
@@ -551,7 +615,9 @@ type RouteTablesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, routeTableName string) (result network.RouteTablesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, routeTableName string, expand string) (result network.RouteTable, err error)
List(ctx context.Context, resourceGroupName string) (result network.RouteTableListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.RouteTableListResultIterator, err error)
ListAll(ctx context.Context) (result network.RouteTableListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.RouteTableListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, routeTableName string, parameters network.TagsObject) (result network.RouteTablesUpdateTagsFuture, err error)
}
@@ -563,6 +629,7 @@ type RoutesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, routeTableName string, routeName string) (result network.RoutesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, routeTableName string, routeName string) (result network.Route, err error)
List(ctx context.Context, resourceGroupName string, routeTableName string) (result network.RouteListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, routeTableName string) (result network.RouteListResultIterator, err error)
}
var _ RoutesClientAPI = (*network.RoutesClient)(nil)
@@ -570,6 +637,7 @@ var _ RoutesClientAPI = (*network.RoutesClient)(nil)
// BgpServiceCommunitiesClientAPI contains the set of methods on the BgpServiceCommunitiesClient type.
type BgpServiceCommunitiesClientAPI interface {
List(ctx context.Context) (result network.BgpServiceCommunityListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.BgpServiceCommunityListResultIterator, err error)
}
var _ BgpServiceCommunitiesClientAPI = (*network.BgpServiceCommunitiesClient)(nil)
@@ -580,7 +648,9 @@ type ServiceEndpointPoliciesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string) (result network.ServiceEndpointPoliciesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string, expand string) (result network.ServiceEndpointPolicy, err error)
List(ctx context.Context) (result network.ServiceEndpointPolicyListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ServiceEndpointPolicyListResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ServiceEndpointPolicyListResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ServiceEndpointPolicyListResultIterator, err error)
Update(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string, parameters network.TagsObject) (result network.ServiceEndpointPoliciesUpdateFuture, err error)
}
@@ -592,6 +662,7 @@ type ServiceEndpointPolicyDefinitionsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string, serviceEndpointPolicyDefinitionName string) (result network.ServiceEndpointPolicyDefinitionsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string, serviceEndpointPolicyDefinitionName string) (result network.ServiceEndpointPolicyDefinition, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string) (result network.ServiceEndpointPolicyDefinitionListResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string) (result network.ServiceEndpointPolicyDefinitionListResultIterator, err error)
}
var _ ServiceEndpointPolicyDefinitionsClientAPI = (*network.ServiceEndpointPolicyDefinitionsClient)(nil)
@@ -599,6 +670,7 @@ var _ ServiceEndpointPolicyDefinitionsClientAPI = (*network.ServiceEndpointPolic
// UsagesClientAPI contains the set of methods on the UsagesClient type.
type UsagesClientAPI interface {
List(ctx context.Context, location string) (result network.UsagesListResultPage, err error)
+ ListComplete(ctx context.Context, location string) (result network.UsagesListResultIterator, err error)
}
var _ UsagesClientAPI = (*network.UsagesClient)(nil)
@@ -610,8 +682,11 @@ type VirtualNetworksClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworksDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualNetworkName string, expand string) (result network.VirtualNetwork, err error)
List(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkListResultIterator, err error)
ListAll(ctx context.Context) (result network.VirtualNetworkListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.VirtualNetworkListResultIterator, err error)
ListUsage(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworkListUsageResultPage, err error)
+ ListUsageComplete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworkListUsageResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, virtualNetworkName string, parameters network.TagsObject) (result network.VirtualNetworksUpdateTagsFuture, err error)
}
@@ -623,6 +698,7 @@ type SubnetsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualNetworkName string, subnetName string) (result network.SubnetsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualNetworkName string, subnetName string, expand string) (result network.Subnet, err error)
List(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.SubnetListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.SubnetListResultIterator, err error)
PrepareNetworkPolicies(ctx context.Context, resourceGroupName string, virtualNetworkName string, subnetName string, prepareNetworkPoliciesRequestParameters network.PrepareNetworkPoliciesRequest) (result network.SubnetsPrepareNetworkPoliciesFuture, err error)
}
@@ -648,6 +724,7 @@ type VirtualNetworkPeeringsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualNetworkName string, virtualNetworkPeeringName string) (result network.VirtualNetworkPeeringsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualNetworkName string, virtualNetworkPeeringName string) (result network.VirtualNetworkPeering, err error)
List(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworkPeeringListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworkPeeringListResultIterator, err error)
}
var _ VirtualNetworkPeeringsClientAPI = (*network.VirtualNetworkPeeringsClient)(nil)
@@ -665,7 +742,9 @@ type VirtualNetworkGatewaysClientAPI interface {
GetVpnclientIpsecParameters(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGatewaysGetVpnclientIpsecParametersFuture, err error)
GetVpnProfilePackageURL(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGatewaysGetVpnProfilePackageURLFuture, err error)
List(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayListResultIterator, err error)
ListConnections(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGatewayListConnectionsResultPage, err error)
+ ListConnectionsComplete(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGatewayListConnectionsResultIterator, err error)
Reset(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, gatewayVip string) (result network.VirtualNetworkGatewaysResetFuture, err error)
ResetVpnClientSharedKey(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGatewaysResetVpnClientSharedKeyFuture, err error)
SetVpnclientIpsecParameters(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, vpnclientIpsecParams network.VpnClientIPsecParameters) (result network.VirtualNetworkGatewaysSetVpnclientIpsecParametersFuture, err error)
@@ -683,6 +762,7 @@ type VirtualNetworkGatewayConnectionsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string) (result network.VirtualNetworkGatewayConnection, err error)
GetSharedKey(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string) (result network.ConnectionSharedKey, err error)
List(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayConnectionListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayConnectionListResultIterator, err error)
ResetSharedKey(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string, parameters network.ConnectionResetSharedKey) (result network.VirtualNetworkGatewayConnectionsResetSharedKeyFuture, err error)
SetSharedKey(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string, parameters network.ConnectionSharedKey) (result network.VirtualNetworkGatewayConnectionsSetSharedKeyFuture, err error)
UpdateTags(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string, parameters network.TagsObject) (result network.VirtualNetworkGatewayConnectionsUpdateTagsFuture, err error)
@@ -696,6 +776,7 @@ type LocalNetworkGatewaysClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, localNetworkGatewayName string) (result network.LocalNetworkGatewaysDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, localNetworkGatewayName string) (result network.LocalNetworkGateway, err error)
List(ctx context.Context, resourceGroupName string) (result network.LocalNetworkGatewayListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.LocalNetworkGatewayListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, localNetworkGatewayName string, parameters network.TagsObject) (result network.LocalNetworkGatewaysUpdateTagsFuture, err error)
}
@@ -707,7 +788,9 @@ type VirtualNetworkTapsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, tapName string) (result network.VirtualNetworkTapsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, tapName string) (result network.VirtualNetworkTap, err error)
ListAll(ctx context.Context) (result network.VirtualNetworkTapListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.VirtualNetworkTapListResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkTapListResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkTapListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, tapName string, tapParameters network.TagsObject) (result network.VirtualNetworkTapsUpdateTagsFuture, err error)
}
@@ -719,7 +802,9 @@ type VirtualWansClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualWANName string) (result network.VirtualWansDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualWANName string) (result network.VirtualWAN, err error)
List(ctx context.Context) (result network.ListVirtualWANsResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ListVirtualWANsResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ListVirtualWANsResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ListVirtualWANsResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, virtualWANName string, wANParameters network.TagsObject) (result network.VirtualWansUpdateTagsFuture, err error)
}
@@ -731,7 +816,9 @@ type VpnSitesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, vpnSiteName string) (result network.VpnSitesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, vpnSiteName string) (result network.VpnSite, err error)
List(ctx context.Context) (result network.ListVpnSitesResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ListVpnSitesResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ListVpnSitesResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ListVpnSitesResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, vpnSiteName string, vpnSiteParameters network.TagsObject) (result network.VpnSitesUpdateTagsFuture, err error)
}
@@ -750,7 +837,9 @@ type VirtualHubsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualHubName string) (result network.VirtualHubsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualHubName string) (result network.VirtualHub, err error)
List(ctx context.Context) (result network.ListVirtualHubsResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ListVirtualHubsResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ListVirtualHubsResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ListVirtualHubsResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, virtualHubName string, virtualHubParameters network.TagsObject) (result network.VirtualHubsUpdateTagsFuture, err error)
}
@@ -760,6 +849,7 @@ var _ VirtualHubsClientAPI = (*network.VirtualHubsClient)(nil)
type HubVirtualNetworkConnectionsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, virtualHubName string, connectionName string) (result network.HubVirtualNetworkConnection, err error)
List(ctx context.Context, resourceGroupName string, virtualHubName string) (result network.ListHubVirtualNetworkConnectionsResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, virtualHubName string) (result network.ListHubVirtualNetworkConnectionsResultIterator, err error)
}
var _ HubVirtualNetworkConnectionsClientAPI = (*network.HubVirtualNetworkConnectionsClient)(nil)
@@ -770,7 +860,9 @@ type VpnGatewaysClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, gatewayName string) (result network.VpnGatewaysDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, gatewayName string) (result network.VpnGateway, err error)
List(ctx context.Context) (result network.ListVpnGatewaysResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ListVpnGatewaysResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ListVpnGatewaysResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ListVpnGatewaysResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, gatewayName string, vpnGatewayParameters network.TagsObject) (result network.VpnGatewaysUpdateTagsFuture, err error)
}
@@ -782,6 +874,7 @@ type VpnConnectionsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, gatewayName string, connectionName string) (result network.VpnConnectionsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, gatewayName string, connectionName string) (result network.VpnConnection, err error)
ListByVpnGateway(ctx context.Context, resourceGroupName string, gatewayName string) (result network.ListVpnConnectionsResultPage, err error)
+ ListByVpnGatewayComplete(ctx context.Context, resourceGroupName string, gatewayName string) (result network.ListVpnConnectionsResultIterator, err error)
}
var _ VpnConnectionsClientAPI = (*network.VpnConnectionsClient)(nil)
@@ -792,6 +885,7 @@ type P2sVpnServerConfigurationsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualWanName string, p2SVpnServerConfigurationName string) (result network.P2sVpnServerConfigurationsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualWanName string, p2SVpnServerConfigurationName string) (result network.P2SVpnServerConfiguration, err error)
ListByVirtualWan(ctx context.Context, resourceGroupName string, virtualWanName string) (result network.ListP2SVpnServerConfigurationsResultPage, err error)
+ ListByVirtualWanComplete(ctx context.Context, resourceGroupName string, virtualWanName string) (result network.ListP2SVpnServerConfigurationsResultIterator, err error)
}
var _ P2sVpnServerConfigurationsClientAPI = (*network.P2sVpnServerConfigurationsClient)(nil)
@@ -803,7 +897,9 @@ type P2sVpnGatewaysClientAPI interface {
GenerateVpnProfile(ctx context.Context, resourceGroupName string, gatewayName string, parameters network.P2SVpnProfileParameters) (result network.P2sVpnGatewaysGenerateVpnProfileFuture, err error)
Get(ctx context.Context, resourceGroupName string, gatewayName string) (result network.P2SVpnGateway, err error)
List(ctx context.Context) (result network.ListP2SVpnGatewaysResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ListP2SVpnGatewaysResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ListP2SVpnGatewaysResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ListP2SVpnGatewaysResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, gatewayName string, p2SVpnGatewayParameters network.TagsObject) (result network.P2sVpnGatewaysUpdateTagsFuture, err error)
}
@@ -815,7 +911,9 @@ type WebApplicationFirewallPoliciesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, policyName string) (result network.WebApplicationFirewallPoliciesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, policyName string) (result network.WebApplicationFirewallPolicy, err error)
List(ctx context.Context, resourceGroupName string) (result network.WebApplicationFirewallPolicyListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.WebApplicationFirewallPolicyListResultIterator, err error)
ListAll(ctx context.Context) (result network.WebApplicationFirewallPolicyListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.WebApplicationFirewallPolicyListResultIterator, err error)
}
var _ WebApplicationFirewallPoliciesClientAPI = (*network.WebApplicationFirewallPoliciesClient)(nil)
diff --git a/services/network/mgmt/2019-02-01/network/operations.go b/services/network/mgmt/2019-02-01/network/operations.go
index 4625a104dc83..c89a567a67b0 100644
--- a/services/network/mgmt/2019-02-01/network/operations.go
+++ b/services/network/mgmt/2019-02-01/network/operations.go
@@ -35,7 +35,8 @@ func NewOperationsClient(subscriptionID string) OperationsClient {
return NewOperationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewOperationsClientWithBaseURI creates an instance of the OperationsClient client.
+// NewOperationsClientWithBaseURI creates an instance of the OperationsClient client using a custom endpoint. Use this
+// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient {
return OperationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-02-01/network/p2svpngateways.go b/services/network/mgmt/2019-02-01/network/p2svpngateways.go
index 2854cda2e1aa..2aaf45615beb 100644
--- a/services/network/mgmt/2019-02-01/network/p2svpngateways.go
+++ b/services/network/mgmt/2019-02-01/network/p2svpngateways.go
@@ -35,7 +35,8 @@ func NewP2sVpnGatewaysClient(subscriptionID string) P2sVpnGatewaysClient {
return NewP2sVpnGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewP2sVpnGatewaysClientWithBaseURI creates an instance of the P2sVpnGatewaysClient client.
+// NewP2sVpnGatewaysClientWithBaseURI creates an instance of the P2sVpnGatewaysClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewP2sVpnGatewaysClientWithBaseURI(baseURI string, subscriptionID string) P2sVpnGatewaysClient {
return P2sVpnGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-02-01/network/p2svpnserverconfigurations.go b/services/network/mgmt/2019-02-01/network/p2svpnserverconfigurations.go
index cf1a7d8e464d..4219ee0f4f2f 100644
--- a/services/network/mgmt/2019-02-01/network/p2svpnserverconfigurations.go
+++ b/services/network/mgmt/2019-02-01/network/p2svpnserverconfigurations.go
@@ -35,7 +35,9 @@ func NewP2sVpnServerConfigurationsClient(subscriptionID string) P2sVpnServerConf
return NewP2sVpnServerConfigurationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewP2sVpnServerConfigurationsClientWithBaseURI creates an instance of the P2sVpnServerConfigurationsClient client.
+// NewP2sVpnServerConfigurationsClientWithBaseURI creates an instance of the P2sVpnServerConfigurationsClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewP2sVpnServerConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) P2sVpnServerConfigurationsClient {
return P2sVpnServerConfigurationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-02-01/network/packetcaptures.go b/services/network/mgmt/2019-02-01/network/packetcaptures.go
index e90817d3bc50..bbcfd3ea433a 100644
--- a/services/network/mgmt/2019-02-01/network/packetcaptures.go
+++ b/services/network/mgmt/2019-02-01/network/packetcaptures.go
@@ -36,7 +36,8 @@ func NewPacketCapturesClient(subscriptionID string) PacketCapturesClient {
return NewPacketCapturesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewPacketCapturesClientWithBaseURI creates an instance of the PacketCapturesClient client.
+// NewPacketCapturesClientWithBaseURI creates an instance of the PacketCapturesClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewPacketCapturesClientWithBaseURI(baseURI string, subscriptionID string) PacketCapturesClient {
return PacketCapturesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-02-01/network/peerexpressroutecircuitconnections.go b/services/network/mgmt/2019-02-01/network/peerexpressroutecircuitconnections.go
index b281779c513d..43993b2d4f84 100644
--- a/services/network/mgmt/2019-02-01/network/peerexpressroutecircuitconnections.go
+++ b/services/network/mgmt/2019-02-01/network/peerexpressroutecircuitconnections.go
@@ -37,7 +37,8 @@ func NewPeerExpressRouteCircuitConnectionsClient(subscriptionID string) PeerExpr
}
// NewPeerExpressRouteCircuitConnectionsClientWithBaseURI creates an instance of the
-// PeerExpressRouteCircuitConnectionsClient client.
+// PeerExpressRouteCircuitConnectionsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewPeerExpressRouteCircuitConnectionsClientWithBaseURI(baseURI string, subscriptionID string) PeerExpressRouteCircuitConnectionsClient {
return PeerExpressRouteCircuitConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-02-01/network/profiles.go b/services/network/mgmt/2019-02-01/network/profiles.go
index dbbdbf557138..55a636fa5f09 100644
--- a/services/network/mgmt/2019-02-01/network/profiles.go
+++ b/services/network/mgmt/2019-02-01/network/profiles.go
@@ -35,7 +35,8 @@ func NewProfilesClient(subscriptionID string) ProfilesClient {
return NewProfilesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewProfilesClientWithBaseURI creates an instance of the ProfilesClient client.
+// NewProfilesClientWithBaseURI creates an instance of the ProfilesClient client using a custom endpoint. Use this
+// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewProfilesClientWithBaseURI(baseURI string, subscriptionID string) ProfilesClient {
return ProfilesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-02-01/network/publicipaddresses.go b/services/network/mgmt/2019-02-01/network/publicipaddresses.go
index 48c0631c195e..cc86e27a6d0f 100644
--- a/services/network/mgmt/2019-02-01/network/publicipaddresses.go
+++ b/services/network/mgmt/2019-02-01/network/publicipaddresses.go
@@ -36,7 +36,9 @@ func NewPublicIPAddressesClient(subscriptionID string) PublicIPAddressesClient {
return NewPublicIPAddressesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewPublicIPAddressesClientWithBaseURI creates an instance of the PublicIPAddressesClient client.
+// NewPublicIPAddressesClientWithBaseURI creates an instance of the PublicIPAddressesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewPublicIPAddressesClientWithBaseURI(baseURI string, subscriptionID string) PublicIPAddressesClient {
return PublicIPAddressesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-02-01/network/publicipprefixes.go b/services/network/mgmt/2019-02-01/network/publicipprefixes.go
index b2245def49ef..a1854edc10f5 100644
--- a/services/network/mgmt/2019-02-01/network/publicipprefixes.go
+++ b/services/network/mgmt/2019-02-01/network/publicipprefixes.go
@@ -35,7 +35,9 @@ func NewPublicIPPrefixesClient(subscriptionID string) PublicIPPrefixesClient {
return NewPublicIPPrefixesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewPublicIPPrefixesClientWithBaseURI creates an instance of the PublicIPPrefixesClient client.
+// NewPublicIPPrefixesClientWithBaseURI creates an instance of the PublicIPPrefixesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewPublicIPPrefixesClientWithBaseURI(baseURI string, subscriptionID string) PublicIPPrefixesClient {
return PublicIPPrefixesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-02-01/network/resourcenavigationlinks.go b/services/network/mgmt/2019-02-01/network/resourcenavigationlinks.go
index e98118466da3..743f42d8e337 100644
--- a/services/network/mgmt/2019-02-01/network/resourcenavigationlinks.go
+++ b/services/network/mgmt/2019-02-01/network/resourcenavigationlinks.go
@@ -35,7 +35,9 @@ func NewResourceNavigationLinksClient(subscriptionID string) ResourceNavigationL
return NewResourceNavigationLinksClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewResourceNavigationLinksClientWithBaseURI creates an instance of the ResourceNavigationLinksClient client.
+// NewResourceNavigationLinksClientWithBaseURI creates an instance of the ResourceNavigationLinksClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewResourceNavigationLinksClientWithBaseURI(baseURI string, subscriptionID string) ResourceNavigationLinksClient {
return ResourceNavigationLinksClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-02-01/network/routefilterrules.go b/services/network/mgmt/2019-02-01/network/routefilterrules.go
index 1bf4ca80d695..eff38f96420f 100644
--- a/services/network/mgmt/2019-02-01/network/routefilterrules.go
+++ b/services/network/mgmt/2019-02-01/network/routefilterrules.go
@@ -36,7 +36,9 @@ func NewRouteFilterRulesClient(subscriptionID string) RouteFilterRulesClient {
return NewRouteFilterRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewRouteFilterRulesClientWithBaseURI creates an instance of the RouteFilterRulesClient client.
+// NewRouteFilterRulesClientWithBaseURI creates an instance of the RouteFilterRulesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewRouteFilterRulesClientWithBaseURI(baseURI string, subscriptionID string) RouteFilterRulesClient {
return RouteFilterRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-02-01/network/routefilters.go b/services/network/mgmt/2019-02-01/network/routefilters.go
index 768c209dab4c..caa2f008911a 100644
--- a/services/network/mgmt/2019-02-01/network/routefilters.go
+++ b/services/network/mgmt/2019-02-01/network/routefilters.go
@@ -35,7 +35,8 @@ func NewRouteFiltersClient(subscriptionID string) RouteFiltersClient {
return NewRouteFiltersClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewRouteFiltersClientWithBaseURI creates an instance of the RouteFiltersClient client.
+// NewRouteFiltersClientWithBaseURI creates an instance of the RouteFiltersClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewRouteFiltersClientWithBaseURI(baseURI string, subscriptionID string) RouteFiltersClient {
return RouteFiltersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-02-01/network/routes.go b/services/network/mgmt/2019-02-01/network/routes.go
index 09c08c73e7a8..fe5b7b9ee68f 100644
--- a/services/network/mgmt/2019-02-01/network/routes.go
+++ b/services/network/mgmt/2019-02-01/network/routes.go
@@ -35,7 +35,8 @@ func NewRoutesClient(subscriptionID string) RoutesClient {
return NewRoutesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewRoutesClientWithBaseURI creates an instance of the RoutesClient client.
+// NewRoutesClientWithBaseURI creates an instance of the RoutesClient client using a custom endpoint. Use this when
+// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewRoutesClientWithBaseURI(baseURI string, subscriptionID string) RoutesClient {
return RoutesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-02-01/network/routetables.go b/services/network/mgmt/2019-02-01/network/routetables.go
index 4beb4cdbfe36..e4440e918bda 100644
--- a/services/network/mgmt/2019-02-01/network/routetables.go
+++ b/services/network/mgmt/2019-02-01/network/routetables.go
@@ -35,7 +35,8 @@ func NewRouteTablesClient(subscriptionID string) RouteTablesClient {
return NewRouteTablesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewRouteTablesClientWithBaseURI creates an instance of the RouteTablesClient client.
+// NewRouteTablesClientWithBaseURI creates an instance of the RouteTablesClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewRouteTablesClientWithBaseURI(baseURI string, subscriptionID string) RouteTablesClient {
return RouteTablesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-02-01/network/securitygroups.go b/services/network/mgmt/2019-02-01/network/securitygroups.go
index 4d3d756b4a07..a3750a2d6930 100644
--- a/services/network/mgmt/2019-02-01/network/securitygroups.go
+++ b/services/network/mgmt/2019-02-01/network/securitygroups.go
@@ -35,7 +35,8 @@ func NewSecurityGroupsClient(subscriptionID string) SecurityGroupsClient {
return NewSecurityGroupsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewSecurityGroupsClientWithBaseURI creates an instance of the SecurityGroupsClient client.
+// NewSecurityGroupsClientWithBaseURI creates an instance of the SecurityGroupsClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewSecurityGroupsClientWithBaseURI(baseURI string, subscriptionID string) SecurityGroupsClient {
return SecurityGroupsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-02-01/network/securityrules.go b/services/network/mgmt/2019-02-01/network/securityrules.go
index b41722c5b5bc..a2c044bd7cf0 100644
--- a/services/network/mgmt/2019-02-01/network/securityrules.go
+++ b/services/network/mgmt/2019-02-01/network/securityrules.go
@@ -35,7 +35,8 @@ func NewSecurityRulesClient(subscriptionID string) SecurityRulesClient {
return NewSecurityRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewSecurityRulesClientWithBaseURI creates an instance of the SecurityRulesClient client.
+// NewSecurityRulesClientWithBaseURI creates an instance of the SecurityRulesClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewSecurityRulesClientWithBaseURI(baseURI string, subscriptionID string) SecurityRulesClient {
return SecurityRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-02-01/network/serviceassociationlinks.go b/services/network/mgmt/2019-02-01/network/serviceassociationlinks.go
index dd5758f5f74f..db861a6edbb8 100644
--- a/services/network/mgmt/2019-02-01/network/serviceassociationlinks.go
+++ b/services/network/mgmt/2019-02-01/network/serviceassociationlinks.go
@@ -35,7 +35,9 @@ func NewServiceAssociationLinksClient(subscriptionID string) ServiceAssociationL
return NewServiceAssociationLinksClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewServiceAssociationLinksClientWithBaseURI creates an instance of the ServiceAssociationLinksClient client.
+// NewServiceAssociationLinksClientWithBaseURI creates an instance of the ServiceAssociationLinksClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewServiceAssociationLinksClientWithBaseURI(baseURI string, subscriptionID string) ServiceAssociationLinksClient {
return ServiceAssociationLinksClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-02-01/network/serviceendpointpolicies.go b/services/network/mgmt/2019-02-01/network/serviceendpointpolicies.go
index 7d65e22291fe..43a412da0e03 100644
--- a/services/network/mgmt/2019-02-01/network/serviceendpointpolicies.go
+++ b/services/network/mgmt/2019-02-01/network/serviceendpointpolicies.go
@@ -35,7 +35,9 @@ func NewServiceEndpointPoliciesClient(subscriptionID string) ServiceEndpointPoli
return NewServiceEndpointPoliciesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewServiceEndpointPoliciesClientWithBaseURI creates an instance of the ServiceEndpointPoliciesClient client.
+// NewServiceEndpointPoliciesClientWithBaseURI creates an instance of the ServiceEndpointPoliciesClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewServiceEndpointPoliciesClientWithBaseURI(baseURI string, subscriptionID string) ServiceEndpointPoliciesClient {
return ServiceEndpointPoliciesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-02-01/network/serviceendpointpolicydefinitions.go b/services/network/mgmt/2019-02-01/network/serviceendpointpolicydefinitions.go
index 1dfe1c08a5ff..60c75055c6dc 100644
--- a/services/network/mgmt/2019-02-01/network/serviceendpointpolicydefinitions.go
+++ b/services/network/mgmt/2019-02-01/network/serviceendpointpolicydefinitions.go
@@ -36,7 +36,8 @@ func NewServiceEndpointPolicyDefinitionsClient(subscriptionID string) ServiceEnd
}
// NewServiceEndpointPolicyDefinitionsClientWithBaseURI creates an instance of the
-// ServiceEndpointPolicyDefinitionsClient client.
+// ServiceEndpointPolicyDefinitionsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewServiceEndpointPolicyDefinitionsClientWithBaseURI(baseURI string, subscriptionID string) ServiceEndpointPolicyDefinitionsClient {
return ServiceEndpointPolicyDefinitionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-02-01/network/subnets.go b/services/network/mgmt/2019-02-01/network/subnets.go
index 1d5485a0e465..8cba74fe5f0d 100644
--- a/services/network/mgmt/2019-02-01/network/subnets.go
+++ b/services/network/mgmt/2019-02-01/network/subnets.go
@@ -35,7 +35,8 @@ func NewSubnetsClient(subscriptionID string) SubnetsClient {
return NewSubnetsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewSubnetsClientWithBaseURI creates an instance of the SubnetsClient client.
+// NewSubnetsClientWithBaseURI creates an instance of the SubnetsClient client using a custom endpoint. Use this when
+// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewSubnetsClientWithBaseURI(baseURI string, subscriptionID string) SubnetsClient {
return SubnetsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-02-01/network/usages.go b/services/network/mgmt/2019-02-01/network/usages.go
index 693ade9672c2..bbbb7f42df99 100644
--- a/services/network/mgmt/2019-02-01/network/usages.go
+++ b/services/network/mgmt/2019-02-01/network/usages.go
@@ -36,7 +36,8 @@ func NewUsagesClient(subscriptionID string) UsagesClient {
return NewUsagesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewUsagesClientWithBaseURI creates an instance of the UsagesClient client.
+// NewUsagesClientWithBaseURI creates an instance of the UsagesClient client using a custom endpoint. Use this when
+// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewUsagesClientWithBaseURI(baseURI string, subscriptionID string) UsagesClient {
return UsagesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-02-01/network/virtualhubs.go b/services/network/mgmt/2019-02-01/network/virtualhubs.go
index fe2f2fb10edd..87b8aceac58d 100644
--- a/services/network/mgmt/2019-02-01/network/virtualhubs.go
+++ b/services/network/mgmt/2019-02-01/network/virtualhubs.go
@@ -35,7 +35,8 @@ func NewVirtualHubsClient(subscriptionID string) VirtualHubsClient {
return NewVirtualHubsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualHubsClientWithBaseURI creates an instance of the VirtualHubsClient client.
+// NewVirtualHubsClientWithBaseURI creates an instance of the VirtualHubsClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVirtualHubsClientWithBaseURI(baseURI string, subscriptionID string) VirtualHubsClient {
return VirtualHubsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-02-01/network/virtualnetworkgatewayconnections.go b/services/network/mgmt/2019-02-01/network/virtualnetworkgatewayconnections.go
index 249a7bfbcad3..c41502b144c7 100644
--- a/services/network/mgmt/2019-02-01/network/virtualnetworkgatewayconnections.go
+++ b/services/network/mgmt/2019-02-01/network/virtualnetworkgatewayconnections.go
@@ -37,7 +37,8 @@ func NewVirtualNetworkGatewayConnectionsClient(subscriptionID string) VirtualNet
}
// NewVirtualNetworkGatewayConnectionsClientWithBaseURI creates an instance of the
-// VirtualNetworkGatewayConnectionsClient client.
+// VirtualNetworkGatewayConnectionsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVirtualNetworkGatewayConnectionsClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworkGatewayConnectionsClient {
return VirtualNetworkGatewayConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-02-01/network/virtualnetworkgateways.go b/services/network/mgmt/2019-02-01/network/virtualnetworkgateways.go
index 770ffc302c0a..5b17633d2ca6 100644
--- a/services/network/mgmt/2019-02-01/network/virtualnetworkgateways.go
+++ b/services/network/mgmt/2019-02-01/network/virtualnetworkgateways.go
@@ -36,7 +36,9 @@ func NewVirtualNetworkGatewaysClient(subscriptionID string) VirtualNetworkGatewa
return NewVirtualNetworkGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualNetworkGatewaysClientWithBaseURI creates an instance of the VirtualNetworkGatewaysClient client.
+// NewVirtualNetworkGatewaysClientWithBaseURI creates an instance of the VirtualNetworkGatewaysClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewVirtualNetworkGatewaysClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworkGatewaysClient {
return VirtualNetworkGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-02-01/network/virtualnetworkpeerings.go b/services/network/mgmt/2019-02-01/network/virtualnetworkpeerings.go
index f4bf50126a6a..9b1ac1d7d979 100644
--- a/services/network/mgmt/2019-02-01/network/virtualnetworkpeerings.go
+++ b/services/network/mgmt/2019-02-01/network/virtualnetworkpeerings.go
@@ -35,7 +35,9 @@ func NewVirtualNetworkPeeringsClient(subscriptionID string) VirtualNetworkPeerin
return NewVirtualNetworkPeeringsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualNetworkPeeringsClientWithBaseURI creates an instance of the VirtualNetworkPeeringsClient client.
+// NewVirtualNetworkPeeringsClientWithBaseURI creates an instance of the VirtualNetworkPeeringsClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewVirtualNetworkPeeringsClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworkPeeringsClient {
return VirtualNetworkPeeringsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-02-01/network/virtualnetworks.go b/services/network/mgmt/2019-02-01/network/virtualnetworks.go
index e3c59959546a..7daa42d3ccf2 100644
--- a/services/network/mgmt/2019-02-01/network/virtualnetworks.go
+++ b/services/network/mgmt/2019-02-01/network/virtualnetworks.go
@@ -35,7 +35,8 @@ func NewVirtualNetworksClient(subscriptionID string) VirtualNetworksClient {
return NewVirtualNetworksClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualNetworksClientWithBaseURI creates an instance of the VirtualNetworksClient client.
+// NewVirtualNetworksClientWithBaseURI creates an instance of the VirtualNetworksClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVirtualNetworksClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworksClient {
return VirtualNetworksClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-02-01/network/virtualnetworktaps.go b/services/network/mgmt/2019-02-01/network/virtualnetworktaps.go
index d9e688cf561d..1b2a5b46fd42 100644
--- a/services/network/mgmt/2019-02-01/network/virtualnetworktaps.go
+++ b/services/network/mgmt/2019-02-01/network/virtualnetworktaps.go
@@ -36,7 +36,9 @@ func NewVirtualNetworkTapsClient(subscriptionID string) VirtualNetworkTapsClient
return NewVirtualNetworkTapsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualNetworkTapsClientWithBaseURI creates an instance of the VirtualNetworkTapsClient client.
+// NewVirtualNetworkTapsClientWithBaseURI creates an instance of the VirtualNetworkTapsClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewVirtualNetworkTapsClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworkTapsClient {
return VirtualNetworkTapsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-02-01/network/virtualwans.go b/services/network/mgmt/2019-02-01/network/virtualwans.go
index c7db206e354e..460dbe2e8a6a 100644
--- a/services/network/mgmt/2019-02-01/network/virtualwans.go
+++ b/services/network/mgmt/2019-02-01/network/virtualwans.go
@@ -35,7 +35,8 @@ func NewVirtualWansClient(subscriptionID string) VirtualWansClient {
return NewVirtualWansClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualWansClientWithBaseURI creates an instance of the VirtualWansClient client.
+// NewVirtualWansClientWithBaseURI creates an instance of the VirtualWansClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVirtualWansClientWithBaseURI(baseURI string, subscriptionID string) VirtualWansClient {
return VirtualWansClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-02-01/network/vpnconnections.go b/services/network/mgmt/2019-02-01/network/vpnconnections.go
index 4cfab45036b8..a1cf4b56c9d3 100644
--- a/services/network/mgmt/2019-02-01/network/vpnconnections.go
+++ b/services/network/mgmt/2019-02-01/network/vpnconnections.go
@@ -35,7 +35,8 @@ func NewVpnConnectionsClient(subscriptionID string) VpnConnectionsClient {
return NewVpnConnectionsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVpnConnectionsClientWithBaseURI creates an instance of the VpnConnectionsClient client.
+// NewVpnConnectionsClientWithBaseURI creates an instance of the VpnConnectionsClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVpnConnectionsClientWithBaseURI(baseURI string, subscriptionID string) VpnConnectionsClient {
return VpnConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-02-01/network/vpngateways.go b/services/network/mgmt/2019-02-01/network/vpngateways.go
index 248a15a9f941..fb79c62159b0 100644
--- a/services/network/mgmt/2019-02-01/network/vpngateways.go
+++ b/services/network/mgmt/2019-02-01/network/vpngateways.go
@@ -35,7 +35,8 @@ func NewVpnGatewaysClient(subscriptionID string) VpnGatewaysClient {
return NewVpnGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVpnGatewaysClientWithBaseURI creates an instance of the VpnGatewaysClient client.
+// NewVpnGatewaysClientWithBaseURI creates an instance of the VpnGatewaysClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVpnGatewaysClientWithBaseURI(baseURI string, subscriptionID string) VpnGatewaysClient {
return VpnGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-02-01/network/vpnsites.go b/services/network/mgmt/2019-02-01/network/vpnsites.go
index 7aab1d28a7b5..e673531c2d77 100644
--- a/services/network/mgmt/2019-02-01/network/vpnsites.go
+++ b/services/network/mgmt/2019-02-01/network/vpnsites.go
@@ -35,7 +35,8 @@ func NewVpnSitesClient(subscriptionID string) VpnSitesClient {
return NewVpnSitesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVpnSitesClientWithBaseURI creates an instance of the VpnSitesClient client.
+// NewVpnSitesClientWithBaseURI creates an instance of the VpnSitesClient client using a custom endpoint. Use this
+// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVpnSitesClientWithBaseURI(baseURI string, subscriptionID string) VpnSitesClient {
return VpnSitesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-02-01/network/vpnsitesconfiguration.go b/services/network/mgmt/2019-02-01/network/vpnsitesconfiguration.go
index a3ed48528ceb..3baaa40bce8c 100644
--- a/services/network/mgmt/2019-02-01/network/vpnsitesconfiguration.go
+++ b/services/network/mgmt/2019-02-01/network/vpnsitesconfiguration.go
@@ -36,7 +36,9 @@ func NewVpnSitesConfigurationClient(subscriptionID string) VpnSitesConfiguration
return NewVpnSitesConfigurationClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVpnSitesConfigurationClientWithBaseURI creates an instance of the VpnSitesConfigurationClient client.
+// NewVpnSitesConfigurationClientWithBaseURI creates an instance of the VpnSitesConfigurationClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewVpnSitesConfigurationClientWithBaseURI(baseURI string, subscriptionID string) VpnSitesConfigurationClient {
return VpnSitesConfigurationClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-02-01/network/watchers.go b/services/network/mgmt/2019-02-01/network/watchers.go
index db1fb3a9a371..03838144e5bd 100644
--- a/services/network/mgmt/2019-02-01/network/watchers.go
+++ b/services/network/mgmt/2019-02-01/network/watchers.go
@@ -36,7 +36,8 @@ func NewWatchersClient(subscriptionID string) WatchersClient {
return NewWatchersClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewWatchersClientWithBaseURI creates an instance of the WatchersClient client.
+// NewWatchersClientWithBaseURI creates an instance of the WatchersClient client using a custom endpoint. Use this
+// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewWatchersClientWithBaseURI(baseURI string, subscriptionID string) WatchersClient {
return WatchersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-02-01/network/webapplicationfirewallpolicies.go b/services/network/mgmt/2019-02-01/network/webapplicationfirewallpolicies.go
index 1ef39b4b7d32..c101a85115da 100644
--- a/services/network/mgmt/2019-02-01/network/webapplicationfirewallpolicies.go
+++ b/services/network/mgmt/2019-02-01/network/webapplicationfirewallpolicies.go
@@ -37,7 +37,8 @@ func NewWebApplicationFirewallPoliciesClient(subscriptionID string) WebApplicati
}
// NewWebApplicationFirewallPoliciesClientWithBaseURI creates an instance of the WebApplicationFirewallPoliciesClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewWebApplicationFirewallPoliciesClientWithBaseURI(baseURI string, subscriptionID string) WebApplicationFirewallPoliciesClient {
return WebApplicationFirewallPoliciesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-04-01/network/applicationgateways.go b/services/network/mgmt/2019-04-01/network/applicationgateways.go
index cdf7eaf18c0f..8e30b22b7041 100644
--- a/services/network/mgmt/2019-04-01/network/applicationgateways.go
+++ b/services/network/mgmt/2019-04-01/network/applicationgateways.go
@@ -36,7 +36,9 @@ func NewApplicationGatewaysClient(subscriptionID string) ApplicationGatewaysClie
return NewApplicationGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewApplicationGatewaysClientWithBaseURI creates an instance of the ApplicationGatewaysClient client.
+// NewApplicationGatewaysClientWithBaseURI creates an instance of the ApplicationGatewaysClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewApplicationGatewaysClientWithBaseURI(baseURI string, subscriptionID string) ApplicationGatewaysClient {
return ApplicationGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-04-01/network/applicationsecuritygroups.go b/services/network/mgmt/2019-04-01/network/applicationsecuritygroups.go
index 858969af3133..9c927e46325d 100644
--- a/services/network/mgmt/2019-04-01/network/applicationsecuritygroups.go
+++ b/services/network/mgmt/2019-04-01/network/applicationsecuritygroups.go
@@ -35,7 +35,9 @@ func NewApplicationSecurityGroupsClient(subscriptionID string) ApplicationSecuri
return NewApplicationSecurityGroupsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewApplicationSecurityGroupsClientWithBaseURI creates an instance of the ApplicationSecurityGroupsClient client.
+// NewApplicationSecurityGroupsClientWithBaseURI creates an instance of the ApplicationSecurityGroupsClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewApplicationSecurityGroupsClientWithBaseURI(baseURI string, subscriptionID string) ApplicationSecurityGroupsClient {
return ApplicationSecurityGroupsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-04-01/network/availabledelegations.go b/services/network/mgmt/2019-04-01/network/availabledelegations.go
index 2b44fc3c6374..f0b6cb4c1d0e 100644
--- a/services/network/mgmt/2019-04-01/network/availabledelegations.go
+++ b/services/network/mgmt/2019-04-01/network/availabledelegations.go
@@ -35,7 +35,9 @@ func NewAvailableDelegationsClient(subscriptionID string) AvailableDelegationsCl
return NewAvailableDelegationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewAvailableDelegationsClientWithBaseURI creates an instance of the AvailableDelegationsClient client.
+// NewAvailableDelegationsClientWithBaseURI creates an instance of the AvailableDelegationsClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewAvailableDelegationsClientWithBaseURI(baseURI string, subscriptionID string) AvailableDelegationsClient {
return AvailableDelegationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-04-01/network/availableendpointservices.go b/services/network/mgmt/2019-04-01/network/availableendpointservices.go
index 618119b4dabe..0720819ce7bd 100644
--- a/services/network/mgmt/2019-04-01/network/availableendpointservices.go
+++ b/services/network/mgmt/2019-04-01/network/availableendpointservices.go
@@ -35,7 +35,9 @@ func NewAvailableEndpointServicesClient(subscriptionID string) AvailableEndpoint
return NewAvailableEndpointServicesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewAvailableEndpointServicesClientWithBaseURI creates an instance of the AvailableEndpointServicesClient client.
+// NewAvailableEndpointServicesClientWithBaseURI creates an instance of the AvailableEndpointServicesClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewAvailableEndpointServicesClientWithBaseURI(baseURI string, subscriptionID string) AvailableEndpointServicesClient {
return AvailableEndpointServicesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-04-01/network/availableprivateendpointtypes.go b/services/network/mgmt/2019-04-01/network/availableprivateendpointtypes.go
index 61a4f3304239..abac51980ebf 100644
--- a/services/network/mgmt/2019-04-01/network/availableprivateendpointtypes.go
+++ b/services/network/mgmt/2019-04-01/network/availableprivateendpointtypes.go
@@ -36,7 +36,8 @@ func NewAvailablePrivateEndpointTypesClient(subscriptionID string) AvailablePriv
}
// NewAvailablePrivateEndpointTypesClientWithBaseURI creates an instance of the AvailablePrivateEndpointTypesClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewAvailablePrivateEndpointTypesClientWithBaseURI(baseURI string, subscriptionID string) AvailablePrivateEndpointTypesClient {
return AvailablePrivateEndpointTypesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-04-01/network/availableresourcegroupdelegations.go b/services/network/mgmt/2019-04-01/network/availableresourcegroupdelegations.go
index 22085624fc9e..bc632992dfb3 100644
--- a/services/network/mgmt/2019-04-01/network/availableresourcegroupdelegations.go
+++ b/services/network/mgmt/2019-04-01/network/availableresourcegroupdelegations.go
@@ -37,7 +37,8 @@ func NewAvailableResourceGroupDelegationsClient(subscriptionID string) Available
}
// NewAvailableResourceGroupDelegationsClientWithBaseURI creates an instance of the
-// AvailableResourceGroupDelegationsClient client.
+// AvailableResourceGroupDelegationsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewAvailableResourceGroupDelegationsClientWithBaseURI(baseURI string, subscriptionID string) AvailableResourceGroupDelegationsClient {
return AvailableResourceGroupDelegationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-04-01/network/azurefirewallfqdntags.go b/services/network/mgmt/2019-04-01/network/azurefirewallfqdntags.go
index 4664f2847856..76a582f104fe 100644
--- a/services/network/mgmt/2019-04-01/network/azurefirewallfqdntags.go
+++ b/services/network/mgmt/2019-04-01/network/azurefirewallfqdntags.go
@@ -35,7 +35,9 @@ func NewAzureFirewallFqdnTagsClient(subscriptionID string) AzureFirewallFqdnTags
return NewAzureFirewallFqdnTagsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewAzureFirewallFqdnTagsClientWithBaseURI creates an instance of the AzureFirewallFqdnTagsClient client.
+// NewAzureFirewallFqdnTagsClientWithBaseURI creates an instance of the AzureFirewallFqdnTagsClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewAzureFirewallFqdnTagsClientWithBaseURI(baseURI string, subscriptionID string) AzureFirewallFqdnTagsClient {
return AzureFirewallFqdnTagsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-04-01/network/azurefirewalls.go b/services/network/mgmt/2019-04-01/network/azurefirewalls.go
index a15c86825c98..a5674e475905 100644
--- a/services/network/mgmt/2019-04-01/network/azurefirewalls.go
+++ b/services/network/mgmt/2019-04-01/network/azurefirewalls.go
@@ -35,7 +35,8 @@ func NewAzureFirewallsClient(subscriptionID string) AzureFirewallsClient {
return NewAzureFirewallsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewAzureFirewallsClientWithBaseURI creates an instance of the AzureFirewallsClient client.
+// NewAzureFirewallsClientWithBaseURI creates an instance of the AzureFirewallsClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewAzureFirewallsClientWithBaseURI(baseURI string, subscriptionID string) AzureFirewallsClient {
return AzureFirewallsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-04-01/network/bastionhosts.go b/services/network/mgmt/2019-04-01/network/bastionhosts.go
index ce9d39942a60..0e68f7282b39 100644
--- a/services/network/mgmt/2019-04-01/network/bastionhosts.go
+++ b/services/network/mgmt/2019-04-01/network/bastionhosts.go
@@ -35,7 +35,8 @@ func NewBastionHostsClient(subscriptionID string) BastionHostsClient {
return NewBastionHostsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewBastionHostsClientWithBaseURI creates an instance of the BastionHostsClient client.
+// NewBastionHostsClientWithBaseURI creates an instance of the BastionHostsClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewBastionHostsClientWithBaseURI(baseURI string, subscriptionID string) BastionHostsClient {
return BastionHostsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-04-01/network/bgpservicecommunities.go b/services/network/mgmt/2019-04-01/network/bgpservicecommunities.go
index 76f35fab1fb2..7b1ac7b9a4c9 100644
--- a/services/network/mgmt/2019-04-01/network/bgpservicecommunities.go
+++ b/services/network/mgmt/2019-04-01/network/bgpservicecommunities.go
@@ -35,7 +35,9 @@ func NewBgpServiceCommunitiesClient(subscriptionID string) BgpServiceCommunities
return NewBgpServiceCommunitiesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewBgpServiceCommunitiesClientWithBaseURI creates an instance of the BgpServiceCommunitiesClient client.
+// NewBgpServiceCommunitiesClientWithBaseURI creates an instance of the BgpServiceCommunitiesClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewBgpServiceCommunitiesClientWithBaseURI(baseURI string, subscriptionID string) BgpServiceCommunitiesClient {
return BgpServiceCommunitiesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-04-01/network/client.go b/services/network/mgmt/2019-04-01/network/client.go
index bfdf27f265fd..cc2cf4a5a7cf 100644
--- a/services/network/mgmt/2019-04-01/network/client.go
+++ b/services/network/mgmt/2019-04-01/network/client.go
@@ -45,7 +45,8 @@ func New(subscriptionID string) BaseClient {
return NewWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewWithBaseURI creates an instance of the BaseClient client.
+// NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with
+// an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient {
return BaseClient{
Client: autorest.NewClientWithUserAgent(UserAgent()),
diff --git a/services/network/mgmt/2019-04-01/network/connectionmonitors.go b/services/network/mgmt/2019-04-01/network/connectionmonitors.go
index 890825c931db..63090f9c0eca 100644
--- a/services/network/mgmt/2019-04-01/network/connectionmonitors.go
+++ b/services/network/mgmt/2019-04-01/network/connectionmonitors.go
@@ -36,7 +36,9 @@ func NewConnectionMonitorsClient(subscriptionID string) ConnectionMonitorsClient
return NewConnectionMonitorsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewConnectionMonitorsClientWithBaseURI creates an instance of the ConnectionMonitorsClient client.
+// NewConnectionMonitorsClientWithBaseURI creates an instance of the ConnectionMonitorsClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewConnectionMonitorsClientWithBaseURI(baseURI string, subscriptionID string) ConnectionMonitorsClient {
return ConnectionMonitorsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-04-01/network/ddoscustompolicies.go b/services/network/mgmt/2019-04-01/network/ddoscustompolicies.go
index de036894a43c..4df840419dd8 100644
--- a/services/network/mgmt/2019-04-01/network/ddoscustompolicies.go
+++ b/services/network/mgmt/2019-04-01/network/ddoscustompolicies.go
@@ -35,7 +35,9 @@ func NewDdosCustomPoliciesClient(subscriptionID string) DdosCustomPoliciesClient
return NewDdosCustomPoliciesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewDdosCustomPoliciesClientWithBaseURI creates an instance of the DdosCustomPoliciesClient client.
+// NewDdosCustomPoliciesClientWithBaseURI creates an instance of the DdosCustomPoliciesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewDdosCustomPoliciesClientWithBaseURI(baseURI string, subscriptionID string) DdosCustomPoliciesClient {
return DdosCustomPoliciesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-04-01/network/ddosprotectionplans.go b/services/network/mgmt/2019-04-01/network/ddosprotectionplans.go
index 08e123eac5cc..f8cd438b7101 100644
--- a/services/network/mgmt/2019-04-01/network/ddosprotectionplans.go
+++ b/services/network/mgmt/2019-04-01/network/ddosprotectionplans.go
@@ -35,7 +35,9 @@ func NewDdosProtectionPlansClient(subscriptionID string) DdosProtectionPlansClie
return NewDdosProtectionPlansClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewDdosProtectionPlansClientWithBaseURI creates an instance of the DdosProtectionPlansClient client.
+// NewDdosProtectionPlansClientWithBaseURI creates an instance of the DdosProtectionPlansClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewDdosProtectionPlansClientWithBaseURI(baseURI string, subscriptionID string) DdosProtectionPlansClient {
return DdosProtectionPlansClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-04-01/network/defaultsecurityrules.go b/services/network/mgmt/2019-04-01/network/defaultsecurityrules.go
index de62f2a4143b..f82ec1e3574e 100644
--- a/services/network/mgmt/2019-04-01/network/defaultsecurityrules.go
+++ b/services/network/mgmt/2019-04-01/network/defaultsecurityrules.go
@@ -35,7 +35,9 @@ func NewDefaultSecurityRulesClient(subscriptionID string) DefaultSecurityRulesCl
return NewDefaultSecurityRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewDefaultSecurityRulesClientWithBaseURI creates an instance of the DefaultSecurityRulesClient client.
+// NewDefaultSecurityRulesClientWithBaseURI creates an instance of the DefaultSecurityRulesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewDefaultSecurityRulesClientWithBaseURI(baseURI string, subscriptionID string) DefaultSecurityRulesClient {
return DefaultSecurityRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-04-01/network/expressroutecircuitauthorizations.go b/services/network/mgmt/2019-04-01/network/expressroutecircuitauthorizations.go
index 006fd3efcdf1..b030e0a3488f 100644
--- a/services/network/mgmt/2019-04-01/network/expressroutecircuitauthorizations.go
+++ b/services/network/mgmt/2019-04-01/network/expressroutecircuitauthorizations.go
@@ -37,7 +37,8 @@ func NewExpressRouteCircuitAuthorizationsClient(subscriptionID string) ExpressRo
}
// NewExpressRouteCircuitAuthorizationsClientWithBaseURI creates an instance of the
-// ExpressRouteCircuitAuthorizationsClient client.
+// ExpressRouteCircuitAuthorizationsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewExpressRouteCircuitAuthorizationsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCircuitAuthorizationsClient {
return ExpressRouteCircuitAuthorizationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-04-01/network/expressroutecircuitconnections.go b/services/network/mgmt/2019-04-01/network/expressroutecircuitconnections.go
index e4d183920c5d..b77990c245b2 100644
--- a/services/network/mgmt/2019-04-01/network/expressroutecircuitconnections.go
+++ b/services/network/mgmt/2019-04-01/network/expressroutecircuitconnections.go
@@ -36,7 +36,8 @@ func NewExpressRouteCircuitConnectionsClient(subscriptionID string) ExpressRoute
}
// NewExpressRouteCircuitConnectionsClientWithBaseURI creates an instance of the ExpressRouteCircuitConnectionsClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewExpressRouteCircuitConnectionsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCircuitConnectionsClient {
return ExpressRouteCircuitConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-04-01/network/expressroutecircuitpeerings.go b/services/network/mgmt/2019-04-01/network/expressroutecircuitpeerings.go
index e1beb1bd051c..fbee34f0f5e2 100644
--- a/services/network/mgmt/2019-04-01/network/expressroutecircuitpeerings.go
+++ b/services/network/mgmt/2019-04-01/network/expressroutecircuitpeerings.go
@@ -36,7 +36,9 @@ func NewExpressRouteCircuitPeeringsClient(subscriptionID string) ExpressRouteCir
return NewExpressRouteCircuitPeeringsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewExpressRouteCircuitPeeringsClientWithBaseURI creates an instance of the ExpressRouteCircuitPeeringsClient client.
+// NewExpressRouteCircuitPeeringsClientWithBaseURI creates an instance of the ExpressRouteCircuitPeeringsClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewExpressRouteCircuitPeeringsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCircuitPeeringsClient {
return ExpressRouteCircuitPeeringsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-04-01/network/expressroutecircuits.go b/services/network/mgmt/2019-04-01/network/expressroutecircuits.go
index 58074d464fb4..7087637e850b 100644
--- a/services/network/mgmt/2019-04-01/network/expressroutecircuits.go
+++ b/services/network/mgmt/2019-04-01/network/expressroutecircuits.go
@@ -35,7 +35,9 @@ func NewExpressRouteCircuitsClient(subscriptionID string) ExpressRouteCircuitsCl
return NewExpressRouteCircuitsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewExpressRouteCircuitsClientWithBaseURI creates an instance of the ExpressRouteCircuitsClient client.
+// NewExpressRouteCircuitsClientWithBaseURI creates an instance of the ExpressRouteCircuitsClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewExpressRouteCircuitsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCircuitsClient {
return ExpressRouteCircuitsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-04-01/network/expressrouteconnections.go b/services/network/mgmt/2019-04-01/network/expressrouteconnections.go
index 822b4aeaa04f..3d4386f45112 100644
--- a/services/network/mgmt/2019-04-01/network/expressrouteconnections.go
+++ b/services/network/mgmt/2019-04-01/network/expressrouteconnections.go
@@ -36,7 +36,9 @@ func NewExpressRouteConnectionsClient(subscriptionID string) ExpressRouteConnect
return NewExpressRouteConnectionsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewExpressRouteConnectionsClientWithBaseURI creates an instance of the ExpressRouteConnectionsClient client.
+// NewExpressRouteConnectionsClientWithBaseURI creates an instance of the ExpressRouteConnectionsClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewExpressRouteConnectionsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteConnectionsClient {
return ExpressRouteConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-04-01/network/expressroutecrossconnectionpeerings.go b/services/network/mgmt/2019-04-01/network/expressroutecrossconnectionpeerings.go
index ff16998f0fc7..5e12e371460e 100644
--- a/services/network/mgmt/2019-04-01/network/expressroutecrossconnectionpeerings.go
+++ b/services/network/mgmt/2019-04-01/network/expressroutecrossconnectionpeerings.go
@@ -38,7 +38,8 @@ func NewExpressRouteCrossConnectionPeeringsClient(subscriptionID string) Express
}
// NewExpressRouteCrossConnectionPeeringsClientWithBaseURI creates an instance of the
-// ExpressRouteCrossConnectionPeeringsClient client.
+// ExpressRouteCrossConnectionPeeringsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewExpressRouteCrossConnectionPeeringsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCrossConnectionPeeringsClient {
return ExpressRouteCrossConnectionPeeringsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-04-01/network/expressroutecrossconnections.go b/services/network/mgmt/2019-04-01/network/expressroutecrossconnections.go
index a09c860ddc10..396ee09e3d83 100644
--- a/services/network/mgmt/2019-04-01/network/expressroutecrossconnections.go
+++ b/services/network/mgmt/2019-04-01/network/expressroutecrossconnections.go
@@ -36,7 +36,8 @@ func NewExpressRouteCrossConnectionsClient(subscriptionID string) ExpressRouteCr
}
// NewExpressRouteCrossConnectionsClientWithBaseURI creates an instance of the ExpressRouteCrossConnectionsClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewExpressRouteCrossConnectionsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCrossConnectionsClient {
return ExpressRouteCrossConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-04-01/network/expressroutegateways.go b/services/network/mgmt/2019-04-01/network/expressroutegateways.go
index b4c49128fec2..d53e64ef8d10 100644
--- a/services/network/mgmt/2019-04-01/network/expressroutegateways.go
+++ b/services/network/mgmt/2019-04-01/network/expressroutegateways.go
@@ -36,7 +36,9 @@ func NewExpressRouteGatewaysClient(subscriptionID string) ExpressRouteGatewaysCl
return NewExpressRouteGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewExpressRouteGatewaysClientWithBaseURI creates an instance of the ExpressRouteGatewaysClient client.
+// NewExpressRouteGatewaysClientWithBaseURI creates an instance of the ExpressRouteGatewaysClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewExpressRouteGatewaysClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteGatewaysClient {
return ExpressRouteGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-04-01/network/expressroutelinks.go b/services/network/mgmt/2019-04-01/network/expressroutelinks.go
index af9ddde4845e..282bc413dfed 100644
--- a/services/network/mgmt/2019-04-01/network/expressroutelinks.go
+++ b/services/network/mgmt/2019-04-01/network/expressroutelinks.go
@@ -35,7 +35,9 @@ func NewExpressRouteLinksClient(subscriptionID string) ExpressRouteLinksClient {
return NewExpressRouteLinksClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewExpressRouteLinksClientWithBaseURI creates an instance of the ExpressRouteLinksClient client.
+// NewExpressRouteLinksClientWithBaseURI creates an instance of the ExpressRouteLinksClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewExpressRouteLinksClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteLinksClient {
return ExpressRouteLinksClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-04-01/network/expressrouteports.go b/services/network/mgmt/2019-04-01/network/expressrouteports.go
index 92957d779eac..68a00c166ef0 100644
--- a/services/network/mgmt/2019-04-01/network/expressrouteports.go
+++ b/services/network/mgmt/2019-04-01/network/expressrouteports.go
@@ -35,7 +35,9 @@ func NewExpressRoutePortsClient(subscriptionID string) ExpressRoutePortsClient {
return NewExpressRoutePortsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewExpressRoutePortsClientWithBaseURI creates an instance of the ExpressRoutePortsClient client.
+// NewExpressRoutePortsClientWithBaseURI creates an instance of the ExpressRoutePortsClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewExpressRoutePortsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRoutePortsClient {
return ExpressRoutePortsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-04-01/network/expressrouteportslocations.go b/services/network/mgmt/2019-04-01/network/expressrouteportslocations.go
index 2a5ca66f3d91..c2efa70149b0 100644
--- a/services/network/mgmt/2019-04-01/network/expressrouteportslocations.go
+++ b/services/network/mgmt/2019-04-01/network/expressrouteportslocations.go
@@ -35,7 +35,9 @@ func NewExpressRoutePortsLocationsClient(subscriptionID string) ExpressRoutePort
return NewExpressRoutePortsLocationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewExpressRoutePortsLocationsClientWithBaseURI creates an instance of the ExpressRoutePortsLocationsClient client.
+// NewExpressRoutePortsLocationsClientWithBaseURI creates an instance of the ExpressRoutePortsLocationsClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewExpressRoutePortsLocationsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRoutePortsLocationsClient {
return ExpressRoutePortsLocationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-04-01/network/expressrouteserviceproviders.go b/services/network/mgmt/2019-04-01/network/expressrouteserviceproviders.go
index bd80eeb8fb60..3650c17767b6 100644
--- a/services/network/mgmt/2019-04-01/network/expressrouteserviceproviders.go
+++ b/services/network/mgmt/2019-04-01/network/expressrouteserviceproviders.go
@@ -36,7 +36,8 @@ func NewExpressRouteServiceProvidersClient(subscriptionID string) ExpressRouteSe
}
// NewExpressRouteServiceProvidersClientWithBaseURI creates an instance of the ExpressRouteServiceProvidersClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewExpressRouteServiceProvidersClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteServiceProvidersClient {
return ExpressRouteServiceProvidersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-04-01/network/hubvirtualnetworkconnections.go b/services/network/mgmt/2019-04-01/network/hubvirtualnetworkconnections.go
index 88d2b1d7ef56..ce24d03a7967 100644
--- a/services/network/mgmt/2019-04-01/network/hubvirtualnetworkconnections.go
+++ b/services/network/mgmt/2019-04-01/network/hubvirtualnetworkconnections.go
@@ -36,7 +36,8 @@ func NewHubVirtualNetworkConnectionsClient(subscriptionID string) HubVirtualNetw
}
// NewHubVirtualNetworkConnectionsClientWithBaseURI creates an instance of the HubVirtualNetworkConnectionsClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewHubVirtualNetworkConnectionsClientWithBaseURI(baseURI string, subscriptionID string) HubVirtualNetworkConnectionsClient {
return HubVirtualNetworkConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-04-01/network/inboundnatrules.go b/services/network/mgmt/2019-04-01/network/inboundnatrules.go
index 95de12e7b71d..f0372fe37d29 100644
--- a/services/network/mgmt/2019-04-01/network/inboundnatrules.go
+++ b/services/network/mgmt/2019-04-01/network/inboundnatrules.go
@@ -36,7 +36,8 @@ func NewInboundNatRulesClient(subscriptionID string) InboundNatRulesClient {
return NewInboundNatRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewInboundNatRulesClientWithBaseURI creates an instance of the InboundNatRulesClient client.
+// NewInboundNatRulesClientWithBaseURI creates an instance of the InboundNatRulesClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewInboundNatRulesClientWithBaseURI(baseURI string, subscriptionID string) InboundNatRulesClient {
return InboundNatRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-04-01/network/interfaceipconfigurations.go b/services/network/mgmt/2019-04-01/network/interfaceipconfigurations.go
index 6d5f01d54d54..37d802cc21f8 100644
--- a/services/network/mgmt/2019-04-01/network/interfaceipconfigurations.go
+++ b/services/network/mgmt/2019-04-01/network/interfaceipconfigurations.go
@@ -35,7 +35,9 @@ func NewInterfaceIPConfigurationsClient(subscriptionID string) InterfaceIPConfig
return NewInterfaceIPConfigurationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewInterfaceIPConfigurationsClientWithBaseURI creates an instance of the InterfaceIPConfigurationsClient client.
+// NewInterfaceIPConfigurationsClientWithBaseURI creates an instance of the InterfaceIPConfigurationsClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewInterfaceIPConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) InterfaceIPConfigurationsClient {
return InterfaceIPConfigurationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-04-01/network/interfaceloadbalancers.go b/services/network/mgmt/2019-04-01/network/interfaceloadbalancers.go
index cc128181e61e..7fbcedd76b22 100644
--- a/services/network/mgmt/2019-04-01/network/interfaceloadbalancers.go
+++ b/services/network/mgmt/2019-04-01/network/interfaceloadbalancers.go
@@ -35,7 +35,9 @@ func NewInterfaceLoadBalancersClient(subscriptionID string) InterfaceLoadBalance
return NewInterfaceLoadBalancersClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewInterfaceLoadBalancersClientWithBaseURI creates an instance of the InterfaceLoadBalancersClient client.
+// NewInterfaceLoadBalancersClientWithBaseURI creates an instance of the InterfaceLoadBalancersClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewInterfaceLoadBalancersClientWithBaseURI(baseURI string, subscriptionID string) InterfaceLoadBalancersClient {
return InterfaceLoadBalancersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-04-01/network/interfacesgroup.go b/services/network/mgmt/2019-04-01/network/interfacesgroup.go
index eaf52395369c..c82efc56acc7 100644
--- a/services/network/mgmt/2019-04-01/network/interfacesgroup.go
+++ b/services/network/mgmt/2019-04-01/network/interfacesgroup.go
@@ -35,7 +35,8 @@ func NewInterfacesClient(subscriptionID string) InterfacesClient {
return NewInterfacesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewInterfacesClientWithBaseURI creates an instance of the InterfacesClient client.
+// NewInterfacesClientWithBaseURI creates an instance of the InterfacesClient client using a custom endpoint. Use this
+// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewInterfacesClientWithBaseURI(baseURI string, subscriptionID string) InterfacesClient {
return InterfacesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-04-01/network/interfacetapconfigurations.go b/services/network/mgmt/2019-04-01/network/interfacetapconfigurations.go
index 85e7d0a0bf73..57a7c9533b75 100644
--- a/services/network/mgmt/2019-04-01/network/interfacetapconfigurations.go
+++ b/services/network/mgmt/2019-04-01/network/interfacetapconfigurations.go
@@ -36,7 +36,9 @@ func NewInterfaceTapConfigurationsClient(subscriptionID string) InterfaceTapConf
return NewInterfaceTapConfigurationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewInterfaceTapConfigurationsClientWithBaseURI creates an instance of the InterfaceTapConfigurationsClient client.
+// NewInterfaceTapConfigurationsClientWithBaseURI creates an instance of the InterfaceTapConfigurationsClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewInterfaceTapConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) InterfaceTapConfigurationsClient {
return InterfaceTapConfigurationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-04-01/network/loadbalancerbackendaddresspools.go b/services/network/mgmt/2019-04-01/network/loadbalancerbackendaddresspools.go
index e1f6364122e5..05559b642380 100644
--- a/services/network/mgmt/2019-04-01/network/loadbalancerbackendaddresspools.go
+++ b/services/network/mgmt/2019-04-01/network/loadbalancerbackendaddresspools.go
@@ -36,7 +36,8 @@ func NewLoadBalancerBackendAddressPoolsClient(subscriptionID string) LoadBalance
}
// NewLoadBalancerBackendAddressPoolsClientWithBaseURI creates an instance of the LoadBalancerBackendAddressPoolsClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewLoadBalancerBackendAddressPoolsClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerBackendAddressPoolsClient {
return LoadBalancerBackendAddressPoolsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-04-01/network/loadbalancerfrontendipconfigurations.go b/services/network/mgmt/2019-04-01/network/loadbalancerfrontendipconfigurations.go
index 8dca0eeebf03..520649a90ca7 100644
--- a/services/network/mgmt/2019-04-01/network/loadbalancerfrontendipconfigurations.go
+++ b/services/network/mgmt/2019-04-01/network/loadbalancerfrontendipconfigurations.go
@@ -37,7 +37,8 @@ func NewLoadBalancerFrontendIPConfigurationsClient(subscriptionID string) LoadBa
}
// NewLoadBalancerFrontendIPConfigurationsClientWithBaseURI creates an instance of the
-// LoadBalancerFrontendIPConfigurationsClient client.
+// LoadBalancerFrontendIPConfigurationsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewLoadBalancerFrontendIPConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerFrontendIPConfigurationsClient {
return LoadBalancerFrontendIPConfigurationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-04-01/network/loadbalancerloadbalancingrules.go b/services/network/mgmt/2019-04-01/network/loadbalancerloadbalancingrules.go
index 9fd4b0934e35..67c84d2bd2c8 100644
--- a/services/network/mgmt/2019-04-01/network/loadbalancerloadbalancingrules.go
+++ b/services/network/mgmt/2019-04-01/network/loadbalancerloadbalancingrules.go
@@ -36,7 +36,8 @@ func NewLoadBalancerLoadBalancingRulesClient(subscriptionID string) LoadBalancer
}
// NewLoadBalancerLoadBalancingRulesClientWithBaseURI creates an instance of the LoadBalancerLoadBalancingRulesClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewLoadBalancerLoadBalancingRulesClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerLoadBalancingRulesClient {
return LoadBalancerLoadBalancingRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-04-01/network/loadbalancernetworkinterfaces.go b/services/network/mgmt/2019-04-01/network/loadbalancernetworkinterfaces.go
index aa2138e62684..c8e092cbb221 100644
--- a/services/network/mgmt/2019-04-01/network/loadbalancernetworkinterfaces.go
+++ b/services/network/mgmt/2019-04-01/network/loadbalancernetworkinterfaces.go
@@ -36,7 +36,8 @@ func NewLoadBalancerNetworkInterfacesClient(subscriptionID string) LoadBalancerN
}
// NewLoadBalancerNetworkInterfacesClientWithBaseURI creates an instance of the LoadBalancerNetworkInterfacesClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewLoadBalancerNetworkInterfacesClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerNetworkInterfacesClient {
return LoadBalancerNetworkInterfacesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-04-01/network/loadbalanceroutboundrules.go b/services/network/mgmt/2019-04-01/network/loadbalanceroutboundrules.go
index be00b7ca9467..3facc15ecac5 100644
--- a/services/network/mgmt/2019-04-01/network/loadbalanceroutboundrules.go
+++ b/services/network/mgmt/2019-04-01/network/loadbalanceroutboundrules.go
@@ -35,7 +35,9 @@ func NewLoadBalancerOutboundRulesClient(subscriptionID string) LoadBalancerOutbo
return NewLoadBalancerOutboundRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewLoadBalancerOutboundRulesClientWithBaseURI creates an instance of the LoadBalancerOutboundRulesClient client.
+// NewLoadBalancerOutboundRulesClientWithBaseURI creates an instance of the LoadBalancerOutboundRulesClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewLoadBalancerOutboundRulesClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerOutboundRulesClient {
return LoadBalancerOutboundRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-04-01/network/loadbalancerprobes.go b/services/network/mgmt/2019-04-01/network/loadbalancerprobes.go
index 5d558fb0cb8f..362ffc725ccf 100644
--- a/services/network/mgmt/2019-04-01/network/loadbalancerprobes.go
+++ b/services/network/mgmt/2019-04-01/network/loadbalancerprobes.go
@@ -35,7 +35,9 @@ func NewLoadBalancerProbesClient(subscriptionID string) LoadBalancerProbesClient
return NewLoadBalancerProbesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewLoadBalancerProbesClientWithBaseURI creates an instance of the LoadBalancerProbesClient client.
+// NewLoadBalancerProbesClientWithBaseURI creates an instance of the LoadBalancerProbesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewLoadBalancerProbesClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerProbesClient {
return LoadBalancerProbesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-04-01/network/loadbalancers.go b/services/network/mgmt/2019-04-01/network/loadbalancers.go
index c80f40a06908..dc354c8b91fc 100644
--- a/services/network/mgmt/2019-04-01/network/loadbalancers.go
+++ b/services/network/mgmt/2019-04-01/network/loadbalancers.go
@@ -35,7 +35,8 @@ func NewLoadBalancersClient(subscriptionID string) LoadBalancersClient {
return NewLoadBalancersClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewLoadBalancersClientWithBaseURI creates an instance of the LoadBalancersClient client.
+// NewLoadBalancersClientWithBaseURI creates an instance of the LoadBalancersClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewLoadBalancersClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancersClient {
return LoadBalancersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-04-01/network/localnetworkgateways.go b/services/network/mgmt/2019-04-01/network/localnetworkgateways.go
index e6ddd44ac589..34b4cf527247 100644
--- a/services/network/mgmt/2019-04-01/network/localnetworkgateways.go
+++ b/services/network/mgmt/2019-04-01/network/localnetworkgateways.go
@@ -36,7 +36,9 @@ func NewLocalNetworkGatewaysClient(subscriptionID string) LocalNetworkGatewaysCl
return NewLocalNetworkGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewLocalNetworkGatewaysClientWithBaseURI creates an instance of the LocalNetworkGatewaysClient client.
+// NewLocalNetworkGatewaysClientWithBaseURI creates an instance of the LocalNetworkGatewaysClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewLocalNetworkGatewaysClientWithBaseURI(baseURI string, subscriptionID string) LocalNetworkGatewaysClient {
return LocalNetworkGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-04-01/network/natgateways.go b/services/network/mgmt/2019-04-01/network/natgateways.go
index 1301f0aa5ad0..e48abd199490 100644
--- a/services/network/mgmt/2019-04-01/network/natgateways.go
+++ b/services/network/mgmt/2019-04-01/network/natgateways.go
@@ -35,7 +35,8 @@ func NewNatGatewaysClient(subscriptionID string) NatGatewaysClient {
return NewNatGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewNatGatewaysClientWithBaseURI creates an instance of the NatGatewaysClient client.
+// NewNatGatewaysClientWithBaseURI creates an instance of the NatGatewaysClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewNatGatewaysClientWithBaseURI(baseURI string, subscriptionID string) NatGatewaysClient {
return NatGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-04-01/network/networkapi/interfaces.go b/services/network/mgmt/2019-04-01/network/networkapi/interfaces.go
index cd6efb7f84eb..72309dfbd38e 100644
--- a/services/network/mgmt/2019-04-01/network/networkapi/interfaces.go
+++ b/services/network/mgmt/2019-04-01/network/networkapi/interfaces.go
@@ -39,12 +39,15 @@ type ApplicationGatewaysClientAPI interface {
Get(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result network.ApplicationGateway, err error)
GetSslPredefinedPolicy(ctx context.Context, predefinedPolicyName string) (result network.ApplicationGatewaySslPredefinedPolicy, err error)
List(ctx context.Context, resourceGroupName string) (result network.ApplicationGatewayListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.ApplicationGatewayListResultIterator, err error)
ListAll(ctx context.Context) (result network.ApplicationGatewayListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.ApplicationGatewayListResultIterator, err error)
ListAvailableRequestHeaders(ctx context.Context) (result network.ListString, err error)
ListAvailableResponseHeaders(ctx context.Context) (result network.ListString, err error)
ListAvailableServerVariables(ctx context.Context) (result network.ListString, err error)
ListAvailableSslOptions(ctx context.Context) (result network.ApplicationGatewayAvailableSslOptions, err error)
ListAvailableSslPredefinedPolicies(ctx context.Context) (result network.ApplicationGatewayAvailableSslPredefinedPoliciesPage, err error)
+ ListAvailableSslPredefinedPoliciesComplete(ctx context.Context) (result network.ApplicationGatewayAvailableSslPredefinedPoliciesIterator, err error)
ListAvailableWafRuleSets(ctx context.Context) (result network.ApplicationGatewayAvailableWafRuleSetsResult, err error)
Start(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result network.ApplicationGatewaysStartFuture, err error)
Stop(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result network.ApplicationGatewaysStopFuture, err error)
@@ -59,7 +62,9 @@ type ApplicationSecurityGroupsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, applicationSecurityGroupName string) (result network.ApplicationSecurityGroupsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, applicationSecurityGroupName string) (result network.ApplicationSecurityGroup, err error)
List(ctx context.Context, resourceGroupName string) (result network.ApplicationSecurityGroupListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.ApplicationSecurityGroupListResultIterator, err error)
ListAll(ctx context.Context) (result network.ApplicationSecurityGroupListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.ApplicationSecurityGroupListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, applicationSecurityGroupName string, parameters network.TagsObject) (result network.ApplicationSecurityGroupsUpdateTagsFuture, err error)
}
@@ -68,6 +73,7 @@ var _ ApplicationSecurityGroupsClientAPI = (*network.ApplicationSecurityGroupsCl
// AvailableDelegationsClientAPI contains the set of methods on the AvailableDelegationsClient type.
type AvailableDelegationsClientAPI interface {
List(ctx context.Context, location string) (result network.AvailableDelegationsResultPage, err error)
+ ListComplete(ctx context.Context, location string) (result network.AvailableDelegationsResultIterator, err error)
}
var _ AvailableDelegationsClientAPI = (*network.AvailableDelegationsClient)(nil)
@@ -75,6 +81,7 @@ var _ AvailableDelegationsClientAPI = (*network.AvailableDelegationsClient)(nil)
// AvailableResourceGroupDelegationsClientAPI contains the set of methods on the AvailableResourceGroupDelegationsClient type.
type AvailableResourceGroupDelegationsClientAPI interface {
List(ctx context.Context, location string, resourceGroupName string) (result network.AvailableDelegationsResultPage, err error)
+ ListComplete(ctx context.Context, location string, resourceGroupName string) (result network.AvailableDelegationsResultIterator, err error)
}
var _ AvailableResourceGroupDelegationsClientAPI = (*network.AvailableResourceGroupDelegationsClient)(nil)
@@ -85,7 +92,9 @@ type AzureFirewallsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, azureFirewallName string) (result network.AzureFirewallsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, azureFirewallName string) (result network.AzureFirewall, err error)
List(ctx context.Context, resourceGroupName string) (result network.AzureFirewallListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.AzureFirewallListResultIterator, err error)
ListAll(ctx context.Context) (result network.AzureFirewallListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.AzureFirewallListResultIterator, err error)
}
var _ AzureFirewallsClientAPI = (*network.AzureFirewallsClient)(nil)
@@ -93,6 +102,7 @@ var _ AzureFirewallsClientAPI = (*network.AzureFirewallsClient)(nil)
// AzureFirewallFqdnTagsClientAPI contains the set of methods on the AzureFirewallFqdnTagsClient type.
type AzureFirewallFqdnTagsClientAPI interface {
ListAll(ctx context.Context) (result network.AzureFirewallFqdnTagListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.AzureFirewallFqdnTagListResultIterator, err error)
}
var _ AzureFirewallFqdnTagsClientAPI = (*network.AzureFirewallFqdnTagsClient)(nil)
@@ -103,7 +113,9 @@ type BastionHostsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, bastionHostName string) (result network.BastionHostsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, bastionHostName string) (result network.BastionHost, err error)
List(ctx context.Context) (result network.BastionHostListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.BastionHostListResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.BastionHostListResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.BastionHostListResultIterator, err error)
}
var _ BastionHostsClientAPI = (*network.BastionHostsClient)(nil)
@@ -124,7 +136,9 @@ type DdosProtectionPlansClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, ddosProtectionPlanName string) (result network.DdosProtectionPlansDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, ddosProtectionPlanName string) (result network.DdosProtectionPlan, err error)
List(ctx context.Context) (result network.DdosProtectionPlanListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.DdosProtectionPlanListResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.DdosProtectionPlanListResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.DdosProtectionPlanListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, ddosProtectionPlanName string, parameters network.TagsObject) (result network.DdosProtectionPlansUpdateTagsFuture, err error)
}
@@ -133,6 +147,7 @@ var _ DdosProtectionPlansClientAPI = (*network.DdosProtectionPlansClient)(nil)
// AvailableEndpointServicesClientAPI contains the set of methods on the AvailableEndpointServicesClient type.
type AvailableEndpointServicesClientAPI interface {
List(ctx context.Context, location string) (result network.EndpointServicesListResultPage, err error)
+ ListComplete(ctx context.Context, location string) (result network.EndpointServicesListResultIterator, err error)
}
var _ AvailableEndpointServicesClientAPI = (*network.AvailableEndpointServicesClient)(nil)
@@ -143,6 +158,7 @@ type ExpressRouteCircuitAuthorizationsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, circuitName string, authorizationName string) (result network.ExpressRouteCircuitAuthorizationsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, circuitName string, authorizationName string) (result network.ExpressRouteCircuitAuthorization, err error)
List(ctx context.Context, resourceGroupName string, circuitName string) (result network.AuthorizationListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, circuitName string) (result network.AuthorizationListResultIterator, err error)
}
var _ ExpressRouteCircuitAuthorizationsClientAPI = (*network.ExpressRouteCircuitAuthorizationsClient)(nil)
@@ -153,6 +169,7 @@ type ExpressRouteCircuitPeeringsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.ExpressRouteCircuitPeeringsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.ExpressRouteCircuitPeering, err error)
List(ctx context.Context, resourceGroupName string, circuitName string) (result network.ExpressRouteCircuitPeeringListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, circuitName string) (result network.ExpressRouteCircuitPeeringListResultIterator, err error)
}
var _ ExpressRouteCircuitPeeringsClientAPI = (*network.ExpressRouteCircuitPeeringsClient)(nil)
@@ -163,6 +180,7 @@ type ExpressRouteCircuitConnectionsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, connectionName string) (result network.ExpressRouteCircuitConnectionsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, connectionName string) (result network.ExpressRouteCircuitConnection, err error)
List(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.ExpressRouteCircuitConnectionListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.ExpressRouteCircuitConnectionListResultIterator, err error)
}
var _ ExpressRouteCircuitConnectionsClientAPI = (*network.ExpressRouteCircuitConnectionsClient)(nil)
@@ -171,6 +189,7 @@ var _ ExpressRouteCircuitConnectionsClientAPI = (*network.ExpressRouteCircuitCon
type PeerExpressRouteCircuitConnectionsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, connectionName string) (result network.PeerExpressRouteCircuitConnection, err error)
List(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.PeerExpressRouteCircuitConnectionListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.PeerExpressRouteCircuitConnectionListResultIterator, err error)
}
var _ PeerExpressRouteCircuitConnectionsClientAPI = (*network.PeerExpressRouteCircuitConnectionsClient)(nil)
@@ -183,7 +202,9 @@ type ExpressRouteCircuitsClientAPI interface {
GetPeeringStats(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.ExpressRouteCircuitStats, err error)
GetStats(ctx context.Context, resourceGroupName string, circuitName string) (result network.ExpressRouteCircuitStats, err error)
List(ctx context.Context, resourceGroupName string) (result network.ExpressRouteCircuitListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.ExpressRouteCircuitListResultIterator, err error)
ListAll(ctx context.Context) (result network.ExpressRouteCircuitListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.ExpressRouteCircuitListResultIterator, err error)
ListArpTable(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, devicePath string) (result network.ExpressRouteCircuitsListArpTableFuture, err error)
ListRoutesTable(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, devicePath string) (result network.ExpressRouteCircuitsListRoutesTableFuture, err error)
ListRoutesTableSummary(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, devicePath string) (result network.ExpressRouteCircuitsListRoutesTableSummaryFuture, err error)
@@ -195,6 +216,7 @@ var _ ExpressRouteCircuitsClientAPI = (*network.ExpressRouteCircuitsClient)(nil)
// ExpressRouteServiceProvidersClientAPI contains the set of methods on the ExpressRouteServiceProvidersClient type.
type ExpressRouteServiceProvidersClientAPI interface {
List(ctx context.Context) (result network.ExpressRouteServiceProviderListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ExpressRouteServiceProviderListResultIterator, err error)
}
var _ ExpressRouteServiceProvidersClientAPI = (*network.ExpressRouteServiceProvidersClient)(nil)
@@ -204,8 +226,10 @@ type ExpressRouteCrossConnectionsClientAPI interface {
CreateOrUpdate(ctx context.Context, resourceGroupName string, crossConnectionName string, parameters network.ExpressRouteCrossConnection) (result network.ExpressRouteCrossConnectionsCreateOrUpdateFuture, err error)
Get(ctx context.Context, resourceGroupName string, crossConnectionName string) (result network.ExpressRouteCrossConnection, err error)
List(ctx context.Context) (result network.ExpressRouteCrossConnectionListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ExpressRouteCrossConnectionListResultIterator, err error)
ListArpTable(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string, devicePath string) (result network.ExpressRouteCrossConnectionsListArpTableFuture, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ExpressRouteCrossConnectionListResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ExpressRouteCrossConnectionListResultIterator, err error)
ListRoutesTable(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string, devicePath string) (result network.ExpressRouteCrossConnectionsListRoutesTableFuture, err error)
ListRoutesTableSummary(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string, devicePath string) (result network.ExpressRouteCrossConnectionsListRoutesTableSummaryFuture, err error)
UpdateTags(ctx context.Context, resourceGroupName string, crossConnectionName string, crossConnectionParameters network.TagsObject) (result network.ExpressRouteCrossConnectionsUpdateTagsFuture, err error)
@@ -219,6 +243,7 @@ type ExpressRouteCrossConnectionPeeringsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string) (result network.ExpressRouteCrossConnectionPeeringsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string) (result network.ExpressRouteCrossConnectionPeering, err error)
List(ctx context.Context, resourceGroupName string, crossConnectionName string) (result network.ExpressRouteCrossConnectionPeeringListPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, crossConnectionName string) (result network.ExpressRouteCrossConnectionPeeringListIterator, err error)
}
var _ ExpressRouteCrossConnectionPeeringsClientAPI = (*network.ExpressRouteCrossConnectionPeeringsClient)(nil)
@@ -248,6 +273,7 @@ var _ ExpressRouteConnectionsClientAPI = (*network.ExpressRouteConnectionsClient
type ExpressRoutePortsLocationsClientAPI interface {
Get(ctx context.Context, locationName string) (result network.ExpressRoutePortsLocation, err error)
List(ctx context.Context) (result network.ExpressRoutePortsLocationListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ExpressRoutePortsLocationListResultIterator, err error)
}
var _ ExpressRoutePortsLocationsClientAPI = (*network.ExpressRoutePortsLocationsClient)(nil)
@@ -258,7 +284,9 @@ type ExpressRoutePortsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, expressRoutePortName string) (result network.ExpressRoutePortsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, expressRoutePortName string) (result network.ExpressRoutePort, err error)
List(ctx context.Context) (result network.ExpressRoutePortListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ExpressRoutePortListResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ExpressRoutePortListResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ExpressRoutePortListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, expressRoutePortName string, parameters network.TagsObject) (result network.ExpressRoutePortsUpdateTagsFuture, err error)
}
@@ -268,6 +296,7 @@ var _ ExpressRoutePortsClientAPI = (*network.ExpressRoutePortsClient)(nil)
type ExpressRouteLinksClientAPI interface {
Get(ctx context.Context, resourceGroupName string, expressRoutePortName string, linkName string) (result network.ExpressRouteLink, err error)
List(ctx context.Context, resourceGroupName string, expressRoutePortName string) (result network.ExpressRouteLinkListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, expressRoutePortName string) (result network.ExpressRouteLinkListResultIterator, err error)
}
var _ ExpressRouteLinksClientAPI = (*network.ExpressRouteLinksClient)(nil)
@@ -278,7 +307,9 @@ type PrivateEndpointsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, privateEndpointName string) (result network.PrivateEndpointsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, privateEndpointName string, expand string) (result network.PrivateEndpoint, err error)
List(ctx context.Context, resourceGroupName string) (result network.PrivateEndpointListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.PrivateEndpointListResultIterator, err error)
ListBySubscription(ctx context.Context) (result network.PrivateEndpointListResultPage, err error)
+ ListBySubscriptionComplete(ctx context.Context) (result network.PrivateEndpointListResultIterator, err error)
}
var _ PrivateEndpointsClientAPI = (*network.PrivateEndpointsClient)(nil)
@@ -286,7 +317,9 @@ var _ PrivateEndpointsClientAPI = (*network.PrivateEndpointsClient)(nil)
// AvailablePrivateEndpointTypesClientAPI contains the set of methods on the AvailablePrivateEndpointTypesClient type.
type AvailablePrivateEndpointTypesClientAPI interface {
List(ctx context.Context, location string) (result network.AvailablePrivateEndpointTypesResultPage, err error)
+ ListComplete(ctx context.Context, location string) (result network.AvailablePrivateEndpointTypesResultIterator, err error)
ListByResourceGroup(ctx context.Context, location string, resourceGroupName string) (result network.AvailablePrivateEndpointTypesResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, location string, resourceGroupName string) (result network.AvailablePrivateEndpointTypesResultIterator, err error)
}
var _ AvailablePrivateEndpointTypesClientAPI = (*network.AvailablePrivateEndpointTypesClient)(nil)
@@ -300,9 +333,13 @@ type PrivateLinkServicesClientAPI interface {
DeletePrivateEndpointConnection(ctx context.Context, resourceGroupName string, serviceName string, peConnectionName string) (result network.PrivateLinkServicesDeletePrivateEndpointConnectionFuture, err error)
Get(ctx context.Context, resourceGroupName string, serviceName string, expand string) (result network.PrivateLinkService, err error)
List(ctx context.Context, resourceGroupName string) (result network.PrivateLinkServiceListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.PrivateLinkServiceListResultIterator, err error)
ListAutoApprovedPrivateLinkServices(ctx context.Context, location string) (result network.AutoApprovedPrivateLinkServicesResultPage, err error)
+ ListAutoApprovedPrivateLinkServicesComplete(ctx context.Context, location string) (result network.AutoApprovedPrivateLinkServicesResultIterator, err error)
ListAutoApprovedPrivateLinkServicesByResourceGroup(ctx context.Context, location string, resourceGroupName string) (result network.AutoApprovedPrivateLinkServicesResultPage, err error)
+ ListAutoApprovedPrivateLinkServicesByResourceGroupComplete(ctx context.Context, location string, resourceGroupName string) (result network.AutoApprovedPrivateLinkServicesResultIterator, err error)
ListBySubscription(ctx context.Context) (result network.PrivateLinkServiceListResultPage, err error)
+ ListBySubscriptionComplete(ctx context.Context) (result network.PrivateLinkServiceListResultIterator, err error)
UpdatePrivateEndpointConnection(ctx context.Context, resourceGroupName string, serviceName string, peConnectionName string, parameters network.PrivateEndpointConnection) (result network.PrivateEndpointConnection, err error)
}
@@ -314,7 +351,9 @@ type LoadBalancersClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancersDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, expand string) (result network.LoadBalancer, err error)
List(ctx context.Context, resourceGroupName string) (result network.LoadBalancerListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.LoadBalancerListResultIterator, err error)
ListAll(ctx context.Context) (result network.LoadBalancerListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.LoadBalancerListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, loadBalancerName string, parameters network.TagsObject) (result network.LoadBalancersUpdateTagsFuture, err error)
}
@@ -324,6 +363,7 @@ var _ LoadBalancersClientAPI = (*network.LoadBalancersClient)(nil)
type LoadBalancerBackendAddressPoolsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, backendAddressPoolName string) (result network.BackendAddressPool, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerBackendAddressPoolListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerBackendAddressPoolListResultIterator, err error)
}
var _ LoadBalancerBackendAddressPoolsClientAPI = (*network.LoadBalancerBackendAddressPoolsClient)(nil)
@@ -332,6 +372,7 @@ var _ LoadBalancerBackendAddressPoolsClientAPI = (*network.LoadBalancerBackendAd
type LoadBalancerFrontendIPConfigurationsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, frontendIPConfigurationName string) (result network.FrontendIPConfiguration, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerFrontendIPConfigurationListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerFrontendIPConfigurationListResultIterator, err error)
}
var _ LoadBalancerFrontendIPConfigurationsClientAPI = (*network.LoadBalancerFrontendIPConfigurationsClient)(nil)
@@ -342,6 +383,7 @@ type InboundNatRulesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, loadBalancerName string, inboundNatRuleName string) (result network.InboundNatRulesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, inboundNatRuleName string, expand string) (result network.InboundNatRule, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.InboundNatRuleListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.InboundNatRuleListResultIterator, err error)
}
var _ InboundNatRulesClientAPI = (*network.InboundNatRulesClient)(nil)
@@ -350,6 +392,7 @@ var _ InboundNatRulesClientAPI = (*network.InboundNatRulesClient)(nil)
type LoadBalancerLoadBalancingRulesClientAPI interface {
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, loadBalancingRuleName string) (result network.LoadBalancingRule, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerLoadBalancingRuleListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerLoadBalancingRuleListResultIterator, err error)
}
var _ LoadBalancerLoadBalancingRulesClientAPI = (*network.LoadBalancerLoadBalancingRulesClient)(nil)
@@ -358,6 +401,7 @@ var _ LoadBalancerLoadBalancingRulesClientAPI = (*network.LoadBalancerLoadBalanc
type LoadBalancerOutboundRulesClientAPI interface {
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, outboundRuleName string) (result network.OutboundRule, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerOutboundRuleListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerOutboundRuleListResultIterator, err error)
}
var _ LoadBalancerOutboundRulesClientAPI = (*network.LoadBalancerOutboundRulesClient)(nil)
@@ -365,6 +409,7 @@ var _ LoadBalancerOutboundRulesClientAPI = (*network.LoadBalancerOutboundRulesCl
// LoadBalancerNetworkInterfacesClientAPI contains the set of methods on the LoadBalancerNetworkInterfacesClient type.
type LoadBalancerNetworkInterfacesClientAPI interface {
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.InterfaceListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.InterfaceListResultIterator, err error)
}
var _ LoadBalancerNetworkInterfacesClientAPI = (*network.LoadBalancerNetworkInterfacesClient)(nil)
@@ -373,6 +418,7 @@ var _ LoadBalancerNetworkInterfacesClientAPI = (*network.LoadBalancerNetworkInte
type LoadBalancerProbesClientAPI interface {
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, probeName string) (result network.Probe, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerProbeListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerProbeListResultIterator, err error)
}
var _ LoadBalancerProbesClientAPI = (*network.LoadBalancerProbesClient)(nil)
@@ -383,7 +429,9 @@ type NatGatewaysClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, natGatewayName string) (result network.NatGatewaysDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, natGatewayName string, expand string) (result network.NatGateway, err error)
List(ctx context.Context, resourceGroupName string) (result network.NatGatewayListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.NatGatewayListResultIterator, err error)
ListAll(ctx context.Context) (result network.NatGatewayListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.NatGatewayListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, natGatewayName string, parameters network.TagsObject) (result network.NatGateway, err error)
}
@@ -398,11 +446,16 @@ type InterfacesClientAPI interface {
GetVirtualMachineScaleSetIPConfiguration(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, IPConfigurationName string, expand string) (result network.InterfaceIPConfiguration, err error)
GetVirtualMachineScaleSetNetworkInterface(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, expand string) (result network.Interface, err error)
List(ctx context.Context, resourceGroupName string) (result network.InterfaceListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.InterfaceListResultIterator, err error)
ListAll(ctx context.Context) (result network.InterfaceListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.InterfaceListResultIterator, err error)
ListEffectiveNetworkSecurityGroups(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfacesListEffectiveNetworkSecurityGroupsFuture, err error)
ListVirtualMachineScaleSetIPConfigurations(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, expand string) (result network.InterfaceIPConfigurationListResultPage, err error)
+ ListVirtualMachineScaleSetIPConfigurationsComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, expand string) (result network.InterfaceIPConfigurationListResultIterator, err error)
ListVirtualMachineScaleSetNetworkInterfaces(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result network.InterfaceListResultPage, err error)
+ ListVirtualMachineScaleSetNetworkInterfacesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result network.InterfaceListResultIterator, err error)
ListVirtualMachineScaleSetVMNetworkInterfaces(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string) (result network.InterfaceListResultPage, err error)
+ ListVirtualMachineScaleSetVMNetworkInterfacesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string) (result network.InterfaceListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, networkInterfaceName string, parameters network.TagsObject) (result network.InterfacesUpdateTagsFuture, err error)
}
@@ -412,6 +465,7 @@ var _ InterfacesClientAPI = (*network.InterfacesClient)(nil)
type InterfaceIPConfigurationsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, networkInterfaceName string, IPConfigurationName string) (result network.InterfaceIPConfiguration, err error)
List(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceIPConfigurationListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceIPConfigurationListResultIterator, err error)
}
var _ InterfaceIPConfigurationsClientAPI = (*network.InterfaceIPConfigurationsClient)(nil)
@@ -419,6 +473,7 @@ var _ InterfaceIPConfigurationsClientAPI = (*network.InterfaceIPConfigurationsCl
// InterfaceLoadBalancersClientAPI contains the set of methods on the InterfaceLoadBalancersClient type.
type InterfaceLoadBalancersClientAPI interface {
List(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceLoadBalancerListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceLoadBalancerListResultIterator, err error)
}
var _ InterfaceLoadBalancersClientAPI = (*network.InterfaceLoadBalancersClient)(nil)
@@ -429,6 +484,7 @@ type InterfaceTapConfigurationsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, networkInterfaceName string, tapConfigurationName string) (result network.InterfaceTapConfigurationsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, networkInterfaceName string, tapConfigurationName string) (result network.InterfaceTapConfiguration, err error)
List(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceTapConfigurationListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceTapConfigurationListResultIterator, err error)
}
var _ InterfaceTapConfigurationsClientAPI = (*network.InterfaceTapConfigurationsClient)(nil)
@@ -439,7 +495,9 @@ type ProfilesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, networkProfileName string) (result network.ProfilesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, networkProfileName string, expand string) (result network.Profile, err error)
List(ctx context.Context, resourceGroupName string) (result network.ProfileListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.ProfileListResultIterator, err error)
ListAll(ctx context.Context) (result network.ProfileListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.ProfileListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, networkProfileName string, parameters network.TagsObject) (result network.Profile, err error)
}
@@ -451,7 +509,9 @@ type SecurityGroupsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityGroupsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, expand string) (result network.SecurityGroup, err error)
List(ctx context.Context, resourceGroupName string) (result network.SecurityGroupListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.SecurityGroupListResultIterator, err error)
ListAll(ctx context.Context) (result network.SecurityGroupListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.SecurityGroupListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, parameters network.TagsObject) (result network.SecurityGroupsUpdateTagsFuture, err error)
}
@@ -463,6 +523,7 @@ type SecurityRulesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, securityRuleName string) (result network.SecurityRulesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, securityRuleName string) (result network.SecurityRule, err error)
List(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityRuleListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityRuleListResultIterator, err error)
}
var _ SecurityRulesClientAPI = (*network.SecurityRulesClient)(nil)
@@ -471,6 +532,7 @@ var _ SecurityRulesClientAPI = (*network.SecurityRulesClient)(nil)
type DefaultSecurityRulesClientAPI interface {
Get(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, defaultSecurityRuleName string) (result network.SecurityRule, err error)
List(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityRuleListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityRuleListResultIterator, err error)
}
var _ DefaultSecurityRulesClientAPI = (*network.DefaultSecurityRulesClient)(nil)
@@ -527,6 +589,7 @@ var _ ConnectionMonitorsClientAPI = (*network.ConnectionMonitorsClient)(nil)
// OperationsClientAPI contains the set of methods on the OperationsClient type.
type OperationsClientAPI interface {
List(ctx context.Context) (result network.OperationListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.OperationListResultIterator, err error)
}
var _ OperationsClientAPI = (*network.OperationsClient)(nil)
@@ -538,9 +601,13 @@ type PublicIPAddressesClientAPI interface {
Get(ctx context.Context, resourceGroupName string, publicIPAddressName string, expand string) (result network.PublicIPAddress, err error)
GetVirtualMachineScaleSetPublicIPAddress(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, IPConfigurationName string, publicIPAddressName string, expand string) (result network.PublicIPAddress, err error)
List(ctx context.Context, resourceGroupName string) (result network.PublicIPAddressListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.PublicIPAddressListResultIterator, err error)
ListAll(ctx context.Context) (result network.PublicIPAddressListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.PublicIPAddressListResultIterator, err error)
ListVirtualMachineScaleSetPublicIPAddresses(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result network.PublicIPAddressListResultPage, err error)
+ ListVirtualMachineScaleSetPublicIPAddressesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result network.PublicIPAddressListResultIterator, err error)
ListVirtualMachineScaleSetVMPublicIPAddresses(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, IPConfigurationName string) (result network.PublicIPAddressListResultPage, err error)
+ ListVirtualMachineScaleSetVMPublicIPAddressesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, IPConfigurationName string) (result network.PublicIPAddressListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, publicIPAddressName string, parameters network.TagsObject) (result network.PublicIPAddressesUpdateTagsFuture, err error)
}
@@ -552,7 +619,9 @@ type PublicIPPrefixesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, publicIPPrefixName string) (result network.PublicIPPrefixesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, publicIPPrefixName string, expand string) (result network.PublicIPPrefix, err error)
List(ctx context.Context, resourceGroupName string) (result network.PublicIPPrefixListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.PublicIPPrefixListResultIterator, err error)
ListAll(ctx context.Context) (result network.PublicIPPrefixListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.PublicIPPrefixListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, publicIPPrefixName string, parameters network.TagsObject) (result network.PublicIPPrefixesUpdateTagsFuture, err error)
}
@@ -564,7 +633,9 @@ type RouteFiltersClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, routeFilterName string) (result network.RouteFiltersDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, routeFilterName string, expand string) (result network.RouteFilter, err error)
List(ctx context.Context) (result network.RouteFilterListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.RouteFilterListResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.RouteFilterListResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.RouteFilterListResultIterator, err error)
Update(ctx context.Context, resourceGroupName string, routeFilterName string, routeFilterParameters network.PatchRouteFilter) (result network.RouteFiltersUpdateFuture, err error)
}
@@ -576,6 +647,7 @@ type RouteFilterRulesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, routeFilterName string, ruleName string) (result network.RouteFilterRulesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, routeFilterName string, ruleName string) (result network.RouteFilterRule, err error)
ListByRouteFilter(ctx context.Context, resourceGroupName string, routeFilterName string) (result network.RouteFilterRuleListResultPage, err error)
+ ListByRouteFilterComplete(ctx context.Context, resourceGroupName string, routeFilterName string) (result network.RouteFilterRuleListResultIterator, err error)
Update(ctx context.Context, resourceGroupName string, routeFilterName string, ruleName string, routeFilterRuleParameters network.PatchRouteFilterRule) (result network.RouteFilterRulesUpdateFuture, err error)
}
@@ -587,7 +659,9 @@ type RouteTablesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, routeTableName string) (result network.RouteTablesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, routeTableName string, expand string) (result network.RouteTable, err error)
List(ctx context.Context, resourceGroupName string) (result network.RouteTableListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.RouteTableListResultIterator, err error)
ListAll(ctx context.Context) (result network.RouteTableListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.RouteTableListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, routeTableName string, parameters network.TagsObject) (result network.RouteTablesUpdateTagsFuture, err error)
}
@@ -599,6 +673,7 @@ type RoutesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, routeTableName string, routeName string) (result network.RoutesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, routeTableName string, routeName string) (result network.Route, err error)
List(ctx context.Context, resourceGroupName string, routeTableName string) (result network.RouteListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, routeTableName string) (result network.RouteListResultIterator, err error)
}
var _ RoutesClientAPI = (*network.RoutesClient)(nil)
@@ -606,6 +681,7 @@ var _ RoutesClientAPI = (*network.RoutesClient)(nil)
// BgpServiceCommunitiesClientAPI contains the set of methods on the BgpServiceCommunitiesClient type.
type BgpServiceCommunitiesClientAPI interface {
List(ctx context.Context) (result network.BgpServiceCommunityListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.BgpServiceCommunityListResultIterator, err error)
}
var _ BgpServiceCommunitiesClientAPI = (*network.BgpServiceCommunitiesClient)(nil)
@@ -616,7 +692,9 @@ type ServiceEndpointPoliciesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string) (result network.ServiceEndpointPoliciesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string, expand string) (result network.ServiceEndpointPolicy, err error)
List(ctx context.Context) (result network.ServiceEndpointPolicyListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ServiceEndpointPolicyListResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ServiceEndpointPolicyListResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ServiceEndpointPolicyListResultIterator, err error)
Update(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string, parameters network.TagsObject) (result network.ServiceEndpointPoliciesUpdateFuture, err error)
}
@@ -628,6 +706,7 @@ type ServiceEndpointPolicyDefinitionsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string, serviceEndpointPolicyDefinitionName string) (result network.ServiceEndpointPolicyDefinitionsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string, serviceEndpointPolicyDefinitionName string) (result network.ServiceEndpointPolicyDefinition, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string) (result network.ServiceEndpointPolicyDefinitionListResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string) (result network.ServiceEndpointPolicyDefinitionListResultIterator, err error)
}
var _ ServiceEndpointPolicyDefinitionsClientAPI = (*network.ServiceEndpointPolicyDefinitionsClient)(nil)
@@ -642,6 +721,7 @@ var _ ServiceTagsClientAPI = (*network.ServiceTagsClient)(nil)
// UsagesClientAPI contains the set of methods on the UsagesClient type.
type UsagesClientAPI interface {
List(ctx context.Context, location string) (result network.UsagesListResultPage, err error)
+ ListComplete(ctx context.Context, location string) (result network.UsagesListResultIterator, err error)
}
var _ UsagesClientAPI = (*network.UsagesClient)(nil)
@@ -653,8 +733,11 @@ type VirtualNetworksClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworksDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualNetworkName string, expand string) (result network.VirtualNetwork, err error)
List(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkListResultIterator, err error)
ListAll(ctx context.Context) (result network.VirtualNetworkListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.VirtualNetworkListResultIterator, err error)
ListUsage(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworkListUsageResultPage, err error)
+ ListUsageComplete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworkListUsageResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, virtualNetworkName string, parameters network.TagsObject) (result network.VirtualNetworksUpdateTagsFuture, err error)
}
@@ -666,6 +749,7 @@ type SubnetsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualNetworkName string, subnetName string) (result network.SubnetsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualNetworkName string, subnetName string, expand string) (result network.Subnet, err error)
List(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.SubnetListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.SubnetListResultIterator, err error)
PrepareNetworkPolicies(ctx context.Context, resourceGroupName string, virtualNetworkName string, subnetName string, prepareNetworkPoliciesRequestParameters network.PrepareNetworkPoliciesRequest) (result network.SubnetsPrepareNetworkPoliciesFuture, err error)
}
@@ -691,6 +775,7 @@ type VirtualNetworkPeeringsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualNetworkName string, virtualNetworkPeeringName string) (result network.VirtualNetworkPeeringsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualNetworkName string, virtualNetworkPeeringName string) (result network.VirtualNetworkPeering, err error)
List(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworkPeeringListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworkPeeringListResultIterator, err error)
}
var _ VirtualNetworkPeeringsClientAPI = (*network.VirtualNetworkPeeringsClient)(nil)
@@ -709,7 +794,9 @@ type VirtualNetworkGatewaysClientAPI interface {
GetVpnclientIpsecParameters(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGatewaysGetVpnclientIpsecParametersFuture, err error)
GetVpnProfilePackageURL(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGatewaysGetVpnProfilePackageURLFuture, err error)
List(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayListResultIterator, err error)
ListConnections(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGatewayListConnectionsResultPage, err error)
+ ListConnectionsComplete(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGatewayListConnectionsResultIterator, err error)
Reset(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, gatewayVip string) (result network.VirtualNetworkGatewaysResetFuture, err error)
ResetVpnClientSharedKey(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGatewaysResetVpnClientSharedKeyFuture, err error)
SetVpnclientIpsecParameters(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, vpnclientIpsecParams network.VpnClientIPsecParameters) (result network.VirtualNetworkGatewaysSetVpnclientIpsecParametersFuture, err error)
@@ -727,6 +814,7 @@ type VirtualNetworkGatewayConnectionsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string) (result network.VirtualNetworkGatewayConnection, err error)
GetSharedKey(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string) (result network.ConnectionSharedKey, err error)
List(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayConnectionListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayConnectionListResultIterator, err error)
ResetSharedKey(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string, parameters network.ConnectionResetSharedKey) (result network.VirtualNetworkGatewayConnectionsResetSharedKeyFuture, err error)
SetSharedKey(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string, parameters network.ConnectionSharedKey) (result network.VirtualNetworkGatewayConnectionsSetSharedKeyFuture, err error)
UpdateTags(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string, parameters network.TagsObject) (result network.VirtualNetworkGatewayConnectionsUpdateTagsFuture, err error)
@@ -740,6 +828,7 @@ type LocalNetworkGatewaysClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, localNetworkGatewayName string) (result network.LocalNetworkGatewaysDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, localNetworkGatewayName string) (result network.LocalNetworkGateway, err error)
List(ctx context.Context, resourceGroupName string) (result network.LocalNetworkGatewayListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.LocalNetworkGatewayListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, localNetworkGatewayName string, parameters network.TagsObject) (result network.LocalNetworkGatewaysUpdateTagsFuture, err error)
}
@@ -751,7 +840,9 @@ type VirtualNetworkTapsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, tapName string) (result network.VirtualNetworkTapsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, tapName string) (result network.VirtualNetworkTap, err error)
ListAll(ctx context.Context) (result network.VirtualNetworkTapListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.VirtualNetworkTapListResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkTapListResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkTapListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, tapName string, tapParameters network.TagsObject) (result network.VirtualNetworkTapsUpdateTagsFuture, err error)
}
@@ -763,7 +854,9 @@ type VirtualWansClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualWANName string) (result network.VirtualWansDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualWANName string) (result network.VirtualWAN, err error)
List(ctx context.Context) (result network.ListVirtualWANsResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ListVirtualWANsResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ListVirtualWANsResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ListVirtualWANsResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, virtualWANName string, wANParameters network.TagsObject) (result network.VirtualWansUpdateTagsFuture, err error)
}
@@ -775,7 +868,9 @@ type VpnSitesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, vpnSiteName string) (result network.VpnSitesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, vpnSiteName string) (result network.VpnSite, err error)
List(ctx context.Context) (result network.ListVpnSitesResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ListVpnSitesResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ListVpnSitesResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ListVpnSitesResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, vpnSiteName string, vpnSiteParameters network.TagsObject) (result network.VpnSitesUpdateTagsFuture, err error)
}
@@ -794,7 +889,9 @@ type VirtualHubsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualHubName string) (result network.VirtualHubsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualHubName string) (result network.VirtualHub, err error)
List(ctx context.Context) (result network.ListVirtualHubsResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ListVirtualHubsResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ListVirtualHubsResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ListVirtualHubsResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, virtualHubName string, virtualHubParameters network.TagsObject) (result network.VirtualHubsUpdateTagsFuture, err error)
}
@@ -804,6 +901,7 @@ var _ VirtualHubsClientAPI = (*network.VirtualHubsClient)(nil)
type HubVirtualNetworkConnectionsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, virtualHubName string, connectionName string) (result network.HubVirtualNetworkConnection, err error)
List(ctx context.Context, resourceGroupName string, virtualHubName string) (result network.ListHubVirtualNetworkConnectionsResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, virtualHubName string) (result network.ListHubVirtualNetworkConnectionsResultIterator, err error)
}
var _ HubVirtualNetworkConnectionsClientAPI = (*network.HubVirtualNetworkConnectionsClient)(nil)
@@ -814,7 +912,9 @@ type VpnGatewaysClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, gatewayName string) (result network.VpnGatewaysDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, gatewayName string) (result network.VpnGateway, err error)
List(ctx context.Context) (result network.ListVpnGatewaysResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ListVpnGatewaysResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ListVpnGatewaysResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ListVpnGatewaysResultIterator, err error)
Reset(ctx context.Context, resourceGroupName string, gatewayName string) (result network.VpnGatewaysResetFuture, err error)
UpdateTags(ctx context.Context, resourceGroupName string, gatewayName string, vpnGatewayParameters network.TagsObject) (result network.VpnGatewaysUpdateTagsFuture, err error)
}
@@ -827,6 +927,7 @@ type VpnConnectionsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, gatewayName string, connectionName string) (result network.VpnConnectionsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, gatewayName string, connectionName string) (result network.VpnConnection, err error)
ListByVpnGateway(ctx context.Context, resourceGroupName string, gatewayName string) (result network.ListVpnConnectionsResultPage, err error)
+ ListByVpnGatewayComplete(ctx context.Context, resourceGroupName string, gatewayName string) (result network.ListVpnConnectionsResultIterator, err error)
}
var _ VpnConnectionsClientAPI = (*network.VpnConnectionsClient)(nil)
@@ -837,6 +938,7 @@ type P2sVpnServerConfigurationsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualWanName string, p2SVpnServerConfigurationName string) (result network.P2sVpnServerConfigurationsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualWanName string, p2SVpnServerConfigurationName string) (result network.P2SVpnServerConfiguration, err error)
ListByVirtualWan(ctx context.Context, resourceGroupName string, virtualWanName string) (result network.ListP2SVpnServerConfigurationsResultPage, err error)
+ ListByVirtualWanComplete(ctx context.Context, resourceGroupName string, virtualWanName string) (result network.ListP2SVpnServerConfigurationsResultIterator, err error)
}
var _ P2sVpnServerConfigurationsClientAPI = (*network.P2sVpnServerConfigurationsClient)(nil)
@@ -849,7 +951,9 @@ type P2sVpnGatewaysClientAPI interface {
Get(ctx context.Context, resourceGroupName string, gatewayName string) (result network.P2SVpnGateway, err error)
GetP2sVpnConnectionHealth(ctx context.Context, resourceGroupName string, gatewayName string) (result network.P2sVpnGatewaysGetP2sVpnConnectionHealthFuture, err error)
List(ctx context.Context) (result network.ListP2SVpnGatewaysResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ListP2SVpnGatewaysResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ListP2SVpnGatewaysResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ListP2SVpnGatewaysResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, gatewayName string, p2SVpnGatewayParameters network.TagsObject) (result network.P2sVpnGatewaysUpdateTagsFuture, err error)
}
@@ -861,7 +965,9 @@ type WebApplicationFirewallPoliciesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, policyName string) (result network.WebApplicationFirewallPoliciesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, policyName string) (result network.WebApplicationFirewallPolicy, err error)
List(ctx context.Context, resourceGroupName string) (result network.WebApplicationFirewallPolicyListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.WebApplicationFirewallPolicyListResultIterator, err error)
ListAll(ctx context.Context) (result network.WebApplicationFirewallPolicyListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.WebApplicationFirewallPolicyListResultIterator, err error)
}
var _ WebApplicationFirewallPoliciesClientAPI = (*network.WebApplicationFirewallPoliciesClient)(nil)
diff --git a/services/network/mgmt/2019-04-01/network/operations.go b/services/network/mgmt/2019-04-01/network/operations.go
index 8a81faa33210..0cc5bc9bd3a7 100644
--- a/services/network/mgmt/2019-04-01/network/operations.go
+++ b/services/network/mgmt/2019-04-01/network/operations.go
@@ -35,7 +35,8 @@ func NewOperationsClient(subscriptionID string) OperationsClient {
return NewOperationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewOperationsClientWithBaseURI creates an instance of the OperationsClient client.
+// NewOperationsClientWithBaseURI creates an instance of the OperationsClient client using a custom endpoint. Use this
+// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient {
return OperationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-04-01/network/p2svpngateways.go b/services/network/mgmt/2019-04-01/network/p2svpngateways.go
index 262199d7c4c0..098e1e31eca0 100644
--- a/services/network/mgmt/2019-04-01/network/p2svpngateways.go
+++ b/services/network/mgmt/2019-04-01/network/p2svpngateways.go
@@ -35,7 +35,8 @@ func NewP2sVpnGatewaysClient(subscriptionID string) P2sVpnGatewaysClient {
return NewP2sVpnGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewP2sVpnGatewaysClientWithBaseURI creates an instance of the P2sVpnGatewaysClient client.
+// NewP2sVpnGatewaysClientWithBaseURI creates an instance of the P2sVpnGatewaysClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewP2sVpnGatewaysClientWithBaseURI(baseURI string, subscriptionID string) P2sVpnGatewaysClient {
return P2sVpnGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-04-01/network/p2svpnserverconfigurations.go b/services/network/mgmt/2019-04-01/network/p2svpnserverconfigurations.go
index c770d7c1e69f..9675054615eb 100644
--- a/services/network/mgmt/2019-04-01/network/p2svpnserverconfigurations.go
+++ b/services/network/mgmt/2019-04-01/network/p2svpnserverconfigurations.go
@@ -35,7 +35,9 @@ func NewP2sVpnServerConfigurationsClient(subscriptionID string) P2sVpnServerConf
return NewP2sVpnServerConfigurationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewP2sVpnServerConfigurationsClientWithBaseURI creates an instance of the P2sVpnServerConfigurationsClient client.
+// NewP2sVpnServerConfigurationsClientWithBaseURI creates an instance of the P2sVpnServerConfigurationsClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewP2sVpnServerConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) P2sVpnServerConfigurationsClient {
return P2sVpnServerConfigurationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-04-01/network/packetcaptures.go b/services/network/mgmt/2019-04-01/network/packetcaptures.go
index ff9b8a98d105..927da8777af0 100644
--- a/services/network/mgmt/2019-04-01/network/packetcaptures.go
+++ b/services/network/mgmt/2019-04-01/network/packetcaptures.go
@@ -36,7 +36,8 @@ func NewPacketCapturesClient(subscriptionID string) PacketCapturesClient {
return NewPacketCapturesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewPacketCapturesClientWithBaseURI creates an instance of the PacketCapturesClient client.
+// NewPacketCapturesClientWithBaseURI creates an instance of the PacketCapturesClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewPacketCapturesClientWithBaseURI(baseURI string, subscriptionID string) PacketCapturesClient {
return PacketCapturesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-04-01/network/peerexpressroutecircuitconnections.go b/services/network/mgmt/2019-04-01/network/peerexpressroutecircuitconnections.go
index 1068950af8d2..81f66add604f 100644
--- a/services/network/mgmt/2019-04-01/network/peerexpressroutecircuitconnections.go
+++ b/services/network/mgmt/2019-04-01/network/peerexpressroutecircuitconnections.go
@@ -37,7 +37,8 @@ func NewPeerExpressRouteCircuitConnectionsClient(subscriptionID string) PeerExpr
}
// NewPeerExpressRouteCircuitConnectionsClientWithBaseURI creates an instance of the
-// PeerExpressRouteCircuitConnectionsClient client.
+// PeerExpressRouteCircuitConnectionsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewPeerExpressRouteCircuitConnectionsClientWithBaseURI(baseURI string, subscriptionID string) PeerExpressRouteCircuitConnectionsClient {
return PeerExpressRouteCircuitConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-04-01/network/privateendpoints.go b/services/network/mgmt/2019-04-01/network/privateendpoints.go
index 6a5d5aed1857..7105a539ecef 100644
--- a/services/network/mgmt/2019-04-01/network/privateendpoints.go
+++ b/services/network/mgmt/2019-04-01/network/privateendpoints.go
@@ -35,7 +35,9 @@ func NewPrivateEndpointsClient(subscriptionID string) PrivateEndpointsClient {
return NewPrivateEndpointsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewPrivateEndpointsClientWithBaseURI creates an instance of the PrivateEndpointsClient client.
+// NewPrivateEndpointsClientWithBaseURI creates an instance of the PrivateEndpointsClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewPrivateEndpointsClientWithBaseURI(baseURI string, subscriptionID string) PrivateEndpointsClient {
return PrivateEndpointsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-04-01/network/privatelinkservices.go b/services/network/mgmt/2019-04-01/network/privatelinkservices.go
index 22603fa59204..b2491a5c0c16 100644
--- a/services/network/mgmt/2019-04-01/network/privatelinkservices.go
+++ b/services/network/mgmt/2019-04-01/network/privatelinkservices.go
@@ -35,7 +35,9 @@ func NewPrivateLinkServicesClient(subscriptionID string) PrivateLinkServicesClie
return NewPrivateLinkServicesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewPrivateLinkServicesClientWithBaseURI creates an instance of the PrivateLinkServicesClient client.
+// NewPrivateLinkServicesClientWithBaseURI creates an instance of the PrivateLinkServicesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewPrivateLinkServicesClientWithBaseURI(baseURI string, subscriptionID string) PrivateLinkServicesClient {
return PrivateLinkServicesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-04-01/network/profiles.go b/services/network/mgmt/2019-04-01/network/profiles.go
index e8288d208680..566061bed9a4 100644
--- a/services/network/mgmt/2019-04-01/network/profiles.go
+++ b/services/network/mgmt/2019-04-01/network/profiles.go
@@ -35,7 +35,8 @@ func NewProfilesClient(subscriptionID string) ProfilesClient {
return NewProfilesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewProfilesClientWithBaseURI creates an instance of the ProfilesClient client.
+// NewProfilesClientWithBaseURI creates an instance of the ProfilesClient client using a custom endpoint. Use this
+// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewProfilesClientWithBaseURI(baseURI string, subscriptionID string) ProfilesClient {
return ProfilesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-04-01/network/publicipaddresses.go b/services/network/mgmt/2019-04-01/network/publicipaddresses.go
index bddf1daf1871..aa818f4a8187 100644
--- a/services/network/mgmt/2019-04-01/network/publicipaddresses.go
+++ b/services/network/mgmt/2019-04-01/network/publicipaddresses.go
@@ -36,7 +36,9 @@ func NewPublicIPAddressesClient(subscriptionID string) PublicIPAddressesClient {
return NewPublicIPAddressesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewPublicIPAddressesClientWithBaseURI creates an instance of the PublicIPAddressesClient client.
+// NewPublicIPAddressesClientWithBaseURI creates an instance of the PublicIPAddressesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewPublicIPAddressesClientWithBaseURI(baseURI string, subscriptionID string) PublicIPAddressesClient {
return PublicIPAddressesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-04-01/network/publicipprefixes.go b/services/network/mgmt/2019-04-01/network/publicipprefixes.go
index cc99fb1bf093..bc335269d0e7 100644
--- a/services/network/mgmt/2019-04-01/network/publicipprefixes.go
+++ b/services/network/mgmt/2019-04-01/network/publicipprefixes.go
@@ -35,7 +35,9 @@ func NewPublicIPPrefixesClient(subscriptionID string) PublicIPPrefixesClient {
return NewPublicIPPrefixesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewPublicIPPrefixesClientWithBaseURI creates an instance of the PublicIPPrefixesClient client.
+// NewPublicIPPrefixesClientWithBaseURI creates an instance of the PublicIPPrefixesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewPublicIPPrefixesClientWithBaseURI(baseURI string, subscriptionID string) PublicIPPrefixesClient {
return PublicIPPrefixesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-04-01/network/resourcenavigationlinks.go b/services/network/mgmt/2019-04-01/network/resourcenavigationlinks.go
index 2792794e488f..84a91cf6d831 100644
--- a/services/network/mgmt/2019-04-01/network/resourcenavigationlinks.go
+++ b/services/network/mgmt/2019-04-01/network/resourcenavigationlinks.go
@@ -35,7 +35,9 @@ func NewResourceNavigationLinksClient(subscriptionID string) ResourceNavigationL
return NewResourceNavigationLinksClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewResourceNavigationLinksClientWithBaseURI creates an instance of the ResourceNavigationLinksClient client.
+// NewResourceNavigationLinksClientWithBaseURI creates an instance of the ResourceNavigationLinksClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewResourceNavigationLinksClientWithBaseURI(baseURI string, subscriptionID string) ResourceNavigationLinksClient {
return ResourceNavigationLinksClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-04-01/network/routefilterrules.go b/services/network/mgmt/2019-04-01/network/routefilterrules.go
index 091f0bcb66d2..484b355eb579 100644
--- a/services/network/mgmt/2019-04-01/network/routefilterrules.go
+++ b/services/network/mgmt/2019-04-01/network/routefilterrules.go
@@ -36,7 +36,9 @@ func NewRouteFilterRulesClient(subscriptionID string) RouteFilterRulesClient {
return NewRouteFilterRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewRouteFilterRulesClientWithBaseURI creates an instance of the RouteFilterRulesClient client.
+// NewRouteFilterRulesClientWithBaseURI creates an instance of the RouteFilterRulesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewRouteFilterRulesClientWithBaseURI(baseURI string, subscriptionID string) RouteFilterRulesClient {
return RouteFilterRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-04-01/network/routefilters.go b/services/network/mgmt/2019-04-01/network/routefilters.go
index 673acfa97af4..3aed82b53dcb 100644
--- a/services/network/mgmt/2019-04-01/network/routefilters.go
+++ b/services/network/mgmt/2019-04-01/network/routefilters.go
@@ -35,7 +35,8 @@ func NewRouteFiltersClient(subscriptionID string) RouteFiltersClient {
return NewRouteFiltersClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewRouteFiltersClientWithBaseURI creates an instance of the RouteFiltersClient client.
+// NewRouteFiltersClientWithBaseURI creates an instance of the RouteFiltersClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewRouteFiltersClientWithBaseURI(baseURI string, subscriptionID string) RouteFiltersClient {
return RouteFiltersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-04-01/network/routes.go b/services/network/mgmt/2019-04-01/network/routes.go
index 56fcfb1b5dfa..7c874da4fa01 100644
--- a/services/network/mgmt/2019-04-01/network/routes.go
+++ b/services/network/mgmt/2019-04-01/network/routes.go
@@ -35,7 +35,8 @@ func NewRoutesClient(subscriptionID string) RoutesClient {
return NewRoutesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewRoutesClientWithBaseURI creates an instance of the RoutesClient client.
+// NewRoutesClientWithBaseURI creates an instance of the RoutesClient client using a custom endpoint. Use this when
+// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewRoutesClientWithBaseURI(baseURI string, subscriptionID string) RoutesClient {
return RoutesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-04-01/network/routetables.go b/services/network/mgmt/2019-04-01/network/routetables.go
index a251111a7a3a..67852b37a408 100644
--- a/services/network/mgmt/2019-04-01/network/routetables.go
+++ b/services/network/mgmt/2019-04-01/network/routetables.go
@@ -35,7 +35,8 @@ func NewRouteTablesClient(subscriptionID string) RouteTablesClient {
return NewRouteTablesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewRouteTablesClientWithBaseURI creates an instance of the RouteTablesClient client.
+// NewRouteTablesClientWithBaseURI creates an instance of the RouteTablesClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewRouteTablesClientWithBaseURI(baseURI string, subscriptionID string) RouteTablesClient {
return RouteTablesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-04-01/network/securitygroups.go b/services/network/mgmt/2019-04-01/network/securitygroups.go
index 80f2ed053091..ae4fbe7c7520 100644
--- a/services/network/mgmt/2019-04-01/network/securitygroups.go
+++ b/services/network/mgmt/2019-04-01/network/securitygroups.go
@@ -35,7 +35,8 @@ func NewSecurityGroupsClient(subscriptionID string) SecurityGroupsClient {
return NewSecurityGroupsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewSecurityGroupsClientWithBaseURI creates an instance of the SecurityGroupsClient client.
+// NewSecurityGroupsClientWithBaseURI creates an instance of the SecurityGroupsClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewSecurityGroupsClientWithBaseURI(baseURI string, subscriptionID string) SecurityGroupsClient {
return SecurityGroupsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-04-01/network/securityrules.go b/services/network/mgmt/2019-04-01/network/securityrules.go
index 837898de459c..a78ac7fd39fa 100644
--- a/services/network/mgmt/2019-04-01/network/securityrules.go
+++ b/services/network/mgmt/2019-04-01/network/securityrules.go
@@ -35,7 +35,8 @@ func NewSecurityRulesClient(subscriptionID string) SecurityRulesClient {
return NewSecurityRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewSecurityRulesClientWithBaseURI creates an instance of the SecurityRulesClient client.
+// NewSecurityRulesClientWithBaseURI creates an instance of the SecurityRulesClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewSecurityRulesClientWithBaseURI(baseURI string, subscriptionID string) SecurityRulesClient {
return SecurityRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-04-01/network/serviceassociationlinks.go b/services/network/mgmt/2019-04-01/network/serviceassociationlinks.go
index 80a7e67defcf..fc8faf22447d 100644
--- a/services/network/mgmt/2019-04-01/network/serviceassociationlinks.go
+++ b/services/network/mgmt/2019-04-01/network/serviceassociationlinks.go
@@ -35,7 +35,9 @@ func NewServiceAssociationLinksClient(subscriptionID string) ServiceAssociationL
return NewServiceAssociationLinksClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewServiceAssociationLinksClientWithBaseURI creates an instance of the ServiceAssociationLinksClient client.
+// NewServiceAssociationLinksClientWithBaseURI creates an instance of the ServiceAssociationLinksClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewServiceAssociationLinksClientWithBaseURI(baseURI string, subscriptionID string) ServiceAssociationLinksClient {
return ServiceAssociationLinksClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-04-01/network/serviceendpointpolicies.go b/services/network/mgmt/2019-04-01/network/serviceendpointpolicies.go
index e85867121d5c..f44b70beb843 100644
--- a/services/network/mgmt/2019-04-01/network/serviceendpointpolicies.go
+++ b/services/network/mgmt/2019-04-01/network/serviceendpointpolicies.go
@@ -35,7 +35,9 @@ func NewServiceEndpointPoliciesClient(subscriptionID string) ServiceEndpointPoli
return NewServiceEndpointPoliciesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewServiceEndpointPoliciesClientWithBaseURI creates an instance of the ServiceEndpointPoliciesClient client.
+// NewServiceEndpointPoliciesClientWithBaseURI creates an instance of the ServiceEndpointPoliciesClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewServiceEndpointPoliciesClientWithBaseURI(baseURI string, subscriptionID string) ServiceEndpointPoliciesClient {
return ServiceEndpointPoliciesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-04-01/network/serviceendpointpolicydefinitions.go b/services/network/mgmt/2019-04-01/network/serviceendpointpolicydefinitions.go
index 9b9c231572ae..9f0969d852db 100644
--- a/services/network/mgmt/2019-04-01/network/serviceendpointpolicydefinitions.go
+++ b/services/network/mgmt/2019-04-01/network/serviceendpointpolicydefinitions.go
@@ -36,7 +36,8 @@ func NewServiceEndpointPolicyDefinitionsClient(subscriptionID string) ServiceEnd
}
// NewServiceEndpointPolicyDefinitionsClientWithBaseURI creates an instance of the
-// ServiceEndpointPolicyDefinitionsClient client.
+// ServiceEndpointPolicyDefinitionsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewServiceEndpointPolicyDefinitionsClientWithBaseURI(baseURI string, subscriptionID string) ServiceEndpointPolicyDefinitionsClient {
return ServiceEndpointPolicyDefinitionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-04-01/network/servicetags.go b/services/network/mgmt/2019-04-01/network/servicetags.go
index 13f39ba07e90..f5aa8b1f7cb9 100644
--- a/services/network/mgmt/2019-04-01/network/servicetags.go
+++ b/services/network/mgmt/2019-04-01/network/servicetags.go
@@ -35,7 +35,8 @@ func NewServiceTagsClient(subscriptionID string) ServiceTagsClient {
return NewServiceTagsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewServiceTagsClientWithBaseURI creates an instance of the ServiceTagsClient client.
+// NewServiceTagsClientWithBaseURI creates an instance of the ServiceTagsClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewServiceTagsClientWithBaseURI(baseURI string, subscriptionID string) ServiceTagsClient {
return ServiceTagsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-04-01/network/subnets.go b/services/network/mgmt/2019-04-01/network/subnets.go
index 8fb3f007ca70..b33b389e25c8 100644
--- a/services/network/mgmt/2019-04-01/network/subnets.go
+++ b/services/network/mgmt/2019-04-01/network/subnets.go
@@ -35,7 +35,8 @@ func NewSubnetsClient(subscriptionID string) SubnetsClient {
return NewSubnetsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewSubnetsClientWithBaseURI creates an instance of the SubnetsClient client.
+// NewSubnetsClientWithBaseURI creates an instance of the SubnetsClient client using a custom endpoint. Use this when
+// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewSubnetsClientWithBaseURI(baseURI string, subscriptionID string) SubnetsClient {
return SubnetsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-04-01/network/usages.go b/services/network/mgmt/2019-04-01/network/usages.go
index ccea6534792c..f52265460e42 100644
--- a/services/network/mgmt/2019-04-01/network/usages.go
+++ b/services/network/mgmt/2019-04-01/network/usages.go
@@ -36,7 +36,8 @@ func NewUsagesClient(subscriptionID string) UsagesClient {
return NewUsagesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewUsagesClientWithBaseURI creates an instance of the UsagesClient client.
+// NewUsagesClientWithBaseURI creates an instance of the UsagesClient client using a custom endpoint. Use this when
+// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewUsagesClientWithBaseURI(baseURI string, subscriptionID string) UsagesClient {
return UsagesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-04-01/network/virtualhubs.go b/services/network/mgmt/2019-04-01/network/virtualhubs.go
index 9904af1d1b85..858084c2ccab 100644
--- a/services/network/mgmt/2019-04-01/network/virtualhubs.go
+++ b/services/network/mgmt/2019-04-01/network/virtualhubs.go
@@ -35,7 +35,8 @@ func NewVirtualHubsClient(subscriptionID string) VirtualHubsClient {
return NewVirtualHubsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualHubsClientWithBaseURI creates an instance of the VirtualHubsClient client.
+// NewVirtualHubsClientWithBaseURI creates an instance of the VirtualHubsClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVirtualHubsClientWithBaseURI(baseURI string, subscriptionID string) VirtualHubsClient {
return VirtualHubsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-04-01/network/virtualnetworkgatewayconnections.go b/services/network/mgmt/2019-04-01/network/virtualnetworkgatewayconnections.go
index 609c49d2152d..4dca3cba6d06 100644
--- a/services/network/mgmt/2019-04-01/network/virtualnetworkgatewayconnections.go
+++ b/services/network/mgmt/2019-04-01/network/virtualnetworkgatewayconnections.go
@@ -37,7 +37,8 @@ func NewVirtualNetworkGatewayConnectionsClient(subscriptionID string) VirtualNet
}
// NewVirtualNetworkGatewayConnectionsClientWithBaseURI creates an instance of the
-// VirtualNetworkGatewayConnectionsClient client.
+// VirtualNetworkGatewayConnectionsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVirtualNetworkGatewayConnectionsClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworkGatewayConnectionsClient {
return VirtualNetworkGatewayConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-04-01/network/virtualnetworkgateways.go b/services/network/mgmt/2019-04-01/network/virtualnetworkgateways.go
index 30b823ba1664..f876f2fbd63a 100644
--- a/services/network/mgmt/2019-04-01/network/virtualnetworkgateways.go
+++ b/services/network/mgmt/2019-04-01/network/virtualnetworkgateways.go
@@ -36,7 +36,9 @@ func NewVirtualNetworkGatewaysClient(subscriptionID string) VirtualNetworkGatewa
return NewVirtualNetworkGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualNetworkGatewaysClientWithBaseURI creates an instance of the VirtualNetworkGatewaysClient client.
+// NewVirtualNetworkGatewaysClientWithBaseURI creates an instance of the VirtualNetworkGatewaysClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewVirtualNetworkGatewaysClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworkGatewaysClient {
return VirtualNetworkGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-04-01/network/virtualnetworkpeerings.go b/services/network/mgmt/2019-04-01/network/virtualnetworkpeerings.go
index 81f7e3ec07ff..ac995fc0976c 100644
--- a/services/network/mgmt/2019-04-01/network/virtualnetworkpeerings.go
+++ b/services/network/mgmt/2019-04-01/network/virtualnetworkpeerings.go
@@ -35,7 +35,9 @@ func NewVirtualNetworkPeeringsClient(subscriptionID string) VirtualNetworkPeerin
return NewVirtualNetworkPeeringsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualNetworkPeeringsClientWithBaseURI creates an instance of the VirtualNetworkPeeringsClient client.
+// NewVirtualNetworkPeeringsClientWithBaseURI creates an instance of the VirtualNetworkPeeringsClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewVirtualNetworkPeeringsClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworkPeeringsClient {
return VirtualNetworkPeeringsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-04-01/network/virtualnetworks.go b/services/network/mgmt/2019-04-01/network/virtualnetworks.go
index df1e9c13af66..40b2d34d88b4 100644
--- a/services/network/mgmt/2019-04-01/network/virtualnetworks.go
+++ b/services/network/mgmt/2019-04-01/network/virtualnetworks.go
@@ -35,7 +35,8 @@ func NewVirtualNetworksClient(subscriptionID string) VirtualNetworksClient {
return NewVirtualNetworksClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualNetworksClientWithBaseURI creates an instance of the VirtualNetworksClient client.
+// NewVirtualNetworksClientWithBaseURI creates an instance of the VirtualNetworksClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVirtualNetworksClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworksClient {
return VirtualNetworksClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-04-01/network/virtualnetworktaps.go b/services/network/mgmt/2019-04-01/network/virtualnetworktaps.go
index a6ee898899b9..061604653c34 100644
--- a/services/network/mgmt/2019-04-01/network/virtualnetworktaps.go
+++ b/services/network/mgmt/2019-04-01/network/virtualnetworktaps.go
@@ -36,7 +36,9 @@ func NewVirtualNetworkTapsClient(subscriptionID string) VirtualNetworkTapsClient
return NewVirtualNetworkTapsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualNetworkTapsClientWithBaseURI creates an instance of the VirtualNetworkTapsClient client.
+// NewVirtualNetworkTapsClientWithBaseURI creates an instance of the VirtualNetworkTapsClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewVirtualNetworkTapsClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworkTapsClient {
return VirtualNetworkTapsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-04-01/network/virtualwans.go b/services/network/mgmt/2019-04-01/network/virtualwans.go
index bbf5f80cd92e..4522cb97af1a 100644
--- a/services/network/mgmt/2019-04-01/network/virtualwans.go
+++ b/services/network/mgmt/2019-04-01/network/virtualwans.go
@@ -35,7 +35,8 @@ func NewVirtualWansClient(subscriptionID string) VirtualWansClient {
return NewVirtualWansClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualWansClientWithBaseURI creates an instance of the VirtualWansClient client.
+// NewVirtualWansClientWithBaseURI creates an instance of the VirtualWansClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVirtualWansClientWithBaseURI(baseURI string, subscriptionID string) VirtualWansClient {
return VirtualWansClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-04-01/network/vpnconnections.go b/services/network/mgmt/2019-04-01/network/vpnconnections.go
index f995c6b24c47..d34989219142 100644
--- a/services/network/mgmt/2019-04-01/network/vpnconnections.go
+++ b/services/network/mgmt/2019-04-01/network/vpnconnections.go
@@ -35,7 +35,8 @@ func NewVpnConnectionsClient(subscriptionID string) VpnConnectionsClient {
return NewVpnConnectionsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVpnConnectionsClientWithBaseURI creates an instance of the VpnConnectionsClient client.
+// NewVpnConnectionsClientWithBaseURI creates an instance of the VpnConnectionsClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVpnConnectionsClientWithBaseURI(baseURI string, subscriptionID string) VpnConnectionsClient {
return VpnConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-04-01/network/vpngateways.go b/services/network/mgmt/2019-04-01/network/vpngateways.go
index 3da4ca2eb1e3..6fa22509ddc4 100644
--- a/services/network/mgmt/2019-04-01/network/vpngateways.go
+++ b/services/network/mgmt/2019-04-01/network/vpngateways.go
@@ -35,7 +35,8 @@ func NewVpnGatewaysClient(subscriptionID string) VpnGatewaysClient {
return NewVpnGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVpnGatewaysClientWithBaseURI creates an instance of the VpnGatewaysClient client.
+// NewVpnGatewaysClientWithBaseURI creates an instance of the VpnGatewaysClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVpnGatewaysClientWithBaseURI(baseURI string, subscriptionID string) VpnGatewaysClient {
return VpnGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-04-01/network/vpnsites.go b/services/network/mgmt/2019-04-01/network/vpnsites.go
index bc7bd3c74307..781a45aa81a4 100644
--- a/services/network/mgmt/2019-04-01/network/vpnsites.go
+++ b/services/network/mgmt/2019-04-01/network/vpnsites.go
@@ -35,7 +35,8 @@ func NewVpnSitesClient(subscriptionID string) VpnSitesClient {
return NewVpnSitesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVpnSitesClientWithBaseURI creates an instance of the VpnSitesClient client.
+// NewVpnSitesClientWithBaseURI creates an instance of the VpnSitesClient client using a custom endpoint. Use this
+// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVpnSitesClientWithBaseURI(baseURI string, subscriptionID string) VpnSitesClient {
return VpnSitesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-04-01/network/vpnsitesconfiguration.go b/services/network/mgmt/2019-04-01/network/vpnsitesconfiguration.go
index e0eefb366bd5..a3a71c2c0255 100644
--- a/services/network/mgmt/2019-04-01/network/vpnsitesconfiguration.go
+++ b/services/network/mgmt/2019-04-01/network/vpnsitesconfiguration.go
@@ -36,7 +36,9 @@ func NewVpnSitesConfigurationClient(subscriptionID string) VpnSitesConfiguration
return NewVpnSitesConfigurationClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVpnSitesConfigurationClientWithBaseURI creates an instance of the VpnSitesConfigurationClient client.
+// NewVpnSitesConfigurationClientWithBaseURI creates an instance of the VpnSitesConfigurationClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewVpnSitesConfigurationClientWithBaseURI(baseURI string, subscriptionID string) VpnSitesConfigurationClient {
return VpnSitesConfigurationClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-04-01/network/watchers.go b/services/network/mgmt/2019-04-01/network/watchers.go
index 26b29a18bf19..aa1de127aaa3 100644
--- a/services/network/mgmt/2019-04-01/network/watchers.go
+++ b/services/network/mgmt/2019-04-01/network/watchers.go
@@ -36,7 +36,8 @@ func NewWatchersClient(subscriptionID string) WatchersClient {
return NewWatchersClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewWatchersClientWithBaseURI creates an instance of the WatchersClient client.
+// NewWatchersClientWithBaseURI creates an instance of the WatchersClient client using a custom endpoint. Use this
+// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewWatchersClientWithBaseURI(baseURI string, subscriptionID string) WatchersClient {
return WatchersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-04-01/network/webapplicationfirewallpolicies.go b/services/network/mgmt/2019-04-01/network/webapplicationfirewallpolicies.go
index e9ce540d3737..43f3061a5305 100644
--- a/services/network/mgmt/2019-04-01/network/webapplicationfirewallpolicies.go
+++ b/services/network/mgmt/2019-04-01/network/webapplicationfirewallpolicies.go
@@ -37,7 +37,8 @@ func NewWebApplicationFirewallPoliciesClient(subscriptionID string) WebApplicati
}
// NewWebApplicationFirewallPoliciesClientWithBaseURI creates an instance of the WebApplicationFirewallPoliciesClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewWebApplicationFirewallPoliciesClientWithBaseURI(baseURI string, subscriptionID string) WebApplicationFirewallPoliciesClient {
return WebApplicationFirewallPoliciesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-06-01/network/applicationgateways.go b/services/network/mgmt/2019-06-01/network/applicationgateways.go
index 6b6c47a88cd6..e72fd3175131 100644
--- a/services/network/mgmt/2019-06-01/network/applicationgateways.go
+++ b/services/network/mgmt/2019-06-01/network/applicationgateways.go
@@ -36,7 +36,9 @@ func NewApplicationGatewaysClient(subscriptionID string) ApplicationGatewaysClie
return NewApplicationGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewApplicationGatewaysClientWithBaseURI creates an instance of the ApplicationGatewaysClient client.
+// NewApplicationGatewaysClientWithBaseURI creates an instance of the ApplicationGatewaysClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewApplicationGatewaysClientWithBaseURI(baseURI string, subscriptionID string) ApplicationGatewaysClient {
return ApplicationGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-06-01/network/applicationsecuritygroups.go b/services/network/mgmt/2019-06-01/network/applicationsecuritygroups.go
index 41a47cf0f5fa..960efe1a78d3 100644
--- a/services/network/mgmt/2019-06-01/network/applicationsecuritygroups.go
+++ b/services/network/mgmt/2019-06-01/network/applicationsecuritygroups.go
@@ -35,7 +35,9 @@ func NewApplicationSecurityGroupsClient(subscriptionID string) ApplicationSecuri
return NewApplicationSecurityGroupsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewApplicationSecurityGroupsClientWithBaseURI creates an instance of the ApplicationSecurityGroupsClient client.
+// NewApplicationSecurityGroupsClientWithBaseURI creates an instance of the ApplicationSecurityGroupsClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewApplicationSecurityGroupsClientWithBaseURI(baseURI string, subscriptionID string) ApplicationSecurityGroupsClient {
return ApplicationSecurityGroupsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-06-01/network/availabledelegations.go b/services/network/mgmt/2019-06-01/network/availabledelegations.go
index 747fd724a501..a99829be3a76 100644
--- a/services/network/mgmt/2019-06-01/network/availabledelegations.go
+++ b/services/network/mgmt/2019-06-01/network/availabledelegations.go
@@ -35,7 +35,9 @@ func NewAvailableDelegationsClient(subscriptionID string) AvailableDelegationsCl
return NewAvailableDelegationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewAvailableDelegationsClientWithBaseURI creates an instance of the AvailableDelegationsClient client.
+// NewAvailableDelegationsClientWithBaseURI creates an instance of the AvailableDelegationsClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewAvailableDelegationsClientWithBaseURI(baseURI string, subscriptionID string) AvailableDelegationsClient {
return AvailableDelegationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-06-01/network/availableendpointservices.go b/services/network/mgmt/2019-06-01/network/availableendpointservices.go
index 79b645fbcb0a..308eb72366e0 100644
--- a/services/network/mgmt/2019-06-01/network/availableendpointservices.go
+++ b/services/network/mgmt/2019-06-01/network/availableendpointservices.go
@@ -35,7 +35,9 @@ func NewAvailableEndpointServicesClient(subscriptionID string) AvailableEndpoint
return NewAvailableEndpointServicesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewAvailableEndpointServicesClientWithBaseURI creates an instance of the AvailableEndpointServicesClient client.
+// NewAvailableEndpointServicesClientWithBaseURI creates an instance of the AvailableEndpointServicesClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewAvailableEndpointServicesClientWithBaseURI(baseURI string, subscriptionID string) AvailableEndpointServicesClient {
return AvailableEndpointServicesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-06-01/network/availableprivateendpointtypes.go b/services/network/mgmt/2019-06-01/network/availableprivateendpointtypes.go
index b7de98c4a6c5..37367242d6a9 100644
--- a/services/network/mgmt/2019-06-01/network/availableprivateendpointtypes.go
+++ b/services/network/mgmt/2019-06-01/network/availableprivateendpointtypes.go
@@ -36,7 +36,8 @@ func NewAvailablePrivateEndpointTypesClient(subscriptionID string) AvailablePriv
}
// NewAvailablePrivateEndpointTypesClientWithBaseURI creates an instance of the AvailablePrivateEndpointTypesClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewAvailablePrivateEndpointTypesClientWithBaseURI(baseURI string, subscriptionID string) AvailablePrivateEndpointTypesClient {
return AvailablePrivateEndpointTypesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-06-01/network/availableresourcegroupdelegations.go b/services/network/mgmt/2019-06-01/network/availableresourcegroupdelegations.go
index 32069f2daaf9..7ed1e61befc5 100644
--- a/services/network/mgmt/2019-06-01/network/availableresourcegroupdelegations.go
+++ b/services/network/mgmt/2019-06-01/network/availableresourcegroupdelegations.go
@@ -37,7 +37,8 @@ func NewAvailableResourceGroupDelegationsClient(subscriptionID string) Available
}
// NewAvailableResourceGroupDelegationsClientWithBaseURI creates an instance of the
-// AvailableResourceGroupDelegationsClient client.
+// AvailableResourceGroupDelegationsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewAvailableResourceGroupDelegationsClientWithBaseURI(baseURI string, subscriptionID string) AvailableResourceGroupDelegationsClient {
return AvailableResourceGroupDelegationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-06-01/network/azurefirewallfqdntags.go b/services/network/mgmt/2019-06-01/network/azurefirewallfqdntags.go
index cf0d2a97dfa6..c67e4ddeffa6 100644
--- a/services/network/mgmt/2019-06-01/network/azurefirewallfqdntags.go
+++ b/services/network/mgmt/2019-06-01/network/azurefirewallfqdntags.go
@@ -35,7 +35,9 @@ func NewAzureFirewallFqdnTagsClient(subscriptionID string) AzureFirewallFqdnTags
return NewAzureFirewallFqdnTagsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewAzureFirewallFqdnTagsClientWithBaseURI creates an instance of the AzureFirewallFqdnTagsClient client.
+// NewAzureFirewallFqdnTagsClientWithBaseURI creates an instance of the AzureFirewallFqdnTagsClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewAzureFirewallFqdnTagsClientWithBaseURI(baseURI string, subscriptionID string) AzureFirewallFqdnTagsClient {
return AzureFirewallFqdnTagsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-06-01/network/azurefirewalls.go b/services/network/mgmt/2019-06-01/network/azurefirewalls.go
index c85a97dd9a58..f8141822a177 100644
--- a/services/network/mgmt/2019-06-01/network/azurefirewalls.go
+++ b/services/network/mgmt/2019-06-01/network/azurefirewalls.go
@@ -35,7 +35,8 @@ func NewAzureFirewallsClient(subscriptionID string) AzureFirewallsClient {
return NewAzureFirewallsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewAzureFirewallsClientWithBaseURI creates an instance of the AzureFirewallsClient client.
+// NewAzureFirewallsClientWithBaseURI creates an instance of the AzureFirewallsClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewAzureFirewallsClientWithBaseURI(baseURI string, subscriptionID string) AzureFirewallsClient {
return AzureFirewallsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-06-01/network/bastionhosts.go b/services/network/mgmt/2019-06-01/network/bastionhosts.go
index 7d2f594dfc0a..d74c646ad5cb 100644
--- a/services/network/mgmt/2019-06-01/network/bastionhosts.go
+++ b/services/network/mgmt/2019-06-01/network/bastionhosts.go
@@ -35,7 +35,8 @@ func NewBastionHostsClient(subscriptionID string) BastionHostsClient {
return NewBastionHostsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewBastionHostsClientWithBaseURI creates an instance of the BastionHostsClient client.
+// NewBastionHostsClientWithBaseURI creates an instance of the BastionHostsClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewBastionHostsClientWithBaseURI(baseURI string, subscriptionID string) BastionHostsClient {
return BastionHostsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-06-01/network/bgpservicecommunities.go b/services/network/mgmt/2019-06-01/network/bgpservicecommunities.go
index 5d93b851fdf2..7f58e2a56070 100644
--- a/services/network/mgmt/2019-06-01/network/bgpservicecommunities.go
+++ b/services/network/mgmt/2019-06-01/network/bgpservicecommunities.go
@@ -35,7 +35,9 @@ func NewBgpServiceCommunitiesClient(subscriptionID string) BgpServiceCommunities
return NewBgpServiceCommunitiesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewBgpServiceCommunitiesClientWithBaseURI creates an instance of the BgpServiceCommunitiesClient client.
+// NewBgpServiceCommunitiesClientWithBaseURI creates an instance of the BgpServiceCommunitiesClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewBgpServiceCommunitiesClientWithBaseURI(baseURI string, subscriptionID string) BgpServiceCommunitiesClient {
return BgpServiceCommunitiesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-06-01/network/client.go b/services/network/mgmt/2019-06-01/network/client.go
index 14cd48cfb9e3..28adfed6a474 100644
--- a/services/network/mgmt/2019-06-01/network/client.go
+++ b/services/network/mgmt/2019-06-01/network/client.go
@@ -45,7 +45,8 @@ func New(subscriptionID string) BaseClient {
return NewWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewWithBaseURI creates an instance of the BaseClient client.
+// NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with
+// an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient {
return BaseClient{
Client: autorest.NewClientWithUserAgent(UserAgent()),
diff --git a/services/network/mgmt/2019-06-01/network/connectionmonitors.go b/services/network/mgmt/2019-06-01/network/connectionmonitors.go
index ca171615eb08..b33487f27c44 100644
--- a/services/network/mgmt/2019-06-01/network/connectionmonitors.go
+++ b/services/network/mgmt/2019-06-01/network/connectionmonitors.go
@@ -36,7 +36,9 @@ func NewConnectionMonitorsClient(subscriptionID string) ConnectionMonitorsClient
return NewConnectionMonitorsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewConnectionMonitorsClientWithBaseURI creates an instance of the ConnectionMonitorsClient client.
+// NewConnectionMonitorsClientWithBaseURI creates an instance of the ConnectionMonitorsClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewConnectionMonitorsClientWithBaseURI(baseURI string, subscriptionID string) ConnectionMonitorsClient {
return ConnectionMonitorsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-06-01/network/ddoscustompolicies.go b/services/network/mgmt/2019-06-01/network/ddoscustompolicies.go
index f8d645460d61..d9d07e9003db 100644
--- a/services/network/mgmt/2019-06-01/network/ddoscustompolicies.go
+++ b/services/network/mgmt/2019-06-01/network/ddoscustompolicies.go
@@ -35,7 +35,9 @@ func NewDdosCustomPoliciesClient(subscriptionID string) DdosCustomPoliciesClient
return NewDdosCustomPoliciesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewDdosCustomPoliciesClientWithBaseURI creates an instance of the DdosCustomPoliciesClient client.
+// NewDdosCustomPoliciesClientWithBaseURI creates an instance of the DdosCustomPoliciesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewDdosCustomPoliciesClientWithBaseURI(baseURI string, subscriptionID string) DdosCustomPoliciesClient {
return DdosCustomPoliciesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-06-01/network/ddosprotectionplans.go b/services/network/mgmt/2019-06-01/network/ddosprotectionplans.go
index efd5f7635c38..82416c0a6ad2 100644
--- a/services/network/mgmt/2019-06-01/network/ddosprotectionplans.go
+++ b/services/network/mgmt/2019-06-01/network/ddosprotectionplans.go
@@ -35,7 +35,9 @@ func NewDdosProtectionPlansClient(subscriptionID string) DdosProtectionPlansClie
return NewDdosProtectionPlansClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewDdosProtectionPlansClientWithBaseURI creates an instance of the DdosProtectionPlansClient client.
+// NewDdosProtectionPlansClientWithBaseURI creates an instance of the DdosProtectionPlansClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewDdosProtectionPlansClientWithBaseURI(baseURI string, subscriptionID string) DdosProtectionPlansClient {
return DdosProtectionPlansClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-06-01/network/defaultsecurityrules.go b/services/network/mgmt/2019-06-01/network/defaultsecurityrules.go
index 0c38bd8fd243..010614013ec0 100644
--- a/services/network/mgmt/2019-06-01/network/defaultsecurityrules.go
+++ b/services/network/mgmt/2019-06-01/network/defaultsecurityrules.go
@@ -35,7 +35,9 @@ func NewDefaultSecurityRulesClient(subscriptionID string) DefaultSecurityRulesCl
return NewDefaultSecurityRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewDefaultSecurityRulesClientWithBaseURI creates an instance of the DefaultSecurityRulesClient client.
+// NewDefaultSecurityRulesClientWithBaseURI creates an instance of the DefaultSecurityRulesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewDefaultSecurityRulesClientWithBaseURI(baseURI string, subscriptionID string) DefaultSecurityRulesClient {
return DefaultSecurityRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-06-01/network/expressroutecircuitauthorizations.go b/services/network/mgmt/2019-06-01/network/expressroutecircuitauthorizations.go
index 7211b209a481..0579fa462008 100644
--- a/services/network/mgmt/2019-06-01/network/expressroutecircuitauthorizations.go
+++ b/services/network/mgmt/2019-06-01/network/expressroutecircuitauthorizations.go
@@ -37,7 +37,8 @@ func NewExpressRouteCircuitAuthorizationsClient(subscriptionID string) ExpressRo
}
// NewExpressRouteCircuitAuthorizationsClientWithBaseURI creates an instance of the
-// ExpressRouteCircuitAuthorizationsClient client.
+// ExpressRouteCircuitAuthorizationsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewExpressRouteCircuitAuthorizationsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCircuitAuthorizationsClient {
return ExpressRouteCircuitAuthorizationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-06-01/network/expressroutecircuitconnections.go b/services/network/mgmt/2019-06-01/network/expressroutecircuitconnections.go
index a27357867a92..76441c213ef4 100644
--- a/services/network/mgmt/2019-06-01/network/expressroutecircuitconnections.go
+++ b/services/network/mgmt/2019-06-01/network/expressroutecircuitconnections.go
@@ -36,7 +36,8 @@ func NewExpressRouteCircuitConnectionsClient(subscriptionID string) ExpressRoute
}
// NewExpressRouteCircuitConnectionsClientWithBaseURI creates an instance of the ExpressRouteCircuitConnectionsClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewExpressRouteCircuitConnectionsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCircuitConnectionsClient {
return ExpressRouteCircuitConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-06-01/network/expressroutecircuitpeerings.go b/services/network/mgmt/2019-06-01/network/expressroutecircuitpeerings.go
index cc610324c7b6..f66716886f7f 100644
--- a/services/network/mgmt/2019-06-01/network/expressroutecircuitpeerings.go
+++ b/services/network/mgmt/2019-06-01/network/expressroutecircuitpeerings.go
@@ -36,7 +36,9 @@ func NewExpressRouteCircuitPeeringsClient(subscriptionID string) ExpressRouteCir
return NewExpressRouteCircuitPeeringsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewExpressRouteCircuitPeeringsClientWithBaseURI creates an instance of the ExpressRouteCircuitPeeringsClient client.
+// NewExpressRouteCircuitPeeringsClientWithBaseURI creates an instance of the ExpressRouteCircuitPeeringsClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewExpressRouteCircuitPeeringsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCircuitPeeringsClient {
return ExpressRouteCircuitPeeringsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-06-01/network/expressroutecircuits.go b/services/network/mgmt/2019-06-01/network/expressroutecircuits.go
index b54c9b0ca39e..dad730ee7a52 100644
--- a/services/network/mgmt/2019-06-01/network/expressroutecircuits.go
+++ b/services/network/mgmt/2019-06-01/network/expressroutecircuits.go
@@ -35,7 +35,9 @@ func NewExpressRouteCircuitsClient(subscriptionID string) ExpressRouteCircuitsCl
return NewExpressRouteCircuitsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewExpressRouteCircuitsClientWithBaseURI creates an instance of the ExpressRouteCircuitsClient client.
+// NewExpressRouteCircuitsClientWithBaseURI creates an instance of the ExpressRouteCircuitsClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewExpressRouteCircuitsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCircuitsClient {
return ExpressRouteCircuitsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-06-01/network/expressrouteconnections.go b/services/network/mgmt/2019-06-01/network/expressrouteconnections.go
index 6e30029ed5f1..667c8327837d 100644
--- a/services/network/mgmt/2019-06-01/network/expressrouteconnections.go
+++ b/services/network/mgmt/2019-06-01/network/expressrouteconnections.go
@@ -36,7 +36,9 @@ func NewExpressRouteConnectionsClient(subscriptionID string) ExpressRouteConnect
return NewExpressRouteConnectionsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewExpressRouteConnectionsClientWithBaseURI creates an instance of the ExpressRouteConnectionsClient client.
+// NewExpressRouteConnectionsClientWithBaseURI creates an instance of the ExpressRouteConnectionsClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewExpressRouteConnectionsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteConnectionsClient {
return ExpressRouteConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-06-01/network/expressroutecrossconnectionpeerings.go b/services/network/mgmt/2019-06-01/network/expressroutecrossconnectionpeerings.go
index 91eb42137855..56eda24f55cc 100644
--- a/services/network/mgmt/2019-06-01/network/expressroutecrossconnectionpeerings.go
+++ b/services/network/mgmt/2019-06-01/network/expressroutecrossconnectionpeerings.go
@@ -38,7 +38,8 @@ func NewExpressRouteCrossConnectionPeeringsClient(subscriptionID string) Express
}
// NewExpressRouteCrossConnectionPeeringsClientWithBaseURI creates an instance of the
-// ExpressRouteCrossConnectionPeeringsClient client.
+// ExpressRouteCrossConnectionPeeringsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewExpressRouteCrossConnectionPeeringsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCrossConnectionPeeringsClient {
return ExpressRouteCrossConnectionPeeringsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-06-01/network/expressroutecrossconnections.go b/services/network/mgmt/2019-06-01/network/expressroutecrossconnections.go
index 71bff3a15123..b1d6f0dad8ba 100644
--- a/services/network/mgmt/2019-06-01/network/expressroutecrossconnections.go
+++ b/services/network/mgmt/2019-06-01/network/expressroutecrossconnections.go
@@ -36,7 +36,8 @@ func NewExpressRouteCrossConnectionsClient(subscriptionID string) ExpressRouteCr
}
// NewExpressRouteCrossConnectionsClientWithBaseURI creates an instance of the ExpressRouteCrossConnectionsClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewExpressRouteCrossConnectionsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCrossConnectionsClient {
return ExpressRouteCrossConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-06-01/network/expressroutegateways.go b/services/network/mgmt/2019-06-01/network/expressroutegateways.go
index 77c3777c5c05..803da44bd8a1 100644
--- a/services/network/mgmt/2019-06-01/network/expressroutegateways.go
+++ b/services/network/mgmt/2019-06-01/network/expressroutegateways.go
@@ -36,7 +36,9 @@ func NewExpressRouteGatewaysClient(subscriptionID string) ExpressRouteGatewaysCl
return NewExpressRouteGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewExpressRouteGatewaysClientWithBaseURI creates an instance of the ExpressRouteGatewaysClient client.
+// NewExpressRouteGatewaysClientWithBaseURI creates an instance of the ExpressRouteGatewaysClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewExpressRouteGatewaysClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteGatewaysClient {
return ExpressRouteGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-06-01/network/expressroutelinks.go b/services/network/mgmt/2019-06-01/network/expressroutelinks.go
index f295fafc24e2..41f83744c522 100644
--- a/services/network/mgmt/2019-06-01/network/expressroutelinks.go
+++ b/services/network/mgmt/2019-06-01/network/expressroutelinks.go
@@ -35,7 +35,9 @@ func NewExpressRouteLinksClient(subscriptionID string) ExpressRouteLinksClient {
return NewExpressRouteLinksClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewExpressRouteLinksClientWithBaseURI creates an instance of the ExpressRouteLinksClient client.
+// NewExpressRouteLinksClientWithBaseURI creates an instance of the ExpressRouteLinksClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewExpressRouteLinksClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteLinksClient {
return ExpressRouteLinksClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-06-01/network/expressrouteports.go b/services/network/mgmt/2019-06-01/network/expressrouteports.go
index 1c5547cdee75..f2cae4fe7a18 100644
--- a/services/network/mgmt/2019-06-01/network/expressrouteports.go
+++ b/services/network/mgmt/2019-06-01/network/expressrouteports.go
@@ -35,7 +35,9 @@ func NewExpressRoutePortsClient(subscriptionID string) ExpressRoutePortsClient {
return NewExpressRoutePortsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewExpressRoutePortsClientWithBaseURI creates an instance of the ExpressRoutePortsClient client.
+// NewExpressRoutePortsClientWithBaseURI creates an instance of the ExpressRoutePortsClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewExpressRoutePortsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRoutePortsClient {
return ExpressRoutePortsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-06-01/network/expressrouteportslocations.go b/services/network/mgmt/2019-06-01/network/expressrouteportslocations.go
index 7e07586b4dbf..096896586f08 100644
--- a/services/network/mgmt/2019-06-01/network/expressrouteportslocations.go
+++ b/services/network/mgmt/2019-06-01/network/expressrouteportslocations.go
@@ -35,7 +35,9 @@ func NewExpressRoutePortsLocationsClient(subscriptionID string) ExpressRoutePort
return NewExpressRoutePortsLocationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewExpressRoutePortsLocationsClientWithBaseURI creates an instance of the ExpressRoutePortsLocationsClient client.
+// NewExpressRoutePortsLocationsClientWithBaseURI creates an instance of the ExpressRoutePortsLocationsClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewExpressRoutePortsLocationsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRoutePortsLocationsClient {
return ExpressRoutePortsLocationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-06-01/network/expressrouteserviceproviders.go b/services/network/mgmt/2019-06-01/network/expressrouteserviceproviders.go
index e50a78430069..6adcd107f8e8 100644
--- a/services/network/mgmt/2019-06-01/network/expressrouteserviceproviders.go
+++ b/services/network/mgmt/2019-06-01/network/expressrouteserviceproviders.go
@@ -36,7 +36,8 @@ func NewExpressRouteServiceProvidersClient(subscriptionID string) ExpressRouteSe
}
// NewExpressRouteServiceProvidersClientWithBaseURI creates an instance of the ExpressRouteServiceProvidersClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewExpressRouteServiceProvidersClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteServiceProvidersClient {
return ExpressRouteServiceProvidersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-06-01/network/firewallpolicies.go b/services/network/mgmt/2019-06-01/network/firewallpolicies.go
index a15914a15439..6a0b2ed0e381 100644
--- a/services/network/mgmt/2019-06-01/network/firewallpolicies.go
+++ b/services/network/mgmt/2019-06-01/network/firewallpolicies.go
@@ -35,7 +35,9 @@ func NewFirewallPoliciesClient(subscriptionID string) FirewallPoliciesClient {
return NewFirewallPoliciesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewFirewallPoliciesClientWithBaseURI creates an instance of the FirewallPoliciesClient client.
+// NewFirewallPoliciesClientWithBaseURI creates an instance of the FirewallPoliciesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewFirewallPoliciesClientWithBaseURI(baseURI string, subscriptionID string) FirewallPoliciesClient {
return FirewallPoliciesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-06-01/network/firewallpolicyrulegroups.go b/services/network/mgmt/2019-06-01/network/firewallpolicyrulegroups.go
index 842078d852da..be29266743e8 100644
--- a/services/network/mgmt/2019-06-01/network/firewallpolicyrulegroups.go
+++ b/services/network/mgmt/2019-06-01/network/firewallpolicyrulegroups.go
@@ -36,7 +36,9 @@ func NewFirewallPolicyRuleGroupsClient(subscriptionID string) FirewallPolicyRule
return NewFirewallPolicyRuleGroupsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewFirewallPolicyRuleGroupsClientWithBaseURI creates an instance of the FirewallPolicyRuleGroupsClient client.
+// NewFirewallPolicyRuleGroupsClientWithBaseURI creates an instance of the FirewallPolicyRuleGroupsClient client using
+// a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewFirewallPolicyRuleGroupsClientWithBaseURI(baseURI string, subscriptionID string) FirewallPolicyRuleGroupsClient {
return FirewallPolicyRuleGroupsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-06-01/network/hubvirtualnetworkconnections.go b/services/network/mgmt/2019-06-01/network/hubvirtualnetworkconnections.go
index 4535ac1ebd18..efd8b4b5a001 100644
--- a/services/network/mgmt/2019-06-01/network/hubvirtualnetworkconnections.go
+++ b/services/network/mgmt/2019-06-01/network/hubvirtualnetworkconnections.go
@@ -36,7 +36,8 @@ func NewHubVirtualNetworkConnectionsClient(subscriptionID string) HubVirtualNetw
}
// NewHubVirtualNetworkConnectionsClientWithBaseURI creates an instance of the HubVirtualNetworkConnectionsClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewHubVirtualNetworkConnectionsClientWithBaseURI(baseURI string, subscriptionID string) HubVirtualNetworkConnectionsClient {
return HubVirtualNetworkConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-06-01/network/inboundnatrules.go b/services/network/mgmt/2019-06-01/network/inboundnatrules.go
index 0f05a47e3931..f6c519c1c103 100644
--- a/services/network/mgmt/2019-06-01/network/inboundnatrules.go
+++ b/services/network/mgmt/2019-06-01/network/inboundnatrules.go
@@ -36,7 +36,8 @@ func NewInboundNatRulesClient(subscriptionID string) InboundNatRulesClient {
return NewInboundNatRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewInboundNatRulesClientWithBaseURI creates an instance of the InboundNatRulesClient client.
+// NewInboundNatRulesClientWithBaseURI creates an instance of the InboundNatRulesClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewInboundNatRulesClientWithBaseURI(baseURI string, subscriptionID string) InboundNatRulesClient {
return InboundNatRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-06-01/network/interfaceipconfigurations.go b/services/network/mgmt/2019-06-01/network/interfaceipconfigurations.go
index 518327342995..2e5abc583a6f 100644
--- a/services/network/mgmt/2019-06-01/network/interfaceipconfigurations.go
+++ b/services/network/mgmt/2019-06-01/network/interfaceipconfigurations.go
@@ -35,7 +35,9 @@ func NewInterfaceIPConfigurationsClient(subscriptionID string) InterfaceIPConfig
return NewInterfaceIPConfigurationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewInterfaceIPConfigurationsClientWithBaseURI creates an instance of the InterfaceIPConfigurationsClient client.
+// NewInterfaceIPConfigurationsClientWithBaseURI creates an instance of the InterfaceIPConfigurationsClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewInterfaceIPConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) InterfaceIPConfigurationsClient {
return InterfaceIPConfigurationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-06-01/network/interfaceloadbalancers.go b/services/network/mgmt/2019-06-01/network/interfaceloadbalancers.go
index 75a6aa9e325c..b14d4c2c58fb 100644
--- a/services/network/mgmt/2019-06-01/network/interfaceloadbalancers.go
+++ b/services/network/mgmt/2019-06-01/network/interfaceloadbalancers.go
@@ -35,7 +35,9 @@ func NewInterfaceLoadBalancersClient(subscriptionID string) InterfaceLoadBalance
return NewInterfaceLoadBalancersClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewInterfaceLoadBalancersClientWithBaseURI creates an instance of the InterfaceLoadBalancersClient client.
+// NewInterfaceLoadBalancersClientWithBaseURI creates an instance of the InterfaceLoadBalancersClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewInterfaceLoadBalancersClientWithBaseURI(baseURI string, subscriptionID string) InterfaceLoadBalancersClient {
return InterfaceLoadBalancersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-06-01/network/interfacesgroup.go b/services/network/mgmt/2019-06-01/network/interfacesgroup.go
index be36ebebf824..fdb4a01af6bf 100644
--- a/services/network/mgmt/2019-06-01/network/interfacesgroup.go
+++ b/services/network/mgmt/2019-06-01/network/interfacesgroup.go
@@ -35,7 +35,8 @@ func NewInterfacesClient(subscriptionID string) InterfacesClient {
return NewInterfacesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewInterfacesClientWithBaseURI creates an instance of the InterfacesClient client.
+// NewInterfacesClientWithBaseURI creates an instance of the InterfacesClient client using a custom endpoint. Use this
+// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewInterfacesClientWithBaseURI(baseURI string, subscriptionID string) InterfacesClient {
return InterfacesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-06-01/network/interfacetapconfigurations.go b/services/network/mgmt/2019-06-01/network/interfacetapconfigurations.go
index ca11aecf1662..e66ff094532f 100644
--- a/services/network/mgmt/2019-06-01/network/interfacetapconfigurations.go
+++ b/services/network/mgmt/2019-06-01/network/interfacetapconfigurations.go
@@ -36,7 +36,9 @@ func NewInterfaceTapConfigurationsClient(subscriptionID string) InterfaceTapConf
return NewInterfaceTapConfigurationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewInterfaceTapConfigurationsClientWithBaseURI creates an instance of the InterfaceTapConfigurationsClient client.
+// NewInterfaceTapConfigurationsClientWithBaseURI creates an instance of the InterfaceTapConfigurationsClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewInterfaceTapConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) InterfaceTapConfigurationsClient {
return InterfaceTapConfigurationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-06-01/network/loadbalancerbackendaddresspools.go b/services/network/mgmt/2019-06-01/network/loadbalancerbackendaddresspools.go
index 0f7c54d714c1..04d83957df66 100644
--- a/services/network/mgmt/2019-06-01/network/loadbalancerbackendaddresspools.go
+++ b/services/network/mgmt/2019-06-01/network/loadbalancerbackendaddresspools.go
@@ -36,7 +36,8 @@ func NewLoadBalancerBackendAddressPoolsClient(subscriptionID string) LoadBalance
}
// NewLoadBalancerBackendAddressPoolsClientWithBaseURI creates an instance of the LoadBalancerBackendAddressPoolsClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewLoadBalancerBackendAddressPoolsClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerBackendAddressPoolsClient {
return LoadBalancerBackendAddressPoolsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-06-01/network/loadbalancerfrontendipconfigurations.go b/services/network/mgmt/2019-06-01/network/loadbalancerfrontendipconfigurations.go
index eb2e34cf936e..927a06ccb308 100644
--- a/services/network/mgmt/2019-06-01/network/loadbalancerfrontendipconfigurations.go
+++ b/services/network/mgmt/2019-06-01/network/loadbalancerfrontendipconfigurations.go
@@ -37,7 +37,8 @@ func NewLoadBalancerFrontendIPConfigurationsClient(subscriptionID string) LoadBa
}
// NewLoadBalancerFrontendIPConfigurationsClientWithBaseURI creates an instance of the
-// LoadBalancerFrontendIPConfigurationsClient client.
+// LoadBalancerFrontendIPConfigurationsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewLoadBalancerFrontendIPConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerFrontendIPConfigurationsClient {
return LoadBalancerFrontendIPConfigurationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-06-01/network/loadbalancerloadbalancingrules.go b/services/network/mgmt/2019-06-01/network/loadbalancerloadbalancingrules.go
index 96d493f8efd2..daf94f5dbc5b 100644
--- a/services/network/mgmt/2019-06-01/network/loadbalancerloadbalancingrules.go
+++ b/services/network/mgmt/2019-06-01/network/loadbalancerloadbalancingrules.go
@@ -36,7 +36,8 @@ func NewLoadBalancerLoadBalancingRulesClient(subscriptionID string) LoadBalancer
}
// NewLoadBalancerLoadBalancingRulesClientWithBaseURI creates an instance of the LoadBalancerLoadBalancingRulesClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewLoadBalancerLoadBalancingRulesClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerLoadBalancingRulesClient {
return LoadBalancerLoadBalancingRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-06-01/network/loadbalancernetworkinterfaces.go b/services/network/mgmt/2019-06-01/network/loadbalancernetworkinterfaces.go
index 7b8a52bdbf45..c3f4c2852e24 100644
--- a/services/network/mgmt/2019-06-01/network/loadbalancernetworkinterfaces.go
+++ b/services/network/mgmt/2019-06-01/network/loadbalancernetworkinterfaces.go
@@ -36,7 +36,8 @@ func NewLoadBalancerNetworkInterfacesClient(subscriptionID string) LoadBalancerN
}
// NewLoadBalancerNetworkInterfacesClientWithBaseURI creates an instance of the LoadBalancerNetworkInterfacesClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewLoadBalancerNetworkInterfacesClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerNetworkInterfacesClient {
return LoadBalancerNetworkInterfacesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-06-01/network/loadbalanceroutboundrules.go b/services/network/mgmt/2019-06-01/network/loadbalanceroutboundrules.go
index 550f2980c6b9..31bf64dffaff 100644
--- a/services/network/mgmt/2019-06-01/network/loadbalanceroutboundrules.go
+++ b/services/network/mgmt/2019-06-01/network/loadbalanceroutboundrules.go
@@ -35,7 +35,9 @@ func NewLoadBalancerOutboundRulesClient(subscriptionID string) LoadBalancerOutbo
return NewLoadBalancerOutboundRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewLoadBalancerOutboundRulesClientWithBaseURI creates an instance of the LoadBalancerOutboundRulesClient client.
+// NewLoadBalancerOutboundRulesClientWithBaseURI creates an instance of the LoadBalancerOutboundRulesClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewLoadBalancerOutboundRulesClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerOutboundRulesClient {
return LoadBalancerOutboundRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-06-01/network/loadbalancerprobes.go b/services/network/mgmt/2019-06-01/network/loadbalancerprobes.go
index 4f872bde2558..76da81962f57 100644
--- a/services/network/mgmt/2019-06-01/network/loadbalancerprobes.go
+++ b/services/network/mgmt/2019-06-01/network/loadbalancerprobes.go
@@ -35,7 +35,9 @@ func NewLoadBalancerProbesClient(subscriptionID string) LoadBalancerProbesClient
return NewLoadBalancerProbesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewLoadBalancerProbesClientWithBaseURI creates an instance of the LoadBalancerProbesClient client.
+// NewLoadBalancerProbesClientWithBaseURI creates an instance of the LoadBalancerProbesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewLoadBalancerProbesClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerProbesClient {
return LoadBalancerProbesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-06-01/network/loadbalancers.go b/services/network/mgmt/2019-06-01/network/loadbalancers.go
index 2897a040892e..057cd4743e17 100644
--- a/services/network/mgmt/2019-06-01/network/loadbalancers.go
+++ b/services/network/mgmt/2019-06-01/network/loadbalancers.go
@@ -35,7 +35,8 @@ func NewLoadBalancersClient(subscriptionID string) LoadBalancersClient {
return NewLoadBalancersClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewLoadBalancersClientWithBaseURI creates an instance of the LoadBalancersClient client.
+// NewLoadBalancersClientWithBaseURI creates an instance of the LoadBalancersClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewLoadBalancersClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancersClient {
return LoadBalancersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-06-01/network/localnetworkgateways.go b/services/network/mgmt/2019-06-01/network/localnetworkgateways.go
index 5a08cb4216db..6972058cd074 100644
--- a/services/network/mgmt/2019-06-01/network/localnetworkgateways.go
+++ b/services/network/mgmt/2019-06-01/network/localnetworkgateways.go
@@ -36,7 +36,9 @@ func NewLocalNetworkGatewaysClient(subscriptionID string) LocalNetworkGatewaysCl
return NewLocalNetworkGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewLocalNetworkGatewaysClientWithBaseURI creates an instance of the LocalNetworkGatewaysClient client.
+// NewLocalNetworkGatewaysClientWithBaseURI creates an instance of the LocalNetworkGatewaysClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewLocalNetworkGatewaysClientWithBaseURI(baseURI string, subscriptionID string) LocalNetworkGatewaysClient {
return LocalNetworkGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-06-01/network/natgateways.go b/services/network/mgmt/2019-06-01/network/natgateways.go
index 97e31a4ffc75..cdf9c234e764 100644
--- a/services/network/mgmt/2019-06-01/network/natgateways.go
+++ b/services/network/mgmt/2019-06-01/network/natgateways.go
@@ -35,7 +35,8 @@ func NewNatGatewaysClient(subscriptionID string) NatGatewaysClient {
return NewNatGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewNatGatewaysClientWithBaseURI creates an instance of the NatGatewaysClient client.
+// NewNatGatewaysClientWithBaseURI creates an instance of the NatGatewaysClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewNatGatewaysClientWithBaseURI(baseURI string, subscriptionID string) NatGatewaysClient {
return NatGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-06-01/network/networkapi/interfaces.go b/services/network/mgmt/2019-06-01/network/networkapi/interfaces.go
index 0c5d619c9ba2..44cbf35e345d 100644
--- a/services/network/mgmt/2019-06-01/network/networkapi/interfaces.go
+++ b/services/network/mgmt/2019-06-01/network/networkapi/interfaces.go
@@ -39,12 +39,15 @@ type ApplicationGatewaysClientAPI interface {
Get(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result network.ApplicationGateway, err error)
GetSslPredefinedPolicy(ctx context.Context, predefinedPolicyName string) (result network.ApplicationGatewaySslPredefinedPolicy, err error)
List(ctx context.Context, resourceGroupName string) (result network.ApplicationGatewayListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.ApplicationGatewayListResultIterator, err error)
ListAll(ctx context.Context) (result network.ApplicationGatewayListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.ApplicationGatewayListResultIterator, err error)
ListAvailableRequestHeaders(ctx context.Context) (result network.ListString, err error)
ListAvailableResponseHeaders(ctx context.Context) (result network.ListString, err error)
ListAvailableServerVariables(ctx context.Context) (result network.ListString, err error)
ListAvailableSslOptions(ctx context.Context) (result network.ApplicationGatewayAvailableSslOptions, err error)
ListAvailableSslPredefinedPolicies(ctx context.Context) (result network.ApplicationGatewayAvailableSslPredefinedPoliciesPage, err error)
+ ListAvailableSslPredefinedPoliciesComplete(ctx context.Context) (result network.ApplicationGatewayAvailableSslPredefinedPoliciesIterator, err error)
ListAvailableWafRuleSets(ctx context.Context) (result network.ApplicationGatewayAvailableWafRuleSetsResult, err error)
Start(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result network.ApplicationGatewaysStartFuture, err error)
Stop(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result network.ApplicationGatewaysStopFuture, err error)
@@ -59,7 +62,9 @@ type ApplicationSecurityGroupsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, applicationSecurityGroupName string) (result network.ApplicationSecurityGroupsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, applicationSecurityGroupName string) (result network.ApplicationSecurityGroup, err error)
List(ctx context.Context, resourceGroupName string) (result network.ApplicationSecurityGroupListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.ApplicationSecurityGroupListResultIterator, err error)
ListAll(ctx context.Context) (result network.ApplicationSecurityGroupListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.ApplicationSecurityGroupListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, applicationSecurityGroupName string, parameters network.TagsObject) (result network.ApplicationSecurityGroupsUpdateTagsFuture, err error)
}
@@ -68,6 +73,7 @@ var _ ApplicationSecurityGroupsClientAPI = (*network.ApplicationSecurityGroupsCl
// AvailableDelegationsClientAPI contains the set of methods on the AvailableDelegationsClient type.
type AvailableDelegationsClientAPI interface {
List(ctx context.Context, location string) (result network.AvailableDelegationsResultPage, err error)
+ ListComplete(ctx context.Context, location string) (result network.AvailableDelegationsResultIterator, err error)
}
var _ AvailableDelegationsClientAPI = (*network.AvailableDelegationsClient)(nil)
@@ -75,6 +81,7 @@ var _ AvailableDelegationsClientAPI = (*network.AvailableDelegationsClient)(nil)
// AvailableResourceGroupDelegationsClientAPI contains the set of methods on the AvailableResourceGroupDelegationsClient type.
type AvailableResourceGroupDelegationsClientAPI interface {
List(ctx context.Context, location string, resourceGroupName string) (result network.AvailableDelegationsResultPage, err error)
+ ListComplete(ctx context.Context, location string, resourceGroupName string) (result network.AvailableDelegationsResultIterator, err error)
}
var _ AvailableResourceGroupDelegationsClientAPI = (*network.AvailableResourceGroupDelegationsClient)(nil)
@@ -85,7 +92,9 @@ type AzureFirewallsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, azureFirewallName string) (result network.AzureFirewallsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, azureFirewallName string) (result network.AzureFirewall, err error)
List(ctx context.Context, resourceGroupName string) (result network.AzureFirewallListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.AzureFirewallListResultIterator, err error)
ListAll(ctx context.Context) (result network.AzureFirewallListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.AzureFirewallListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, azureFirewallName string, parameters network.AzureFirewall) (result network.AzureFirewall, err error)
}
@@ -94,6 +103,7 @@ var _ AzureFirewallsClientAPI = (*network.AzureFirewallsClient)(nil)
// AzureFirewallFqdnTagsClientAPI contains the set of methods on the AzureFirewallFqdnTagsClient type.
type AzureFirewallFqdnTagsClientAPI interface {
ListAll(ctx context.Context) (result network.AzureFirewallFqdnTagListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.AzureFirewallFqdnTagListResultIterator, err error)
}
var _ AzureFirewallFqdnTagsClientAPI = (*network.AzureFirewallFqdnTagsClient)(nil)
@@ -104,7 +114,9 @@ type BastionHostsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, bastionHostName string) (result network.BastionHostsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, bastionHostName string) (result network.BastionHost, err error)
List(ctx context.Context) (result network.BastionHostListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.BastionHostListResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.BastionHostListResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.BastionHostListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, bastionHostName string, bastionHostParameters network.TagsObject) (result network.BastionHostsUpdateTagsFuture, err error)
}
@@ -126,7 +138,9 @@ type DdosProtectionPlansClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, ddosProtectionPlanName string) (result network.DdosProtectionPlansDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, ddosProtectionPlanName string) (result network.DdosProtectionPlan, err error)
List(ctx context.Context) (result network.DdosProtectionPlanListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.DdosProtectionPlanListResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.DdosProtectionPlanListResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.DdosProtectionPlanListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, ddosProtectionPlanName string, parameters network.TagsObject) (result network.DdosProtectionPlansUpdateTagsFuture, err error)
}
@@ -135,6 +149,7 @@ var _ DdosProtectionPlansClientAPI = (*network.DdosProtectionPlansClient)(nil)
// AvailableEndpointServicesClientAPI contains the set of methods on the AvailableEndpointServicesClient type.
type AvailableEndpointServicesClientAPI interface {
List(ctx context.Context, location string) (result network.EndpointServicesListResultPage, err error)
+ ListComplete(ctx context.Context, location string) (result network.EndpointServicesListResultIterator, err error)
}
var _ AvailableEndpointServicesClientAPI = (*network.AvailableEndpointServicesClient)(nil)
@@ -145,6 +160,7 @@ type ExpressRouteCircuitAuthorizationsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, circuitName string, authorizationName string) (result network.ExpressRouteCircuitAuthorizationsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, circuitName string, authorizationName string) (result network.ExpressRouteCircuitAuthorization, err error)
List(ctx context.Context, resourceGroupName string, circuitName string) (result network.AuthorizationListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, circuitName string) (result network.AuthorizationListResultIterator, err error)
}
var _ ExpressRouteCircuitAuthorizationsClientAPI = (*network.ExpressRouteCircuitAuthorizationsClient)(nil)
@@ -155,6 +171,7 @@ type ExpressRouteCircuitPeeringsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.ExpressRouteCircuitPeeringsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.ExpressRouteCircuitPeering, err error)
List(ctx context.Context, resourceGroupName string, circuitName string) (result network.ExpressRouteCircuitPeeringListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, circuitName string) (result network.ExpressRouteCircuitPeeringListResultIterator, err error)
}
var _ ExpressRouteCircuitPeeringsClientAPI = (*network.ExpressRouteCircuitPeeringsClient)(nil)
@@ -165,6 +182,7 @@ type ExpressRouteCircuitConnectionsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, connectionName string) (result network.ExpressRouteCircuitConnectionsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, connectionName string) (result network.ExpressRouteCircuitConnection, err error)
List(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.ExpressRouteCircuitConnectionListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.ExpressRouteCircuitConnectionListResultIterator, err error)
}
var _ ExpressRouteCircuitConnectionsClientAPI = (*network.ExpressRouteCircuitConnectionsClient)(nil)
@@ -173,6 +191,7 @@ var _ ExpressRouteCircuitConnectionsClientAPI = (*network.ExpressRouteCircuitCon
type PeerExpressRouteCircuitConnectionsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, connectionName string) (result network.PeerExpressRouteCircuitConnection, err error)
List(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.PeerExpressRouteCircuitConnectionListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.PeerExpressRouteCircuitConnectionListResultIterator, err error)
}
var _ PeerExpressRouteCircuitConnectionsClientAPI = (*network.PeerExpressRouteCircuitConnectionsClient)(nil)
@@ -185,7 +204,9 @@ type ExpressRouteCircuitsClientAPI interface {
GetPeeringStats(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.ExpressRouteCircuitStats, err error)
GetStats(ctx context.Context, resourceGroupName string, circuitName string) (result network.ExpressRouteCircuitStats, err error)
List(ctx context.Context, resourceGroupName string) (result network.ExpressRouteCircuitListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.ExpressRouteCircuitListResultIterator, err error)
ListAll(ctx context.Context) (result network.ExpressRouteCircuitListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.ExpressRouteCircuitListResultIterator, err error)
ListArpTable(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, devicePath string) (result network.ExpressRouteCircuitsListArpTableFuture, err error)
ListRoutesTable(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, devicePath string) (result network.ExpressRouteCircuitsListRoutesTableFuture, err error)
ListRoutesTableSummary(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, devicePath string) (result network.ExpressRouteCircuitsListRoutesTableSummaryFuture, err error)
@@ -197,6 +218,7 @@ var _ ExpressRouteCircuitsClientAPI = (*network.ExpressRouteCircuitsClient)(nil)
// ExpressRouteServiceProvidersClientAPI contains the set of methods on the ExpressRouteServiceProvidersClient type.
type ExpressRouteServiceProvidersClientAPI interface {
List(ctx context.Context) (result network.ExpressRouteServiceProviderListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ExpressRouteServiceProviderListResultIterator, err error)
}
var _ ExpressRouteServiceProvidersClientAPI = (*network.ExpressRouteServiceProvidersClient)(nil)
@@ -206,8 +228,10 @@ type ExpressRouteCrossConnectionsClientAPI interface {
CreateOrUpdate(ctx context.Context, resourceGroupName string, crossConnectionName string, parameters network.ExpressRouteCrossConnection) (result network.ExpressRouteCrossConnectionsCreateOrUpdateFuture, err error)
Get(ctx context.Context, resourceGroupName string, crossConnectionName string) (result network.ExpressRouteCrossConnection, err error)
List(ctx context.Context) (result network.ExpressRouteCrossConnectionListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ExpressRouteCrossConnectionListResultIterator, err error)
ListArpTable(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string, devicePath string) (result network.ExpressRouteCrossConnectionsListArpTableFuture, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ExpressRouteCrossConnectionListResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ExpressRouteCrossConnectionListResultIterator, err error)
ListRoutesTable(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string, devicePath string) (result network.ExpressRouteCrossConnectionsListRoutesTableFuture, err error)
ListRoutesTableSummary(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string, devicePath string) (result network.ExpressRouteCrossConnectionsListRoutesTableSummaryFuture, err error)
UpdateTags(ctx context.Context, resourceGroupName string, crossConnectionName string, crossConnectionParameters network.TagsObject) (result network.ExpressRouteCrossConnectionsUpdateTagsFuture, err error)
@@ -221,6 +245,7 @@ type ExpressRouteCrossConnectionPeeringsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string) (result network.ExpressRouteCrossConnectionPeeringsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string) (result network.ExpressRouteCrossConnectionPeering, err error)
List(ctx context.Context, resourceGroupName string, crossConnectionName string) (result network.ExpressRouteCrossConnectionPeeringListPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, crossConnectionName string) (result network.ExpressRouteCrossConnectionPeeringListIterator, err error)
}
var _ ExpressRouteCrossConnectionPeeringsClientAPI = (*network.ExpressRouteCrossConnectionPeeringsClient)(nil)
@@ -250,6 +275,7 @@ var _ ExpressRouteConnectionsClientAPI = (*network.ExpressRouteConnectionsClient
type ExpressRoutePortsLocationsClientAPI interface {
Get(ctx context.Context, locationName string) (result network.ExpressRoutePortsLocation, err error)
List(ctx context.Context) (result network.ExpressRoutePortsLocationListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ExpressRoutePortsLocationListResultIterator, err error)
}
var _ ExpressRoutePortsLocationsClientAPI = (*network.ExpressRoutePortsLocationsClient)(nil)
@@ -260,7 +286,9 @@ type ExpressRoutePortsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, expressRoutePortName string) (result network.ExpressRoutePortsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, expressRoutePortName string) (result network.ExpressRoutePort, err error)
List(ctx context.Context) (result network.ExpressRoutePortListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ExpressRoutePortListResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ExpressRoutePortListResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ExpressRoutePortListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, expressRoutePortName string, parameters network.TagsObject) (result network.ExpressRoutePortsUpdateTagsFuture, err error)
}
@@ -270,6 +298,7 @@ var _ ExpressRoutePortsClientAPI = (*network.ExpressRoutePortsClient)(nil)
type ExpressRouteLinksClientAPI interface {
Get(ctx context.Context, resourceGroupName string, expressRoutePortName string, linkName string) (result network.ExpressRouteLink, err error)
List(ctx context.Context, resourceGroupName string, expressRoutePortName string) (result network.ExpressRouteLinkListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, expressRoutePortName string) (result network.ExpressRouteLinkListResultIterator, err error)
}
var _ ExpressRouteLinksClientAPI = (*network.ExpressRouteLinksClient)(nil)
@@ -280,7 +309,9 @@ type FirewallPoliciesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, firewallPolicyName string) (result network.FirewallPoliciesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, firewallPolicyName string, expand string) (result network.FirewallPolicy, err error)
List(ctx context.Context, resourceGroupName string) (result network.FirewallPolicyListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.FirewallPolicyListResultIterator, err error)
ListAll(ctx context.Context) (result network.FirewallPolicyListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.FirewallPolicyListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, firewallPolicyName string, firewallPolicyParameters network.TagsObject) (result network.FirewallPolicy, err error)
}
@@ -292,6 +323,7 @@ type FirewallPolicyRuleGroupsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, firewallPolicyName string, ruleGroupName string) (result network.FirewallPolicyRuleGroupsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, firewallPolicyName string, ruleGroupName string) (result network.FirewallPolicyRuleGroup, err error)
List(ctx context.Context, resourceGroupName string, firewallPolicyName string) (result network.FirewallPolicyRuleGroupListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, firewallPolicyName string) (result network.FirewallPolicyRuleGroupListResultIterator, err error)
}
var _ FirewallPolicyRuleGroupsClientAPI = (*network.FirewallPolicyRuleGroupsClient)(nil)
@@ -302,7 +334,9 @@ type LoadBalancersClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancersDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, expand string) (result network.LoadBalancer, err error)
List(ctx context.Context, resourceGroupName string) (result network.LoadBalancerListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.LoadBalancerListResultIterator, err error)
ListAll(ctx context.Context) (result network.LoadBalancerListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.LoadBalancerListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, loadBalancerName string, parameters network.TagsObject) (result network.LoadBalancersUpdateTagsFuture, err error)
}
@@ -312,6 +346,7 @@ var _ LoadBalancersClientAPI = (*network.LoadBalancersClient)(nil)
type LoadBalancerBackendAddressPoolsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, backendAddressPoolName string) (result network.BackendAddressPool, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerBackendAddressPoolListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerBackendAddressPoolListResultIterator, err error)
}
var _ LoadBalancerBackendAddressPoolsClientAPI = (*network.LoadBalancerBackendAddressPoolsClient)(nil)
@@ -320,6 +355,7 @@ var _ LoadBalancerBackendAddressPoolsClientAPI = (*network.LoadBalancerBackendAd
type LoadBalancerFrontendIPConfigurationsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, frontendIPConfigurationName string) (result network.FrontendIPConfiguration, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerFrontendIPConfigurationListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerFrontendIPConfigurationListResultIterator, err error)
}
var _ LoadBalancerFrontendIPConfigurationsClientAPI = (*network.LoadBalancerFrontendIPConfigurationsClient)(nil)
@@ -330,6 +366,7 @@ type InboundNatRulesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, loadBalancerName string, inboundNatRuleName string) (result network.InboundNatRulesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, inboundNatRuleName string, expand string) (result network.InboundNatRule, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.InboundNatRuleListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.InboundNatRuleListResultIterator, err error)
}
var _ InboundNatRulesClientAPI = (*network.InboundNatRulesClient)(nil)
@@ -338,6 +375,7 @@ var _ InboundNatRulesClientAPI = (*network.InboundNatRulesClient)(nil)
type LoadBalancerLoadBalancingRulesClientAPI interface {
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, loadBalancingRuleName string) (result network.LoadBalancingRule, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerLoadBalancingRuleListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerLoadBalancingRuleListResultIterator, err error)
}
var _ LoadBalancerLoadBalancingRulesClientAPI = (*network.LoadBalancerLoadBalancingRulesClient)(nil)
@@ -346,6 +384,7 @@ var _ LoadBalancerLoadBalancingRulesClientAPI = (*network.LoadBalancerLoadBalanc
type LoadBalancerOutboundRulesClientAPI interface {
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, outboundRuleName string) (result network.OutboundRule, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerOutboundRuleListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerOutboundRuleListResultIterator, err error)
}
var _ LoadBalancerOutboundRulesClientAPI = (*network.LoadBalancerOutboundRulesClient)(nil)
@@ -353,6 +392,7 @@ var _ LoadBalancerOutboundRulesClientAPI = (*network.LoadBalancerOutboundRulesCl
// LoadBalancerNetworkInterfacesClientAPI contains the set of methods on the LoadBalancerNetworkInterfacesClient type.
type LoadBalancerNetworkInterfacesClientAPI interface {
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.InterfaceListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.InterfaceListResultIterator, err error)
}
var _ LoadBalancerNetworkInterfacesClientAPI = (*network.LoadBalancerNetworkInterfacesClient)(nil)
@@ -361,6 +401,7 @@ var _ LoadBalancerNetworkInterfacesClientAPI = (*network.LoadBalancerNetworkInte
type LoadBalancerProbesClientAPI interface {
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, probeName string) (result network.Probe, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerProbeListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerProbeListResultIterator, err error)
}
var _ LoadBalancerProbesClientAPI = (*network.LoadBalancerProbesClient)(nil)
@@ -371,7 +412,9 @@ type NatGatewaysClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, natGatewayName string) (result network.NatGatewaysDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, natGatewayName string, expand string) (result network.NatGateway, err error)
List(ctx context.Context, resourceGroupName string) (result network.NatGatewayListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.NatGatewayListResultIterator, err error)
ListAll(ctx context.Context) (result network.NatGatewayListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.NatGatewayListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, natGatewayName string, parameters network.TagsObject) (result network.NatGateway, err error)
}
@@ -386,11 +429,16 @@ type InterfacesClientAPI interface {
GetVirtualMachineScaleSetIPConfiguration(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, IPConfigurationName string, expand string) (result network.InterfaceIPConfiguration, err error)
GetVirtualMachineScaleSetNetworkInterface(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, expand string) (result network.Interface, err error)
List(ctx context.Context, resourceGroupName string) (result network.InterfaceListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.InterfaceListResultIterator, err error)
ListAll(ctx context.Context) (result network.InterfaceListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.InterfaceListResultIterator, err error)
ListEffectiveNetworkSecurityGroups(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfacesListEffectiveNetworkSecurityGroupsFuture, err error)
ListVirtualMachineScaleSetIPConfigurations(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, expand string) (result network.InterfaceIPConfigurationListResultPage, err error)
+ ListVirtualMachineScaleSetIPConfigurationsComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, expand string) (result network.InterfaceIPConfigurationListResultIterator, err error)
ListVirtualMachineScaleSetNetworkInterfaces(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result network.InterfaceListResultPage, err error)
+ ListVirtualMachineScaleSetNetworkInterfacesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result network.InterfaceListResultIterator, err error)
ListVirtualMachineScaleSetVMNetworkInterfaces(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string) (result network.InterfaceListResultPage, err error)
+ ListVirtualMachineScaleSetVMNetworkInterfacesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string) (result network.InterfaceListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, networkInterfaceName string, parameters network.TagsObject) (result network.InterfacesUpdateTagsFuture, err error)
}
@@ -400,6 +448,7 @@ var _ InterfacesClientAPI = (*network.InterfacesClient)(nil)
type InterfaceIPConfigurationsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, networkInterfaceName string, IPConfigurationName string) (result network.InterfaceIPConfiguration, err error)
List(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceIPConfigurationListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceIPConfigurationListResultIterator, err error)
}
var _ InterfaceIPConfigurationsClientAPI = (*network.InterfaceIPConfigurationsClient)(nil)
@@ -407,6 +456,7 @@ var _ InterfaceIPConfigurationsClientAPI = (*network.InterfaceIPConfigurationsCl
// InterfaceLoadBalancersClientAPI contains the set of methods on the InterfaceLoadBalancersClient type.
type InterfaceLoadBalancersClientAPI interface {
List(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceLoadBalancerListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceLoadBalancerListResultIterator, err error)
}
var _ InterfaceLoadBalancersClientAPI = (*network.InterfaceLoadBalancersClient)(nil)
@@ -417,6 +467,7 @@ type InterfaceTapConfigurationsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, networkInterfaceName string, tapConfigurationName string) (result network.InterfaceTapConfigurationsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, networkInterfaceName string, tapConfigurationName string) (result network.InterfaceTapConfiguration, err error)
List(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceTapConfigurationListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceTapConfigurationListResultIterator, err error)
}
var _ InterfaceTapConfigurationsClientAPI = (*network.InterfaceTapConfigurationsClient)(nil)
@@ -427,7 +478,9 @@ type ProfilesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, networkProfileName string) (result network.ProfilesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, networkProfileName string, expand string) (result network.Profile, err error)
List(ctx context.Context, resourceGroupName string) (result network.ProfileListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.ProfileListResultIterator, err error)
ListAll(ctx context.Context) (result network.ProfileListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.ProfileListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, networkProfileName string, parameters network.TagsObject) (result network.Profile, err error)
}
@@ -439,7 +492,9 @@ type SecurityGroupsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityGroupsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, expand string) (result network.SecurityGroup, err error)
List(ctx context.Context, resourceGroupName string) (result network.SecurityGroupListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.SecurityGroupListResultIterator, err error)
ListAll(ctx context.Context) (result network.SecurityGroupListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.SecurityGroupListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, parameters network.TagsObject) (result network.SecurityGroupsUpdateTagsFuture, err error)
}
@@ -451,6 +506,7 @@ type SecurityRulesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, securityRuleName string) (result network.SecurityRulesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, securityRuleName string) (result network.SecurityRule, err error)
List(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityRuleListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityRuleListResultIterator, err error)
}
var _ SecurityRulesClientAPI = (*network.SecurityRulesClient)(nil)
@@ -459,6 +515,7 @@ var _ SecurityRulesClientAPI = (*network.SecurityRulesClient)(nil)
type DefaultSecurityRulesClientAPI interface {
Get(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, defaultSecurityRuleName string) (result network.SecurityRule, err error)
List(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityRuleListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityRuleListResultIterator, err error)
}
var _ DefaultSecurityRulesClientAPI = (*network.DefaultSecurityRulesClient)(nil)
@@ -516,6 +573,7 @@ var _ ConnectionMonitorsClientAPI = (*network.ConnectionMonitorsClient)(nil)
// OperationsClientAPI contains the set of methods on the OperationsClient type.
type OperationsClientAPI interface {
List(ctx context.Context) (result network.OperationListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.OperationListResultIterator, err error)
}
var _ OperationsClientAPI = (*network.OperationsClient)(nil)
@@ -526,7 +584,9 @@ type PrivateEndpointsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, privateEndpointName string) (result network.PrivateEndpointsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, privateEndpointName string, expand string) (result network.PrivateEndpoint, err error)
List(ctx context.Context, resourceGroupName string) (result network.PrivateEndpointListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.PrivateEndpointListResultIterator, err error)
ListBySubscription(ctx context.Context) (result network.PrivateEndpointListResultPage, err error)
+ ListBySubscriptionComplete(ctx context.Context) (result network.PrivateEndpointListResultIterator, err error)
}
var _ PrivateEndpointsClientAPI = (*network.PrivateEndpointsClient)(nil)
@@ -534,7 +594,9 @@ var _ PrivateEndpointsClientAPI = (*network.PrivateEndpointsClient)(nil)
// AvailablePrivateEndpointTypesClientAPI contains the set of methods on the AvailablePrivateEndpointTypesClient type.
type AvailablePrivateEndpointTypesClientAPI interface {
List(ctx context.Context, location string) (result network.AvailablePrivateEndpointTypesResultPage, err error)
+ ListComplete(ctx context.Context, location string) (result network.AvailablePrivateEndpointTypesResultIterator, err error)
ListByResourceGroup(ctx context.Context, location string, resourceGroupName string) (result network.AvailablePrivateEndpointTypesResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, location string, resourceGroupName string) (result network.AvailablePrivateEndpointTypesResultIterator, err error)
}
var _ AvailablePrivateEndpointTypesClientAPI = (*network.AvailablePrivateEndpointTypesClient)(nil)
@@ -548,9 +610,13 @@ type PrivateLinkServicesClientAPI interface {
DeletePrivateEndpointConnection(ctx context.Context, resourceGroupName string, serviceName string, peConnectionName string) (result network.PrivateLinkServicesDeletePrivateEndpointConnectionFuture, err error)
Get(ctx context.Context, resourceGroupName string, serviceName string, expand string) (result network.PrivateLinkService, err error)
List(ctx context.Context, resourceGroupName string) (result network.PrivateLinkServiceListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.PrivateLinkServiceListResultIterator, err error)
ListAutoApprovedPrivateLinkServices(ctx context.Context, location string) (result network.AutoApprovedPrivateLinkServicesResultPage, err error)
+ ListAutoApprovedPrivateLinkServicesComplete(ctx context.Context, location string) (result network.AutoApprovedPrivateLinkServicesResultIterator, err error)
ListAutoApprovedPrivateLinkServicesByResourceGroup(ctx context.Context, location string, resourceGroupName string) (result network.AutoApprovedPrivateLinkServicesResultPage, err error)
+ ListAutoApprovedPrivateLinkServicesByResourceGroupComplete(ctx context.Context, location string, resourceGroupName string) (result network.AutoApprovedPrivateLinkServicesResultIterator, err error)
ListBySubscription(ctx context.Context) (result network.PrivateLinkServiceListResultPage, err error)
+ ListBySubscriptionComplete(ctx context.Context) (result network.PrivateLinkServiceListResultIterator, err error)
UpdatePrivateEndpointConnection(ctx context.Context, resourceGroupName string, serviceName string, peConnectionName string, parameters network.PrivateEndpointConnection) (result network.PrivateEndpointConnection, err error)
}
@@ -563,9 +629,13 @@ type PublicIPAddressesClientAPI interface {
Get(ctx context.Context, resourceGroupName string, publicIPAddressName string, expand string) (result network.PublicIPAddress, err error)
GetVirtualMachineScaleSetPublicIPAddress(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, IPConfigurationName string, publicIPAddressName string, expand string) (result network.PublicIPAddress, err error)
List(ctx context.Context, resourceGroupName string) (result network.PublicIPAddressListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.PublicIPAddressListResultIterator, err error)
ListAll(ctx context.Context) (result network.PublicIPAddressListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.PublicIPAddressListResultIterator, err error)
ListVirtualMachineScaleSetPublicIPAddresses(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result network.PublicIPAddressListResultPage, err error)
+ ListVirtualMachineScaleSetPublicIPAddressesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result network.PublicIPAddressListResultIterator, err error)
ListVirtualMachineScaleSetVMPublicIPAddresses(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, IPConfigurationName string) (result network.PublicIPAddressListResultPage, err error)
+ ListVirtualMachineScaleSetVMPublicIPAddressesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, IPConfigurationName string) (result network.PublicIPAddressListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, publicIPAddressName string, parameters network.TagsObject) (result network.PublicIPAddressesUpdateTagsFuture, err error)
}
@@ -577,7 +647,9 @@ type PublicIPPrefixesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, publicIPPrefixName string) (result network.PublicIPPrefixesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, publicIPPrefixName string, expand string) (result network.PublicIPPrefix, err error)
List(ctx context.Context, resourceGroupName string) (result network.PublicIPPrefixListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.PublicIPPrefixListResultIterator, err error)
ListAll(ctx context.Context) (result network.PublicIPPrefixListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.PublicIPPrefixListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, publicIPPrefixName string, parameters network.TagsObject) (result network.PublicIPPrefixesUpdateTagsFuture, err error)
}
@@ -589,7 +661,9 @@ type RouteFiltersClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, routeFilterName string) (result network.RouteFiltersDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, routeFilterName string, expand string) (result network.RouteFilter, err error)
List(ctx context.Context) (result network.RouteFilterListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.RouteFilterListResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.RouteFilterListResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.RouteFilterListResultIterator, err error)
Update(ctx context.Context, resourceGroupName string, routeFilterName string, routeFilterParameters network.PatchRouteFilter) (result network.RouteFiltersUpdateFuture, err error)
}
@@ -601,6 +675,7 @@ type RouteFilterRulesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, routeFilterName string, ruleName string) (result network.RouteFilterRulesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, routeFilterName string, ruleName string) (result network.RouteFilterRule, err error)
ListByRouteFilter(ctx context.Context, resourceGroupName string, routeFilterName string) (result network.RouteFilterRuleListResultPage, err error)
+ ListByRouteFilterComplete(ctx context.Context, resourceGroupName string, routeFilterName string) (result network.RouteFilterRuleListResultIterator, err error)
Update(ctx context.Context, resourceGroupName string, routeFilterName string, ruleName string, routeFilterRuleParameters network.PatchRouteFilterRule) (result network.RouteFilterRulesUpdateFuture, err error)
}
@@ -612,7 +687,9 @@ type RouteTablesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, routeTableName string) (result network.RouteTablesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, routeTableName string, expand string) (result network.RouteTable, err error)
List(ctx context.Context, resourceGroupName string) (result network.RouteTableListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.RouteTableListResultIterator, err error)
ListAll(ctx context.Context) (result network.RouteTableListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.RouteTableListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, routeTableName string, parameters network.TagsObject) (result network.RouteTablesUpdateTagsFuture, err error)
}
@@ -624,6 +701,7 @@ type RoutesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, routeTableName string, routeName string) (result network.RoutesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, routeTableName string, routeName string) (result network.Route, err error)
List(ctx context.Context, resourceGroupName string, routeTableName string) (result network.RouteListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, routeTableName string) (result network.RouteListResultIterator, err error)
}
var _ RoutesClientAPI = (*network.RoutesClient)(nil)
@@ -631,6 +709,7 @@ var _ RoutesClientAPI = (*network.RoutesClient)(nil)
// BgpServiceCommunitiesClientAPI contains the set of methods on the BgpServiceCommunitiesClient type.
type BgpServiceCommunitiesClientAPI interface {
List(ctx context.Context) (result network.BgpServiceCommunityListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.BgpServiceCommunityListResultIterator, err error)
}
var _ BgpServiceCommunitiesClientAPI = (*network.BgpServiceCommunitiesClient)(nil)
@@ -641,7 +720,9 @@ type ServiceEndpointPoliciesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string) (result network.ServiceEndpointPoliciesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string, expand string) (result network.ServiceEndpointPolicy, err error)
List(ctx context.Context) (result network.ServiceEndpointPolicyListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ServiceEndpointPolicyListResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ServiceEndpointPolicyListResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ServiceEndpointPolicyListResultIterator, err error)
Update(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string, parameters network.TagsObject) (result network.ServiceEndpointPoliciesUpdateFuture, err error)
}
@@ -653,6 +734,7 @@ type ServiceEndpointPolicyDefinitionsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string, serviceEndpointPolicyDefinitionName string) (result network.ServiceEndpointPolicyDefinitionsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string, serviceEndpointPolicyDefinitionName string) (result network.ServiceEndpointPolicyDefinition, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string) (result network.ServiceEndpointPolicyDefinitionListResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string) (result network.ServiceEndpointPolicyDefinitionListResultIterator, err error)
}
var _ ServiceEndpointPolicyDefinitionsClientAPI = (*network.ServiceEndpointPolicyDefinitionsClient)(nil)
@@ -667,6 +749,7 @@ var _ ServiceTagsClientAPI = (*network.ServiceTagsClient)(nil)
// UsagesClientAPI contains the set of methods on the UsagesClient type.
type UsagesClientAPI interface {
List(ctx context.Context, location string) (result network.UsagesListResultPage, err error)
+ ListComplete(ctx context.Context, location string) (result network.UsagesListResultIterator, err error)
}
var _ UsagesClientAPI = (*network.UsagesClient)(nil)
@@ -678,8 +761,11 @@ type VirtualNetworksClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworksDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualNetworkName string, expand string) (result network.VirtualNetwork, err error)
List(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkListResultIterator, err error)
ListAll(ctx context.Context) (result network.VirtualNetworkListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.VirtualNetworkListResultIterator, err error)
ListUsage(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworkListUsageResultPage, err error)
+ ListUsageComplete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworkListUsageResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, virtualNetworkName string, parameters network.TagsObject) (result network.VirtualNetworksUpdateTagsFuture, err error)
}
@@ -691,6 +777,7 @@ type SubnetsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualNetworkName string, subnetName string) (result network.SubnetsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualNetworkName string, subnetName string, expand string) (result network.Subnet, err error)
List(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.SubnetListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.SubnetListResultIterator, err error)
PrepareNetworkPolicies(ctx context.Context, resourceGroupName string, virtualNetworkName string, subnetName string, prepareNetworkPoliciesRequestParameters network.PrepareNetworkPoliciesRequest) (result network.SubnetsPrepareNetworkPoliciesFuture, err error)
UnprepareNetworkPolicies(ctx context.Context, resourceGroupName string, virtualNetworkName string, subnetName string, unprepareNetworkPoliciesRequestParameters network.UnprepareNetworkPoliciesRequest) (result network.SubnetsUnprepareNetworkPoliciesFuture, err error)
}
@@ -717,6 +804,7 @@ type VirtualNetworkPeeringsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualNetworkName string, virtualNetworkPeeringName string) (result network.VirtualNetworkPeeringsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualNetworkName string, virtualNetworkPeeringName string) (result network.VirtualNetworkPeering, err error)
List(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworkPeeringListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworkPeeringListResultIterator, err error)
}
var _ VirtualNetworkPeeringsClientAPI = (*network.VirtualNetworkPeeringsClient)(nil)
@@ -735,7 +823,9 @@ type VirtualNetworkGatewaysClientAPI interface {
GetVpnclientIpsecParameters(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGatewaysGetVpnclientIpsecParametersFuture, err error)
GetVpnProfilePackageURL(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGatewaysGetVpnProfilePackageURLFuture, err error)
List(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayListResultIterator, err error)
ListConnections(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGatewayListConnectionsResultPage, err error)
+ ListConnectionsComplete(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGatewayListConnectionsResultIterator, err error)
Reset(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, gatewayVip string) (result network.VirtualNetworkGatewaysResetFuture, err error)
ResetVpnClientSharedKey(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGatewaysResetVpnClientSharedKeyFuture, err error)
SetVpnclientIpsecParameters(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, vpnclientIpsecParams network.VpnClientIPsecParameters) (result network.VirtualNetworkGatewaysSetVpnclientIpsecParametersFuture, err error)
@@ -753,6 +843,7 @@ type VirtualNetworkGatewayConnectionsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string) (result network.VirtualNetworkGatewayConnection, err error)
GetSharedKey(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string) (result network.ConnectionSharedKey, err error)
List(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayConnectionListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayConnectionListResultIterator, err error)
ResetSharedKey(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string, parameters network.ConnectionResetSharedKey) (result network.VirtualNetworkGatewayConnectionsResetSharedKeyFuture, err error)
SetSharedKey(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string, parameters network.ConnectionSharedKey) (result network.VirtualNetworkGatewayConnectionsSetSharedKeyFuture, err error)
UpdateTags(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string, parameters network.TagsObject) (result network.VirtualNetworkGatewayConnectionsUpdateTagsFuture, err error)
@@ -766,6 +857,7 @@ type LocalNetworkGatewaysClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, localNetworkGatewayName string) (result network.LocalNetworkGatewaysDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, localNetworkGatewayName string) (result network.LocalNetworkGateway, err error)
List(ctx context.Context, resourceGroupName string) (result network.LocalNetworkGatewayListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.LocalNetworkGatewayListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, localNetworkGatewayName string, parameters network.TagsObject) (result network.LocalNetworkGatewaysUpdateTagsFuture, err error)
}
@@ -777,7 +869,9 @@ type VirtualNetworkTapsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, tapName string) (result network.VirtualNetworkTapsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, tapName string) (result network.VirtualNetworkTap, err error)
ListAll(ctx context.Context) (result network.VirtualNetworkTapListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.VirtualNetworkTapListResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkTapListResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkTapListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, tapName string, tapParameters network.TagsObject) (result network.VirtualNetworkTapsUpdateTagsFuture, err error)
}
@@ -789,7 +883,9 @@ type VirtualWansClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualWANName string) (result network.VirtualWansDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualWANName string) (result network.VirtualWAN, err error)
List(ctx context.Context) (result network.ListVirtualWANsResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ListVirtualWANsResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ListVirtualWANsResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ListVirtualWANsResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, virtualWANName string, wANParameters network.TagsObject) (result network.VirtualWansUpdateTagsFuture, err error)
}
@@ -801,7 +897,9 @@ type VpnSitesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, vpnSiteName string) (result network.VpnSitesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, vpnSiteName string) (result network.VpnSite, err error)
List(ctx context.Context) (result network.ListVpnSitesResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ListVpnSitesResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ListVpnSitesResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ListVpnSitesResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, vpnSiteName string, vpnSiteParameters network.TagsObject) (result network.VpnSitesUpdateTagsFuture, err error)
}
@@ -811,6 +909,7 @@ var _ VpnSitesClientAPI = (*network.VpnSitesClient)(nil)
type VpnSiteLinksClientAPI interface {
Get(ctx context.Context, resourceGroupName string, vpnSiteName string, vpnSiteLinkName string) (result network.VpnSiteLink, err error)
ListByVpnSite(ctx context.Context, resourceGroupName string, vpnSiteName string) (result network.ListVpnSiteLinksResultPage, err error)
+ ListByVpnSiteComplete(ctx context.Context, resourceGroupName string, vpnSiteName string) (result network.ListVpnSiteLinksResultIterator, err error)
}
var _ VpnSiteLinksClientAPI = (*network.VpnSiteLinksClient)(nil)
@@ -828,7 +927,9 @@ type VirtualHubsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualHubName string) (result network.VirtualHubsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualHubName string) (result network.VirtualHub, err error)
List(ctx context.Context) (result network.ListVirtualHubsResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ListVirtualHubsResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ListVirtualHubsResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ListVirtualHubsResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, virtualHubName string, virtualHubParameters network.TagsObject) (result network.VirtualHubsUpdateTagsFuture, err error)
}
@@ -838,6 +939,7 @@ var _ VirtualHubsClientAPI = (*network.VirtualHubsClient)(nil)
type HubVirtualNetworkConnectionsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, virtualHubName string, connectionName string) (result network.HubVirtualNetworkConnection, err error)
List(ctx context.Context, resourceGroupName string, virtualHubName string) (result network.ListHubVirtualNetworkConnectionsResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, virtualHubName string) (result network.ListHubVirtualNetworkConnectionsResultIterator, err error)
}
var _ HubVirtualNetworkConnectionsClientAPI = (*network.HubVirtualNetworkConnectionsClient)(nil)
@@ -848,7 +950,9 @@ type VpnGatewaysClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, gatewayName string) (result network.VpnGatewaysDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, gatewayName string) (result network.VpnGateway, err error)
List(ctx context.Context) (result network.ListVpnGatewaysResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ListVpnGatewaysResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ListVpnGatewaysResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ListVpnGatewaysResultIterator, err error)
Reset(ctx context.Context, resourceGroupName string, gatewayName string) (result network.VpnGatewaysResetFuture, err error)
UpdateTags(ctx context.Context, resourceGroupName string, gatewayName string, vpnGatewayParameters network.TagsObject) (result network.VpnGatewaysUpdateTagsFuture, err error)
}
@@ -861,6 +965,7 @@ type VpnConnectionsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, gatewayName string, connectionName string) (result network.VpnConnectionsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, gatewayName string, connectionName string) (result network.VpnConnection, err error)
ListByVpnGateway(ctx context.Context, resourceGroupName string, gatewayName string) (result network.ListVpnConnectionsResultPage, err error)
+ ListByVpnGatewayComplete(ctx context.Context, resourceGroupName string, gatewayName string) (result network.ListVpnConnectionsResultIterator, err error)
}
var _ VpnConnectionsClientAPI = (*network.VpnConnectionsClient)(nil)
@@ -875,6 +980,7 @@ var _ VpnSiteLinkConnectionsClientAPI = (*network.VpnSiteLinkConnectionsClient)(
// VpnLinkConnectionsClientAPI contains the set of methods on the VpnLinkConnectionsClient type.
type VpnLinkConnectionsClientAPI interface {
ListByVpnConnection(ctx context.Context, resourceGroupName string, gatewayName string, connectionName string) (result network.ListVpnSiteLinkConnectionsResultPage, err error)
+ ListByVpnConnectionComplete(ctx context.Context, resourceGroupName string, gatewayName string, connectionName string) (result network.ListVpnSiteLinkConnectionsResultIterator, err error)
}
var _ VpnLinkConnectionsClientAPI = (*network.VpnLinkConnectionsClient)(nil)
@@ -885,6 +991,7 @@ type P2sVpnServerConfigurationsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualWanName string, p2SVpnServerConfigurationName string) (result network.P2sVpnServerConfigurationsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualWanName string, p2SVpnServerConfigurationName string) (result network.P2SVpnServerConfiguration, err error)
ListByVirtualWan(ctx context.Context, resourceGroupName string, virtualWanName string) (result network.ListP2SVpnServerConfigurationsResultPage, err error)
+ ListByVirtualWanComplete(ctx context.Context, resourceGroupName string, virtualWanName string) (result network.ListP2SVpnServerConfigurationsResultIterator, err error)
}
var _ P2sVpnServerConfigurationsClientAPI = (*network.P2sVpnServerConfigurationsClient)(nil)
@@ -897,7 +1004,9 @@ type P2sVpnGatewaysClientAPI interface {
Get(ctx context.Context, resourceGroupName string, gatewayName string) (result network.P2SVpnGateway, err error)
GetP2sVpnConnectionHealth(ctx context.Context, resourceGroupName string, gatewayName string) (result network.P2sVpnGatewaysGetP2sVpnConnectionHealthFuture, err error)
List(ctx context.Context) (result network.ListP2SVpnGatewaysResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ListP2SVpnGatewaysResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ListP2SVpnGatewaysResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ListP2SVpnGatewaysResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, gatewayName string, p2SVpnGatewayParameters network.TagsObject) (result network.P2sVpnGatewaysUpdateTagsFuture, err error)
}
@@ -909,7 +1018,9 @@ type WebApplicationFirewallPoliciesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, policyName string) (result network.WebApplicationFirewallPoliciesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, policyName string) (result network.WebApplicationFirewallPolicy, err error)
List(ctx context.Context, resourceGroupName string) (result network.WebApplicationFirewallPolicyListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.WebApplicationFirewallPolicyListResultIterator, err error)
ListAll(ctx context.Context) (result network.WebApplicationFirewallPolicyListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.WebApplicationFirewallPolicyListResultIterator, err error)
}
var _ WebApplicationFirewallPoliciesClientAPI = (*network.WebApplicationFirewallPoliciesClient)(nil)
diff --git a/services/network/mgmt/2019-06-01/network/operations.go b/services/network/mgmt/2019-06-01/network/operations.go
index 588855d36b3d..c44cae62b862 100644
--- a/services/network/mgmt/2019-06-01/network/operations.go
+++ b/services/network/mgmt/2019-06-01/network/operations.go
@@ -35,7 +35,8 @@ func NewOperationsClient(subscriptionID string) OperationsClient {
return NewOperationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewOperationsClientWithBaseURI creates an instance of the OperationsClient client.
+// NewOperationsClientWithBaseURI creates an instance of the OperationsClient client using a custom endpoint. Use this
+// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient {
return OperationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-06-01/network/p2svpngateways.go b/services/network/mgmt/2019-06-01/network/p2svpngateways.go
index e7537aad486c..90a8ae094ed7 100644
--- a/services/network/mgmt/2019-06-01/network/p2svpngateways.go
+++ b/services/network/mgmt/2019-06-01/network/p2svpngateways.go
@@ -35,7 +35,8 @@ func NewP2sVpnGatewaysClient(subscriptionID string) P2sVpnGatewaysClient {
return NewP2sVpnGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewP2sVpnGatewaysClientWithBaseURI creates an instance of the P2sVpnGatewaysClient client.
+// NewP2sVpnGatewaysClientWithBaseURI creates an instance of the P2sVpnGatewaysClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewP2sVpnGatewaysClientWithBaseURI(baseURI string, subscriptionID string) P2sVpnGatewaysClient {
return P2sVpnGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-06-01/network/p2svpnserverconfigurations.go b/services/network/mgmt/2019-06-01/network/p2svpnserverconfigurations.go
index e1cc2d0abc5b..f3af8adf4d20 100644
--- a/services/network/mgmt/2019-06-01/network/p2svpnserverconfigurations.go
+++ b/services/network/mgmt/2019-06-01/network/p2svpnserverconfigurations.go
@@ -35,7 +35,9 @@ func NewP2sVpnServerConfigurationsClient(subscriptionID string) P2sVpnServerConf
return NewP2sVpnServerConfigurationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewP2sVpnServerConfigurationsClientWithBaseURI creates an instance of the P2sVpnServerConfigurationsClient client.
+// NewP2sVpnServerConfigurationsClientWithBaseURI creates an instance of the P2sVpnServerConfigurationsClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewP2sVpnServerConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) P2sVpnServerConfigurationsClient {
return P2sVpnServerConfigurationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-06-01/network/packetcaptures.go b/services/network/mgmt/2019-06-01/network/packetcaptures.go
index b6661c05640b..0a7fa8fd118f 100644
--- a/services/network/mgmt/2019-06-01/network/packetcaptures.go
+++ b/services/network/mgmt/2019-06-01/network/packetcaptures.go
@@ -36,7 +36,8 @@ func NewPacketCapturesClient(subscriptionID string) PacketCapturesClient {
return NewPacketCapturesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewPacketCapturesClientWithBaseURI creates an instance of the PacketCapturesClient client.
+// NewPacketCapturesClientWithBaseURI creates an instance of the PacketCapturesClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewPacketCapturesClientWithBaseURI(baseURI string, subscriptionID string) PacketCapturesClient {
return PacketCapturesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-06-01/network/peerexpressroutecircuitconnections.go b/services/network/mgmt/2019-06-01/network/peerexpressroutecircuitconnections.go
index 14a291ff3b2e..e28cb974b85d 100644
--- a/services/network/mgmt/2019-06-01/network/peerexpressroutecircuitconnections.go
+++ b/services/network/mgmt/2019-06-01/network/peerexpressroutecircuitconnections.go
@@ -37,7 +37,8 @@ func NewPeerExpressRouteCircuitConnectionsClient(subscriptionID string) PeerExpr
}
// NewPeerExpressRouteCircuitConnectionsClientWithBaseURI creates an instance of the
-// PeerExpressRouteCircuitConnectionsClient client.
+// PeerExpressRouteCircuitConnectionsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewPeerExpressRouteCircuitConnectionsClientWithBaseURI(baseURI string, subscriptionID string) PeerExpressRouteCircuitConnectionsClient {
return PeerExpressRouteCircuitConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-06-01/network/privateendpoints.go b/services/network/mgmt/2019-06-01/network/privateendpoints.go
index d2a9b848938e..ad665a74ee53 100644
--- a/services/network/mgmt/2019-06-01/network/privateendpoints.go
+++ b/services/network/mgmt/2019-06-01/network/privateendpoints.go
@@ -35,7 +35,9 @@ func NewPrivateEndpointsClient(subscriptionID string) PrivateEndpointsClient {
return NewPrivateEndpointsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewPrivateEndpointsClientWithBaseURI creates an instance of the PrivateEndpointsClient client.
+// NewPrivateEndpointsClientWithBaseURI creates an instance of the PrivateEndpointsClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewPrivateEndpointsClientWithBaseURI(baseURI string, subscriptionID string) PrivateEndpointsClient {
return PrivateEndpointsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-06-01/network/privatelinkservices.go b/services/network/mgmt/2019-06-01/network/privatelinkservices.go
index 98ed330c4f6c..f410142afa34 100644
--- a/services/network/mgmt/2019-06-01/network/privatelinkservices.go
+++ b/services/network/mgmt/2019-06-01/network/privatelinkservices.go
@@ -35,7 +35,9 @@ func NewPrivateLinkServicesClient(subscriptionID string) PrivateLinkServicesClie
return NewPrivateLinkServicesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewPrivateLinkServicesClientWithBaseURI creates an instance of the PrivateLinkServicesClient client.
+// NewPrivateLinkServicesClientWithBaseURI creates an instance of the PrivateLinkServicesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewPrivateLinkServicesClientWithBaseURI(baseURI string, subscriptionID string) PrivateLinkServicesClient {
return PrivateLinkServicesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-06-01/network/profiles.go b/services/network/mgmt/2019-06-01/network/profiles.go
index 876800a52f7f..d59b49c859ba 100644
--- a/services/network/mgmt/2019-06-01/network/profiles.go
+++ b/services/network/mgmt/2019-06-01/network/profiles.go
@@ -35,7 +35,8 @@ func NewProfilesClient(subscriptionID string) ProfilesClient {
return NewProfilesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewProfilesClientWithBaseURI creates an instance of the ProfilesClient client.
+// NewProfilesClientWithBaseURI creates an instance of the ProfilesClient client using a custom endpoint. Use this
+// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewProfilesClientWithBaseURI(baseURI string, subscriptionID string) ProfilesClient {
return ProfilesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-06-01/network/publicipaddresses.go b/services/network/mgmt/2019-06-01/network/publicipaddresses.go
index 89e48d9cd563..9f1bf490c0d1 100644
--- a/services/network/mgmt/2019-06-01/network/publicipaddresses.go
+++ b/services/network/mgmt/2019-06-01/network/publicipaddresses.go
@@ -36,7 +36,9 @@ func NewPublicIPAddressesClient(subscriptionID string) PublicIPAddressesClient {
return NewPublicIPAddressesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewPublicIPAddressesClientWithBaseURI creates an instance of the PublicIPAddressesClient client.
+// NewPublicIPAddressesClientWithBaseURI creates an instance of the PublicIPAddressesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewPublicIPAddressesClientWithBaseURI(baseURI string, subscriptionID string) PublicIPAddressesClient {
return PublicIPAddressesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-06-01/network/publicipprefixes.go b/services/network/mgmt/2019-06-01/network/publicipprefixes.go
index 307dc426ac01..877338621d80 100644
--- a/services/network/mgmt/2019-06-01/network/publicipprefixes.go
+++ b/services/network/mgmt/2019-06-01/network/publicipprefixes.go
@@ -35,7 +35,9 @@ func NewPublicIPPrefixesClient(subscriptionID string) PublicIPPrefixesClient {
return NewPublicIPPrefixesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewPublicIPPrefixesClientWithBaseURI creates an instance of the PublicIPPrefixesClient client.
+// NewPublicIPPrefixesClientWithBaseURI creates an instance of the PublicIPPrefixesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewPublicIPPrefixesClientWithBaseURI(baseURI string, subscriptionID string) PublicIPPrefixesClient {
return PublicIPPrefixesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-06-01/network/resourcenavigationlinks.go b/services/network/mgmt/2019-06-01/network/resourcenavigationlinks.go
index 489f7abeeae4..f74ce2ea9b20 100644
--- a/services/network/mgmt/2019-06-01/network/resourcenavigationlinks.go
+++ b/services/network/mgmt/2019-06-01/network/resourcenavigationlinks.go
@@ -35,7 +35,9 @@ func NewResourceNavigationLinksClient(subscriptionID string) ResourceNavigationL
return NewResourceNavigationLinksClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewResourceNavigationLinksClientWithBaseURI creates an instance of the ResourceNavigationLinksClient client.
+// NewResourceNavigationLinksClientWithBaseURI creates an instance of the ResourceNavigationLinksClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewResourceNavigationLinksClientWithBaseURI(baseURI string, subscriptionID string) ResourceNavigationLinksClient {
return ResourceNavigationLinksClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-06-01/network/routefilterrules.go b/services/network/mgmt/2019-06-01/network/routefilterrules.go
index e31ba18c89ae..dabe2bd19937 100644
--- a/services/network/mgmt/2019-06-01/network/routefilterrules.go
+++ b/services/network/mgmt/2019-06-01/network/routefilterrules.go
@@ -36,7 +36,9 @@ func NewRouteFilterRulesClient(subscriptionID string) RouteFilterRulesClient {
return NewRouteFilterRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewRouteFilterRulesClientWithBaseURI creates an instance of the RouteFilterRulesClient client.
+// NewRouteFilterRulesClientWithBaseURI creates an instance of the RouteFilterRulesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewRouteFilterRulesClientWithBaseURI(baseURI string, subscriptionID string) RouteFilterRulesClient {
return RouteFilterRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-06-01/network/routefilters.go b/services/network/mgmt/2019-06-01/network/routefilters.go
index 3dcc02fb418d..84b6ed858e11 100644
--- a/services/network/mgmt/2019-06-01/network/routefilters.go
+++ b/services/network/mgmt/2019-06-01/network/routefilters.go
@@ -35,7 +35,8 @@ func NewRouteFiltersClient(subscriptionID string) RouteFiltersClient {
return NewRouteFiltersClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewRouteFiltersClientWithBaseURI creates an instance of the RouteFiltersClient client.
+// NewRouteFiltersClientWithBaseURI creates an instance of the RouteFiltersClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewRouteFiltersClientWithBaseURI(baseURI string, subscriptionID string) RouteFiltersClient {
return RouteFiltersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-06-01/network/routes.go b/services/network/mgmt/2019-06-01/network/routes.go
index 937a076f0db4..8528550c3e53 100644
--- a/services/network/mgmt/2019-06-01/network/routes.go
+++ b/services/network/mgmt/2019-06-01/network/routes.go
@@ -35,7 +35,8 @@ func NewRoutesClient(subscriptionID string) RoutesClient {
return NewRoutesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewRoutesClientWithBaseURI creates an instance of the RoutesClient client.
+// NewRoutesClientWithBaseURI creates an instance of the RoutesClient client using a custom endpoint. Use this when
+// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewRoutesClientWithBaseURI(baseURI string, subscriptionID string) RoutesClient {
return RoutesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-06-01/network/routetables.go b/services/network/mgmt/2019-06-01/network/routetables.go
index a66a1e051985..3c4730ec5243 100644
--- a/services/network/mgmt/2019-06-01/network/routetables.go
+++ b/services/network/mgmt/2019-06-01/network/routetables.go
@@ -35,7 +35,8 @@ func NewRouteTablesClient(subscriptionID string) RouteTablesClient {
return NewRouteTablesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewRouteTablesClientWithBaseURI creates an instance of the RouteTablesClient client.
+// NewRouteTablesClientWithBaseURI creates an instance of the RouteTablesClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewRouteTablesClientWithBaseURI(baseURI string, subscriptionID string) RouteTablesClient {
return RouteTablesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-06-01/network/securitygroups.go b/services/network/mgmt/2019-06-01/network/securitygroups.go
index 84a24cee4676..964e5bef384c 100644
--- a/services/network/mgmt/2019-06-01/network/securitygroups.go
+++ b/services/network/mgmt/2019-06-01/network/securitygroups.go
@@ -35,7 +35,8 @@ func NewSecurityGroupsClient(subscriptionID string) SecurityGroupsClient {
return NewSecurityGroupsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewSecurityGroupsClientWithBaseURI creates an instance of the SecurityGroupsClient client.
+// NewSecurityGroupsClientWithBaseURI creates an instance of the SecurityGroupsClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewSecurityGroupsClientWithBaseURI(baseURI string, subscriptionID string) SecurityGroupsClient {
return SecurityGroupsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-06-01/network/securityrules.go b/services/network/mgmt/2019-06-01/network/securityrules.go
index 1dbcf670338b..045f0cd018ec 100644
--- a/services/network/mgmt/2019-06-01/network/securityrules.go
+++ b/services/network/mgmt/2019-06-01/network/securityrules.go
@@ -35,7 +35,8 @@ func NewSecurityRulesClient(subscriptionID string) SecurityRulesClient {
return NewSecurityRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewSecurityRulesClientWithBaseURI creates an instance of the SecurityRulesClient client.
+// NewSecurityRulesClientWithBaseURI creates an instance of the SecurityRulesClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewSecurityRulesClientWithBaseURI(baseURI string, subscriptionID string) SecurityRulesClient {
return SecurityRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-06-01/network/serviceassociationlinks.go b/services/network/mgmt/2019-06-01/network/serviceassociationlinks.go
index 2f20bb324edd..68795912d677 100644
--- a/services/network/mgmt/2019-06-01/network/serviceassociationlinks.go
+++ b/services/network/mgmt/2019-06-01/network/serviceassociationlinks.go
@@ -35,7 +35,9 @@ func NewServiceAssociationLinksClient(subscriptionID string) ServiceAssociationL
return NewServiceAssociationLinksClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewServiceAssociationLinksClientWithBaseURI creates an instance of the ServiceAssociationLinksClient client.
+// NewServiceAssociationLinksClientWithBaseURI creates an instance of the ServiceAssociationLinksClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewServiceAssociationLinksClientWithBaseURI(baseURI string, subscriptionID string) ServiceAssociationLinksClient {
return ServiceAssociationLinksClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-06-01/network/serviceendpointpolicies.go b/services/network/mgmt/2019-06-01/network/serviceendpointpolicies.go
index 09c5054b7e6e..9a8075b3a8d3 100644
--- a/services/network/mgmt/2019-06-01/network/serviceendpointpolicies.go
+++ b/services/network/mgmt/2019-06-01/network/serviceendpointpolicies.go
@@ -35,7 +35,9 @@ func NewServiceEndpointPoliciesClient(subscriptionID string) ServiceEndpointPoli
return NewServiceEndpointPoliciesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewServiceEndpointPoliciesClientWithBaseURI creates an instance of the ServiceEndpointPoliciesClient client.
+// NewServiceEndpointPoliciesClientWithBaseURI creates an instance of the ServiceEndpointPoliciesClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewServiceEndpointPoliciesClientWithBaseURI(baseURI string, subscriptionID string) ServiceEndpointPoliciesClient {
return ServiceEndpointPoliciesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-06-01/network/serviceendpointpolicydefinitions.go b/services/network/mgmt/2019-06-01/network/serviceendpointpolicydefinitions.go
index fd7a8bcc27f3..43b13b7b783b 100644
--- a/services/network/mgmt/2019-06-01/network/serviceendpointpolicydefinitions.go
+++ b/services/network/mgmt/2019-06-01/network/serviceendpointpolicydefinitions.go
@@ -36,7 +36,8 @@ func NewServiceEndpointPolicyDefinitionsClient(subscriptionID string) ServiceEnd
}
// NewServiceEndpointPolicyDefinitionsClientWithBaseURI creates an instance of the
-// ServiceEndpointPolicyDefinitionsClient client.
+// ServiceEndpointPolicyDefinitionsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewServiceEndpointPolicyDefinitionsClientWithBaseURI(baseURI string, subscriptionID string) ServiceEndpointPolicyDefinitionsClient {
return ServiceEndpointPolicyDefinitionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-06-01/network/servicetags.go b/services/network/mgmt/2019-06-01/network/servicetags.go
index f7d39cf55650..171c4afb39b0 100644
--- a/services/network/mgmt/2019-06-01/network/servicetags.go
+++ b/services/network/mgmt/2019-06-01/network/servicetags.go
@@ -35,7 +35,8 @@ func NewServiceTagsClient(subscriptionID string) ServiceTagsClient {
return NewServiceTagsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewServiceTagsClientWithBaseURI creates an instance of the ServiceTagsClient client.
+// NewServiceTagsClientWithBaseURI creates an instance of the ServiceTagsClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewServiceTagsClientWithBaseURI(baseURI string, subscriptionID string) ServiceTagsClient {
return ServiceTagsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-06-01/network/subnets.go b/services/network/mgmt/2019-06-01/network/subnets.go
index a2f917cad06c..1721883fd0de 100644
--- a/services/network/mgmt/2019-06-01/network/subnets.go
+++ b/services/network/mgmt/2019-06-01/network/subnets.go
@@ -35,7 +35,8 @@ func NewSubnetsClient(subscriptionID string) SubnetsClient {
return NewSubnetsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewSubnetsClientWithBaseURI creates an instance of the SubnetsClient client.
+// NewSubnetsClientWithBaseURI creates an instance of the SubnetsClient client using a custom endpoint. Use this when
+// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewSubnetsClientWithBaseURI(baseURI string, subscriptionID string) SubnetsClient {
return SubnetsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-06-01/network/usages.go b/services/network/mgmt/2019-06-01/network/usages.go
index 69e4fba8a00e..d5ca3a3b98c5 100644
--- a/services/network/mgmt/2019-06-01/network/usages.go
+++ b/services/network/mgmt/2019-06-01/network/usages.go
@@ -36,7 +36,8 @@ func NewUsagesClient(subscriptionID string) UsagesClient {
return NewUsagesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewUsagesClientWithBaseURI creates an instance of the UsagesClient client.
+// NewUsagesClientWithBaseURI creates an instance of the UsagesClient client using a custom endpoint. Use this when
+// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewUsagesClientWithBaseURI(baseURI string, subscriptionID string) UsagesClient {
return UsagesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-06-01/network/virtualhubs.go b/services/network/mgmt/2019-06-01/network/virtualhubs.go
index 6a86528d1ad4..2519611b98a4 100644
--- a/services/network/mgmt/2019-06-01/network/virtualhubs.go
+++ b/services/network/mgmt/2019-06-01/network/virtualhubs.go
@@ -35,7 +35,8 @@ func NewVirtualHubsClient(subscriptionID string) VirtualHubsClient {
return NewVirtualHubsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualHubsClientWithBaseURI creates an instance of the VirtualHubsClient client.
+// NewVirtualHubsClientWithBaseURI creates an instance of the VirtualHubsClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVirtualHubsClientWithBaseURI(baseURI string, subscriptionID string) VirtualHubsClient {
return VirtualHubsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-06-01/network/virtualnetworkgatewayconnections.go b/services/network/mgmt/2019-06-01/network/virtualnetworkgatewayconnections.go
index 3b5e71c3a82d..addedb54ed66 100644
--- a/services/network/mgmt/2019-06-01/network/virtualnetworkgatewayconnections.go
+++ b/services/network/mgmt/2019-06-01/network/virtualnetworkgatewayconnections.go
@@ -37,7 +37,8 @@ func NewVirtualNetworkGatewayConnectionsClient(subscriptionID string) VirtualNet
}
// NewVirtualNetworkGatewayConnectionsClientWithBaseURI creates an instance of the
-// VirtualNetworkGatewayConnectionsClient client.
+// VirtualNetworkGatewayConnectionsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVirtualNetworkGatewayConnectionsClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworkGatewayConnectionsClient {
return VirtualNetworkGatewayConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-06-01/network/virtualnetworkgateways.go b/services/network/mgmt/2019-06-01/network/virtualnetworkgateways.go
index cd31f47b6331..8c2847ca7bfb 100644
--- a/services/network/mgmt/2019-06-01/network/virtualnetworkgateways.go
+++ b/services/network/mgmt/2019-06-01/network/virtualnetworkgateways.go
@@ -36,7 +36,9 @@ func NewVirtualNetworkGatewaysClient(subscriptionID string) VirtualNetworkGatewa
return NewVirtualNetworkGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualNetworkGatewaysClientWithBaseURI creates an instance of the VirtualNetworkGatewaysClient client.
+// NewVirtualNetworkGatewaysClientWithBaseURI creates an instance of the VirtualNetworkGatewaysClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewVirtualNetworkGatewaysClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworkGatewaysClient {
return VirtualNetworkGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-06-01/network/virtualnetworkpeerings.go b/services/network/mgmt/2019-06-01/network/virtualnetworkpeerings.go
index fe6d6b5435a7..d15c5acaea08 100644
--- a/services/network/mgmt/2019-06-01/network/virtualnetworkpeerings.go
+++ b/services/network/mgmt/2019-06-01/network/virtualnetworkpeerings.go
@@ -35,7 +35,9 @@ func NewVirtualNetworkPeeringsClient(subscriptionID string) VirtualNetworkPeerin
return NewVirtualNetworkPeeringsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualNetworkPeeringsClientWithBaseURI creates an instance of the VirtualNetworkPeeringsClient client.
+// NewVirtualNetworkPeeringsClientWithBaseURI creates an instance of the VirtualNetworkPeeringsClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewVirtualNetworkPeeringsClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworkPeeringsClient {
return VirtualNetworkPeeringsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-06-01/network/virtualnetworks.go b/services/network/mgmt/2019-06-01/network/virtualnetworks.go
index 023a9e8600b5..50c7ea65be3e 100644
--- a/services/network/mgmt/2019-06-01/network/virtualnetworks.go
+++ b/services/network/mgmt/2019-06-01/network/virtualnetworks.go
@@ -35,7 +35,8 @@ func NewVirtualNetworksClient(subscriptionID string) VirtualNetworksClient {
return NewVirtualNetworksClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualNetworksClientWithBaseURI creates an instance of the VirtualNetworksClient client.
+// NewVirtualNetworksClientWithBaseURI creates an instance of the VirtualNetworksClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVirtualNetworksClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworksClient {
return VirtualNetworksClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-06-01/network/virtualnetworktaps.go b/services/network/mgmt/2019-06-01/network/virtualnetworktaps.go
index 98756f901dbb..3cf1b32469ef 100644
--- a/services/network/mgmt/2019-06-01/network/virtualnetworktaps.go
+++ b/services/network/mgmt/2019-06-01/network/virtualnetworktaps.go
@@ -36,7 +36,9 @@ func NewVirtualNetworkTapsClient(subscriptionID string) VirtualNetworkTapsClient
return NewVirtualNetworkTapsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualNetworkTapsClientWithBaseURI creates an instance of the VirtualNetworkTapsClient client.
+// NewVirtualNetworkTapsClientWithBaseURI creates an instance of the VirtualNetworkTapsClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewVirtualNetworkTapsClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworkTapsClient {
return VirtualNetworkTapsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-06-01/network/virtualwans.go b/services/network/mgmt/2019-06-01/network/virtualwans.go
index 8f07a0cf22d5..3fec37c7e732 100644
--- a/services/network/mgmt/2019-06-01/network/virtualwans.go
+++ b/services/network/mgmt/2019-06-01/network/virtualwans.go
@@ -35,7 +35,8 @@ func NewVirtualWansClient(subscriptionID string) VirtualWansClient {
return NewVirtualWansClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualWansClientWithBaseURI creates an instance of the VirtualWansClient client.
+// NewVirtualWansClientWithBaseURI creates an instance of the VirtualWansClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVirtualWansClientWithBaseURI(baseURI string, subscriptionID string) VirtualWansClient {
return VirtualWansClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-06-01/network/vpnconnections.go b/services/network/mgmt/2019-06-01/network/vpnconnections.go
index 37ff6797c295..8e09e13a7410 100644
--- a/services/network/mgmt/2019-06-01/network/vpnconnections.go
+++ b/services/network/mgmt/2019-06-01/network/vpnconnections.go
@@ -35,7 +35,8 @@ func NewVpnConnectionsClient(subscriptionID string) VpnConnectionsClient {
return NewVpnConnectionsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVpnConnectionsClientWithBaseURI creates an instance of the VpnConnectionsClient client.
+// NewVpnConnectionsClientWithBaseURI creates an instance of the VpnConnectionsClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVpnConnectionsClientWithBaseURI(baseURI string, subscriptionID string) VpnConnectionsClient {
return VpnConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-06-01/network/vpngateways.go b/services/network/mgmt/2019-06-01/network/vpngateways.go
index ab7bd39c3048..65427e2dd8c4 100644
--- a/services/network/mgmt/2019-06-01/network/vpngateways.go
+++ b/services/network/mgmt/2019-06-01/network/vpngateways.go
@@ -35,7 +35,8 @@ func NewVpnGatewaysClient(subscriptionID string) VpnGatewaysClient {
return NewVpnGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVpnGatewaysClientWithBaseURI creates an instance of the VpnGatewaysClient client.
+// NewVpnGatewaysClientWithBaseURI creates an instance of the VpnGatewaysClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVpnGatewaysClientWithBaseURI(baseURI string, subscriptionID string) VpnGatewaysClient {
return VpnGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-06-01/network/vpnlinkconnections.go b/services/network/mgmt/2019-06-01/network/vpnlinkconnections.go
index 3e8da0eec679..2e87c50e0860 100644
--- a/services/network/mgmt/2019-06-01/network/vpnlinkconnections.go
+++ b/services/network/mgmt/2019-06-01/network/vpnlinkconnections.go
@@ -35,7 +35,9 @@ func NewVpnLinkConnectionsClient(subscriptionID string) VpnLinkConnectionsClient
return NewVpnLinkConnectionsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVpnLinkConnectionsClientWithBaseURI creates an instance of the VpnLinkConnectionsClient client.
+// NewVpnLinkConnectionsClientWithBaseURI creates an instance of the VpnLinkConnectionsClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewVpnLinkConnectionsClientWithBaseURI(baseURI string, subscriptionID string) VpnLinkConnectionsClient {
return VpnLinkConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-06-01/network/vpnsitelinkconnections.go b/services/network/mgmt/2019-06-01/network/vpnsitelinkconnections.go
index 5ded318f6224..f64d9d0ef6f2 100644
--- a/services/network/mgmt/2019-06-01/network/vpnsitelinkconnections.go
+++ b/services/network/mgmt/2019-06-01/network/vpnsitelinkconnections.go
@@ -35,7 +35,9 @@ func NewVpnSiteLinkConnectionsClient(subscriptionID string) VpnSiteLinkConnectio
return NewVpnSiteLinkConnectionsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVpnSiteLinkConnectionsClientWithBaseURI creates an instance of the VpnSiteLinkConnectionsClient client.
+// NewVpnSiteLinkConnectionsClientWithBaseURI creates an instance of the VpnSiteLinkConnectionsClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewVpnSiteLinkConnectionsClientWithBaseURI(baseURI string, subscriptionID string) VpnSiteLinkConnectionsClient {
return VpnSiteLinkConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-06-01/network/vpnsitelinks.go b/services/network/mgmt/2019-06-01/network/vpnsitelinks.go
index e84e41efb2fd..0b753c50d38d 100644
--- a/services/network/mgmt/2019-06-01/network/vpnsitelinks.go
+++ b/services/network/mgmt/2019-06-01/network/vpnsitelinks.go
@@ -35,7 +35,8 @@ func NewVpnSiteLinksClient(subscriptionID string) VpnSiteLinksClient {
return NewVpnSiteLinksClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVpnSiteLinksClientWithBaseURI creates an instance of the VpnSiteLinksClient client.
+// NewVpnSiteLinksClientWithBaseURI creates an instance of the VpnSiteLinksClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVpnSiteLinksClientWithBaseURI(baseURI string, subscriptionID string) VpnSiteLinksClient {
return VpnSiteLinksClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-06-01/network/vpnsites.go b/services/network/mgmt/2019-06-01/network/vpnsites.go
index 99f004ea198e..060984514559 100644
--- a/services/network/mgmt/2019-06-01/network/vpnsites.go
+++ b/services/network/mgmt/2019-06-01/network/vpnsites.go
@@ -35,7 +35,8 @@ func NewVpnSitesClient(subscriptionID string) VpnSitesClient {
return NewVpnSitesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVpnSitesClientWithBaseURI creates an instance of the VpnSitesClient client.
+// NewVpnSitesClientWithBaseURI creates an instance of the VpnSitesClient client using a custom endpoint. Use this
+// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVpnSitesClientWithBaseURI(baseURI string, subscriptionID string) VpnSitesClient {
return VpnSitesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-06-01/network/vpnsitesconfiguration.go b/services/network/mgmt/2019-06-01/network/vpnsitesconfiguration.go
index 65d1a24ff3d4..a91064f92c2c 100644
--- a/services/network/mgmt/2019-06-01/network/vpnsitesconfiguration.go
+++ b/services/network/mgmt/2019-06-01/network/vpnsitesconfiguration.go
@@ -36,7 +36,9 @@ func NewVpnSitesConfigurationClient(subscriptionID string) VpnSitesConfiguration
return NewVpnSitesConfigurationClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVpnSitesConfigurationClientWithBaseURI creates an instance of the VpnSitesConfigurationClient client.
+// NewVpnSitesConfigurationClientWithBaseURI creates an instance of the VpnSitesConfigurationClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewVpnSitesConfigurationClientWithBaseURI(baseURI string, subscriptionID string) VpnSitesConfigurationClient {
return VpnSitesConfigurationClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-06-01/network/watchers.go b/services/network/mgmt/2019-06-01/network/watchers.go
index e330a1b979bf..bc70fcc9109f 100644
--- a/services/network/mgmt/2019-06-01/network/watchers.go
+++ b/services/network/mgmt/2019-06-01/network/watchers.go
@@ -36,7 +36,8 @@ func NewWatchersClient(subscriptionID string) WatchersClient {
return NewWatchersClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewWatchersClientWithBaseURI creates an instance of the WatchersClient client.
+// NewWatchersClientWithBaseURI creates an instance of the WatchersClient client using a custom endpoint. Use this
+// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewWatchersClientWithBaseURI(baseURI string, subscriptionID string) WatchersClient {
return WatchersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-06-01/network/webapplicationfirewallpolicies.go b/services/network/mgmt/2019-06-01/network/webapplicationfirewallpolicies.go
index f250d2239974..df1b1af0b0ab 100644
--- a/services/network/mgmt/2019-06-01/network/webapplicationfirewallpolicies.go
+++ b/services/network/mgmt/2019-06-01/network/webapplicationfirewallpolicies.go
@@ -37,7 +37,8 @@ func NewWebApplicationFirewallPoliciesClient(subscriptionID string) WebApplicati
}
// NewWebApplicationFirewallPoliciesClientWithBaseURI creates an instance of the WebApplicationFirewallPoliciesClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewWebApplicationFirewallPoliciesClientWithBaseURI(baseURI string, subscriptionID string) WebApplicationFirewallPoliciesClient {
return WebApplicationFirewallPoliciesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-07-01/network/applicationgateways.go b/services/network/mgmt/2019-07-01/network/applicationgateways.go
index 2d5cee49e567..50c743b4b4c7 100644
--- a/services/network/mgmt/2019-07-01/network/applicationgateways.go
+++ b/services/network/mgmt/2019-07-01/network/applicationgateways.go
@@ -36,7 +36,9 @@ func NewApplicationGatewaysClient(subscriptionID string) ApplicationGatewaysClie
return NewApplicationGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewApplicationGatewaysClientWithBaseURI creates an instance of the ApplicationGatewaysClient client.
+// NewApplicationGatewaysClientWithBaseURI creates an instance of the ApplicationGatewaysClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewApplicationGatewaysClientWithBaseURI(baseURI string, subscriptionID string) ApplicationGatewaysClient {
return ApplicationGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-07-01/network/applicationsecuritygroups.go b/services/network/mgmt/2019-07-01/network/applicationsecuritygroups.go
index e697c2e450fd..404b83421138 100644
--- a/services/network/mgmt/2019-07-01/network/applicationsecuritygroups.go
+++ b/services/network/mgmt/2019-07-01/network/applicationsecuritygroups.go
@@ -35,7 +35,9 @@ func NewApplicationSecurityGroupsClient(subscriptionID string) ApplicationSecuri
return NewApplicationSecurityGroupsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewApplicationSecurityGroupsClientWithBaseURI creates an instance of the ApplicationSecurityGroupsClient client.
+// NewApplicationSecurityGroupsClientWithBaseURI creates an instance of the ApplicationSecurityGroupsClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewApplicationSecurityGroupsClientWithBaseURI(baseURI string, subscriptionID string) ApplicationSecurityGroupsClient {
return ApplicationSecurityGroupsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-07-01/network/availabledelegations.go b/services/network/mgmt/2019-07-01/network/availabledelegations.go
index 590749fae9fb..cfff5160371c 100644
--- a/services/network/mgmt/2019-07-01/network/availabledelegations.go
+++ b/services/network/mgmt/2019-07-01/network/availabledelegations.go
@@ -35,7 +35,9 @@ func NewAvailableDelegationsClient(subscriptionID string) AvailableDelegationsCl
return NewAvailableDelegationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewAvailableDelegationsClientWithBaseURI creates an instance of the AvailableDelegationsClient client.
+// NewAvailableDelegationsClientWithBaseURI creates an instance of the AvailableDelegationsClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewAvailableDelegationsClientWithBaseURI(baseURI string, subscriptionID string) AvailableDelegationsClient {
return AvailableDelegationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-07-01/network/availableendpointservices.go b/services/network/mgmt/2019-07-01/network/availableendpointservices.go
index 8be2bc7079b6..7bb7c1159048 100644
--- a/services/network/mgmt/2019-07-01/network/availableendpointservices.go
+++ b/services/network/mgmt/2019-07-01/network/availableendpointservices.go
@@ -35,7 +35,9 @@ func NewAvailableEndpointServicesClient(subscriptionID string) AvailableEndpoint
return NewAvailableEndpointServicesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewAvailableEndpointServicesClientWithBaseURI creates an instance of the AvailableEndpointServicesClient client.
+// NewAvailableEndpointServicesClientWithBaseURI creates an instance of the AvailableEndpointServicesClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewAvailableEndpointServicesClientWithBaseURI(baseURI string, subscriptionID string) AvailableEndpointServicesClient {
return AvailableEndpointServicesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-07-01/network/availableprivateendpointtypes.go b/services/network/mgmt/2019-07-01/network/availableprivateendpointtypes.go
index bf880c8bc121..ebbcb77b29b0 100644
--- a/services/network/mgmt/2019-07-01/network/availableprivateendpointtypes.go
+++ b/services/network/mgmt/2019-07-01/network/availableprivateendpointtypes.go
@@ -36,7 +36,8 @@ func NewAvailablePrivateEndpointTypesClient(subscriptionID string) AvailablePriv
}
// NewAvailablePrivateEndpointTypesClientWithBaseURI creates an instance of the AvailablePrivateEndpointTypesClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewAvailablePrivateEndpointTypesClientWithBaseURI(baseURI string, subscriptionID string) AvailablePrivateEndpointTypesClient {
return AvailablePrivateEndpointTypesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-07-01/network/availableresourcegroupdelegations.go b/services/network/mgmt/2019-07-01/network/availableresourcegroupdelegations.go
index b729c3eda0ee..866640cf75d2 100644
--- a/services/network/mgmt/2019-07-01/network/availableresourcegroupdelegations.go
+++ b/services/network/mgmt/2019-07-01/network/availableresourcegroupdelegations.go
@@ -37,7 +37,8 @@ func NewAvailableResourceGroupDelegationsClient(subscriptionID string) Available
}
// NewAvailableResourceGroupDelegationsClientWithBaseURI creates an instance of the
-// AvailableResourceGroupDelegationsClient client.
+// AvailableResourceGroupDelegationsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewAvailableResourceGroupDelegationsClientWithBaseURI(baseURI string, subscriptionID string) AvailableResourceGroupDelegationsClient {
return AvailableResourceGroupDelegationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-07-01/network/azurefirewallfqdntags.go b/services/network/mgmt/2019-07-01/network/azurefirewallfqdntags.go
index ef9b5288900d..41c12bb87251 100644
--- a/services/network/mgmt/2019-07-01/network/azurefirewallfqdntags.go
+++ b/services/network/mgmt/2019-07-01/network/azurefirewallfqdntags.go
@@ -35,7 +35,9 @@ func NewAzureFirewallFqdnTagsClient(subscriptionID string) AzureFirewallFqdnTags
return NewAzureFirewallFqdnTagsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewAzureFirewallFqdnTagsClientWithBaseURI creates an instance of the AzureFirewallFqdnTagsClient client.
+// NewAzureFirewallFqdnTagsClientWithBaseURI creates an instance of the AzureFirewallFqdnTagsClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewAzureFirewallFqdnTagsClientWithBaseURI(baseURI string, subscriptionID string) AzureFirewallFqdnTagsClient {
return AzureFirewallFqdnTagsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-07-01/network/azurefirewalls.go b/services/network/mgmt/2019-07-01/network/azurefirewalls.go
index eac686f53fb4..c49c3b9baeba 100644
--- a/services/network/mgmt/2019-07-01/network/azurefirewalls.go
+++ b/services/network/mgmt/2019-07-01/network/azurefirewalls.go
@@ -35,7 +35,8 @@ func NewAzureFirewallsClient(subscriptionID string) AzureFirewallsClient {
return NewAzureFirewallsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewAzureFirewallsClientWithBaseURI creates an instance of the AzureFirewallsClient client.
+// NewAzureFirewallsClientWithBaseURI creates an instance of the AzureFirewallsClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewAzureFirewallsClientWithBaseURI(baseURI string, subscriptionID string) AzureFirewallsClient {
return AzureFirewallsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-07-01/network/bastionhosts.go b/services/network/mgmt/2019-07-01/network/bastionhosts.go
index cb1d53fa0408..e995c8df7f2b 100644
--- a/services/network/mgmt/2019-07-01/network/bastionhosts.go
+++ b/services/network/mgmt/2019-07-01/network/bastionhosts.go
@@ -35,7 +35,8 @@ func NewBastionHostsClient(subscriptionID string) BastionHostsClient {
return NewBastionHostsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewBastionHostsClientWithBaseURI creates an instance of the BastionHostsClient client.
+// NewBastionHostsClientWithBaseURI creates an instance of the BastionHostsClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewBastionHostsClientWithBaseURI(baseURI string, subscriptionID string) BastionHostsClient {
return BastionHostsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-07-01/network/bgpservicecommunities.go b/services/network/mgmt/2019-07-01/network/bgpservicecommunities.go
index b6e3d0268459..9317eb2fcc38 100644
--- a/services/network/mgmt/2019-07-01/network/bgpservicecommunities.go
+++ b/services/network/mgmt/2019-07-01/network/bgpservicecommunities.go
@@ -35,7 +35,9 @@ func NewBgpServiceCommunitiesClient(subscriptionID string) BgpServiceCommunities
return NewBgpServiceCommunitiesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewBgpServiceCommunitiesClientWithBaseURI creates an instance of the BgpServiceCommunitiesClient client.
+// NewBgpServiceCommunitiesClientWithBaseURI creates an instance of the BgpServiceCommunitiesClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewBgpServiceCommunitiesClientWithBaseURI(baseURI string, subscriptionID string) BgpServiceCommunitiesClient {
return BgpServiceCommunitiesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-07-01/network/client.go b/services/network/mgmt/2019-07-01/network/client.go
index a3b0b893696c..9da48ac17d64 100644
--- a/services/network/mgmt/2019-07-01/network/client.go
+++ b/services/network/mgmt/2019-07-01/network/client.go
@@ -45,7 +45,8 @@ func New(subscriptionID string) BaseClient {
return NewWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewWithBaseURI creates an instance of the BaseClient client.
+// NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with
+// an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient {
return BaseClient{
Client: autorest.NewClientWithUserAgent(UserAgent()),
diff --git a/services/network/mgmt/2019-07-01/network/connectionmonitors.go b/services/network/mgmt/2019-07-01/network/connectionmonitors.go
index ca171615eb08..b33487f27c44 100644
--- a/services/network/mgmt/2019-07-01/network/connectionmonitors.go
+++ b/services/network/mgmt/2019-07-01/network/connectionmonitors.go
@@ -36,7 +36,9 @@ func NewConnectionMonitorsClient(subscriptionID string) ConnectionMonitorsClient
return NewConnectionMonitorsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewConnectionMonitorsClientWithBaseURI creates an instance of the ConnectionMonitorsClient client.
+// NewConnectionMonitorsClientWithBaseURI creates an instance of the ConnectionMonitorsClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewConnectionMonitorsClientWithBaseURI(baseURI string, subscriptionID string) ConnectionMonitorsClient {
return ConnectionMonitorsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-07-01/network/ddoscustompolicies.go b/services/network/mgmt/2019-07-01/network/ddoscustompolicies.go
index b3d021a65b2b..2951efdae2d4 100644
--- a/services/network/mgmt/2019-07-01/network/ddoscustompolicies.go
+++ b/services/network/mgmt/2019-07-01/network/ddoscustompolicies.go
@@ -35,7 +35,9 @@ func NewDdosCustomPoliciesClient(subscriptionID string) DdosCustomPoliciesClient
return NewDdosCustomPoliciesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewDdosCustomPoliciesClientWithBaseURI creates an instance of the DdosCustomPoliciesClient client.
+// NewDdosCustomPoliciesClientWithBaseURI creates an instance of the DdosCustomPoliciesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewDdosCustomPoliciesClientWithBaseURI(baseURI string, subscriptionID string) DdosCustomPoliciesClient {
return DdosCustomPoliciesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-07-01/network/ddosprotectionplans.go b/services/network/mgmt/2019-07-01/network/ddosprotectionplans.go
index 4278d4000d93..71aab27d252d 100644
--- a/services/network/mgmt/2019-07-01/network/ddosprotectionplans.go
+++ b/services/network/mgmt/2019-07-01/network/ddosprotectionplans.go
@@ -35,7 +35,9 @@ func NewDdosProtectionPlansClient(subscriptionID string) DdosProtectionPlansClie
return NewDdosProtectionPlansClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewDdosProtectionPlansClientWithBaseURI creates an instance of the DdosProtectionPlansClient client.
+// NewDdosProtectionPlansClientWithBaseURI creates an instance of the DdosProtectionPlansClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewDdosProtectionPlansClientWithBaseURI(baseURI string, subscriptionID string) DdosProtectionPlansClient {
return DdosProtectionPlansClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-07-01/network/defaultsecurityrules.go b/services/network/mgmt/2019-07-01/network/defaultsecurityrules.go
index 00e112b530f9..6efa859bb178 100644
--- a/services/network/mgmt/2019-07-01/network/defaultsecurityrules.go
+++ b/services/network/mgmt/2019-07-01/network/defaultsecurityrules.go
@@ -35,7 +35,9 @@ func NewDefaultSecurityRulesClient(subscriptionID string) DefaultSecurityRulesCl
return NewDefaultSecurityRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewDefaultSecurityRulesClientWithBaseURI creates an instance of the DefaultSecurityRulesClient client.
+// NewDefaultSecurityRulesClientWithBaseURI creates an instance of the DefaultSecurityRulesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewDefaultSecurityRulesClientWithBaseURI(baseURI string, subscriptionID string) DefaultSecurityRulesClient {
return DefaultSecurityRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-07-01/network/expressroutecircuitauthorizations.go b/services/network/mgmt/2019-07-01/network/expressroutecircuitauthorizations.go
index fd5ac2a9832e..67e3f098d91a 100644
--- a/services/network/mgmt/2019-07-01/network/expressroutecircuitauthorizations.go
+++ b/services/network/mgmt/2019-07-01/network/expressroutecircuitauthorizations.go
@@ -37,7 +37,8 @@ func NewExpressRouteCircuitAuthorizationsClient(subscriptionID string) ExpressRo
}
// NewExpressRouteCircuitAuthorizationsClientWithBaseURI creates an instance of the
-// ExpressRouteCircuitAuthorizationsClient client.
+// ExpressRouteCircuitAuthorizationsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewExpressRouteCircuitAuthorizationsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCircuitAuthorizationsClient {
return ExpressRouteCircuitAuthorizationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-07-01/network/expressroutecircuitconnections.go b/services/network/mgmt/2019-07-01/network/expressroutecircuitconnections.go
index d414f09a6653..4f8d3ba235b0 100644
--- a/services/network/mgmt/2019-07-01/network/expressroutecircuitconnections.go
+++ b/services/network/mgmt/2019-07-01/network/expressroutecircuitconnections.go
@@ -36,7 +36,8 @@ func NewExpressRouteCircuitConnectionsClient(subscriptionID string) ExpressRoute
}
// NewExpressRouteCircuitConnectionsClientWithBaseURI creates an instance of the ExpressRouteCircuitConnectionsClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewExpressRouteCircuitConnectionsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCircuitConnectionsClient {
return ExpressRouteCircuitConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-07-01/network/expressroutecircuitpeerings.go b/services/network/mgmt/2019-07-01/network/expressroutecircuitpeerings.go
index 5ccd0e23f006..aeed5605ca07 100644
--- a/services/network/mgmt/2019-07-01/network/expressroutecircuitpeerings.go
+++ b/services/network/mgmt/2019-07-01/network/expressroutecircuitpeerings.go
@@ -36,7 +36,9 @@ func NewExpressRouteCircuitPeeringsClient(subscriptionID string) ExpressRouteCir
return NewExpressRouteCircuitPeeringsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewExpressRouteCircuitPeeringsClientWithBaseURI creates an instance of the ExpressRouteCircuitPeeringsClient client.
+// NewExpressRouteCircuitPeeringsClientWithBaseURI creates an instance of the ExpressRouteCircuitPeeringsClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewExpressRouteCircuitPeeringsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCircuitPeeringsClient {
return ExpressRouteCircuitPeeringsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-07-01/network/expressroutecircuits.go b/services/network/mgmt/2019-07-01/network/expressroutecircuits.go
index 06819c16b581..259b6c61560c 100644
--- a/services/network/mgmt/2019-07-01/network/expressroutecircuits.go
+++ b/services/network/mgmt/2019-07-01/network/expressroutecircuits.go
@@ -35,7 +35,9 @@ func NewExpressRouteCircuitsClient(subscriptionID string) ExpressRouteCircuitsCl
return NewExpressRouteCircuitsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewExpressRouteCircuitsClientWithBaseURI creates an instance of the ExpressRouteCircuitsClient client.
+// NewExpressRouteCircuitsClientWithBaseURI creates an instance of the ExpressRouteCircuitsClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewExpressRouteCircuitsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCircuitsClient {
return ExpressRouteCircuitsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-07-01/network/expressrouteconnections.go b/services/network/mgmt/2019-07-01/network/expressrouteconnections.go
index f7c17bdeff2a..7346ec20ac48 100644
--- a/services/network/mgmt/2019-07-01/network/expressrouteconnections.go
+++ b/services/network/mgmt/2019-07-01/network/expressrouteconnections.go
@@ -36,7 +36,9 @@ func NewExpressRouteConnectionsClient(subscriptionID string) ExpressRouteConnect
return NewExpressRouteConnectionsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewExpressRouteConnectionsClientWithBaseURI creates an instance of the ExpressRouteConnectionsClient client.
+// NewExpressRouteConnectionsClientWithBaseURI creates an instance of the ExpressRouteConnectionsClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewExpressRouteConnectionsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteConnectionsClient {
return ExpressRouteConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-07-01/network/expressroutecrossconnectionpeerings.go b/services/network/mgmt/2019-07-01/network/expressroutecrossconnectionpeerings.go
index e78344a992d5..0f50155e9957 100644
--- a/services/network/mgmt/2019-07-01/network/expressroutecrossconnectionpeerings.go
+++ b/services/network/mgmt/2019-07-01/network/expressroutecrossconnectionpeerings.go
@@ -38,7 +38,8 @@ func NewExpressRouteCrossConnectionPeeringsClient(subscriptionID string) Express
}
// NewExpressRouteCrossConnectionPeeringsClientWithBaseURI creates an instance of the
-// ExpressRouteCrossConnectionPeeringsClient client.
+// ExpressRouteCrossConnectionPeeringsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewExpressRouteCrossConnectionPeeringsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCrossConnectionPeeringsClient {
return ExpressRouteCrossConnectionPeeringsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-07-01/network/expressroutecrossconnections.go b/services/network/mgmt/2019-07-01/network/expressroutecrossconnections.go
index a00ecb6fab68..54d4a8396250 100644
--- a/services/network/mgmt/2019-07-01/network/expressroutecrossconnections.go
+++ b/services/network/mgmt/2019-07-01/network/expressroutecrossconnections.go
@@ -36,7 +36,8 @@ func NewExpressRouteCrossConnectionsClient(subscriptionID string) ExpressRouteCr
}
// NewExpressRouteCrossConnectionsClientWithBaseURI creates an instance of the ExpressRouteCrossConnectionsClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewExpressRouteCrossConnectionsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCrossConnectionsClient {
return ExpressRouteCrossConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-07-01/network/expressroutegateways.go b/services/network/mgmt/2019-07-01/network/expressroutegateways.go
index 6d710c708bb7..835dbbd47e5d 100644
--- a/services/network/mgmt/2019-07-01/network/expressroutegateways.go
+++ b/services/network/mgmt/2019-07-01/network/expressroutegateways.go
@@ -36,7 +36,9 @@ func NewExpressRouteGatewaysClient(subscriptionID string) ExpressRouteGatewaysCl
return NewExpressRouteGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewExpressRouteGatewaysClientWithBaseURI creates an instance of the ExpressRouteGatewaysClient client.
+// NewExpressRouteGatewaysClientWithBaseURI creates an instance of the ExpressRouteGatewaysClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewExpressRouteGatewaysClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteGatewaysClient {
return ExpressRouteGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-07-01/network/expressroutelinks.go b/services/network/mgmt/2019-07-01/network/expressroutelinks.go
index 950ab8358cb4..b13142ff34f4 100644
--- a/services/network/mgmt/2019-07-01/network/expressroutelinks.go
+++ b/services/network/mgmt/2019-07-01/network/expressroutelinks.go
@@ -35,7 +35,9 @@ func NewExpressRouteLinksClient(subscriptionID string) ExpressRouteLinksClient {
return NewExpressRouteLinksClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewExpressRouteLinksClientWithBaseURI creates an instance of the ExpressRouteLinksClient client.
+// NewExpressRouteLinksClientWithBaseURI creates an instance of the ExpressRouteLinksClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewExpressRouteLinksClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteLinksClient {
return ExpressRouteLinksClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-07-01/network/expressrouteports.go b/services/network/mgmt/2019-07-01/network/expressrouteports.go
index 759321690b84..5f75c9a081cd 100644
--- a/services/network/mgmt/2019-07-01/network/expressrouteports.go
+++ b/services/network/mgmt/2019-07-01/network/expressrouteports.go
@@ -35,7 +35,9 @@ func NewExpressRoutePortsClient(subscriptionID string) ExpressRoutePortsClient {
return NewExpressRoutePortsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewExpressRoutePortsClientWithBaseURI creates an instance of the ExpressRoutePortsClient client.
+// NewExpressRoutePortsClientWithBaseURI creates an instance of the ExpressRoutePortsClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewExpressRoutePortsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRoutePortsClient {
return ExpressRoutePortsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-07-01/network/expressrouteportslocations.go b/services/network/mgmt/2019-07-01/network/expressrouteportslocations.go
index af27ddc97129..482e63ae6d60 100644
--- a/services/network/mgmt/2019-07-01/network/expressrouteportslocations.go
+++ b/services/network/mgmt/2019-07-01/network/expressrouteportslocations.go
@@ -35,7 +35,9 @@ func NewExpressRoutePortsLocationsClient(subscriptionID string) ExpressRoutePort
return NewExpressRoutePortsLocationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewExpressRoutePortsLocationsClientWithBaseURI creates an instance of the ExpressRoutePortsLocationsClient client.
+// NewExpressRoutePortsLocationsClientWithBaseURI creates an instance of the ExpressRoutePortsLocationsClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewExpressRoutePortsLocationsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRoutePortsLocationsClient {
return ExpressRoutePortsLocationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-07-01/network/expressrouteserviceproviders.go b/services/network/mgmt/2019-07-01/network/expressrouteserviceproviders.go
index 1a785e950ce6..5c3f47ee8630 100644
--- a/services/network/mgmt/2019-07-01/network/expressrouteserviceproviders.go
+++ b/services/network/mgmt/2019-07-01/network/expressrouteserviceproviders.go
@@ -36,7 +36,8 @@ func NewExpressRouteServiceProvidersClient(subscriptionID string) ExpressRouteSe
}
// NewExpressRouteServiceProvidersClientWithBaseURI creates an instance of the ExpressRouteServiceProvidersClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewExpressRouteServiceProvidersClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteServiceProvidersClient {
return ExpressRouteServiceProvidersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-07-01/network/firewallpolicies.go b/services/network/mgmt/2019-07-01/network/firewallpolicies.go
index c4603a60dd58..f5ad545bc936 100644
--- a/services/network/mgmt/2019-07-01/network/firewallpolicies.go
+++ b/services/network/mgmt/2019-07-01/network/firewallpolicies.go
@@ -35,7 +35,9 @@ func NewFirewallPoliciesClient(subscriptionID string) FirewallPoliciesClient {
return NewFirewallPoliciesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewFirewallPoliciesClientWithBaseURI creates an instance of the FirewallPoliciesClient client.
+// NewFirewallPoliciesClientWithBaseURI creates an instance of the FirewallPoliciesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewFirewallPoliciesClientWithBaseURI(baseURI string, subscriptionID string) FirewallPoliciesClient {
return FirewallPoliciesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-07-01/network/firewallpolicyrulegroups.go b/services/network/mgmt/2019-07-01/network/firewallpolicyrulegroups.go
index 84e8bf1c8659..94d296d3004f 100644
--- a/services/network/mgmt/2019-07-01/network/firewallpolicyrulegroups.go
+++ b/services/network/mgmt/2019-07-01/network/firewallpolicyrulegroups.go
@@ -36,7 +36,9 @@ func NewFirewallPolicyRuleGroupsClient(subscriptionID string) FirewallPolicyRule
return NewFirewallPolicyRuleGroupsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewFirewallPolicyRuleGroupsClientWithBaseURI creates an instance of the FirewallPolicyRuleGroupsClient client.
+// NewFirewallPolicyRuleGroupsClientWithBaseURI creates an instance of the FirewallPolicyRuleGroupsClient client using
+// a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewFirewallPolicyRuleGroupsClientWithBaseURI(baseURI string, subscriptionID string) FirewallPolicyRuleGroupsClient {
return FirewallPolicyRuleGroupsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-07-01/network/hubvirtualnetworkconnections.go b/services/network/mgmt/2019-07-01/network/hubvirtualnetworkconnections.go
index 3201d17b7e24..0e2ab1b465fb 100644
--- a/services/network/mgmt/2019-07-01/network/hubvirtualnetworkconnections.go
+++ b/services/network/mgmt/2019-07-01/network/hubvirtualnetworkconnections.go
@@ -36,7 +36,8 @@ func NewHubVirtualNetworkConnectionsClient(subscriptionID string) HubVirtualNetw
}
// NewHubVirtualNetworkConnectionsClientWithBaseURI creates an instance of the HubVirtualNetworkConnectionsClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewHubVirtualNetworkConnectionsClientWithBaseURI(baseURI string, subscriptionID string) HubVirtualNetworkConnectionsClient {
return HubVirtualNetworkConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-07-01/network/inboundnatrules.go b/services/network/mgmt/2019-07-01/network/inboundnatrules.go
index 7fe4c8a21da7..2b4b66dc8f17 100644
--- a/services/network/mgmt/2019-07-01/network/inboundnatrules.go
+++ b/services/network/mgmt/2019-07-01/network/inboundnatrules.go
@@ -36,7 +36,8 @@ func NewInboundNatRulesClient(subscriptionID string) InboundNatRulesClient {
return NewInboundNatRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewInboundNatRulesClientWithBaseURI creates an instance of the InboundNatRulesClient client.
+// NewInboundNatRulesClientWithBaseURI creates an instance of the InboundNatRulesClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewInboundNatRulesClientWithBaseURI(baseURI string, subscriptionID string) InboundNatRulesClient {
return InboundNatRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-07-01/network/interfaceipconfigurations.go b/services/network/mgmt/2019-07-01/network/interfaceipconfigurations.go
index f0bb40acd4f4..6357f3b45fdc 100644
--- a/services/network/mgmt/2019-07-01/network/interfaceipconfigurations.go
+++ b/services/network/mgmt/2019-07-01/network/interfaceipconfigurations.go
@@ -35,7 +35,9 @@ func NewInterfaceIPConfigurationsClient(subscriptionID string) InterfaceIPConfig
return NewInterfaceIPConfigurationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewInterfaceIPConfigurationsClientWithBaseURI creates an instance of the InterfaceIPConfigurationsClient client.
+// NewInterfaceIPConfigurationsClientWithBaseURI creates an instance of the InterfaceIPConfigurationsClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewInterfaceIPConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) InterfaceIPConfigurationsClient {
return InterfaceIPConfigurationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-07-01/network/interfaceloadbalancers.go b/services/network/mgmt/2019-07-01/network/interfaceloadbalancers.go
index 470f81b85da2..6997e7f4e30d 100644
--- a/services/network/mgmt/2019-07-01/network/interfaceloadbalancers.go
+++ b/services/network/mgmt/2019-07-01/network/interfaceloadbalancers.go
@@ -35,7 +35,9 @@ func NewInterfaceLoadBalancersClient(subscriptionID string) InterfaceLoadBalance
return NewInterfaceLoadBalancersClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewInterfaceLoadBalancersClientWithBaseURI creates an instance of the InterfaceLoadBalancersClient client.
+// NewInterfaceLoadBalancersClientWithBaseURI creates an instance of the InterfaceLoadBalancersClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewInterfaceLoadBalancersClientWithBaseURI(baseURI string, subscriptionID string) InterfaceLoadBalancersClient {
return InterfaceLoadBalancersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-07-01/network/interfacesgroup.go b/services/network/mgmt/2019-07-01/network/interfacesgroup.go
index b27f9a39da3a..4cc5d487f7ac 100644
--- a/services/network/mgmt/2019-07-01/network/interfacesgroup.go
+++ b/services/network/mgmt/2019-07-01/network/interfacesgroup.go
@@ -35,7 +35,8 @@ func NewInterfacesClient(subscriptionID string) InterfacesClient {
return NewInterfacesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewInterfacesClientWithBaseURI creates an instance of the InterfacesClient client.
+// NewInterfacesClientWithBaseURI creates an instance of the InterfacesClient client using a custom endpoint. Use this
+// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewInterfacesClientWithBaseURI(baseURI string, subscriptionID string) InterfacesClient {
return InterfacesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-07-01/network/interfacetapconfigurations.go b/services/network/mgmt/2019-07-01/network/interfacetapconfigurations.go
index 7f4e2ee1e3ba..64a81cfa2e8c 100644
--- a/services/network/mgmt/2019-07-01/network/interfacetapconfigurations.go
+++ b/services/network/mgmt/2019-07-01/network/interfacetapconfigurations.go
@@ -36,7 +36,9 @@ func NewInterfaceTapConfigurationsClient(subscriptionID string) InterfaceTapConf
return NewInterfaceTapConfigurationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewInterfaceTapConfigurationsClientWithBaseURI creates an instance of the InterfaceTapConfigurationsClient client.
+// NewInterfaceTapConfigurationsClientWithBaseURI creates an instance of the InterfaceTapConfigurationsClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewInterfaceTapConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) InterfaceTapConfigurationsClient {
return InterfaceTapConfigurationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-07-01/network/loadbalancerbackendaddresspools.go b/services/network/mgmt/2019-07-01/network/loadbalancerbackendaddresspools.go
index 3933ca803600..252bf429e43e 100644
--- a/services/network/mgmt/2019-07-01/network/loadbalancerbackendaddresspools.go
+++ b/services/network/mgmt/2019-07-01/network/loadbalancerbackendaddresspools.go
@@ -36,7 +36,8 @@ func NewLoadBalancerBackendAddressPoolsClient(subscriptionID string) LoadBalance
}
// NewLoadBalancerBackendAddressPoolsClientWithBaseURI creates an instance of the LoadBalancerBackendAddressPoolsClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewLoadBalancerBackendAddressPoolsClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerBackendAddressPoolsClient {
return LoadBalancerBackendAddressPoolsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-07-01/network/loadbalancerfrontendipconfigurations.go b/services/network/mgmt/2019-07-01/network/loadbalancerfrontendipconfigurations.go
index f3fe42a2b741..f2d792c54946 100644
--- a/services/network/mgmt/2019-07-01/network/loadbalancerfrontendipconfigurations.go
+++ b/services/network/mgmt/2019-07-01/network/loadbalancerfrontendipconfigurations.go
@@ -37,7 +37,8 @@ func NewLoadBalancerFrontendIPConfigurationsClient(subscriptionID string) LoadBa
}
// NewLoadBalancerFrontendIPConfigurationsClientWithBaseURI creates an instance of the
-// LoadBalancerFrontendIPConfigurationsClient client.
+// LoadBalancerFrontendIPConfigurationsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewLoadBalancerFrontendIPConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerFrontendIPConfigurationsClient {
return LoadBalancerFrontendIPConfigurationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-07-01/network/loadbalancerloadbalancingrules.go b/services/network/mgmt/2019-07-01/network/loadbalancerloadbalancingrules.go
index 2f1f6ec2c1fb..253973d931c5 100644
--- a/services/network/mgmt/2019-07-01/network/loadbalancerloadbalancingrules.go
+++ b/services/network/mgmt/2019-07-01/network/loadbalancerloadbalancingrules.go
@@ -36,7 +36,8 @@ func NewLoadBalancerLoadBalancingRulesClient(subscriptionID string) LoadBalancer
}
// NewLoadBalancerLoadBalancingRulesClientWithBaseURI creates an instance of the LoadBalancerLoadBalancingRulesClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewLoadBalancerLoadBalancingRulesClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerLoadBalancingRulesClient {
return LoadBalancerLoadBalancingRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-07-01/network/loadbalancernetworkinterfaces.go b/services/network/mgmt/2019-07-01/network/loadbalancernetworkinterfaces.go
index 477f3ba9a1bf..58664086824e 100644
--- a/services/network/mgmt/2019-07-01/network/loadbalancernetworkinterfaces.go
+++ b/services/network/mgmt/2019-07-01/network/loadbalancernetworkinterfaces.go
@@ -36,7 +36,8 @@ func NewLoadBalancerNetworkInterfacesClient(subscriptionID string) LoadBalancerN
}
// NewLoadBalancerNetworkInterfacesClientWithBaseURI creates an instance of the LoadBalancerNetworkInterfacesClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewLoadBalancerNetworkInterfacesClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerNetworkInterfacesClient {
return LoadBalancerNetworkInterfacesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-07-01/network/loadbalanceroutboundrules.go b/services/network/mgmt/2019-07-01/network/loadbalanceroutboundrules.go
index 82eff1e212e4..fd76a61ece85 100644
--- a/services/network/mgmt/2019-07-01/network/loadbalanceroutboundrules.go
+++ b/services/network/mgmt/2019-07-01/network/loadbalanceroutboundrules.go
@@ -35,7 +35,9 @@ func NewLoadBalancerOutboundRulesClient(subscriptionID string) LoadBalancerOutbo
return NewLoadBalancerOutboundRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewLoadBalancerOutboundRulesClientWithBaseURI creates an instance of the LoadBalancerOutboundRulesClient client.
+// NewLoadBalancerOutboundRulesClientWithBaseURI creates an instance of the LoadBalancerOutboundRulesClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewLoadBalancerOutboundRulesClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerOutboundRulesClient {
return LoadBalancerOutboundRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-07-01/network/loadbalancerprobes.go b/services/network/mgmt/2019-07-01/network/loadbalancerprobes.go
index 46cab6e35822..0bbdfb8975db 100644
--- a/services/network/mgmt/2019-07-01/network/loadbalancerprobes.go
+++ b/services/network/mgmt/2019-07-01/network/loadbalancerprobes.go
@@ -35,7 +35,9 @@ func NewLoadBalancerProbesClient(subscriptionID string) LoadBalancerProbesClient
return NewLoadBalancerProbesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewLoadBalancerProbesClientWithBaseURI creates an instance of the LoadBalancerProbesClient client.
+// NewLoadBalancerProbesClientWithBaseURI creates an instance of the LoadBalancerProbesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewLoadBalancerProbesClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerProbesClient {
return LoadBalancerProbesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-07-01/network/loadbalancers.go b/services/network/mgmt/2019-07-01/network/loadbalancers.go
index dd1934505b96..d42cfe4f53ef 100644
--- a/services/network/mgmt/2019-07-01/network/loadbalancers.go
+++ b/services/network/mgmt/2019-07-01/network/loadbalancers.go
@@ -35,7 +35,8 @@ func NewLoadBalancersClient(subscriptionID string) LoadBalancersClient {
return NewLoadBalancersClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewLoadBalancersClientWithBaseURI creates an instance of the LoadBalancersClient client.
+// NewLoadBalancersClientWithBaseURI creates an instance of the LoadBalancersClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewLoadBalancersClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancersClient {
return LoadBalancersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-07-01/network/localnetworkgateways.go b/services/network/mgmt/2019-07-01/network/localnetworkgateways.go
index be6bced47194..dc83388e7167 100644
--- a/services/network/mgmt/2019-07-01/network/localnetworkgateways.go
+++ b/services/network/mgmt/2019-07-01/network/localnetworkgateways.go
@@ -36,7 +36,9 @@ func NewLocalNetworkGatewaysClient(subscriptionID string) LocalNetworkGatewaysCl
return NewLocalNetworkGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewLocalNetworkGatewaysClientWithBaseURI creates an instance of the LocalNetworkGatewaysClient client.
+// NewLocalNetworkGatewaysClientWithBaseURI creates an instance of the LocalNetworkGatewaysClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewLocalNetworkGatewaysClientWithBaseURI(baseURI string, subscriptionID string) LocalNetworkGatewaysClient {
return LocalNetworkGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-07-01/network/natgateways.go b/services/network/mgmt/2019-07-01/network/natgateways.go
index 834037bf49f4..9b338bf3035c 100644
--- a/services/network/mgmt/2019-07-01/network/natgateways.go
+++ b/services/network/mgmt/2019-07-01/network/natgateways.go
@@ -35,7 +35,8 @@ func NewNatGatewaysClient(subscriptionID string) NatGatewaysClient {
return NewNatGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewNatGatewaysClientWithBaseURI creates an instance of the NatGatewaysClient client.
+// NewNatGatewaysClientWithBaseURI creates an instance of the NatGatewaysClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewNatGatewaysClientWithBaseURI(baseURI string, subscriptionID string) NatGatewaysClient {
return NatGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-07-01/network/networkapi/interfaces.go b/services/network/mgmt/2019-07-01/network/networkapi/interfaces.go
index 7cf8795bd87e..0c0967b2cbbd 100644
--- a/services/network/mgmt/2019-07-01/network/networkapi/interfaces.go
+++ b/services/network/mgmt/2019-07-01/network/networkapi/interfaces.go
@@ -39,12 +39,15 @@ type ApplicationGatewaysClientAPI interface {
Get(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result network.ApplicationGateway, err error)
GetSslPredefinedPolicy(ctx context.Context, predefinedPolicyName string) (result network.ApplicationGatewaySslPredefinedPolicy, err error)
List(ctx context.Context, resourceGroupName string) (result network.ApplicationGatewayListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.ApplicationGatewayListResultIterator, err error)
ListAll(ctx context.Context) (result network.ApplicationGatewayListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.ApplicationGatewayListResultIterator, err error)
ListAvailableRequestHeaders(ctx context.Context) (result network.ListString, err error)
ListAvailableResponseHeaders(ctx context.Context) (result network.ListString, err error)
ListAvailableServerVariables(ctx context.Context) (result network.ListString, err error)
ListAvailableSslOptions(ctx context.Context) (result network.ApplicationGatewayAvailableSslOptions, err error)
ListAvailableSslPredefinedPolicies(ctx context.Context) (result network.ApplicationGatewayAvailableSslPredefinedPoliciesPage, err error)
+ ListAvailableSslPredefinedPoliciesComplete(ctx context.Context) (result network.ApplicationGatewayAvailableSslPredefinedPoliciesIterator, err error)
ListAvailableWafRuleSets(ctx context.Context) (result network.ApplicationGatewayAvailableWafRuleSetsResult, err error)
Start(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result network.ApplicationGatewaysStartFuture, err error)
Stop(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result network.ApplicationGatewaysStopFuture, err error)
@@ -59,7 +62,9 @@ type ApplicationSecurityGroupsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, applicationSecurityGroupName string) (result network.ApplicationSecurityGroupsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, applicationSecurityGroupName string) (result network.ApplicationSecurityGroup, err error)
List(ctx context.Context, resourceGroupName string) (result network.ApplicationSecurityGroupListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.ApplicationSecurityGroupListResultIterator, err error)
ListAll(ctx context.Context) (result network.ApplicationSecurityGroupListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.ApplicationSecurityGroupListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, applicationSecurityGroupName string, parameters network.TagsObject) (result network.ApplicationSecurityGroupsUpdateTagsFuture, err error)
}
@@ -68,6 +73,7 @@ var _ ApplicationSecurityGroupsClientAPI = (*network.ApplicationSecurityGroupsCl
// AvailableDelegationsClientAPI contains the set of methods on the AvailableDelegationsClient type.
type AvailableDelegationsClientAPI interface {
List(ctx context.Context, location string) (result network.AvailableDelegationsResultPage, err error)
+ ListComplete(ctx context.Context, location string) (result network.AvailableDelegationsResultIterator, err error)
}
var _ AvailableDelegationsClientAPI = (*network.AvailableDelegationsClient)(nil)
@@ -75,6 +81,7 @@ var _ AvailableDelegationsClientAPI = (*network.AvailableDelegationsClient)(nil)
// AvailableResourceGroupDelegationsClientAPI contains the set of methods on the AvailableResourceGroupDelegationsClient type.
type AvailableResourceGroupDelegationsClientAPI interface {
List(ctx context.Context, location string, resourceGroupName string) (result network.AvailableDelegationsResultPage, err error)
+ ListComplete(ctx context.Context, location string, resourceGroupName string) (result network.AvailableDelegationsResultIterator, err error)
}
var _ AvailableResourceGroupDelegationsClientAPI = (*network.AvailableResourceGroupDelegationsClient)(nil)
@@ -85,7 +92,9 @@ type AzureFirewallsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, azureFirewallName string) (result network.AzureFirewallsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, azureFirewallName string) (result network.AzureFirewall, err error)
List(ctx context.Context, resourceGroupName string) (result network.AzureFirewallListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.AzureFirewallListResultIterator, err error)
ListAll(ctx context.Context) (result network.AzureFirewallListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.AzureFirewallListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, azureFirewallName string, parameters network.AzureFirewall) (result network.AzureFirewall, err error)
}
@@ -94,6 +103,7 @@ var _ AzureFirewallsClientAPI = (*network.AzureFirewallsClient)(nil)
// AzureFirewallFqdnTagsClientAPI contains the set of methods on the AzureFirewallFqdnTagsClient type.
type AzureFirewallFqdnTagsClientAPI interface {
ListAll(ctx context.Context) (result network.AzureFirewallFqdnTagListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.AzureFirewallFqdnTagListResultIterator, err error)
}
var _ AzureFirewallFqdnTagsClientAPI = (*network.AzureFirewallFqdnTagsClient)(nil)
@@ -104,7 +114,9 @@ type BastionHostsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, bastionHostName string) (result network.BastionHostsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, bastionHostName string) (result network.BastionHost, err error)
List(ctx context.Context) (result network.BastionHostListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.BastionHostListResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.BastionHostListResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.BastionHostListResultIterator, err error)
}
var _ BastionHostsClientAPI = (*network.BastionHostsClient)(nil)
@@ -125,7 +137,9 @@ type DdosProtectionPlansClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, ddosProtectionPlanName string) (result network.DdosProtectionPlansDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, ddosProtectionPlanName string) (result network.DdosProtectionPlan, err error)
List(ctx context.Context) (result network.DdosProtectionPlanListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.DdosProtectionPlanListResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.DdosProtectionPlanListResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.DdosProtectionPlanListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, ddosProtectionPlanName string, parameters network.TagsObject) (result network.DdosProtectionPlansUpdateTagsFuture, err error)
}
@@ -134,6 +148,7 @@ var _ DdosProtectionPlansClientAPI = (*network.DdosProtectionPlansClient)(nil)
// AvailableEndpointServicesClientAPI contains the set of methods on the AvailableEndpointServicesClient type.
type AvailableEndpointServicesClientAPI interface {
List(ctx context.Context, location string) (result network.EndpointServicesListResultPage, err error)
+ ListComplete(ctx context.Context, location string) (result network.EndpointServicesListResultIterator, err error)
}
var _ AvailableEndpointServicesClientAPI = (*network.AvailableEndpointServicesClient)(nil)
@@ -144,6 +159,7 @@ type ExpressRouteCircuitAuthorizationsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, circuitName string, authorizationName string) (result network.ExpressRouteCircuitAuthorizationsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, circuitName string, authorizationName string) (result network.ExpressRouteCircuitAuthorization, err error)
List(ctx context.Context, resourceGroupName string, circuitName string) (result network.AuthorizationListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, circuitName string) (result network.AuthorizationListResultIterator, err error)
}
var _ ExpressRouteCircuitAuthorizationsClientAPI = (*network.ExpressRouteCircuitAuthorizationsClient)(nil)
@@ -154,6 +170,7 @@ type ExpressRouteCircuitPeeringsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.ExpressRouteCircuitPeeringsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.ExpressRouteCircuitPeering, err error)
List(ctx context.Context, resourceGroupName string, circuitName string) (result network.ExpressRouteCircuitPeeringListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, circuitName string) (result network.ExpressRouteCircuitPeeringListResultIterator, err error)
}
var _ ExpressRouteCircuitPeeringsClientAPI = (*network.ExpressRouteCircuitPeeringsClient)(nil)
@@ -164,6 +181,7 @@ type ExpressRouteCircuitConnectionsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, connectionName string) (result network.ExpressRouteCircuitConnectionsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, connectionName string) (result network.ExpressRouteCircuitConnection, err error)
List(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.ExpressRouteCircuitConnectionListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.ExpressRouteCircuitConnectionListResultIterator, err error)
}
var _ ExpressRouteCircuitConnectionsClientAPI = (*network.ExpressRouteCircuitConnectionsClient)(nil)
@@ -172,6 +190,7 @@ var _ ExpressRouteCircuitConnectionsClientAPI = (*network.ExpressRouteCircuitCon
type PeerExpressRouteCircuitConnectionsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, connectionName string) (result network.PeerExpressRouteCircuitConnection, err error)
List(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.PeerExpressRouteCircuitConnectionListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.PeerExpressRouteCircuitConnectionListResultIterator, err error)
}
var _ PeerExpressRouteCircuitConnectionsClientAPI = (*network.PeerExpressRouteCircuitConnectionsClient)(nil)
@@ -184,7 +203,9 @@ type ExpressRouteCircuitsClientAPI interface {
GetPeeringStats(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.ExpressRouteCircuitStats, err error)
GetStats(ctx context.Context, resourceGroupName string, circuitName string) (result network.ExpressRouteCircuitStats, err error)
List(ctx context.Context, resourceGroupName string) (result network.ExpressRouteCircuitListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.ExpressRouteCircuitListResultIterator, err error)
ListAll(ctx context.Context) (result network.ExpressRouteCircuitListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.ExpressRouteCircuitListResultIterator, err error)
ListArpTable(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, devicePath string) (result network.ExpressRouteCircuitsListArpTableFuture, err error)
ListRoutesTable(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, devicePath string) (result network.ExpressRouteCircuitsListRoutesTableFuture, err error)
ListRoutesTableSummary(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, devicePath string) (result network.ExpressRouteCircuitsListRoutesTableSummaryFuture, err error)
@@ -196,6 +217,7 @@ var _ ExpressRouteCircuitsClientAPI = (*network.ExpressRouteCircuitsClient)(nil)
// ExpressRouteServiceProvidersClientAPI contains the set of methods on the ExpressRouteServiceProvidersClient type.
type ExpressRouteServiceProvidersClientAPI interface {
List(ctx context.Context) (result network.ExpressRouteServiceProviderListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ExpressRouteServiceProviderListResultIterator, err error)
}
var _ ExpressRouteServiceProvidersClientAPI = (*network.ExpressRouteServiceProvidersClient)(nil)
@@ -205,8 +227,10 @@ type ExpressRouteCrossConnectionsClientAPI interface {
CreateOrUpdate(ctx context.Context, resourceGroupName string, crossConnectionName string, parameters network.ExpressRouteCrossConnection) (result network.ExpressRouteCrossConnectionsCreateOrUpdateFuture, err error)
Get(ctx context.Context, resourceGroupName string, crossConnectionName string) (result network.ExpressRouteCrossConnection, err error)
List(ctx context.Context) (result network.ExpressRouteCrossConnectionListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ExpressRouteCrossConnectionListResultIterator, err error)
ListArpTable(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string, devicePath string) (result network.ExpressRouteCrossConnectionsListArpTableFuture, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ExpressRouteCrossConnectionListResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ExpressRouteCrossConnectionListResultIterator, err error)
ListRoutesTable(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string, devicePath string) (result network.ExpressRouteCrossConnectionsListRoutesTableFuture, err error)
ListRoutesTableSummary(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string, devicePath string) (result network.ExpressRouteCrossConnectionsListRoutesTableSummaryFuture, err error)
UpdateTags(ctx context.Context, resourceGroupName string, crossConnectionName string, crossConnectionParameters network.TagsObject) (result network.ExpressRouteCrossConnectionsUpdateTagsFuture, err error)
@@ -220,6 +244,7 @@ type ExpressRouteCrossConnectionPeeringsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string) (result network.ExpressRouteCrossConnectionPeeringsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string) (result network.ExpressRouteCrossConnectionPeering, err error)
List(ctx context.Context, resourceGroupName string, crossConnectionName string) (result network.ExpressRouteCrossConnectionPeeringListPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, crossConnectionName string) (result network.ExpressRouteCrossConnectionPeeringListIterator, err error)
}
var _ ExpressRouteCrossConnectionPeeringsClientAPI = (*network.ExpressRouteCrossConnectionPeeringsClient)(nil)
@@ -249,6 +274,7 @@ var _ ExpressRouteConnectionsClientAPI = (*network.ExpressRouteConnectionsClient
type ExpressRoutePortsLocationsClientAPI interface {
Get(ctx context.Context, locationName string) (result network.ExpressRoutePortsLocation, err error)
List(ctx context.Context) (result network.ExpressRoutePortsLocationListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ExpressRoutePortsLocationListResultIterator, err error)
}
var _ ExpressRoutePortsLocationsClientAPI = (*network.ExpressRoutePortsLocationsClient)(nil)
@@ -259,7 +285,9 @@ type ExpressRoutePortsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, expressRoutePortName string) (result network.ExpressRoutePortsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, expressRoutePortName string) (result network.ExpressRoutePort, err error)
List(ctx context.Context) (result network.ExpressRoutePortListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ExpressRoutePortListResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ExpressRoutePortListResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ExpressRoutePortListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, expressRoutePortName string, parameters network.TagsObject) (result network.ExpressRoutePortsUpdateTagsFuture, err error)
}
@@ -269,6 +297,7 @@ var _ ExpressRoutePortsClientAPI = (*network.ExpressRoutePortsClient)(nil)
type ExpressRouteLinksClientAPI interface {
Get(ctx context.Context, resourceGroupName string, expressRoutePortName string, linkName string) (result network.ExpressRouteLink, err error)
List(ctx context.Context, resourceGroupName string, expressRoutePortName string) (result network.ExpressRouteLinkListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, expressRoutePortName string) (result network.ExpressRouteLinkListResultIterator, err error)
}
var _ ExpressRouteLinksClientAPI = (*network.ExpressRouteLinksClient)(nil)
@@ -279,7 +308,9 @@ type FirewallPoliciesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, firewallPolicyName string) (result network.FirewallPoliciesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, firewallPolicyName string, expand string) (result network.FirewallPolicy, err error)
List(ctx context.Context, resourceGroupName string) (result network.FirewallPolicyListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.FirewallPolicyListResultIterator, err error)
ListAll(ctx context.Context) (result network.FirewallPolicyListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.FirewallPolicyListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, firewallPolicyName string, firewallPolicyParameters network.TagsObject) (result network.FirewallPolicy, err error)
}
@@ -291,6 +322,7 @@ type FirewallPolicyRuleGroupsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, firewallPolicyName string, ruleGroupName string) (result network.FirewallPolicyRuleGroupsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, firewallPolicyName string, ruleGroupName string) (result network.FirewallPolicyRuleGroup, err error)
List(ctx context.Context, resourceGroupName string, firewallPolicyName string) (result network.FirewallPolicyRuleGroupListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, firewallPolicyName string) (result network.FirewallPolicyRuleGroupListResultIterator, err error)
}
var _ FirewallPolicyRuleGroupsClientAPI = (*network.FirewallPolicyRuleGroupsClient)(nil)
@@ -301,7 +333,9 @@ type LoadBalancersClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancersDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, expand string) (result network.LoadBalancer, err error)
List(ctx context.Context, resourceGroupName string) (result network.LoadBalancerListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.LoadBalancerListResultIterator, err error)
ListAll(ctx context.Context) (result network.LoadBalancerListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.LoadBalancerListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, loadBalancerName string, parameters network.TagsObject) (result network.LoadBalancersUpdateTagsFuture, err error)
}
@@ -311,6 +345,7 @@ var _ LoadBalancersClientAPI = (*network.LoadBalancersClient)(nil)
type LoadBalancerBackendAddressPoolsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, backendAddressPoolName string) (result network.BackendAddressPool, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerBackendAddressPoolListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerBackendAddressPoolListResultIterator, err error)
}
var _ LoadBalancerBackendAddressPoolsClientAPI = (*network.LoadBalancerBackendAddressPoolsClient)(nil)
@@ -319,6 +354,7 @@ var _ LoadBalancerBackendAddressPoolsClientAPI = (*network.LoadBalancerBackendAd
type LoadBalancerFrontendIPConfigurationsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, frontendIPConfigurationName string) (result network.FrontendIPConfiguration, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerFrontendIPConfigurationListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerFrontendIPConfigurationListResultIterator, err error)
}
var _ LoadBalancerFrontendIPConfigurationsClientAPI = (*network.LoadBalancerFrontendIPConfigurationsClient)(nil)
@@ -329,6 +365,7 @@ type InboundNatRulesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, loadBalancerName string, inboundNatRuleName string) (result network.InboundNatRulesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, inboundNatRuleName string, expand string) (result network.InboundNatRule, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.InboundNatRuleListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.InboundNatRuleListResultIterator, err error)
}
var _ InboundNatRulesClientAPI = (*network.InboundNatRulesClient)(nil)
@@ -337,6 +374,7 @@ var _ InboundNatRulesClientAPI = (*network.InboundNatRulesClient)(nil)
type LoadBalancerLoadBalancingRulesClientAPI interface {
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, loadBalancingRuleName string) (result network.LoadBalancingRule, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerLoadBalancingRuleListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerLoadBalancingRuleListResultIterator, err error)
}
var _ LoadBalancerLoadBalancingRulesClientAPI = (*network.LoadBalancerLoadBalancingRulesClient)(nil)
@@ -345,6 +383,7 @@ var _ LoadBalancerLoadBalancingRulesClientAPI = (*network.LoadBalancerLoadBalanc
type LoadBalancerOutboundRulesClientAPI interface {
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, outboundRuleName string) (result network.OutboundRule, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerOutboundRuleListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerOutboundRuleListResultIterator, err error)
}
var _ LoadBalancerOutboundRulesClientAPI = (*network.LoadBalancerOutboundRulesClient)(nil)
@@ -352,6 +391,7 @@ var _ LoadBalancerOutboundRulesClientAPI = (*network.LoadBalancerOutboundRulesCl
// LoadBalancerNetworkInterfacesClientAPI contains the set of methods on the LoadBalancerNetworkInterfacesClient type.
type LoadBalancerNetworkInterfacesClientAPI interface {
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.InterfaceListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.InterfaceListResultIterator, err error)
}
var _ LoadBalancerNetworkInterfacesClientAPI = (*network.LoadBalancerNetworkInterfacesClient)(nil)
@@ -360,6 +400,7 @@ var _ LoadBalancerNetworkInterfacesClientAPI = (*network.LoadBalancerNetworkInte
type LoadBalancerProbesClientAPI interface {
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, probeName string) (result network.Probe, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerProbeListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerProbeListResultIterator, err error)
}
var _ LoadBalancerProbesClientAPI = (*network.LoadBalancerProbesClient)(nil)
@@ -370,7 +411,9 @@ type NatGatewaysClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, natGatewayName string) (result network.NatGatewaysDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, natGatewayName string, expand string) (result network.NatGateway, err error)
List(ctx context.Context, resourceGroupName string) (result network.NatGatewayListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.NatGatewayListResultIterator, err error)
ListAll(ctx context.Context) (result network.NatGatewayListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.NatGatewayListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, natGatewayName string, parameters network.TagsObject) (result network.NatGateway, err error)
}
@@ -385,11 +428,16 @@ type InterfacesClientAPI interface {
GetVirtualMachineScaleSetIPConfiguration(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, IPConfigurationName string, expand string) (result network.InterfaceIPConfiguration, err error)
GetVirtualMachineScaleSetNetworkInterface(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, expand string) (result network.Interface, err error)
List(ctx context.Context, resourceGroupName string) (result network.InterfaceListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.InterfaceListResultIterator, err error)
ListAll(ctx context.Context) (result network.InterfaceListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.InterfaceListResultIterator, err error)
ListEffectiveNetworkSecurityGroups(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfacesListEffectiveNetworkSecurityGroupsFuture, err error)
ListVirtualMachineScaleSetIPConfigurations(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, expand string) (result network.InterfaceIPConfigurationListResultPage, err error)
+ ListVirtualMachineScaleSetIPConfigurationsComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, expand string) (result network.InterfaceIPConfigurationListResultIterator, err error)
ListVirtualMachineScaleSetNetworkInterfaces(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result network.InterfaceListResultPage, err error)
+ ListVirtualMachineScaleSetNetworkInterfacesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result network.InterfaceListResultIterator, err error)
ListVirtualMachineScaleSetVMNetworkInterfaces(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string) (result network.InterfaceListResultPage, err error)
+ ListVirtualMachineScaleSetVMNetworkInterfacesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string) (result network.InterfaceListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, networkInterfaceName string, parameters network.TagsObject) (result network.InterfacesUpdateTagsFuture, err error)
}
@@ -399,6 +447,7 @@ var _ InterfacesClientAPI = (*network.InterfacesClient)(nil)
type InterfaceIPConfigurationsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, networkInterfaceName string, IPConfigurationName string) (result network.InterfaceIPConfiguration, err error)
List(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceIPConfigurationListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceIPConfigurationListResultIterator, err error)
}
var _ InterfaceIPConfigurationsClientAPI = (*network.InterfaceIPConfigurationsClient)(nil)
@@ -406,6 +455,7 @@ var _ InterfaceIPConfigurationsClientAPI = (*network.InterfaceIPConfigurationsCl
// InterfaceLoadBalancersClientAPI contains the set of methods on the InterfaceLoadBalancersClient type.
type InterfaceLoadBalancersClientAPI interface {
List(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceLoadBalancerListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceLoadBalancerListResultIterator, err error)
}
var _ InterfaceLoadBalancersClientAPI = (*network.InterfaceLoadBalancersClient)(nil)
@@ -416,6 +466,7 @@ type InterfaceTapConfigurationsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, networkInterfaceName string, tapConfigurationName string) (result network.InterfaceTapConfigurationsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, networkInterfaceName string, tapConfigurationName string) (result network.InterfaceTapConfiguration, err error)
List(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceTapConfigurationListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceTapConfigurationListResultIterator, err error)
}
var _ InterfaceTapConfigurationsClientAPI = (*network.InterfaceTapConfigurationsClient)(nil)
@@ -426,7 +477,9 @@ type ProfilesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, networkProfileName string) (result network.ProfilesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, networkProfileName string, expand string) (result network.Profile, err error)
List(ctx context.Context, resourceGroupName string) (result network.ProfileListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.ProfileListResultIterator, err error)
ListAll(ctx context.Context) (result network.ProfileListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.ProfileListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, networkProfileName string, parameters network.TagsObject) (result network.Profile, err error)
}
@@ -438,7 +491,9 @@ type SecurityGroupsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityGroupsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, expand string) (result network.SecurityGroup, err error)
List(ctx context.Context, resourceGroupName string) (result network.SecurityGroupListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.SecurityGroupListResultIterator, err error)
ListAll(ctx context.Context) (result network.SecurityGroupListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.SecurityGroupListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, parameters network.TagsObject) (result network.SecurityGroupsUpdateTagsFuture, err error)
}
@@ -450,6 +505,7 @@ type SecurityRulesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, securityRuleName string) (result network.SecurityRulesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, securityRuleName string) (result network.SecurityRule, err error)
List(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityRuleListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityRuleListResultIterator, err error)
}
var _ SecurityRulesClientAPI = (*network.SecurityRulesClient)(nil)
@@ -458,6 +514,7 @@ var _ SecurityRulesClientAPI = (*network.SecurityRulesClient)(nil)
type DefaultSecurityRulesClientAPI interface {
Get(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, defaultSecurityRuleName string) (result network.SecurityRule, err error)
List(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityRuleListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityRuleListResultIterator, err error)
}
var _ DefaultSecurityRulesClientAPI = (*network.DefaultSecurityRulesClient)(nil)
@@ -515,6 +572,7 @@ var _ ConnectionMonitorsClientAPI = (*network.ConnectionMonitorsClient)(nil)
// OperationsClientAPI contains the set of methods on the OperationsClient type.
type OperationsClientAPI interface {
List(ctx context.Context) (result network.OperationListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.OperationListResultIterator, err error)
}
var _ OperationsClientAPI = (*network.OperationsClient)(nil)
@@ -525,7 +583,9 @@ type PrivateEndpointsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, privateEndpointName string) (result network.PrivateEndpointsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, privateEndpointName string, expand string) (result network.PrivateEndpoint, err error)
List(ctx context.Context, resourceGroupName string) (result network.PrivateEndpointListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.PrivateEndpointListResultIterator, err error)
ListBySubscription(ctx context.Context) (result network.PrivateEndpointListResultPage, err error)
+ ListBySubscriptionComplete(ctx context.Context) (result network.PrivateEndpointListResultIterator, err error)
}
var _ PrivateEndpointsClientAPI = (*network.PrivateEndpointsClient)(nil)
@@ -533,7 +593,9 @@ var _ PrivateEndpointsClientAPI = (*network.PrivateEndpointsClient)(nil)
// AvailablePrivateEndpointTypesClientAPI contains the set of methods on the AvailablePrivateEndpointTypesClient type.
type AvailablePrivateEndpointTypesClientAPI interface {
List(ctx context.Context, location string) (result network.AvailablePrivateEndpointTypesResultPage, err error)
+ ListComplete(ctx context.Context, location string) (result network.AvailablePrivateEndpointTypesResultIterator, err error)
ListByResourceGroup(ctx context.Context, location string, resourceGroupName string) (result network.AvailablePrivateEndpointTypesResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, location string, resourceGroupName string) (result network.AvailablePrivateEndpointTypesResultIterator, err error)
}
var _ AvailablePrivateEndpointTypesClientAPI = (*network.AvailablePrivateEndpointTypesClient)(nil)
@@ -547,9 +609,13 @@ type PrivateLinkServicesClientAPI interface {
DeletePrivateEndpointConnection(ctx context.Context, resourceGroupName string, serviceName string, peConnectionName string) (result network.PrivateLinkServicesDeletePrivateEndpointConnectionFuture, err error)
Get(ctx context.Context, resourceGroupName string, serviceName string, expand string) (result network.PrivateLinkService, err error)
List(ctx context.Context, resourceGroupName string) (result network.PrivateLinkServiceListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.PrivateLinkServiceListResultIterator, err error)
ListAutoApprovedPrivateLinkServices(ctx context.Context, location string) (result network.AutoApprovedPrivateLinkServicesResultPage, err error)
+ ListAutoApprovedPrivateLinkServicesComplete(ctx context.Context, location string) (result network.AutoApprovedPrivateLinkServicesResultIterator, err error)
ListAutoApprovedPrivateLinkServicesByResourceGroup(ctx context.Context, location string, resourceGroupName string) (result network.AutoApprovedPrivateLinkServicesResultPage, err error)
+ ListAutoApprovedPrivateLinkServicesByResourceGroupComplete(ctx context.Context, location string, resourceGroupName string) (result network.AutoApprovedPrivateLinkServicesResultIterator, err error)
ListBySubscription(ctx context.Context) (result network.PrivateLinkServiceListResultPage, err error)
+ ListBySubscriptionComplete(ctx context.Context) (result network.PrivateLinkServiceListResultIterator, err error)
UpdatePrivateEndpointConnection(ctx context.Context, resourceGroupName string, serviceName string, peConnectionName string, parameters network.PrivateEndpointConnection) (result network.PrivateEndpointConnection, err error)
}
@@ -562,9 +628,13 @@ type PublicIPAddressesClientAPI interface {
Get(ctx context.Context, resourceGroupName string, publicIPAddressName string, expand string) (result network.PublicIPAddress, err error)
GetVirtualMachineScaleSetPublicIPAddress(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, IPConfigurationName string, publicIPAddressName string, expand string) (result network.PublicIPAddress, err error)
List(ctx context.Context, resourceGroupName string) (result network.PublicIPAddressListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.PublicIPAddressListResultIterator, err error)
ListAll(ctx context.Context) (result network.PublicIPAddressListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.PublicIPAddressListResultIterator, err error)
ListVirtualMachineScaleSetPublicIPAddresses(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result network.PublicIPAddressListResultPage, err error)
+ ListVirtualMachineScaleSetPublicIPAddressesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result network.PublicIPAddressListResultIterator, err error)
ListVirtualMachineScaleSetVMPublicIPAddresses(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, IPConfigurationName string) (result network.PublicIPAddressListResultPage, err error)
+ ListVirtualMachineScaleSetVMPublicIPAddressesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, IPConfigurationName string) (result network.PublicIPAddressListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, publicIPAddressName string, parameters network.TagsObject) (result network.PublicIPAddressesUpdateTagsFuture, err error)
}
@@ -576,7 +646,9 @@ type PublicIPPrefixesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, publicIPPrefixName string) (result network.PublicIPPrefixesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, publicIPPrefixName string, expand string) (result network.PublicIPPrefix, err error)
List(ctx context.Context, resourceGroupName string) (result network.PublicIPPrefixListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.PublicIPPrefixListResultIterator, err error)
ListAll(ctx context.Context) (result network.PublicIPPrefixListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.PublicIPPrefixListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, publicIPPrefixName string, parameters network.TagsObject) (result network.PublicIPPrefixesUpdateTagsFuture, err error)
}
@@ -588,7 +660,9 @@ type RouteFiltersClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, routeFilterName string) (result network.RouteFiltersDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, routeFilterName string, expand string) (result network.RouteFilter, err error)
List(ctx context.Context) (result network.RouteFilterListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.RouteFilterListResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.RouteFilterListResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.RouteFilterListResultIterator, err error)
Update(ctx context.Context, resourceGroupName string, routeFilterName string, routeFilterParameters network.PatchRouteFilter) (result network.RouteFiltersUpdateFuture, err error)
}
@@ -600,6 +674,7 @@ type RouteFilterRulesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, routeFilterName string, ruleName string) (result network.RouteFilterRulesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, routeFilterName string, ruleName string) (result network.RouteFilterRule, err error)
ListByRouteFilter(ctx context.Context, resourceGroupName string, routeFilterName string) (result network.RouteFilterRuleListResultPage, err error)
+ ListByRouteFilterComplete(ctx context.Context, resourceGroupName string, routeFilterName string) (result network.RouteFilterRuleListResultIterator, err error)
Update(ctx context.Context, resourceGroupName string, routeFilterName string, ruleName string, routeFilterRuleParameters network.PatchRouteFilterRule) (result network.RouteFilterRulesUpdateFuture, err error)
}
@@ -611,7 +686,9 @@ type RouteTablesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, routeTableName string) (result network.RouteTablesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, routeTableName string, expand string) (result network.RouteTable, err error)
List(ctx context.Context, resourceGroupName string) (result network.RouteTableListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.RouteTableListResultIterator, err error)
ListAll(ctx context.Context) (result network.RouteTableListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.RouteTableListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, routeTableName string, parameters network.TagsObject) (result network.RouteTablesUpdateTagsFuture, err error)
}
@@ -623,6 +700,7 @@ type RoutesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, routeTableName string, routeName string) (result network.RoutesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, routeTableName string, routeName string) (result network.Route, err error)
List(ctx context.Context, resourceGroupName string, routeTableName string) (result network.RouteListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, routeTableName string) (result network.RouteListResultIterator, err error)
}
var _ RoutesClientAPI = (*network.RoutesClient)(nil)
@@ -630,6 +708,7 @@ var _ RoutesClientAPI = (*network.RoutesClient)(nil)
// BgpServiceCommunitiesClientAPI contains the set of methods on the BgpServiceCommunitiesClient type.
type BgpServiceCommunitiesClientAPI interface {
List(ctx context.Context) (result network.BgpServiceCommunityListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.BgpServiceCommunityListResultIterator, err error)
}
var _ BgpServiceCommunitiesClientAPI = (*network.BgpServiceCommunitiesClient)(nil)
@@ -640,7 +719,9 @@ type ServiceEndpointPoliciesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string) (result network.ServiceEndpointPoliciesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string, expand string) (result network.ServiceEndpointPolicy, err error)
List(ctx context.Context) (result network.ServiceEndpointPolicyListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ServiceEndpointPolicyListResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ServiceEndpointPolicyListResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ServiceEndpointPolicyListResultIterator, err error)
Update(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string, parameters network.TagsObject) (result network.ServiceEndpointPoliciesUpdateFuture, err error)
}
@@ -652,6 +733,7 @@ type ServiceEndpointPolicyDefinitionsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string, serviceEndpointPolicyDefinitionName string) (result network.ServiceEndpointPolicyDefinitionsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string, serviceEndpointPolicyDefinitionName string) (result network.ServiceEndpointPolicyDefinition, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string) (result network.ServiceEndpointPolicyDefinitionListResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string) (result network.ServiceEndpointPolicyDefinitionListResultIterator, err error)
}
var _ ServiceEndpointPolicyDefinitionsClientAPI = (*network.ServiceEndpointPolicyDefinitionsClient)(nil)
@@ -666,6 +748,7 @@ var _ ServiceTagsClientAPI = (*network.ServiceTagsClient)(nil)
// UsagesClientAPI contains the set of methods on the UsagesClient type.
type UsagesClientAPI interface {
List(ctx context.Context, location string) (result network.UsagesListResultPage, err error)
+ ListComplete(ctx context.Context, location string) (result network.UsagesListResultIterator, err error)
}
var _ UsagesClientAPI = (*network.UsagesClient)(nil)
@@ -677,8 +760,11 @@ type VirtualNetworksClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworksDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualNetworkName string, expand string) (result network.VirtualNetwork, err error)
List(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkListResultIterator, err error)
ListAll(ctx context.Context) (result network.VirtualNetworkListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.VirtualNetworkListResultIterator, err error)
ListUsage(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworkListUsageResultPage, err error)
+ ListUsageComplete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworkListUsageResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, virtualNetworkName string, parameters network.TagsObject) (result network.VirtualNetworksUpdateTagsFuture, err error)
}
@@ -690,6 +776,7 @@ type SubnetsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualNetworkName string, subnetName string) (result network.SubnetsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualNetworkName string, subnetName string, expand string) (result network.Subnet, err error)
List(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.SubnetListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.SubnetListResultIterator, err error)
PrepareNetworkPolicies(ctx context.Context, resourceGroupName string, virtualNetworkName string, subnetName string, prepareNetworkPoliciesRequestParameters network.PrepareNetworkPoliciesRequest) (result network.SubnetsPrepareNetworkPoliciesFuture, err error)
UnprepareNetworkPolicies(ctx context.Context, resourceGroupName string, virtualNetworkName string, subnetName string, unprepareNetworkPoliciesRequestParameters network.UnprepareNetworkPoliciesRequest) (result network.SubnetsUnprepareNetworkPoliciesFuture, err error)
}
@@ -716,6 +803,7 @@ type VirtualNetworkPeeringsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualNetworkName string, virtualNetworkPeeringName string) (result network.VirtualNetworkPeeringsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualNetworkName string, virtualNetworkPeeringName string) (result network.VirtualNetworkPeering, err error)
List(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworkPeeringListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworkPeeringListResultIterator, err error)
}
var _ VirtualNetworkPeeringsClientAPI = (*network.VirtualNetworkPeeringsClient)(nil)
@@ -734,7 +822,9 @@ type VirtualNetworkGatewaysClientAPI interface {
GetVpnclientIpsecParameters(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGatewaysGetVpnclientIpsecParametersFuture, err error)
GetVpnProfilePackageURL(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGatewaysGetVpnProfilePackageURLFuture, err error)
List(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayListResultIterator, err error)
ListConnections(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGatewayListConnectionsResultPage, err error)
+ ListConnectionsComplete(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGatewayListConnectionsResultIterator, err error)
Reset(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, gatewayVip string) (result network.VirtualNetworkGatewaysResetFuture, err error)
ResetVpnClientSharedKey(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGatewaysResetVpnClientSharedKeyFuture, err error)
SetVpnclientIpsecParameters(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, vpnclientIpsecParams network.VpnClientIPsecParameters) (result network.VirtualNetworkGatewaysSetVpnclientIpsecParametersFuture, err error)
@@ -754,6 +844,7 @@ type VirtualNetworkGatewayConnectionsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string) (result network.VirtualNetworkGatewayConnection, err error)
GetSharedKey(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string) (result network.ConnectionSharedKey, err error)
List(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayConnectionListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayConnectionListResultIterator, err error)
ResetSharedKey(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string, parameters network.ConnectionResetSharedKey) (result network.VirtualNetworkGatewayConnectionsResetSharedKeyFuture, err error)
SetSharedKey(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string, parameters network.ConnectionSharedKey) (result network.VirtualNetworkGatewayConnectionsSetSharedKeyFuture, err error)
StartPacketCapture(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string, parameters *network.VpnPacketCaptureStartParameters) (result network.VirtualNetworkGatewayConnectionsStartPacketCaptureFuture, err error)
@@ -769,6 +860,7 @@ type LocalNetworkGatewaysClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, localNetworkGatewayName string) (result network.LocalNetworkGatewaysDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, localNetworkGatewayName string) (result network.LocalNetworkGateway, err error)
List(ctx context.Context, resourceGroupName string) (result network.LocalNetworkGatewayListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.LocalNetworkGatewayListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, localNetworkGatewayName string, parameters network.TagsObject) (result network.LocalNetworkGatewaysUpdateTagsFuture, err error)
}
@@ -780,7 +872,9 @@ type VirtualNetworkTapsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, tapName string) (result network.VirtualNetworkTapsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, tapName string) (result network.VirtualNetworkTap, err error)
ListAll(ctx context.Context) (result network.VirtualNetworkTapListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.VirtualNetworkTapListResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkTapListResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkTapListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, tapName string, tapParameters network.TagsObject) (result network.VirtualNetworkTapsUpdateTagsFuture, err error)
}
@@ -792,7 +886,9 @@ type VirtualRoutersClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualRouterName string) (result network.VirtualRoutersDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualRouterName string, expand string) (result network.VirtualRouter, err error)
List(ctx context.Context) (result network.VirtualRouterListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.VirtualRouterListResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.VirtualRouterListResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.VirtualRouterListResultIterator, err error)
Update(ctx context.Context, resourceGroupName string, virtualRouterName string, parameters network.TagsObject) (result network.VirtualRouter, err error)
}
@@ -804,6 +900,7 @@ type VirtualRouterPeeringsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualRouterName string, peeringName string) (result network.VirtualRouterPeeringsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualRouterName string, peeringName string) (result network.VirtualRouterPeering, err error)
List(ctx context.Context, resourceGroupName string, virtualRouterName string) (result network.VirtualRouterPeeringListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, virtualRouterName string) (result network.VirtualRouterPeeringListResultIterator, err error)
Update(ctx context.Context, resourceGroupName string, virtualRouterName string, peeringName string, parameters network.VirtualRouterPeering) (result network.VirtualRouterPeering, err error)
}
@@ -815,7 +912,9 @@ type VirtualWansClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualWANName string) (result network.VirtualWansDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualWANName string) (result network.VirtualWAN, err error)
List(ctx context.Context) (result network.ListVirtualWANsResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ListVirtualWANsResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ListVirtualWANsResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ListVirtualWANsResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, virtualWANName string, wANParameters network.TagsObject) (result network.VirtualWansUpdateTagsFuture, err error)
}
@@ -827,7 +926,9 @@ type VpnSitesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, vpnSiteName string) (result network.VpnSitesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, vpnSiteName string) (result network.VpnSite, err error)
List(ctx context.Context) (result network.ListVpnSitesResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ListVpnSitesResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ListVpnSitesResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ListVpnSitesResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, vpnSiteName string, vpnSiteParameters network.TagsObject) (result network.VpnSitesUpdateTagsFuture, err error)
}
@@ -837,6 +938,7 @@ var _ VpnSitesClientAPI = (*network.VpnSitesClient)(nil)
type VpnSiteLinksClientAPI interface {
Get(ctx context.Context, resourceGroupName string, vpnSiteName string, vpnSiteLinkName string) (result network.VpnSiteLink, err error)
ListByVpnSite(ctx context.Context, resourceGroupName string, vpnSiteName string) (result network.ListVpnSiteLinksResultPage, err error)
+ ListByVpnSiteComplete(ctx context.Context, resourceGroupName string, vpnSiteName string) (result network.ListVpnSiteLinksResultIterator, err error)
}
var _ VpnSiteLinksClientAPI = (*network.VpnSiteLinksClient)(nil)
@@ -854,7 +956,9 @@ type VirtualHubsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualHubName string) (result network.VirtualHubsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualHubName string) (result network.VirtualHub, err error)
List(ctx context.Context) (result network.ListVirtualHubsResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ListVirtualHubsResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ListVirtualHubsResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ListVirtualHubsResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, virtualHubName string, virtualHubParameters network.TagsObject) (result network.VirtualHubsUpdateTagsFuture, err error)
}
@@ -864,6 +968,7 @@ var _ VirtualHubsClientAPI = (*network.VirtualHubsClient)(nil)
type HubVirtualNetworkConnectionsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, virtualHubName string, connectionName string) (result network.HubVirtualNetworkConnection, err error)
List(ctx context.Context, resourceGroupName string, virtualHubName string) (result network.ListHubVirtualNetworkConnectionsResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, virtualHubName string) (result network.ListHubVirtualNetworkConnectionsResultIterator, err error)
}
var _ HubVirtualNetworkConnectionsClientAPI = (*network.HubVirtualNetworkConnectionsClient)(nil)
@@ -874,7 +979,9 @@ type VpnGatewaysClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, gatewayName string) (result network.VpnGatewaysDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, gatewayName string) (result network.VpnGateway, err error)
List(ctx context.Context) (result network.ListVpnGatewaysResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ListVpnGatewaysResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ListVpnGatewaysResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ListVpnGatewaysResultIterator, err error)
Reset(ctx context.Context, resourceGroupName string, gatewayName string) (result network.VpnGatewaysResetFuture, err error)
UpdateTags(ctx context.Context, resourceGroupName string, gatewayName string, vpnGatewayParameters network.TagsObject) (result network.VpnGatewaysUpdateTagsFuture, err error)
}
@@ -887,6 +994,7 @@ type VpnConnectionsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, gatewayName string, connectionName string) (result network.VpnConnectionsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, gatewayName string, connectionName string) (result network.VpnConnection, err error)
ListByVpnGateway(ctx context.Context, resourceGroupName string, gatewayName string) (result network.ListVpnConnectionsResultPage, err error)
+ ListByVpnGatewayComplete(ctx context.Context, resourceGroupName string, gatewayName string) (result network.ListVpnConnectionsResultIterator, err error)
}
var _ VpnConnectionsClientAPI = (*network.VpnConnectionsClient)(nil)
@@ -901,6 +1009,7 @@ var _ VpnSiteLinkConnectionsClientAPI = (*network.VpnSiteLinkConnectionsClient)(
// VpnLinkConnectionsClientAPI contains the set of methods on the VpnLinkConnectionsClient type.
type VpnLinkConnectionsClientAPI interface {
ListByVpnConnection(ctx context.Context, resourceGroupName string, gatewayName string, connectionName string) (result network.ListVpnSiteLinkConnectionsResultPage, err error)
+ ListByVpnConnectionComplete(ctx context.Context, resourceGroupName string, gatewayName string, connectionName string) (result network.ListVpnSiteLinkConnectionsResultIterator, err error)
}
var _ VpnLinkConnectionsClientAPI = (*network.VpnLinkConnectionsClient)(nil)
@@ -911,6 +1020,7 @@ type P2sVpnServerConfigurationsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualWanName string, p2SVpnServerConfigurationName string) (result network.P2sVpnServerConfigurationsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualWanName string, p2SVpnServerConfigurationName string) (result network.P2SVpnServerConfiguration, err error)
ListByVirtualWan(ctx context.Context, resourceGroupName string, virtualWanName string) (result network.ListP2SVpnServerConfigurationsResultPage, err error)
+ ListByVirtualWanComplete(ctx context.Context, resourceGroupName string, virtualWanName string) (result network.ListP2SVpnServerConfigurationsResultIterator, err error)
}
var _ P2sVpnServerConfigurationsClientAPI = (*network.P2sVpnServerConfigurationsClient)(nil)
@@ -923,7 +1033,9 @@ type P2sVpnGatewaysClientAPI interface {
Get(ctx context.Context, resourceGroupName string, gatewayName string) (result network.P2SVpnGateway, err error)
GetP2sVpnConnectionHealth(ctx context.Context, resourceGroupName string, gatewayName string) (result network.P2sVpnGatewaysGetP2sVpnConnectionHealthFuture, err error)
List(ctx context.Context) (result network.ListP2SVpnGatewaysResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ListP2SVpnGatewaysResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ListP2SVpnGatewaysResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ListP2SVpnGatewaysResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, gatewayName string, p2SVpnGatewayParameters network.TagsObject) (result network.P2sVpnGatewaysUpdateTagsFuture, err error)
}
@@ -935,7 +1047,9 @@ type WebApplicationFirewallPoliciesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, policyName string) (result network.WebApplicationFirewallPoliciesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, policyName string) (result network.WebApplicationFirewallPolicy, err error)
List(ctx context.Context, resourceGroupName string) (result network.WebApplicationFirewallPolicyListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.WebApplicationFirewallPolicyListResultIterator, err error)
ListAll(ctx context.Context) (result network.WebApplicationFirewallPolicyListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.WebApplicationFirewallPolicyListResultIterator, err error)
}
var _ WebApplicationFirewallPoliciesClientAPI = (*network.WebApplicationFirewallPoliciesClient)(nil)
diff --git a/services/network/mgmt/2019-07-01/network/operations.go b/services/network/mgmt/2019-07-01/network/operations.go
index 8ab2f808e085..fa1005eaf48e 100644
--- a/services/network/mgmt/2019-07-01/network/operations.go
+++ b/services/network/mgmt/2019-07-01/network/operations.go
@@ -35,7 +35,8 @@ func NewOperationsClient(subscriptionID string) OperationsClient {
return NewOperationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewOperationsClientWithBaseURI creates an instance of the OperationsClient client.
+// NewOperationsClientWithBaseURI creates an instance of the OperationsClient client using a custom endpoint. Use this
+// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient {
return OperationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-07-01/network/p2svpngateways.go b/services/network/mgmt/2019-07-01/network/p2svpngateways.go
index f7eaa1985de8..551f59324ada 100644
--- a/services/network/mgmt/2019-07-01/network/p2svpngateways.go
+++ b/services/network/mgmt/2019-07-01/network/p2svpngateways.go
@@ -35,7 +35,8 @@ func NewP2sVpnGatewaysClient(subscriptionID string) P2sVpnGatewaysClient {
return NewP2sVpnGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewP2sVpnGatewaysClientWithBaseURI creates an instance of the P2sVpnGatewaysClient client.
+// NewP2sVpnGatewaysClientWithBaseURI creates an instance of the P2sVpnGatewaysClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewP2sVpnGatewaysClientWithBaseURI(baseURI string, subscriptionID string) P2sVpnGatewaysClient {
return P2sVpnGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-07-01/network/p2svpnserverconfigurations.go b/services/network/mgmt/2019-07-01/network/p2svpnserverconfigurations.go
index 086cc6326038..efa3e9bae1b1 100644
--- a/services/network/mgmt/2019-07-01/network/p2svpnserverconfigurations.go
+++ b/services/network/mgmt/2019-07-01/network/p2svpnserverconfigurations.go
@@ -35,7 +35,9 @@ func NewP2sVpnServerConfigurationsClient(subscriptionID string) P2sVpnServerConf
return NewP2sVpnServerConfigurationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewP2sVpnServerConfigurationsClientWithBaseURI creates an instance of the P2sVpnServerConfigurationsClient client.
+// NewP2sVpnServerConfigurationsClientWithBaseURI creates an instance of the P2sVpnServerConfigurationsClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewP2sVpnServerConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) P2sVpnServerConfigurationsClient {
return P2sVpnServerConfigurationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-07-01/network/packetcaptures.go b/services/network/mgmt/2019-07-01/network/packetcaptures.go
index c9a392e95c63..c74976f56273 100644
--- a/services/network/mgmt/2019-07-01/network/packetcaptures.go
+++ b/services/network/mgmt/2019-07-01/network/packetcaptures.go
@@ -36,7 +36,8 @@ func NewPacketCapturesClient(subscriptionID string) PacketCapturesClient {
return NewPacketCapturesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewPacketCapturesClientWithBaseURI creates an instance of the PacketCapturesClient client.
+// NewPacketCapturesClientWithBaseURI creates an instance of the PacketCapturesClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewPacketCapturesClientWithBaseURI(baseURI string, subscriptionID string) PacketCapturesClient {
return PacketCapturesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-07-01/network/peerexpressroutecircuitconnections.go b/services/network/mgmt/2019-07-01/network/peerexpressroutecircuitconnections.go
index 99ba04971a24..4a5fe580c919 100644
--- a/services/network/mgmt/2019-07-01/network/peerexpressroutecircuitconnections.go
+++ b/services/network/mgmt/2019-07-01/network/peerexpressroutecircuitconnections.go
@@ -37,7 +37,8 @@ func NewPeerExpressRouteCircuitConnectionsClient(subscriptionID string) PeerExpr
}
// NewPeerExpressRouteCircuitConnectionsClientWithBaseURI creates an instance of the
-// PeerExpressRouteCircuitConnectionsClient client.
+// PeerExpressRouteCircuitConnectionsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewPeerExpressRouteCircuitConnectionsClientWithBaseURI(baseURI string, subscriptionID string) PeerExpressRouteCircuitConnectionsClient {
return PeerExpressRouteCircuitConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-07-01/network/privateendpoints.go b/services/network/mgmt/2019-07-01/network/privateendpoints.go
index ecd68601f8c9..de6cde9bdbd0 100644
--- a/services/network/mgmt/2019-07-01/network/privateendpoints.go
+++ b/services/network/mgmt/2019-07-01/network/privateendpoints.go
@@ -35,7 +35,9 @@ func NewPrivateEndpointsClient(subscriptionID string) PrivateEndpointsClient {
return NewPrivateEndpointsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewPrivateEndpointsClientWithBaseURI creates an instance of the PrivateEndpointsClient client.
+// NewPrivateEndpointsClientWithBaseURI creates an instance of the PrivateEndpointsClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewPrivateEndpointsClientWithBaseURI(baseURI string, subscriptionID string) PrivateEndpointsClient {
return PrivateEndpointsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-07-01/network/privatelinkservices.go b/services/network/mgmt/2019-07-01/network/privatelinkservices.go
index 6c7e9e90c85a..797bc2fd8baf 100644
--- a/services/network/mgmt/2019-07-01/network/privatelinkservices.go
+++ b/services/network/mgmt/2019-07-01/network/privatelinkservices.go
@@ -35,7 +35,9 @@ func NewPrivateLinkServicesClient(subscriptionID string) PrivateLinkServicesClie
return NewPrivateLinkServicesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewPrivateLinkServicesClientWithBaseURI creates an instance of the PrivateLinkServicesClient client.
+// NewPrivateLinkServicesClientWithBaseURI creates an instance of the PrivateLinkServicesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewPrivateLinkServicesClientWithBaseURI(baseURI string, subscriptionID string) PrivateLinkServicesClient {
return PrivateLinkServicesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-07-01/network/profiles.go b/services/network/mgmt/2019-07-01/network/profiles.go
index 470be1127a5c..1b722e70cf05 100644
--- a/services/network/mgmt/2019-07-01/network/profiles.go
+++ b/services/network/mgmt/2019-07-01/network/profiles.go
@@ -35,7 +35,8 @@ func NewProfilesClient(subscriptionID string) ProfilesClient {
return NewProfilesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewProfilesClientWithBaseURI creates an instance of the ProfilesClient client.
+// NewProfilesClientWithBaseURI creates an instance of the ProfilesClient client using a custom endpoint. Use this
+// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewProfilesClientWithBaseURI(baseURI string, subscriptionID string) ProfilesClient {
return ProfilesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-07-01/network/publicipaddresses.go b/services/network/mgmt/2019-07-01/network/publicipaddresses.go
index 011ceb875cfb..364ac95f06dd 100644
--- a/services/network/mgmt/2019-07-01/network/publicipaddresses.go
+++ b/services/network/mgmt/2019-07-01/network/publicipaddresses.go
@@ -36,7 +36,9 @@ func NewPublicIPAddressesClient(subscriptionID string) PublicIPAddressesClient {
return NewPublicIPAddressesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewPublicIPAddressesClientWithBaseURI creates an instance of the PublicIPAddressesClient client.
+// NewPublicIPAddressesClientWithBaseURI creates an instance of the PublicIPAddressesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewPublicIPAddressesClientWithBaseURI(baseURI string, subscriptionID string) PublicIPAddressesClient {
return PublicIPAddressesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-07-01/network/publicipprefixes.go b/services/network/mgmt/2019-07-01/network/publicipprefixes.go
index 0d92dea80fdd..8b1caf007388 100644
--- a/services/network/mgmt/2019-07-01/network/publicipprefixes.go
+++ b/services/network/mgmt/2019-07-01/network/publicipprefixes.go
@@ -35,7 +35,9 @@ func NewPublicIPPrefixesClient(subscriptionID string) PublicIPPrefixesClient {
return NewPublicIPPrefixesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewPublicIPPrefixesClientWithBaseURI creates an instance of the PublicIPPrefixesClient client.
+// NewPublicIPPrefixesClientWithBaseURI creates an instance of the PublicIPPrefixesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewPublicIPPrefixesClientWithBaseURI(baseURI string, subscriptionID string) PublicIPPrefixesClient {
return PublicIPPrefixesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-07-01/network/resourcenavigationlinks.go b/services/network/mgmt/2019-07-01/network/resourcenavigationlinks.go
index 2740bb8d9899..f4ed579d2b45 100644
--- a/services/network/mgmt/2019-07-01/network/resourcenavigationlinks.go
+++ b/services/network/mgmt/2019-07-01/network/resourcenavigationlinks.go
@@ -35,7 +35,9 @@ func NewResourceNavigationLinksClient(subscriptionID string) ResourceNavigationL
return NewResourceNavigationLinksClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewResourceNavigationLinksClientWithBaseURI creates an instance of the ResourceNavigationLinksClient client.
+// NewResourceNavigationLinksClientWithBaseURI creates an instance of the ResourceNavigationLinksClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewResourceNavigationLinksClientWithBaseURI(baseURI string, subscriptionID string) ResourceNavigationLinksClient {
return ResourceNavigationLinksClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-07-01/network/routefilterrules.go b/services/network/mgmt/2019-07-01/network/routefilterrules.go
index 72c1bddaaf8c..7fed51bf65fd 100644
--- a/services/network/mgmt/2019-07-01/network/routefilterrules.go
+++ b/services/network/mgmt/2019-07-01/network/routefilterrules.go
@@ -36,7 +36,9 @@ func NewRouteFilterRulesClient(subscriptionID string) RouteFilterRulesClient {
return NewRouteFilterRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewRouteFilterRulesClientWithBaseURI creates an instance of the RouteFilterRulesClient client.
+// NewRouteFilterRulesClientWithBaseURI creates an instance of the RouteFilterRulesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewRouteFilterRulesClientWithBaseURI(baseURI string, subscriptionID string) RouteFilterRulesClient {
return RouteFilterRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-07-01/network/routefilters.go b/services/network/mgmt/2019-07-01/network/routefilters.go
index 959c43982388..5d9aa17944c7 100644
--- a/services/network/mgmt/2019-07-01/network/routefilters.go
+++ b/services/network/mgmt/2019-07-01/network/routefilters.go
@@ -35,7 +35,8 @@ func NewRouteFiltersClient(subscriptionID string) RouteFiltersClient {
return NewRouteFiltersClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewRouteFiltersClientWithBaseURI creates an instance of the RouteFiltersClient client.
+// NewRouteFiltersClientWithBaseURI creates an instance of the RouteFiltersClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewRouteFiltersClientWithBaseURI(baseURI string, subscriptionID string) RouteFiltersClient {
return RouteFiltersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-07-01/network/routes.go b/services/network/mgmt/2019-07-01/network/routes.go
index 10905c1b06f0..278a304547c7 100644
--- a/services/network/mgmt/2019-07-01/network/routes.go
+++ b/services/network/mgmt/2019-07-01/network/routes.go
@@ -35,7 +35,8 @@ func NewRoutesClient(subscriptionID string) RoutesClient {
return NewRoutesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewRoutesClientWithBaseURI creates an instance of the RoutesClient client.
+// NewRoutesClientWithBaseURI creates an instance of the RoutesClient client using a custom endpoint. Use this when
+// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewRoutesClientWithBaseURI(baseURI string, subscriptionID string) RoutesClient {
return RoutesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-07-01/network/routetables.go b/services/network/mgmt/2019-07-01/network/routetables.go
index 98a6b10e4546..d67a58f8902c 100644
--- a/services/network/mgmt/2019-07-01/network/routetables.go
+++ b/services/network/mgmt/2019-07-01/network/routetables.go
@@ -35,7 +35,8 @@ func NewRouteTablesClient(subscriptionID string) RouteTablesClient {
return NewRouteTablesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewRouteTablesClientWithBaseURI creates an instance of the RouteTablesClient client.
+// NewRouteTablesClientWithBaseURI creates an instance of the RouteTablesClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewRouteTablesClientWithBaseURI(baseURI string, subscriptionID string) RouteTablesClient {
return RouteTablesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-07-01/network/securitygroups.go b/services/network/mgmt/2019-07-01/network/securitygroups.go
index 3df3e1de9ed0..15969bfd86b0 100644
--- a/services/network/mgmt/2019-07-01/network/securitygroups.go
+++ b/services/network/mgmt/2019-07-01/network/securitygroups.go
@@ -35,7 +35,8 @@ func NewSecurityGroupsClient(subscriptionID string) SecurityGroupsClient {
return NewSecurityGroupsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewSecurityGroupsClientWithBaseURI creates an instance of the SecurityGroupsClient client.
+// NewSecurityGroupsClientWithBaseURI creates an instance of the SecurityGroupsClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewSecurityGroupsClientWithBaseURI(baseURI string, subscriptionID string) SecurityGroupsClient {
return SecurityGroupsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-07-01/network/securityrules.go b/services/network/mgmt/2019-07-01/network/securityrules.go
index ab7c6a3ff491..fdafd9cca7c6 100644
--- a/services/network/mgmt/2019-07-01/network/securityrules.go
+++ b/services/network/mgmt/2019-07-01/network/securityrules.go
@@ -35,7 +35,8 @@ func NewSecurityRulesClient(subscriptionID string) SecurityRulesClient {
return NewSecurityRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewSecurityRulesClientWithBaseURI creates an instance of the SecurityRulesClient client.
+// NewSecurityRulesClientWithBaseURI creates an instance of the SecurityRulesClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewSecurityRulesClientWithBaseURI(baseURI string, subscriptionID string) SecurityRulesClient {
return SecurityRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-07-01/network/serviceassociationlinks.go b/services/network/mgmt/2019-07-01/network/serviceassociationlinks.go
index de5889ad3039..a7eea7065c56 100644
--- a/services/network/mgmt/2019-07-01/network/serviceassociationlinks.go
+++ b/services/network/mgmt/2019-07-01/network/serviceassociationlinks.go
@@ -35,7 +35,9 @@ func NewServiceAssociationLinksClient(subscriptionID string) ServiceAssociationL
return NewServiceAssociationLinksClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewServiceAssociationLinksClientWithBaseURI creates an instance of the ServiceAssociationLinksClient client.
+// NewServiceAssociationLinksClientWithBaseURI creates an instance of the ServiceAssociationLinksClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewServiceAssociationLinksClientWithBaseURI(baseURI string, subscriptionID string) ServiceAssociationLinksClient {
return ServiceAssociationLinksClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-07-01/network/serviceendpointpolicies.go b/services/network/mgmt/2019-07-01/network/serviceendpointpolicies.go
index 6e6865aed65d..47eee1c6e3e7 100644
--- a/services/network/mgmt/2019-07-01/network/serviceendpointpolicies.go
+++ b/services/network/mgmt/2019-07-01/network/serviceendpointpolicies.go
@@ -35,7 +35,9 @@ func NewServiceEndpointPoliciesClient(subscriptionID string) ServiceEndpointPoli
return NewServiceEndpointPoliciesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewServiceEndpointPoliciesClientWithBaseURI creates an instance of the ServiceEndpointPoliciesClient client.
+// NewServiceEndpointPoliciesClientWithBaseURI creates an instance of the ServiceEndpointPoliciesClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewServiceEndpointPoliciesClientWithBaseURI(baseURI string, subscriptionID string) ServiceEndpointPoliciesClient {
return ServiceEndpointPoliciesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-07-01/network/serviceendpointpolicydefinitions.go b/services/network/mgmt/2019-07-01/network/serviceendpointpolicydefinitions.go
index daad64b9a503..23f251bb6a0e 100644
--- a/services/network/mgmt/2019-07-01/network/serviceendpointpolicydefinitions.go
+++ b/services/network/mgmt/2019-07-01/network/serviceendpointpolicydefinitions.go
@@ -36,7 +36,8 @@ func NewServiceEndpointPolicyDefinitionsClient(subscriptionID string) ServiceEnd
}
// NewServiceEndpointPolicyDefinitionsClientWithBaseURI creates an instance of the
-// ServiceEndpointPolicyDefinitionsClient client.
+// ServiceEndpointPolicyDefinitionsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewServiceEndpointPolicyDefinitionsClientWithBaseURI(baseURI string, subscriptionID string) ServiceEndpointPolicyDefinitionsClient {
return ServiceEndpointPolicyDefinitionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-07-01/network/servicetags.go b/services/network/mgmt/2019-07-01/network/servicetags.go
index 1ef9e377ef3c..3edb0366c931 100644
--- a/services/network/mgmt/2019-07-01/network/servicetags.go
+++ b/services/network/mgmt/2019-07-01/network/servicetags.go
@@ -35,7 +35,8 @@ func NewServiceTagsClient(subscriptionID string) ServiceTagsClient {
return NewServiceTagsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewServiceTagsClientWithBaseURI creates an instance of the ServiceTagsClient client.
+// NewServiceTagsClientWithBaseURI creates an instance of the ServiceTagsClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewServiceTagsClientWithBaseURI(baseURI string, subscriptionID string) ServiceTagsClient {
return ServiceTagsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-07-01/network/subnets.go b/services/network/mgmt/2019-07-01/network/subnets.go
index 6bec2ff1f18c..d294a51b7c51 100644
--- a/services/network/mgmt/2019-07-01/network/subnets.go
+++ b/services/network/mgmt/2019-07-01/network/subnets.go
@@ -35,7 +35,8 @@ func NewSubnetsClient(subscriptionID string) SubnetsClient {
return NewSubnetsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewSubnetsClientWithBaseURI creates an instance of the SubnetsClient client.
+// NewSubnetsClientWithBaseURI creates an instance of the SubnetsClient client using a custom endpoint. Use this when
+// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewSubnetsClientWithBaseURI(baseURI string, subscriptionID string) SubnetsClient {
return SubnetsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-07-01/network/usages.go b/services/network/mgmt/2019-07-01/network/usages.go
index 0b954738e1eb..e2d8c89f2ff4 100644
--- a/services/network/mgmt/2019-07-01/network/usages.go
+++ b/services/network/mgmt/2019-07-01/network/usages.go
@@ -36,7 +36,8 @@ func NewUsagesClient(subscriptionID string) UsagesClient {
return NewUsagesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewUsagesClientWithBaseURI creates an instance of the UsagesClient client.
+// NewUsagesClientWithBaseURI creates an instance of the UsagesClient client using a custom endpoint. Use this when
+// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewUsagesClientWithBaseURI(baseURI string, subscriptionID string) UsagesClient {
return UsagesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-07-01/network/virtualhubs.go b/services/network/mgmt/2019-07-01/network/virtualhubs.go
index b5c34858dd97..d5619857712a 100644
--- a/services/network/mgmt/2019-07-01/network/virtualhubs.go
+++ b/services/network/mgmt/2019-07-01/network/virtualhubs.go
@@ -35,7 +35,8 @@ func NewVirtualHubsClient(subscriptionID string) VirtualHubsClient {
return NewVirtualHubsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualHubsClientWithBaseURI creates an instance of the VirtualHubsClient client.
+// NewVirtualHubsClientWithBaseURI creates an instance of the VirtualHubsClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVirtualHubsClientWithBaseURI(baseURI string, subscriptionID string) VirtualHubsClient {
return VirtualHubsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-07-01/network/virtualnetworkgatewayconnections.go b/services/network/mgmt/2019-07-01/network/virtualnetworkgatewayconnections.go
index 8acdd67a472d..22e74c01c61f 100644
--- a/services/network/mgmt/2019-07-01/network/virtualnetworkgatewayconnections.go
+++ b/services/network/mgmt/2019-07-01/network/virtualnetworkgatewayconnections.go
@@ -37,7 +37,8 @@ func NewVirtualNetworkGatewayConnectionsClient(subscriptionID string) VirtualNet
}
// NewVirtualNetworkGatewayConnectionsClientWithBaseURI creates an instance of the
-// VirtualNetworkGatewayConnectionsClient client.
+// VirtualNetworkGatewayConnectionsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVirtualNetworkGatewayConnectionsClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworkGatewayConnectionsClient {
return VirtualNetworkGatewayConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-07-01/network/virtualnetworkgateways.go b/services/network/mgmt/2019-07-01/network/virtualnetworkgateways.go
index 43f9e9507e15..9265f1710311 100644
--- a/services/network/mgmt/2019-07-01/network/virtualnetworkgateways.go
+++ b/services/network/mgmt/2019-07-01/network/virtualnetworkgateways.go
@@ -36,7 +36,9 @@ func NewVirtualNetworkGatewaysClient(subscriptionID string) VirtualNetworkGatewa
return NewVirtualNetworkGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualNetworkGatewaysClientWithBaseURI creates an instance of the VirtualNetworkGatewaysClient client.
+// NewVirtualNetworkGatewaysClientWithBaseURI creates an instance of the VirtualNetworkGatewaysClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewVirtualNetworkGatewaysClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworkGatewaysClient {
return VirtualNetworkGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-07-01/network/virtualnetworkpeerings.go b/services/network/mgmt/2019-07-01/network/virtualnetworkpeerings.go
index e0c5c4454288..fd5d10eed83e 100644
--- a/services/network/mgmt/2019-07-01/network/virtualnetworkpeerings.go
+++ b/services/network/mgmt/2019-07-01/network/virtualnetworkpeerings.go
@@ -35,7 +35,9 @@ func NewVirtualNetworkPeeringsClient(subscriptionID string) VirtualNetworkPeerin
return NewVirtualNetworkPeeringsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualNetworkPeeringsClientWithBaseURI creates an instance of the VirtualNetworkPeeringsClient client.
+// NewVirtualNetworkPeeringsClientWithBaseURI creates an instance of the VirtualNetworkPeeringsClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewVirtualNetworkPeeringsClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworkPeeringsClient {
return VirtualNetworkPeeringsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-07-01/network/virtualnetworks.go b/services/network/mgmt/2019-07-01/network/virtualnetworks.go
index 6c8c869bf294..e71efb03223e 100644
--- a/services/network/mgmt/2019-07-01/network/virtualnetworks.go
+++ b/services/network/mgmt/2019-07-01/network/virtualnetworks.go
@@ -35,7 +35,8 @@ func NewVirtualNetworksClient(subscriptionID string) VirtualNetworksClient {
return NewVirtualNetworksClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualNetworksClientWithBaseURI creates an instance of the VirtualNetworksClient client.
+// NewVirtualNetworksClientWithBaseURI creates an instance of the VirtualNetworksClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVirtualNetworksClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworksClient {
return VirtualNetworksClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-07-01/network/virtualnetworktaps.go b/services/network/mgmt/2019-07-01/network/virtualnetworktaps.go
index b0928942fbc0..29143f5d80f2 100644
--- a/services/network/mgmt/2019-07-01/network/virtualnetworktaps.go
+++ b/services/network/mgmt/2019-07-01/network/virtualnetworktaps.go
@@ -36,7 +36,9 @@ func NewVirtualNetworkTapsClient(subscriptionID string) VirtualNetworkTapsClient
return NewVirtualNetworkTapsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualNetworkTapsClientWithBaseURI creates an instance of the VirtualNetworkTapsClient client.
+// NewVirtualNetworkTapsClientWithBaseURI creates an instance of the VirtualNetworkTapsClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewVirtualNetworkTapsClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworkTapsClient {
return VirtualNetworkTapsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-07-01/network/virtualrouterpeerings.go b/services/network/mgmt/2019-07-01/network/virtualrouterpeerings.go
index d03c3794f6e4..fa28b60c6e19 100644
--- a/services/network/mgmt/2019-07-01/network/virtualrouterpeerings.go
+++ b/services/network/mgmt/2019-07-01/network/virtualrouterpeerings.go
@@ -36,7 +36,9 @@ func NewVirtualRouterPeeringsClient(subscriptionID string) VirtualRouterPeerings
return NewVirtualRouterPeeringsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualRouterPeeringsClientWithBaseURI creates an instance of the VirtualRouterPeeringsClient client.
+// NewVirtualRouterPeeringsClientWithBaseURI creates an instance of the VirtualRouterPeeringsClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewVirtualRouterPeeringsClientWithBaseURI(baseURI string, subscriptionID string) VirtualRouterPeeringsClient {
return VirtualRouterPeeringsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-07-01/network/virtualrouters.go b/services/network/mgmt/2019-07-01/network/virtualrouters.go
index 36118636f752..d82ee105017c 100644
--- a/services/network/mgmt/2019-07-01/network/virtualrouters.go
+++ b/services/network/mgmt/2019-07-01/network/virtualrouters.go
@@ -36,7 +36,8 @@ func NewVirtualRoutersClient(subscriptionID string) VirtualRoutersClient {
return NewVirtualRoutersClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualRoutersClientWithBaseURI creates an instance of the VirtualRoutersClient client.
+// NewVirtualRoutersClientWithBaseURI creates an instance of the VirtualRoutersClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVirtualRoutersClientWithBaseURI(baseURI string, subscriptionID string) VirtualRoutersClient {
return VirtualRoutersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-07-01/network/virtualwans.go b/services/network/mgmt/2019-07-01/network/virtualwans.go
index 4b79e591e8fc..751f12d1401f 100644
--- a/services/network/mgmt/2019-07-01/network/virtualwans.go
+++ b/services/network/mgmt/2019-07-01/network/virtualwans.go
@@ -35,7 +35,8 @@ func NewVirtualWansClient(subscriptionID string) VirtualWansClient {
return NewVirtualWansClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualWansClientWithBaseURI creates an instance of the VirtualWansClient client.
+// NewVirtualWansClientWithBaseURI creates an instance of the VirtualWansClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVirtualWansClientWithBaseURI(baseURI string, subscriptionID string) VirtualWansClient {
return VirtualWansClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-07-01/network/vpnconnections.go b/services/network/mgmt/2019-07-01/network/vpnconnections.go
index 1e399227d50e..64e155be39cd 100644
--- a/services/network/mgmt/2019-07-01/network/vpnconnections.go
+++ b/services/network/mgmt/2019-07-01/network/vpnconnections.go
@@ -35,7 +35,8 @@ func NewVpnConnectionsClient(subscriptionID string) VpnConnectionsClient {
return NewVpnConnectionsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVpnConnectionsClientWithBaseURI creates an instance of the VpnConnectionsClient client.
+// NewVpnConnectionsClientWithBaseURI creates an instance of the VpnConnectionsClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVpnConnectionsClientWithBaseURI(baseURI string, subscriptionID string) VpnConnectionsClient {
return VpnConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-07-01/network/vpngateways.go b/services/network/mgmt/2019-07-01/network/vpngateways.go
index fb0329af6d91..2c3e46b3aec6 100644
--- a/services/network/mgmt/2019-07-01/network/vpngateways.go
+++ b/services/network/mgmt/2019-07-01/network/vpngateways.go
@@ -35,7 +35,8 @@ func NewVpnGatewaysClient(subscriptionID string) VpnGatewaysClient {
return NewVpnGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVpnGatewaysClientWithBaseURI creates an instance of the VpnGatewaysClient client.
+// NewVpnGatewaysClientWithBaseURI creates an instance of the VpnGatewaysClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVpnGatewaysClientWithBaseURI(baseURI string, subscriptionID string) VpnGatewaysClient {
return VpnGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-07-01/network/vpnlinkconnections.go b/services/network/mgmt/2019-07-01/network/vpnlinkconnections.go
index e3eb45fac8ea..348b031b8233 100644
--- a/services/network/mgmt/2019-07-01/network/vpnlinkconnections.go
+++ b/services/network/mgmt/2019-07-01/network/vpnlinkconnections.go
@@ -35,7 +35,9 @@ func NewVpnLinkConnectionsClient(subscriptionID string) VpnLinkConnectionsClient
return NewVpnLinkConnectionsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVpnLinkConnectionsClientWithBaseURI creates an instance of the VpnLinkConnectionsClient client.
+// NewVpnLinkConnectionsClientWithBaseURI creates an instance of the VpnLinkConnectionsClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewVpnLinkConnectionsClientWithBaseURI(baseURI string, subscriptionID string) VpnLinkConnectionsClient {
return VpnLinkConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-07-01/network/vpnsitelinkconnections.go b/services/network/mgmt/2019-07-01/network/vpnsitelinkconnections.go
index 1db1031dedbc..44bff9034b9a 100644
--- a/services/network/mgmt/2019-07-01/network/vpnsitelinkconnections.go
+++ b/services/network/mgmt/2019-07-01/network/vpnsitelinkconnections.go
@@ -35,7 +35,9 @@ func NewVpnSiteLinkConnectionsClient(subscriptionID string) VpnSiteLinkConnectio
return NewVpnSiteLinkConnectionsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVpnSiteLinkConnectionsClientWithBaseURI creates an instance of the VpnSiteLinkConnectionsClient client.
+// NewVpnSiteLinkConnectionsClientWithBaseURI creates an instance of the VpnSiteLinkConnectionsClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewVpnSiteLinkConnectionsClientWithBaseURI(baseURI string, subscriptionID string) VpnSiteLinkConnectionsClient {
return VpnSiteLinkConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-07-01/network/vpnsitelinks.go b/services/network/mgmt/2019-07-01/network/vpnsitelinks.go
index ddc90350866a..f0e0873b0822 100644
--- a/services/network/mgmt/2019-07-01/network/vpnsitelinks.go
+++ b/services/network/mgmt/2019-07-01/network/vpnsitelinks.go
@@ -35,7 +35,8 @@ func NewVpnSiteLinksClient(subscriptionID string) VpnSiteLinksClient {
return NewVpnSiteLinksClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVpnSiteLinksClientWithBaseURI creates an instance of the VpnSiteLinksClient client.
+// NewVpnSiteLinksClientWithBaseURI creates an instance of the VpnSiteLinksClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVpnSiteLinksClientWithBaseURI(baseURI string, subscriptionID string) VpnSiteLinksClient {
return VpnSiteLinksClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-07-01/network/vpnsites.go b/services/network/mgmt/2019-07-01/network/vpnsites.go
index e414f46bf941..0ffd6c7266ed 100644
--- a/services/network/mgmt/2019-07-01/network/vpnsites.go
+++ b/services/network/mgmt/2019-07-01/network/vpnsites.go
@@ -35,7 +35,8 @@ func NewVpnSitesClient(subscriptionID string) VpnSitesClient {
return NewVpnSitesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVpnSitesClientWithBaseURI creates an instance of the VpnSitesClient client.
+// NewVpnSitesClientWithBaseURI creates an instance of the VpnSitesClient client using a custom endpoint. Use this
+// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVpnSitesClientWithBaseURI(baseURI string, subscriptionID string) VpnSitesClient {
return VpnSitesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-07-01/network/vpnsitesconfiguration.go b/services/network/mgmt/2019-07-01/network/vpnsitesconfiguration.go
index 898417fad1e1..a281c81d0a59 100644
--- a/services/network/mgmt/2019-07-01/network/vpnsitesconfiguration.go
+++ b/services/network/mgmt/2019-07-01/network/vpnsitesconfiguration.go
@@ -36,7 +36,9 @@ func NewVpnSitesConfigurationClient(subscriptionID string) VpnSitesConfiguration
return NewVpnSitesConfigurationClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVpnSitesConfigurationClientWithBaseURI creates an instance of the VpnSitesConfigurationClient client.
+// NewVpnSitesConfigurationClientWithBaseURI creates an instance of the VpnSitesConfigurationClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewVpnSitesConfigurationClientWithBaseURI(baseURI string, subscriptionID string) VpnSitesConfigurationClient {
return VpnSitesConfigurationClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-07-01/network/watchers.go b/services/network/mgmt/2019-07-01/network/watchers.go
index fd1b6d95fc2f..0236f5c5a60c 100644
--- a/services/network/mgmt/2019-07-01/network/watchers.go
+++ b/services/network/mgmt/2019-07-01/network/watchers.go
@@ -36,7 +36,8 @@ func NewWatchersClient(subscriptionID string) WatchersClient {
return NewWatchersClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewWatchersClientWithBaseURI creates an instance of the WatchersClient client.
+// NewWatchersClientWithBaseURI creates an instance of the WatchersClient client using a custom endpoint. Use this
+// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewWatchersClientWithBaseURI(baseURI string, subscriptionID string) WatchersClient {
return WatchersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-07-01/network/webapplicationfirewallpolicies.go b/services/network/mgmt/2019-07-01/network/webapplicationfirewallpolicies.go
index 795632fc59f7..75389f238733 100644
--- a/services/network/mgmt/2019-07-01/network/webapplicationfirewallpolicies.go
+++ b/services/network/mgmt/2019-07-01/network/webapplicationfirewallpolicies.go
@@ -37,7 +37,8 @@ func NewWebApplicationFirewallPoliciesClient(subscriptionID string) WebApplicati
}
// NewWebApplicationFirewallPoliciesClientWithBaseURI creates an instance of the WebApplicationFirewallPoliciesClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewWebApplicationFirewallPoliciesClientWithBaseURI(baseURI string, subscriptionID string) WebApplicationFirewallPoliciesClient {
return WebApplicationFirewallPoliciesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-08-01/network/applicationgateways.go b/services/network/mgmt/2019-08-01/network/applicationgateways.go
index 4575e80cc7de..3a495a313da7 100644
--- a/services/network/mgmt/2019-08-01/network/applicationgateways.go
+++ b/services/network/mgmt/2019-08-01/network/applicationgateways.go
@@ -36,7 +36,9 @@ func NewApplicationGatewaysClient(subscriptionID string) ApplicationGatewaysClie
return NewApplicationGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewApplicationGatewaysClientWithBaseURI creates an instance of the ApplicationGatewaysClient client.
+// NewApplicationGatewaysClientWithBaseURI creates an instance of the ApplicationGatewaysClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewApplicationGatewaysClientWithBaseURI(baseURI string, subscriptionID string) ApplicationGatewaysClient {
return ApplicationGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-08-01/network/applicationsecuritygroups.go b/services/network/mgmt/2019-08-01/network/applicationsecuritygroups.go
index b022ee953a08..5a208822e43c 100644
--- a/services/network/mgmt/2019-08-01/network/applicationsecuritygroups.go
+++ b/services/network/mgmt/2019-08-01/network/applicationsecuritygroups.go
@@ -35,7 +35,9 @@ func NewApplicationSecurityGroupsClient(subscriptionID string) ApplicationSecuri
return NewApplicationSecurityGroupsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewApplicationSecurityGroupsClientWithBaseURI creates an instance of the ApplicationSecurityGroupsClient client.
+// NewApplicationSecurityGroupsClientWithBaseURI creates an instance of the ApplicationSecurityGroupsClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewApplicationSecurityGroupsClientWithBaseURI(baseURI string, subscriptionID string) ApplicationSecurityGroupsClient {
return ApplicationSecurityGroupsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-08-01/network/availabledelegations.go b/services/network/mgmt/2019-08-01/network/availabledelegations.go
index 3eef505dbe66..4987de4048bb 100644
--- a/services/network/mgmt/2019-08-01/network/availabledelegations.go
+++ b/services/network/mgmt/2019-08-01/network/availabledelegations.go
@@ -35,7 +35,9 @@ func NewAvailableDelegationsClient(subscriptionID string) AvailableDelegationsCl
return NewAvailableDelegationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewAvailableDelegationsClientWithBaseURI creates an instance of the AvailableDelegationsClient client.
+// NewAvailableDelegationsClientWithBaseURI creates an instance of the AvailableDelegationsClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewAvailableDelegationsClientWithBaseURI(baseURI string, subscriptionID string) AvailableDelegationsClient {
return AvailableDelegationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-08-01/network/availableendpointservices.go b/services/network/mgmt/2019-08-01/network/availableendpointservices.go
index e353972094f7..070692531499 100644
--- a/services/network/mgmt/2019-08-01/network/availableendpointservices.go
+++ b/services/network/mgmt/2019-08-01/network/availableendpointservices.go
@@ -35,7 +35,9 @@ func NewAvailableEndpointServicesClient(subscriptionID string) AvailableEndpoint
return NewAvailableEndpointServicesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewAvailableEndpointServicesClientWithBaseURI creates an instance of the AvailableEndpointServicesClient client.
+// NewAvailableEndpointServicesClientWithBaseURI creates an instance of the AvailableEndpointServicesClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewAvailableEndpointServicesClientWithBaseURI(baseURI string, subscriptionID string) AvailableEndpointServicesClient {
return AvailableEndpointServicesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-08-01/network/availableprivateendpointtypes.go b/services/network/mgmt/2019-08-01/network/availableprivateendpointtypes.go
index cd9a8c46e33e..bc2020bcf5df 100644
--- a/services/network/mgmt/2019-08-01/network/availableprivateendpointtypes.go
+++ b/services/network/mgmt/2019-08-01/network/availableprivateendpointtypes.go
@@ -36,7 +36,8 @@ func NewAvailablePrivateEndpointTypesClient(subscriptionID string) AvailablePriv
}
// NewAvailablePrivateEndpointTypesClientWithBaseURI creates an instance of the AvailablePrivateEndpointTypesClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewAvailablePrivateEndpointTypesClientWithBaseURI(baseURI string, subscriptionID string) AvailablePrivateEndpointTypesClient {
return AvailablePrivateEndpointTypesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-08-01/network/availableresourcegroupdelegations.go b/services/network/mgmt/2019-08-01/network/availableresourcegroupdelegations.go
index c05c3ed21905..d8b863799df6 100644
--- a/services/network/mgmt/2019-08-01/network/availableresourcegroupdelegations.go
+++ b/services/network/mgmt/2019-08-01/network/availableresourcegroupdelegations.go
@@ -37,7 +37,8 @@ func NewAvailableResourceGroupDelegationsClient(subscriptionID string) Available
}
// NewAvailableResourceGroupDelegationsClientWithBaseURI creates an instance of the
-// AvailableResourceGroupDelegationsClient client.
+// AvailableResourceGroupDelegationsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewAvailableResourceGroupDelegationsClientWithBaseURI(baseURI string, subscriptionID string) AvailableResourceGroupDelegationsClient {
return AvailableResourceGroupDelegationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-08-01/network/availableservicealiases.go b/services/network/mgmt/2019-08-01/network/availableservicealiases.go
index 6849d35f392e..f17d41980dc1 100644
--- a/services/network/mgmt/2019-08-01/network/availableservicealiases.go
+++ b/services/network/mgmt/2019-08-01/network/availableservicealiases.go
@@ -35,7 +35,9 @@ func NewAvailableServiceAliasesClient(subscriptionID string) AvailableServiceAli
return NewAvailableServiceAliasesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewAvailableServiceAliasesClientWithBaseURI creates an instance of the AvailableServiceAliasesClient client.
+// NewAvailableServiceAliasesClientWithBaseURI creates an instance of the AvailableServiceAliasesClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewAvailableServiceAliasesClientWithBaseURI(baseURI string, subscriptionID string) AvailableServiceAliasesClient {
return AvailableServiceAliasesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-08-01/network/azurefirewallfqdntags.go b/services/network/mgmt/2019-08-01/network/azurefirewallfqdntags.go
index 0e63939b68d3..ccb0312be300 100644
--- a/services/network/mgmt/2019-08-01/network/azurefirewallfqdntags.go
+++ b/services/network/mgmt/2019-08-01/network/azurefirewallfqdntags.go
@@ -35,7 +35,9 @@ func NewAzureFirewallFqdnTagsClient(subscriptionID string) AzureFirewallFqdnTags
return NewAzureFirewallFqdnTagsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewAzureFirewallFqdnTagsClientWithBaseURI creates an instance of the AzureFirewallFqdnTagsClient client.
+// NewAzureFirewallFqdnTagsClientWithBaseURI creates an instance of the AzureFirewallFqdnTagsClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewAzureFirewallFqdnTagsClientWithBaseURI(baseURI string, subscriptionID string) AzureFirewallFqdnTagsClient {
return AzureFirewallFqdnTagsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-08-01/network/azurefirewalls.go b/services/network/mgmt/2019-08-01/network/azurefirewalls.go
index ceea1d5ea7b1..1780196890a9 100644
--- a/services/network/mgmt/2019-08-01/network/azurefirewalls.go
+++ b/services/network/mgmt/2019-08-01/network/azurefirewalls.go
@@ -35,7 +35,8 @@ func NewAzureFirewallsClient(subscriptionID string) AzureFirewallsClient {
return NewAzureFirewallsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewAzureFirewallsClientWithBaseURI creates an instance of the AzureFirewallsClient client.
+// NewAzureFirewallsClientWithBaseURI creates an instance of the AzureFirewallsClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewAzureFirewallsClientWithBaseURI(baseURI string, subscriptionID string) AzureFirewallsClient {
return AzureFirewallsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-08-01/network/bastionhosts.go b/services/network/mgmt/2019-08-01/network/bastionhosts.go
index d7ab242eb25b..fb9987ef0278 100644
--- a/services/network/mgmt/2019-08-01/network/bastionhosts.go
+++ b/services/network/mgmt/2019-08-01/network/bastionhosts.go
@@ -35,7 +35,8 @@ func NewBastionHostsClient(subscriptionID string) BastionHostsClient {
return NewBastionHostsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewBastionHostsClientWithBaseURI creates an instance of the BastionHostsClient client.
+// NewBastionHostsClientWithBaseURI creates an instance of the BastionHostsClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewBastionHostsClientWithBaseURI(baseURI string, subscriptionID string) BastionHostsClient {
return BastionHostsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-08-01/network/bgpservicecommunities.go b/services/network/mgmt/2019-08-01/network/bgpservicecommunities.go
index bfec3e40eeb8..a32fcd522cdd 100644
--- a/services/network/mgmt/2019-08-01/network/bgpservicecommunities.go
+++ b/services/network/mgmt/2019-08-01/network/bgpservicecommunities.go
@@ -35,7 +35,9 @@ func NewBgpServiceCommunitiesClient(subscriptionID string) BgpServiceCommunities
return NewBgpServiceCommunitiesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewBgpServiceCommunitiesClientWithBaseURI creates an instance of the BgpServiceCommunitiesClient client.
+// NewBgpServiceCommunitiesClientWithBaseURI creates an instance of the BgpServiceCommunitiesClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewBgpServiceCommunitiesClientWithBaseURI(baseURI string, subscriptionID string) BgpServiceCommunitiesClient {
return BgpServiceCommunitiesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-08-01/network/client.go b/services/network/mgmt/2019-08-01/network/client.go
index 9315b631ad3e..85a4a8a7edf1 100644
--- a/services/network/mgmt/2019-08-01/network/client.go
+++ b/services/network/mgmt/2019-08-01/network/client.go
@@ -45,7 +45,8 @@ func New(subscriptionID string) BaseClient {
return NewWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewWithBaseURI creates an instance of the BaseClient client.
+// NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with
+// an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient {
return BaseClient{
Client: autorest.NewClientWithUserAgent(UserAgent()),
diff --git a/services/network/mgmt/2019-08-01/network/connectionmonitors.go b/services/network/mgmt/2019-08-01/network/connectionmonitors.go
index ca171615eb08..b33487f27c44 100644
--- a/services/network/mgmt/2019-08-01/network/connectionmonitors.go
+++ b/services/network/mgmt/2019-08-01/network/connectionmonitors.go
@@ -36,7 +36,9 @@ func NewConnectionMonitorsClient(subscriptionID string) ConnectionMonitorsClient
return NewConnectionMonitorsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewConnectionMonitorsClientWithBaseURI creates an instance of the ConnectionMonitorsClient client.
+// NewConnectionMonitorsClientWithBaseURI creates an instance of the ConnectionMonitorsClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewConnectionMonitorsClientWithBaseURI(baseURI string, subscriptionID string) ConnectionMonitorsClient {
return ConnectionMonitorsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-08-01/network/ddoscustompolicies.go b/services/network/mgmt/2019-08-01/network/ddoscustompolicies.go
index 84e2b3860382..8976d2e8ae16 100644
--- a/services/network/mgmt/2019-08-01/network/ddoscustompolicies.go
+++ b/services/network/mgmt/2019-08-01/network/ddoscustompolicies.go
@@ -35,7 +35,9 @@ func NewDdosCustomPoliciesClient(subscriptionID string) DdosCustomPoliciesClient
return NewDdosCustomPoliciesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewDdosCustomPoliciesClientWithBaseURI creates an instance of the DdosCustomPoliciesClient client.
+// NewDdosCustomPoliciesClientWithBaseURI creates an instance of the DdosCustomPoliciesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewDdosCustomPoliciesClientWithBaseURI(baseURI string, subscriptionID string) DdosCustomPoliciesClient {
return DdosCustomPoliciesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-08-01/network/ddosprotectionplans.go b/services/network/mgmt/2019-08-01/network/ddosprotectionplans.go
index 7024a259c58a..244e9d4ec420 100644
--- a/services/network/mgmt/2019-08-01/network/ddosprotectionplans.go
+++ b/services/network/mgmt/2019-08-01/network/ddosprotectionplans.go
@@ -35,7 +35,9 @@ func NewDdosProtectionPlansClient(subscriptionID string) DdosProtectionPlansClie
return NewDdosProtectionPlansClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewDdosProtectionPlansClientWithBaseURI creates an instance of the DdosProtectionPlansClient client.
+// NewDdosProtectionPlansClientWithBaseURI creates an instance of the DdosProtectionPlansClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewDdosProtectionPlansClientWithBaseURI(baseURI string, subscriptionID string) DdosProtectionPlansClient {
return DdosProtectionPlansClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-08-01/network/defaultsecurityrules.go b/services/network/mgmt/2019-08-01/network/defaultsecurityrules.go
index 9902a57c0dd5..3bb560f726ab 100644
--- a/services/network/mgmt/2019-08-01/network/defaultsecurityrules.go
+++ b/services/network/mgmt/2019-08-01/network/defaultsecurityrules.go
@@ -35,7 +35,9 @@ func NewDefaultSecurityRulesClient(subscriptionID string) DefaultSecurityRulesCl
return NewDefaultSecurityRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewDefaultSecurityRulesClientWithBaseURI creates an instance of the DefaultSecurityRulesClient client.
+// NewDefaultSecurityRulesClientWithBaseURI creates an instance of the DefaultSecurityRulesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewDefaultSecurityRulesClientWithBaseURI(baseURI string, subscriptionID string) DefaultSecurityRulesClient {
return DefaultSecurityRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-08-01/network/expressroutecircuitauthorizations.go b/services/network/mgmt/2019-08-01/network/expressroutecircuitauthorizations.go
index c7a09d77429f..b7a201c288d2 100644
--- a/services/network/mgmt/2019-08-01/network/expressroutecircuitauthorizations.go
+++ b/services/network/mgmt/2019-08-01/network/expressroutecircuitauthorizations.go
@@ -37,7 +37,8 @@ func NewExpressRouteCircuitAuthorizationsClient(subscriptionID string) ExpressRo
}
// NewExpressRouteCircuitAuthorizationsClientWithBaseURI creates an instance of the
-// ExpressRouteCircuitAuthorizationsClient client.
+// ExpressRouteCircuitAuthorizationsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewExpressRouteCircuitAuthorizationsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCircuitAuthorizationsClient {
return ExpressRouteCircuitAuthorizationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-08-01/network/expressroutecircuitconnections.go b/services/network/mgmt/2019-08-01/network/expressroutecircuitconnections.go
index 1691869012b8..da34b6035d72 100644
--- a/services/network/mgmt/2019-08-01/network/expressroutecircuitconnections.go
+++ b/services/network/mgmt/2019-08-01/network/expressroutecircuitconnections.go
@@ -36,7 +36,8 @@ func NewExpressRouteCircuitConnectionsClient(subscriptionID string) ExpressRoute
}
// NewExpressRouteCircuitConnectionsClientWithBaseURI creates an instance of the ExpressRouteCircuitConnectionsClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewExpressRouteCircuitConnectionsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCircuitConnectionsClient {
return ExpressRouteCircuitConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-08-01/network/expressroutecircuitpeerings.go b/services/network/mgmt/2019-08-01/network/expressroutecircuitpeerings.go
index f1a6f552835e..690e16fed692 100644
--- a/services/network/mgmt/2019-08-01/network/expressroutecircuitpeerings.go
+++ b/services/network/mgmt/2019-08-01/network/expressroutecircuitpeerings.go
@@ -36,7 +36,9 @@ func NewExpressRouteCircuitPeeringsClient(subscriptionID string) ExpressRouteCir
return NewExpressRouteCircuitPeeringsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewExpressRouteCircuitPeeringsClientWithBaseURI creates an instance of the ExpressRouteCircuitPeeringsClient client.
+// NewExpressRouteCircuitPeeringsClientWithBaseURI creates an instance of the ExpressRouteCircuitPeeringsClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewExpressRouteCircuitPeeringsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCircuitPeeringsClient {
return ExpressRouteCircuitPeeringsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-08-01/network/expressroutecircuits.go b/services/network/mgmt/2019-08-01/network/expressroutecircuits.go
index 32f8da4f9d73..6a834dce7b3f 100644
--- a/services/network/mgmt/2019-08-01/network/expressroutecircuits.go
+++ b/services/network/mgmt/2019-08-01/network/expressroutecircuits.go
@@ -35,7 +35,9 @@ func NewExpressRouteCircuitsClient(subscriptionID string) ExpressRouteCircuitsCl
return NewExpressRouteCircuitsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewExpressRouteCircuitsClientWithBaseURI creates an instance of the ExpressRouteCircuitsClient client.
+// NewExpressRouteCircuitsClientWithBaseURI creates an instance of the ExpressRouteCircuitsClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewExpressRouteCircuitsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCircuitsClient {
return ExpressRouteCircuitsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-08-01/network/expressrouteconnections.go b/services/network/mgmt/2019-08-01/network/expressrouteconnections.go
index ee71b311e266..98ea39aaa19c 100644
--- a/services/network/mgmt/2019-08-01/network/expressrouteconnections.go
+++ b/services/network/mgmt/2019-08-01/network/expressrouteconnections.go
@@ -36,7 +36,9 @@ func NewExpressRouteConnectionsClient(subscriptionID string) ExpressRouteConnect
return NewExpressRouteConnectionsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewExpressRouteConnectionsClientWithBaseURI creates an instance of the ExpressRouteConnectionsClient client.
+// NewExpressRouteConnectionsClientWithBaseURI creates an instance of the ExpressRouteConnectionsClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewExpressRouteConnectionsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteConnectionsClient {
return ExpressRouteConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-08-01/network/expressroutecrossconnectionpeerings.go b/services/network/mgmt/2019-08-01/network/expressroutecrossconnectionpeerings.go
index 4b4dd9ddbe62..c52e245c8d6b 100644
--- a/services/network/mgmt/2019-08-01/network/expressroutecrossconnectionpeerings.go
+++ b/services/network/mgmt/2019-08-01/network/expressroutecrossconnectionpeerings.go
@@ -38,7 +38,8 @@ func NewExpressRouteCrossConnectionPeeringsClient(subscriptionID string) Express
}
// NewExpressRouteCrossConnectionPeeringsClientWithBaseURI creates an instance of the
-// ExpressRouteCrossConnectionPeeringsClient client.
+// ExpressRouteCrossConnectionPeeringsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewExpressRouteCrossConnectionPeeringsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCrossConnectionPeeringsClient {
return ExpressRouteCrossConnectionPeeringsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-08-01/network/expressroutecrossconnections.go b/services/network/mgmt/2019-08-01/network/expressroutecrossconnections.go
index a3f46523c1bf..943d2f4df08e 100644
--- a/services/network/mgmt/2019-08-01/network/expressroutecrossconnections.go
+++ b/services/network/mgmt/2019-08-01/network/expressroutecrossconnections.go
@@ -36,7 +36,8 @@ func NewExpressRouteCrossConnectionsClient(subscriptionID string) ExpressRouteCr
}
// NewExpressRouteCrossConnectionsClientWithBaseURI creates an instance of the ExpressRouteCrossConnectionsClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewExpressRouteCrossConnectionsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCrossConnectionsClient {
return ExpressRouteCrossConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-08-01/network/expressroutegateways.go b/services/network/mgmt/2019-08-01/network/expressroutegateways.go
index 9bc05d6e784b..0532fc7fae20 100644
--- a/services/network/mgmt/2019-08-01/network/expressroutegateways.go
+++ b/services/network/mgmt/2019-08-01/network/expressroutegateways.go
@@ -36,7 +36,9 @@ func NewExpressRouteGatewaysClient(subscriptionID string) ExpressRouteGatewaysCl
return NewExpressRouteGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewExpressRouteGatewaysClientWithBaseURI creates an instance of the ExpressRouteGatewaysClient client.
+// NewExpressRouteGatewaysClientWithBaseURI creates an instance of the ExpressRouteGatewaysClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewExpressRouteGatewaysClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteGatewaysClient {
return ExpressRouteGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-08-01/network/expressroutelinks.go b/services/network/mgmt/2019-08-01/network/expressroutelinks.go
index 2d1f07f03884..7d4db2f60487 100644
--- a/services/network/mgmt/2019-08-01/network/expressroutelinks.go
+++ b/services/network/mgmt/2019-08-01/network/expressroutelinks.go
@@ -35,7 +35,9 @@ func NewExpressRouteLinksClient(subscriptionID string) ExpressRouteLinksClient {
return NewExpressRouteLinksClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewExpressRouteLinksClientWithBaseURI creates an instance of the ExpressRouteLinksClient client.
+// NewExpressRouteLinksClientWithBaseURI creates an instance of the ExpressRouteLinksClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewExpressRouteLinksClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteLinksClient {
return ExpressRouteLinksClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-08-01/network/expressrouteports.go b/services/network/mgmt/2019-08-01/network/expressrouteports.go
index a914fe07b4ab..53223740de05 100644
--- a/services/network/mgmt/2019-08-01/network/expressrouteports.go
+++ b/services/network/mgmt/2019-08-01/network/expressrouteports.go
@@ -35,7 +35,9 @@ func NewExpressRoutePortsClient(subscriptionID string) ExpressRoutePortsClient {
return NewExpressRoutePortsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewExpressRoutePortsClientWithBaseURI creates an instance of the ExpressRoutePortsClient client.
+// NewExpressRoutePortsClientWithBaseURI creates an instance of the ExpressRoutePortsClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewExpressRoutePortsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRoutePortsClient {
return ExpressRoutePortsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-08-01/network/expressrouteportslocations.go b/services/network/mgmt/2019-08-01/network/expressrouteportslocations.go
index 37aa2cd9958a..c3dc2e5f1a23 100644
--- a/services/network/mgmt/2019-08-01/network/expressrouteportslocations.go
+++ b/services/network/mgmt/2019-08-01/network/expressrouteportslocations.go
@@ -35,7 +35,9 @@ func NewExpressRoutePortsLocationsClient(subscriptionID string) ExpressRoutePort
return NewExpressRoutePortsLocationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewExpressRoutePortsLocationsClientWithBaseURI creates an instance of the ExpressRoutePortsLocationsClient client.
+// NewExpressRoutePortsLocationsClientWithBaseURI creates an instance of the ExpressRoutePortsLocationsClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewExpressRoutePortsLocationsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRoutePortsLocationsClient {
return ExpressRoutePortsLocationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-08-01/network/expressrouteserviceproviders.go b/services/network/mgmt/2019-08-01/network/expressrouteserviceproviders.go
index 4fff7a13da67..e28885475667 100644
--- a/services/network/mgmt/2019-08-01/network/expressrouteserviceproviders.go
+++ b/services/network/mgmt/2019-08-01/network/expressrouteserviceproviders.go
@@ -36,7 +36,8 @@ func NewExpressRouteServiceProvidersClient(subscriptionID string) ExpressRouteSe
}
// NewExpressRouteServiceProvidersClientWithBaseURI creates an instance of the ExpressRouteServiceProvidersClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewExpressRouteServiceProvidersClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteServiceProvidersClient {
return ExpressRouteServiceProvidersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-08-01/network/firewallpolicies.go b/services/network/mgmt/2019-08-01/network/firewallpolicies.go
index b8a512a1d367..0ed99cb15094 100644
--- a/services/network/mgmt/2019-08-01/network/firewallpolicies.go
+++ b/services/network/mgmt/2019-08-01/network/firewallpolicies.go
@@ -35,7 +35,9 @@ func NewFirewallPoliciesClient(subscriptionID string) FirewallPoliciesClient {
return NewFirewallPoliciesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewFirewallPoliciesClientWithBaseURI creates an instance of the FirewallPoliciesClient client.
+// NewFirewallPoliciesClientWithBaseURI creates an instance of the FirewallPoliciesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewFirewallPoliciesClientWithBaseURI(baseURI string, subscriptionID string) FirewallPoliciesClient {
return FirewallPoliciesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-08-01/network/firewallpolicyrulegroups.go b/services/network/mgmt/2019-08-01/network/firewallpolicyrulegroups.go
index dcb16a148438..e8e23a2ef643 100644
--- a/services/network/mgmt/2019-08-01/network/firewallpolicyrulegroups.go
+++ b/services/network/mgmt/2019-08-01/network/firewallpolicyrulegroups.go
@@ -36,7 +36,9 @@ func NewFirewallPolicyRuleGroupsClient(subscriptionID string) FirewallPolicyRule
return NewFirewallPolicyRuleGroupsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewFirewallPolicyRuleGroupsClientWithBaseURI creates an instance of the FirewallPolicyRuleGroupsClient client.
+// NewFirewallPolicyRuleGroupsClientWithBaseURI creates an instance of the FirewallPolicyRuleGroupsClient client using
+// a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewFirewallPolicyRuleGroupsClientWithBaseURI(baseURI string, subscriptionID string) FirewallPolicyRuleGroupsClient {
return FirewallPolicyRuleGroupsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-08-01/network/hubvirtualnetworkconnections.go b/services/network/mgmt/2019-08-01/network/hubvirtualnetworkconnections.go
index 37b1e6c8320f..baf15d4b4de5 100644
--- a/services/network/mgmt/2019-08-01/network/hubvirtualnetworkconnections.go
+++ b/services/network/mgmt/2019-08-01/network/hubvirtualnetworkconnections.go
@@ -36,7 +36,8 @@ func NewHubVirtualNetworkConnectionsClient(subscriptionID string) HubVirtualNetw
}
// NewHubVirtualNetworkConnectionsClientWithBaseURI creates an instance of the HubVirtualNetworkConnectionsClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewHubVirtualNetworkConnectionsClientWithBaseURI(baseURI string, subscriptionID string) HubVirtualNetworkConnectionsClient {
return HubVirtualNetworkConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-08-01/network/inboundnatrules.go b/services/network/mgmt/2019-08-01/network/inboundnatrules.go
index ef57dadce93a..fb83129b3939 100644
--- a/services/network/mgmt/2019-08-01/network/inboundnatrules.go
+++ b/services/network/mgmt/2019-08-01/network/inboundnatrules.go
@@ -36,7 +36,8 @@ func NewInboundNatRulesClient(subscriptionID string) InboundNatRulesClient {
return NewInboundNatRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewInboundNatRulesClientWithBaseURI creates an instance of the InboundNatRulesClient client.
+// NewInboundNatRulesClientWithBaseURI creates an instance of the InboundNatRulesClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewInboundNatRulesClientWithBaseURI(baseURI string, subscriptionID string) InboundNatRulesClient {
return InboundNatRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-08-01/network/interfaceipconfigurations.go b/services/network/mgmt/2019-08-01/network/interfaceipconfigurations.go
index 5385db284cbb..59ff215ee4e8 100644
--- a/services/network/mgmt/2019-08-01/network/interfaceipconfigurations.go
+++ b/services/network/mgmt/2019-08-01/network/interfaceipconfigurations.go
@@ -35,7 +35,9 @@ func NewInterfaceIPConfigurationsClient(subscriptionID string) InterfaceIPConfig
return NewInterfaceIPConfigurationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewInterfaceIPConfigurationsClientWithBaseURI creates an instance of the InterfaceIPConfigurationsClient client.
+// NewInterfaceIPConfigurationsClientWithBaseURI creates an instance of the InterfaceIPConfigurationsClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewInterfaceIPConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) InterfaceIPConfigurationsClient {
return InterfaceIPConfigurationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-08-01/network/interfaceloadbalancers.go b/services/network/mgmt/2019-08-01/network/interfaceloadbalancers.go
index 4c42e265c277..723602a5d484 100644
--- a/services/network/mgmt/2019-08-01/network/interfaceloadbalancers.go
+++ b/services/network/mgmt/2019-08-01/network/interfaceloadbalancers.go
@@ -35,7 +35,9 @@ func NewInterfaceLoadBalancersClient(subscriptionID string) InterfaceLoadBalance
return NewInterfaceLoadBalancersClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewInterfaceLoadBalancersClientWithBaseURI creates an instance of the InterfaceLoadBalancersClient client.
+// NewInterfaceLoadBalancersClientWithBaseURI creates an instance of the InterfaceLoadBalancersClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewInterfaceLoadBalancersClientWithBaseURI(baseURI string, subscriptionID string) InterfaceLoadBalancersClient {
return InterfaceLoadBalancersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-08-01/network/interfacesgroup.go b/services/network/mgmt/2019-08-01/network/interfacesgroup.go
index c5cfc53d755c..cd3c702f2a6c 100644
--- a/services/network/mgmt/2019-08-01/network/interfacesgroup.go
+++ b/services/network/mgmt/2019-08-01/network/interfacesgroup.go
@@ -35,7 +35,8 @@ func NewInterfacesClient(subscriptionID string) InterfacesClient {
return NewInterfacesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewInterfacesClientWithBaseURI creates an instance of the InterfacesClient client.
+// NewInterfacesClientWithBaseURI creates an instance of the InterfacesClient client using a custom endpoint. Use this
+// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewInterfacesClientWithBaseURI(baseURI string, subscriptionID string) InterfacesClient {
return InterfacesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-08-01/network/interfacetapconfigurations.go b/services/network/mgmt/2019-08-01/network/interfacetapconfigurations.go
index 555d5ad27bf0..893584cad7e1 100644
--- a/services/network/mgmt/2019-08-01/network/interfacetapconfigurations.go
+++ b/services/network/mgmt/2019-08-01/network/interfacetapconfigurations.go
@@ -36,7 +36,9 @@ func NewInterfaceTapConfigurationsClient(subscriptionID string) InterfaceTapConf
return NewInterfaceTapConfigurationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewInterfaceTapConfigurationsClientWithBaseURI creates an instance of the InterfaceTapConfigurationsClient client.
+// NewInterfaceTapConfigurationsClientWithBaseURI creates an instance of the InterfaceTapConfigurationsClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewInterfaceTapConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) InterfaceTapConfigurationsClient {
return InterfaceTapConfigurationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-08-01/network/loadbalancerbackendaddresspools.go b/services/network/mgmt/2019-08-01/network/loadbalancerbackendaddresspools.go
index 40582f9e9a3e..ad99a1a33b01 100644
--- a/services/network/mgmt/2019-08-01/network/loadbalancerbackendaddresspools.go
+++ b/services/network/mgmt/2019-08-01/network/loadbalancerbackendaddresspools.go
@@ -36,7 +36,8 @@ func NewLoadBalancerBackendAddressPoolsClient(subscriptionID string) LoadBalance
}
// NewLoadBalancerBackendAddressPoolsClientWithBaseURI creates an instance of the LoadBalancerBackendAddressPoolsClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewLoadBalancerBackendAddressPoolsClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerBackendAddressPoolsClient {
return LoadBalancerBackendAddressPoolsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-08-01/network/loadbalancerfrontendipconfigurations.go b/services/network/mgmt/2019-08-01/network/loadbalancerfrontendipconfigurations.go
index 641b696ea5b2..92c6d0ee391c 100644
--- a/services/network/mgmt/2019-08-01/network/loadbalancerfrontendipconfigurations.go
+++ b/services/network/mgmt/2019-08-01/network/loadbalancerfrontendipconfigurations.go
@@ -37,7 +37,8 @@ func NewLoadBalancerFrontendIPConfigurationsClient(subscriptionID string) LoadBa
}
// NewLoadBalancerFrontendIPConfigurationsClientWithBaseURI creates an instance of the
-// LoadBalancerFrontendIPConfigurationsClient client.
+// LoadBalancerFrontendIPConfigurationsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewLoadBalancerFrontendIPConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerFrontendIPConfigurationsClient {
return LoadBalancerFrontendIPConfigurationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-08-01/network/loadbalancerloadbalancingrules.go b/services/network/mgmt/2019-08-01/network/loadbalancerloadbalancingrules.go
index e0952ba0ef02..88195a0dcfcf 100644
--- a/services/network/mgmt/2019-08-01/network/loadbalancerloadbalancingrules.go
+++ b/services/network/mgmt/2019-08-01/network/loadbalancerloadbalancingrules.go
@@ -36,7 +36,8 @@ func NewLoadBalancerLoadBalancingRulesClient(subscriptionID string) LoadBalancer
}
// NewLoadBalancerLoadBalancingRulesClientWithBaseURI creates an instance of the LoadBalancerLoadBalancingRulesClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewLoadBalancerLoadBalancingRulesClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerLoadBalancingRulesClient {
return LoadBalancerLoadBalancingRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-08-01/network/loadbalancernetworkinterfaces.go b/services/network/mgmt/2019-08-01/network/loadbalancernetworkinterfaces.go
index 65c1e1e1fe58..c9beb7bd3736 100644
--- a/services/network/mgmt/2019-08-01/network/loadbalancernetworkinterfaces.go
+++ b/services/network/mgmt/2019-08-01/network/loadbalancernetworkinterfaces.go
@@ -36,7 +36,8 @@ func NewLoadBalancerNetworkInterfacesClient(subscriptionID string) LoadBalancerN
}
// NewLoadBalancerNetworkInterfacesClientWithBaseURI creates an instance of the LoadBalancerNetworkInterfacesClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewLoadBalancerNetworkInterfacesClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerNetworkInterfacesClient {
return LoadBalancerNetworkInterfacesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-08-01/network/loadbalanceroutboundrules.go b/services/network/mgmt/2019-08-01/network/loadbalanceroutboundrules.go
index 0dfcd4b53628..f2348e23139b 100644
--- a/services/network/mgmt/2019-08-01/network/loadbalanceroutboundrules.go
+++ b/services/network/mgmt/2019-08-01/network/loadbalanceroutboundrules.go
@@ -35,7 +35,9 @@ func NewLoadBalancerOutboundRulesClient(subscriptionID string) LoadBalancerOutbo
return NewLoadBalancerOutboundRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewLoadBalancerOutboundRulesClientWithBaseURI creates an instance of the LoadBalancerOutboundRulesClient client.
+// NewLoadBalancerOutboundRulesClientWithBaseURI creates an instance of the LoadBalancerOutboundRulesClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewLoadBalancerOutboundRulesClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerOutboundRulesClient {
return LoadBalancerOutboundRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-08-01/network/loadbalancerprobes.go b/services/network/mgmt/2019-08-01/network/loadbalancerprobes.go
index 3289952dbe60..aeef7c3413d9 100644
--- a/services/network/mgmt/2019-08-01/network/loadbalancerprobes.go
+++ b/services/network/mgmt/2019-08-01/network/loadbalancerprobes.go
@@ -35,7 +35,9 @@ func NewLoadBalancerProbesClient(subscriptionID string) LoadBalancerProbesClient
return NewLoadBalancerProbesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewLoadBalancerProbesClientWithBaseURI creates an instance of the LoadBalancerProbesClient client.
+// NewLoadBalancerProbesClientWithBaseURI creates an instance of the LoadBalancerProbesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewLoadBalancerProbesClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerProbesClient {
return LoadBalancerProbesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-08-01/network/loadbalancers.go b/services/network/mgmt/2019-08-01/network/loadbalancers.go
index d4aa5c991f4d..bed9d87351c1 100644
--- a/services/network/mgmt/2019-08-01/network/loadbalancers.go
+++ b/services/network/mgmt/2019-08-01/network/loadbalancers.go
@@ -35,7 +35,8 @@ func NewLoadBalancersClient(subscriptionID string) LoadBalancersClient {
return NewLoadBalancersClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewLoadBalancersClientWithBaseURI creates an instance of the LoadBalancersClient client.
+// NewLoadBalancersClientWithBaseURI creates an instance of the LoadBalancersClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewLoadBalancersClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancersClient {
return LoadBalancersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-08-01/network/localnetworkgateways.go b/services/network/mgmt/2019-08-01/network/localnetworkgateways.go
index 47e231a093f5..78ba88676c9b 100644
--- a/services/network/mgmt/2019-08-01/network/localnetworkgateways.go
+++ b/services/network/mgmt/2019-08-01/network/localnetworkgateways.go
@@ -36,7 +36,9 @@ func NewLocalNetworkGatewaysClient(subscriptionID string) LocalNetworkGatewaysCl
return NewLocalNetworkGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewLocalNetworkGatewaysClientWithBaseURI creates an instance of the LocalNetworkGatewaysClient client.
+// NewLocalNetworkGatewaysClientWithBaseURI creates an instance of the LocalNetworkGatewaysClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewLocalNetworkGatewaysClientWithBaseURI(baseURI string, subscriptionID string) LocalNetworkGatewaysClient {
return LocalNetworkGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-08-01/network/natgateways.go b/services/network/mgmt/2019-08-01/network/natgateways.go
index bb6cf51006bc..eddc851a1877 100644
--- a/services/network/mgmt/2019-08-01/network/natgateways.go
+++ b/services/network/mgmt/2019-08-01/network/natgateways.go
@@ -35,7 +35,8 @@ func NewNatGatewaysClient(subscriptionID string) NatGatewaysClient {
return NewNatGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewNatGatewaysClientWithBaseURI creates an instance of the NatGatewaysClient client.
+// NewNatGatewaysClientWithBaseURI creates an instance of the NatGatewaysClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewNatGatewaysClientWithBaseURI(baseURI string, subscriptionID string) NatGatewaysClient {
return NatGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-08-01/network/networkapi/interfaces.go b/services/network/mgmt/2019-08-01/network/networkapi/interfaces.go
index e535e375f8a5..c4751aa0c989 100644
--- a/services/network/mgmt/2019-08-01/network/networkapi/interfaces.go
+++ b/services/network/mgmt/2019-08-01/network/networkapi/interfaces.go
@@ -40,12 +40,15 @@ type ApplicationGatewaysClientAPI interface {
Get(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result network.ApplicationGateway, err error)
GetSslPredefinedPolicy(ctx context.Context, predefinedPolicyName string) (result network.ApplicationGatewaySslPredefinedPolicy, err error)
List(ctx context.Context, resourceGroupName string) (result network.ApplicationGatewayListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.ApplicationGatewayListResultIterator, err error)
ListAll(ctx context.Context) (result network.ApplicationGatewayListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.ApplicationGatewayListResultIterator, err error)
ListAvailableRequestHeaders(ctx context.Context) (result network.ListString, err error)
ListAvailableResponseHeaders(ctx context.Context) (result network.ListString, err error)
ListAvailableServerVariables(ctx context.Context) (result network.ListString, err error)
ListAvailableSslOptions(ctx context.Context) (result network.ApplicationGatewayAvailableSslOptions, err error)
ListAvailableSslPredefinedPolicies(ctx context.Context) (result network.ApplicationGatewayAvailableSslPredefinedPoliciesPage, err error)
+ ListAvailableSslPredefinedPoliciesComplete(ctx context.Context) (result network.ApplicationGatewayAvailableSslPredefinedPoliciesIterator, err error)
ListAvailableWafRuleSets(ctx context.Context) (result network.ApplicationGatewayAvailableWafRuleSetsResult, err error)
Start(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result network.ApplicationGatewaysStartFuture, err error)
Stop(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result network.ApplicationGatewaysStopFuture, err error)
@@ -60,7 +63,9 @@ type ApplicationSecurityGroupsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, applicationSecurityGroupName string) (result network.ApplicationSecurityGroupsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, applicationSecurityGroupName string) (result network.ApplicationSecurityGroup, err error)
List(ctx context.Context, resourceGroupName string) (result network.ApplicationSecurityGroupListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.ApplicationSecurityGroupListResultIterator, err error)
ListAll(ctx context.Context) (result network.ApplicationSecurityGroupListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.ApplicationSecurityGroupListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, applicationSecurityGroupName string, parameters network.TagsObject) (result network.ApplicationSecurityGroupsUpdateTagsFuture, err error)
}
@@ -69,6 +74,7 @@ var _ ApplicationSecurityGroupsClientAPI = (*network.ApplicationSecurityGroupsCl
// AvailableDelegationsClientAPI contains the set of methods on the AvailableDelegationsClient type.
type AvailableDelegationsClientAPI interface {
List(ctx context.Context, location string) (result network.AvailableDelegationsResultPage, err error)
+ ListComplete(ctx context.Context, location string) (result network.AvailableDelegationsResultIterator, err error)
}
var _ AvailableDelegationsClientAPI = (*network.AvailableDelegationsClient)(nil)
@@ -76,6 +82,7 @@ var _ AvailableDelegationsClientAPI = (*network.AvailableDelegationsClient)(nil)
// AvailableResourceGroupDelegationsClientAPI contains the set of methods on the AvailableResourceGroupDelegationsClient type.
type AvailableResourceGroupDelegationsClientAPI interface {
List(ctx context.Context, location string, resourceGroupName string) (result network.AvailableDelegationsResultPage, err error)
+ ListComplete(ctx context.Context, location string, resourceGroupName string) (result network.AvailableDelegationsResultIterator, err error)
}
var _ AvailableResourceGroupDelegationsClientAPI = (*network.AvailableResourceGroupDelegationsClient)(nil)
@@ -83,7 +90,9 @@ var _ AvailableResourceGroupDelegationsClientAPI = (*network.AvailableResourceGr
// AvailableServiceAliasesClientAPI contains the set of methods on the AvailableServiceAliasesClient type.
type AvailableServiceAliasesClientAPI interface {
List(ctx context.Context, location string) (result network.AvailableServiceAliasesResultPage, err error)
+ ListComplete(ctx context.Context, location string) (result network.AvailableServiceAliasesResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string, location string) (result network.AvailableServiceAliasesResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string, location string) (result network.AvailableServiceAliasesResultIterator, err error)
}
var _ AvailableServiceAliasesClientAPI = (*network.AvailableServiceAliasesClient)(nil)
@@ -94,7 +103,9 @@ type AzureFirewallsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, azureFirewallName string) (result network.AzureFirewallsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, azureFirewallName string) (result network.AzureFirewall, err error)
List(ctx context.Context, resourceGroupName string) (result network.AzureFirewallListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.AzureFirewallListResultIterator, err error)
ListAll(ctx context.Context) (result network.AzureFirewallListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.AzureFirewallListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, azureFirewallName string, parameters network.AzureFirewall) (result network.AzureFirewall, err error)
}
@@ -103,6 +114,7 @@ var _ AzureFirewallsClientAPI = (*network.AzureFirewallsClient)(nil)
// AzureFirewallFqdnTagsClientAPI contains the set of methods on the AzureFirewallFqdnTagsClient type.
type AzureFirewallFqdnTagsClientAPI interface {
ListAll(ctx context.Context) (result network.AzureFirewallFqdnTagListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.AzureFirewallFqdnTagListResultIterator, err error)
}
var _ AzureFirewallFqdnTagsClientAPI = (*network.AzureFirewallFqdnTagsClient)(nil)
@@ -113,7 +125,9 @@ type BastionHostsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, bastionHostName string) (result network.BastionHostsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, bastionHostName string) (result network.BastionHost, err error)
List(ctx context.Context) (result network.BastionHostListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.BastionHostListResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.BastionHostListResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.BastionHostListResultIterator, err error)
}
var _ BastionHostsClientAPI = (*network.BastionHostsClient)(nil)
@@ -134,7 +148,9 @@ type DdosProtectionPlansClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, ddosProtectionPlanName string) (result network.DdosProtectionPlansDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, ddosProtectionPlanName string) (result network.DdosProtectionPlan, err error)
List(ctx context.Context) (result network.DdosProtectionPlanListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.DdosProtectionPlanListResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.DdosProtectionPlanListResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.DdosProtectionPlanListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, ddosProtectionPlanName string, parameters network.TagsObject) (result network.DdosProtectionPlansUpdateTagsFuture, err error)
}
@@ -143,6 +159,7 @@ var _ DdosProtectionPlansClientAPI = (*network.DdosProtectionPlansClient)(nil)
// AvailableEndpointServicesClientAPI contains the set of methods on the AvailableEndpointServicesClient type.
type AvailableEndpointServicesClientAPI interface {
List(ctx context.Context, location string) (result network.EndpointServicesListResultPage, err error)
+ ListComplete(ctx context.Context, location string) (result network.EndpointServicesListResultIterator, err error)
}
var _ AvailableEndpointServicesClientAPI = (*network.AvailableEndpointServicesClient)(nil)
@@ -153,6 +170,7 @@ type ExpressRouteCircuitAuthorizationsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, circuitName string, authorizationName string) (result network.ExpressRouteCircuitAuthorizationsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, circuitName string, authorizationName string) (result network.ExpressRouteCircuitAuthorization, err error)
List(ctx context.Context, resourceGroupName string, circuitName string) (result network.AuthorizationListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, circuitName string) (result network.AuthorizationListResultIterator, err error)
}
var _ ExpressRouteCircuitAuthorizationsClientAPI = (*network.ExpressRouteCircuitAuthorizationsClient)(nil)
@@ -163,6 +181,7 @@ type ExpressRouteCircuitPeeringsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.ExpressRouteCircuitPeeringsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.ExpressRouteCircuitPeering, err error)
List(ctx context.Context, resourceGroupName string, circuitName string) (result network.ExpressRouteCircuitPeeringListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, circuitName string) (result network.ExpressRouteCircuitPeeringListResultIterator, err error)
}
var _ ExpressRouteCircuitPeeringsClientAPI = (*network.ExpressRouteCircuitPeeringsClient)(nil)
@@ -173,6 +192,7 @@ type ExpressRouteCircuitConnectionsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, connectionName string) (result network.ExpressRouteCircuitConnectionsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, connectionName string) (result network.ExpressRouteCircuitConnection, err error)
List(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.ExpressRouteCircuitConnectionListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.ExpressRouteCircuitConnectionListResultIterator, err error)
}
var _ ExpressRouteCircuitConnectionsClientAPI = (*network.ExpressRouteCircuitConnectionsClient)(nil)
@@ -181,6 +201,7 @@ var _ ExpressRouteCircuitConnectionsClientAPI = (*network.ExpressRouteCircuitCon
type PeerExpressRouteCircuitConnectionsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, connectionName string) (result network.PeerExpressRouteCircuitConnection, err error)
List(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.PeerExpressRouteCircuitConnectionListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.PeerExpressRouteCircuitConnectionListResultIterator, err error)
}
var _ PeerExpressRouteCircuitConnectionsClientAPI = (*network.PeerExpressRouteCircuitConnectionsClient)(nil)
@@ -193,7 +214,9 @@ type ExpressRouteCircuitsClientAPI interface {
GetPeeringStats(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.ExpressRouteCircuitStats, err error)
GetStats(ctx context.Context, resourceGroupName string, circuitName string) (result network.ExpressRouteCircuitStats, err error)
List(ctx context.Context, resourceGroupName string) (result network.ExpressRouteCircuitListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.ExpressRouteCircuitListResultIterator, err error)
ListAll(ctx context.Context) (result network.ExpressRouteCircuitListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.ExpressRouteCircuitListResultIterator, err error)
ListArpTable(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, devicePath string) (result network.ExpressRouteCircuitsListArpTableFuture, err error)
ListRoutesTable(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, devicePath string) (result network.ExpressRouteCircuitsListRoutesTableFuture, err error)
ListRoutesTableSummary(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, devicePath string) (result network.ExpressRouteCircuitsListRoutesTableSummaryFuture, err error)
@@ -205,6 +228,7 @@ var _ ExpressRouteCircuitsClientAPI = (*network.ExpressRouteCircuitsClient)(nil)
// ExpressRouteServiceProvidersClientAPI contains the set of methods on the ExpressRouteServiceProvidersClient type.
type ExpressRouteServiceProvidersClientAPI interface {
List(ctx context.Context) (result network.ExpressRouteServiceProviderListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ExpressRouteServiceProviderListResultIterator, err error)
}
var _ ExpressRouteServiceProvidersClientAPI = (*network.ExpressRouteServiceProvidersClient)(nil)
@@ -214,8 +238,10 @@ type ExpressRouteCrossConnectionsClientAPI interface {
CreateOrUpdate(ctx context.Context, resourceGroupName string, crossConnectionName string, parameters network.ExpressRouteCrossConnection) (result network.ExpressRouteCrossConnectionsCreateOrUpdateFuture, err error)
Get(ctx context.Context, resourceGroupName string, crossConnectionName string) (result network.ExpressRouteCrossConnection, err error)
List(ctx context.Context) (result network.ExpressRouteCrossConnectionListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ExpressRouteCrossConnectionListResultIterator, err error)
ListArpTable(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string, devicePath string) (result network.ExpressRouteCrossConnectionsListArpTableFuture, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ExpressRouteCrossConnectionListResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ExpressRouteCrossConnectionListResultIterator, err error)
ListRoutesTable(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string, devicePath string) (result network.ExpressRouteCrossConnectionsListRoutesTableFuture, err error)
ListRoutesTableSummary(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string, devicePath string) (result network.ExpressRouteCrossConnectionsListRoutesTableSummaryFuture, err error)
UpdateTags(ctx context.Context, resourceGroupName string, crossConnectionName string, crossConnectionParameters network.TagsObject) (result network.ExpressRouteCrossConnectionsUpdateTagsFuture, err error)
@@ -229,6 +255,7 @@ type ExpressRouteCrossConnectionPeeringsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string) (result network.ExpressRouteCrossConnectionPeeringsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string) (result network.ExpressRouteCrossConnectionPeering, err error)
List(ctx context.Context, resourceGroupName string, crossConnectionName string) (result network.ExpressRouteCrossConnectionPeeringListPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, crossConnectionName string) (result network.ExpressRouteCrossConnectionPeeringListIterator, err error)
}
var _ ExpressRouteCrossConnectionPeeringsClientAPI = (*network.ExpressRouteCrossConnectionPeeringsClient)(nil)
@@ -258,6 +285,7 @@ var _ ExpressRouteConnectionsClientAPI = (*network.ExpressRouteConnectionsClient
type ExpressRoutePortsLocationsClientAPI interface {
Get(ctx context.Context, locationName string) (result network.ExpressRoutePortsLocation, err error)
List(ctx context.Context) (result network.ExpressRoutePortsLocationListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ExpressRoutePortsLocationListResultIterator, err error)
}
var _ ExpressRoutePortsLocationsClientAPI = (*network.ExpressRoutePortsLocationsClient)(nil)
@@ -268,7 +296,9 @@ type ExpressRoutePortsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, expressRoutePortName string) (result network.ExpressRoutePortsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, expressRoutePortName string) (result network.ExpressRoutePort, err error)
List(ctx context.Context) (result network.ExpressRoutePortListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ExpressRoutePortListResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ExpressRoutePortListResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ExpressRoutePortListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, expressRoutePortName string, parameters network.TagsObject) (result network.ExpressRoutePortsUpdateTagsFuture, err error)
}
@@ -278,6 +308,7 @@ var _ ExpressRoutePortsClientAPI = (*network.ExpressRoutePortsClient)(nil)
type ExpressRouteLinksClientAPI interface {
Get(ctx context.Context, resourceGroupName string, expressRoutePortName string, linkName string) (result network.ExpressRouteLink, err error)
List(ctx context.Context, resourceGroupName string, expressRoutePortName string) (result network.ExpressRouteLinkListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, expressRoutePortName string) (result network.ExpressRouteLinkListResultIterator, err error)
}
var _ ExpressRouteLinksClientAPI = (*network.ExpressRouteLinksClient)(nil)
@@ -288,7 +319,9 @@ type FirewallPoliciesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, firewallPolicyName string) (result network.FirewallPoliciesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, firewallPolicyName string, expand string) (result network.FirewallPolicy, err error)
List(ctx context.Context, resourceGroupName string) (result network.FirewallPolicyListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.FirewallPolicyListResultIterator, err error)
ListAll(ctx context.Context) (result network.FirewallPolicyListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.FirewallPolicyListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, firewallPolicyName string, firewallPolicyParameters network.TagsObject) (result network.FirewallPolicy, err error)
}
@@ -300,6 +333,7 @@ type FirewallPolicyRuleGroupsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, firewallPolicyName string, ruleGroupName string) (result network.FirewallPolicyRuleGroupsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, firewallPolicyName string, ruleGroupName string) (result network.FirewallPolicyRuleGroup, err error)
List(ctx context.Context, resourceGroupName string, firewallPolicyName string) (result network.FirewallPolicyRuleGroupListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, firewallPolicyName string) (result network.FirewallPolicyRuleGroupListResultIterator, err error)
}
var _ FirewallPolicyRuleGroupsClientAPI = (*network.FirewallPolicyRuleGroupsClient)(nil)
@@ -310,7 +344,9 @@ type LoadBalancersClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancersDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, expand string) (result network.LoadBalancer, err error)
List(ctx context.Context, resourceGroupName string) (result network.LoadBalancerListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.LoadBalancerListResultIterator, err error)
ListAll(ctx context.Context) (result network.LoadBalancerListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.LoadBalancerListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, loadBalancerName string, parameters network.TagsObject) (result network.LoadBalancersUpdateTagsFuture, err error)
}
@@ -320,6 +356,7 @@ var _ LoadBalancersClientAPI = (*network.LoadBalancersClient)(nil)
type LoadBalancerBackendAddressPoolsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, backendAddressPoolName string) (result network.BackendAddressPool, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerBackendAddressPoolListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerBackendAddressPoolListResultIterator, err error)
}
var _ LoadBalancerBackendAddressPoolsClientAPI = (*network.LoadBalancerBackendAddressPoolsClient)(nil)
@@ -328,6 +365,7 @@ var _ LoadBalancerBackendAddressPoolsClientAPI = (*network.LoadBalancerBackendAd
type LoadBalancerFrontendIPConfigurationsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, frontendIPConfigurationName string) (result network.FrontendIPConfiguration, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerFrontendIPConfigurationListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerFrontendIPConfigurationListResultIterator, err error)
}
var _ LoadBalancerFrontendIPConfigurationsClientAPI = (*network.LoadBalancerFrontendIPConfigurationsClient)(nil)
@@ -338,6 +376,7 @@ type InboundNatRulesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, loadBalancerName string, inboundNatRuleName string) (result network.InboundNatRulesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, inboundNatRuleName string, expand string) (result network.InboundNatRule, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.InboundNatRuleListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.InboundNatRuleListResultIterator, err error)
}
var _ InboundNatRulesClientAPI = (*network.InboundNatRulesClient)(nil)
@@ -346,6 +385,7 @@ var _ InboundNatRulesClientAPI = (*network.InboundNatRulesClient)(nil)
type LoadBalancerLoadBalancingRulesClientAPI interface {
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, loadBalancingRuleName string) (result network.LoadBalancingRule, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerLoadBalancingRuleListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerLoadBalancingRuleListResultIterator, err error)
}
var _ LoadBalancerLoadBalancingRulesClientAPI = (*network.LoadBalancerLoadBalancingRulesClient)(nil)
@@ -354,6 +394,7 @@ var _ LoadBalancerLoadBalancingRulesClientAPI = (*network.LoadBalancerLoadBalanc
type LoadBalancerOutboundRulesClientAPI interface {
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, outboundRuleName string) (result network.OutboundRule, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerOutboundRuleListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerOutboundRuleListResultIterator, err error)
}
var _ LoadBalancerOutboundRulesClientAPI = (*network.LoadBalancerOutboundRulesClient)(nil)
@@ -361,6 +402,7 @@ var _ LoadBalancerOutboundRulesClientAPI = (*network.LoadBalancerOutboundRulesCl
// LoadBalancerNetworkInterfacesClientAPI contains the set of methods on the LoadBalancerNetworkInterfacesClient type.
type LoadBalancerNetworkInterfacesClientAPI interface {
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.InterfaceListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.InterfaceListResultIterator, err error)
}
var _ LoadBalancerNetworkInterfacesClientAPI = (*network.LoadBalancerNetworkInterfacesClient)(nil)
@@ -369,6 +411,7 @@ var _ LoadBalancerNetworkInterfacesClientAPI = (*network.LoadBalancerNetworkInte
type LoadBalancerProbesClientAPI interface {
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, probeName string) (result network.Probe, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerProbeListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerProbeListResultIterator, err error)
}
var _ LoadBalancerProbesClientAPI = (*network.LoadBalancerProbesClient)(nil)
@@ -379,7 +422,9 @@ type NatGatewaysClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, natGatewayName string) (result network.NatGatewaysDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, natGatewayName string, expand string) (result network.NatGateway, err error)
List(ctx context.Context, resourceGroupName string) (result network.NatGatewayListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.NatGatewayListResultIterator, err error)
ListAll(ctx context.Context) (result network.NatGatewayListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.NatGatewayListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, natGatewayName string, parameters network.TagsObject) (result network.NatGateway, err error)
}
@@ -394,11 +439,16 @@ type InterfacesClientAPI interface {
GetVirtualMachineScaleSetIPConfiguration(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, IPConfigurationName string, expand string) (result network.InterfaceIPConfiguration, err error)
GetVirtualMachineScaleSetNetworkInterface(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, expand string) (result network.Interface, err error)
List(ctx context.Context, resourceGroupName string) (result network.InterfaceListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.InterfaceListResultIterator, err error)
ListAll(ctx context.Context) (result network.InterfaceListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.InterfaceListResultIterator, err error)
ListEffectiveNetworkSecurityGroups(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfacesListEffectiveNetworkSecurityGroupsFuture, err error)
ListVirtualMachineScaleSetIPConfigurations(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, expand string) (result network.InterfaceIPConfigurationListResultPage, err error)
+ ListVirtualMachineScaleSetIPConfigurationsComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, expand string) (result network.InterfaceIPConfigurationListResultIterator, err error)
ListVirtualMachineScaleSetNetworkInterfaces(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result network.InterfaceListResultPage, err error)
+ ListVirtualMachineScaleSetNetworkInterfacesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result network.InterfaceListResultIterator, err error)
ListVirtualMachineScaleSetVMNetworkInterfaces(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string) (result network.InterfaceListResultPage, err error)
+ ListVirtualMachineScaleSetVMNetworkInterfacesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string) (result network.InterfaceListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, networkInterfaceName string, parameters network.TagsObject) (result network.InterfacesUpdateTagsFuture, err error)
}
@@ -408,6 +458,7 @@ var _ InterfacesClientAPI = (*network.InterfacesClient)(nil)
type InterfaceIPConfigurationsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, networkInterfaceName string, IPConfigurationName string) (result network.InterfaceIPConfiguration, err error)
List(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceIPConfigurationListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceIPConfigurationListResultIterator, err error)
}
var _ InterfaceIPConfigurationsClientAPI = (*network.InterfaceIPConfigurationsClient)(nil)
@@ -415,6 +466,7 @@ var _ InterfaceIPConfigurationsClientAPI = (*network.InterfaceIPConfigurationsCl
// InterfaceLoadBalancersClientAPI contains the set of methods on the InterfaceLoadBalancersClient type.
type InterfaceLoadBalancersClientAPI interface {
List(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceLoadBalancerListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceLoadBalancerListResultIterator, err error)
}
var _ InterfaceLoadBalancersClientAPI = (*network.InterfaceLoadBalancersClient)(nil)
@@ -425,6 +477,7 @@ type InterfaceTapConfigurationsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, networkInterfaceName string, tapConfigurationName string) (result network.InterfaceTapConfigurationsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, networkInterfaceName string, tapConfigurationName string) (result network.InterfaceTapConfiguration, err error)
List(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceTapConfigurationListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceTapConfigurationListResultIterator, err error)
}
var _ InterfaceTapConfigurationsClientAPI = (*network.InterfaceTapConfigurationsClient)(nil)
@@ -435,7 +488,9 @@ type ProfilesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, networkProfileName string) (result network.ProfilesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, networkProfileName string, expand string) (result network.Profile, err error)
List(ctx context.Context, resourceGroupName string) (result network.ProfileListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.ProfileListResultIterator, err error)
ListAll(ctx context.Context) (result network.ProfileListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.ProfileListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, networkProfileName string, parameters network.TagsObject) (result network.Profile, err error)
}
@@ -447,7 +502,9 @@ type SecurityGroupsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityGroupsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, expand string) (result network.SecurityGroup, err error)
List(ctx context.Context, resourceGroupName string) (result network.SecurityGroupListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.SecurityGroupListResultIterator, err error)
ListAll(ctx context.Context) (result network.SecurityGroupListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.SecurityGroupListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, parameters network.TagsObject) (result network.SecurityGroupsUpdateTagsFuture, err error)
}
@@ -459,6 +516,7 @@ type SecurityRulesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, securityRuleName string) (result network.SecurityRulesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, securityRuleName string) (result network.SecurityRule, err error)
List(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityRuleListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityRuleListResultIterator, err error)
}
var _ SecurityRulesClientAPI = (*network.SecurityRulesClient)(nil)
@@ -467,6 +525,7 @@ var _ SecurityRulesClientAPI = (*network.SecurityRulesClient)(nil)
type DefaultSecurityRulesClientAPI interface {
Get(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, defaultSecurityRuleName string) (result network.SecurityRule, err error)
List(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityRuleListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityRuleListResultIterator, err error)
}
var _ DefaultSecurityRulesClientAPI = (*network.DefaultSecurityRulesClient)(nil)
@@ -524,6 +583,7 @@ var _ ConnectionMonitorsClientAPI = (*network.ConnectionMonitorsClient)(nil)
// OperationsClientAPI contains the set of methods on the OperationsClient type.
type OperationsClientAPI interface {
List(ctx context.Context) (result network.OperationListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.OperationListResultIterator, err error)
}
var _ OperationsClientAPI = (*network.OperationsClient)(nil)
@@ -534,7 +594,9 @@ type PrivateEndpointsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, privateEndpointName string) (result network.PrivateEndpointsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, privateEndpointName string, expand string) (result network.PrivateEndpoint, err error)
List(ctx context.Context, resourceGroupName string) (result network.PrivateEndpointListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.PrivateEndpointListResultIterator, err error)
ListBySubscription(ctx context.Context) (result network.PrivateEndpointListResultPage, err error)
+ ListBySubscriptionComplete(ctx context.Context) (result network.PrivateEndpointListResultIterator, err error)
}
var _ PrivateEndpointsClientAPI = (*network.PrivateEndpointsClient)(nil)
@@ -542,7 +604,9 @@ var _ PrivateEndpointsClientAPI = (*network.PrivateEndpointsClient)(nil)
// AvailablePrivateEndpointTypesClientAPI contains the set of methods on the AvailablePrivateEndpointTypesClient type.
type AvailablePrivateEndpointTypesClientAPI interface {
List(ctx context.Context, location string) (result network.AvailablePrivateEndpointTypesResultPage, err error)
+ ListComplete(ctx context.Context, location string) (result network.AvailablePrivateEndpointTypesResultIterator, err error)
ListByResourceGroup(ctx context.Context, location string, resourceGroupName string) (result network.AvailablePrivateEndpointTypesResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, location string, resourceGroupName string) (result network.AvailablePrivateEndpointTypesResultIterator, err error)
}
var _ AvailablePrivateEndpointTypesClientAPI = (*network.AvailablePrivateEndpointTypesClient)(nil)
@@ -556,9 +620,13 @@ type PrivateLinkServicesClientAPI interface {
DeletePrivateEndpointConnection(ctx context.Context, resourceGroupName string, serviceName string, peConnectionName string) (result network.PrivateLinkServicesDeletePrivateEndpointConnectionFuture, err error)
Get(ctx context.Context, resourceGroupName string, serviceName string, expand string) (result network.PrivateLinkService, err error)
List(ctx context.Context, resourceGroupName string) (result network.PrivateLinkServiceListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.PrivateLinkServiceListResultIterator, err error)
ListAutoApprovedPrivateLinkServices(ctx context.Context, location string) (result network.AutoApprovedPrivateLinkServicesResultPage, err error)
+ ListAutoApprovedPrivateLinkServicesComplete(ctx context.Context, location string) (result network.AutoApprovedPrivateLinkServicesResultIterator, err error)
ListAutoApprovedPrivateLinkServicesByResourceGroup(ctx context.Context, location string, resourceGroupName string) (result network.AutoApprovedPrivateLinkServicesResultPage, err error)
+ ListAutoApprovedPrivateLinkServicesByResourceGroupComplete(ctx context.Context, location string, resourceGroupName string) (result network.AutoApprovedPrivateLinkServicesResultIterator, err error)
ListBySubscription(ctx context.Context) (result network.PrivateLinkServiceListResultPage, err error)
+ ListBySubscriptionComplete(ctx context.Context) (result network.PrivateLinkServiceListResultIterator, err error)
UpdatePrivateEndpointConnection(ctx context.Context, resourceGroupName string, serviceName string, peConnectionName string, parameters network.PrivateEndpointConnection) (result network.PrivateEndpointConnection, err error)
}
@@ -571,9 +639,13 @@ type PublicIPAddressesClientAPI interface {
Get(ctx context.Context, resourceGroupName string, publicIPAddressName string, expand string) (result network.PublicIPAddress, err error)
GetVirtualMachineScaleSetPublicIPAddress(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, IPConfigurationName string, publicIPAddressName string, expand string) (result network.PublicIPAddress, err error)
List(ctx context.Context, resourceGroupName string) (result network.PublicIPAddressListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.PublicIPAddressListResultIterator, err error)
ListAll(ctx context.Context) (result network.PublicIPAddressListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.PublicIPAddressListResultIterator, err error)
ListVirtualMachineScaleSetPublicIPAddresses(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result network.PublicIPAddressListResultPage, err error)
+ ListVirtualMachineScaleSetPublicIPAddressesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result network.PublicIPAddressListResultIterator, err error)
ListVirtualMachineScaleSetVMPublicIPAddresses(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, IPConfigurationName string) (result network.PublicIPAddressListResultPage, err error)
+ ListVirtualMachineScaleSetVMPublicIPAddressesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, IPConfigurationName string) (result network.PublicIPAddressListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, publicIPAddressName string, parameters network.TagsObject) (result network.PublicIPAddressesUpdateTagsFuture, err error)
}
@@ -585,7 +657,9 @@ type PublicIPPrefixesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, publicIPPrefixName string) (result network.PublicIPPrefixesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, publicIPPrefixName string, expand string) (result network.PublicIPPrefix, err error)
List(ctx context.Context, resourceGroupName string) (result network.PublicIPPrefixListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.PublicIPPrefixListResultIterator, err error)
ListAll(ctx context.Context) (result network.PublicIPPrefixListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.PublicIPPrefixListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, publicIPPrefixName string, parameters network.TagsObject) (result network.PublicIPPrefixesUpdateTagsFuture, err error)
}
@@ -597,7 +671,9 @@ type RouteFiltersClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, routeFilterName string) (result network.RouteFiltersDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, routeFilterName string, expand string) (result network.RouteFilter, err error)
List(ctx context.Context) (result network.RouteFilterListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.RouteFilterListResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.RouteFilterListResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.RouteFilterListResultIterator, err error)
Update(ctx context.Context, resourceGroupName string, routeFilterName string, routeFilterParameters network.PatchRouteFilter) (result network.RouteFiltersUpdateFuture, err error)
}
@@ -609,6 +685,7 @@ type RouteFilterRulesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, routeFilterName string, ruleName string) (result network.RouteFilterRulesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, routeFilterName string, ruleName string) (result network.RouteFilterRule, err error)
ListByRouteFilter(ctx context.Context, resourceGroupName string, routeFilterName string) (result network.RouteFilterRuleListResultPage, err error)
+ ListByRouteFilterComplete(ctx context.Context, resourceGroupName string, routeFilterName string) (result network.RouteFilterRuleListResultIterator, err error)
Update(ctx context.Context, resourceGroupName string, routeFilterName string, ruleName string, routeFilterRuleParameters network.PatchRouteFilterRule) (result network.RouteFilterRulesUpdateFuture, err error)
}
@@ -620,7 +697,9 @@ type RouteTablesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, routeTableName string) (result network.RouteTablesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, routeTableName string, expand string) (result network.RouteTable, err error)
List(ctx context.Context, resourceGroupName string) (result network.RouteTableListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.RouteTableListResultIterator, err error)
ListAll(ctx context.Context) (result network.RouteTableListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.RouteTableListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, routeTableName string, parameters network.TagsObject) (result network.RouteTablesUpdateTagsFuture, err error)
}
@@ -632,6 +711,7 @@ type RoutesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, routeTableName string, routeName string) (result network.RoutesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, routeTableName string, routeName string) (result network.Route, err error)
List(ctx context.Context, resourceGroupName string, routeTableName string) (result network.RouteListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, routeTableName string) (result network.RouteListResultIterator, err error)
}
var _ RoutesClientAPI = (*network.RoutesClient)(nil)
@@ -639,6 +719,7 @@ var _ RoutesClientAPI = (*network.RoutesClient)(nil)
// BgpServiceCommunitiesClientAPI contains the set of methods on the BgpServiceCommunitiesClient type.
type BgpServiceCommunitiesClientAPI interface {
List(ctx context.Context) (result network.BgpServiceCommunityListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.BgpServiceCommunityListResultIterator, err error)
}
var _ BgpServiceCommunitiesClientAPI = (*network.BgpServiceCommunitiesClient)(nil)
@@ -649,7 +730,9 @@ type ServiceEndpointPoliciesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string) (result network.ServiceEndpointPoliciesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string, expand string) (result network.ServiceEndpointPolicy, err error)
List(ctx context.Context) (result network.ServiceEndpointPolicyListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ServiceEndpointPolicyListResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ServiceEndpointPolicyListResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ServiceEndpointPolicyListResultIterator, err error)
Update(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string, parameters network.TagsObject) (result network.ServiceEndpointPoliciesUpdateFuture, err error)
}
@@ -661,6 +744,7 @@ type ServiceEndpointPolicyDefinitionsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string, serviceEndpointPolicyDefinitionName string) (result network.ServiceEndpointPolicyDefinitionsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string, serviceEndpointPolicyDefinitionName string) (result network.ServiceEndpointPolicyDefinition, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string) (result network.ServiceEndpointPolicyDefinitionListResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string) (result network.ServiceEndpointPolicyDefinitionListResultIterator, err error)
}
var _ ServiceEndpointPolicyDefinitionsClientAPI = (*network.ServiceEndpointPolicyDefinitionsClient)(nil)
@@ -675,6 +759,7 @@ var _ ServiceTagsClientAPI = (*network.ServiceTagsClient)(nil)
// UsagesClientAPI contains the set of methods on the UsagesClient type.
type UsagesClientAPI interface {
List(ctx context.Context, location string) (result network.UsagesListResultPage, err error)
+ ListComplete(ctx context.Context, location string) (result network.UsagesListResultIterator, err error)
}
var _ UsagesClientAPI = (*network.UsagesClient)(nil)
@@ -686,8 +771,11 @@ type VirtualNetworksClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworksDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualNetworkName string, expand string) (result network.VirtualNetwork, err error)
List(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkListResultIterator, err error)
ListAll(ctx context.Context) (result network.VirtualNetworkListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.VirtualNetworkListResultIterator, err error)
ListUsage(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworkListUsageResultPage, err error)
+ ListUsageComplete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworkListUsageResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, virtualNetworkName string, parameters network.TagsObject) (result network.VirtualNetworksUpdateTagsFuture, err error)
}
@@ -699,6 +787,7 @@ type SubnetsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualNetworkName string, subnetName string) (result network.SubnetsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualNetworkName string, subnetName string, expand string) (result network.Subnet, err error)
List(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.SubnetListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.SubnetListResultIterator, err error)
PrepareNetworkPolicies(ctx context.Context, resourceGroupName string, virtualNetworkName string, subnetName string, prepareNetworkPoliciesRequestParameters network.PrepareNetworkPoliciesRequest) (result network.SubnetsPrepareNetworkPoliciesFuture, err error)
UnprepareNetworkPolicies(ctx context.Context, resourceGroupName string, virtualNetworkName string, subnetName string, unprepareNetworkPoliciesRequestParameters network.UnprepareNetworkPoliciesRequest) (result network.SubnetsUnprepareNetworkPoliciesFuture, err error)
}
@@ -725,6 +814,7 @@ type VirtualNetworkPeeringsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualNetworkName string, virtualNetworkPeeringName string) (result network.VirtualNetworkPeeringsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualNetworkName string, virtualNetworkPeeringName string) (result network.VirtualNetworkPeering, err error)
List(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworkPeeringListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworkPeeringListResultIterator, err error)
}
var _ VirtualNetworkPeeringsClientAPI = (*network.VirtualNetworkPeeringsClient)(nil)
@@ -743,7 +833,9 @@ type VirtualNetworkGatewaysClientAPI interface {
GetVpnclientIpsecParameters(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGatewaysGetVpnclientIpsecParametersFuture, err error)
GetVpnProfilePackageURL(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGatewaysGetVpnProfilePackageURLFuture, err error)
List(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayListResultIterator, err error)
ListConnections(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGatewayListConnectionsResultPage, err error)
+ ListConnectionsComplete(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGatewayListConnectionsResultIterator, err error)
Reset(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, gatewayVip string) (result network.VirtualNetworkGatewaysResetFuture, err error)
ResetVpnClientSharedKey(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGatewaysResetVpnClientSharedKeyFuture, err error)
SetVpnclientIpsecParameters(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, vpnclientIpsecParams network.VpnClientIPsecParameters) (result network.VirtualNetworkGatewaysSetVpnclientIpsecParametersFuture, err error)
@@ -763,6 +855,7 @@ type VirtualNetworkGatewayConnectionsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string) (result network.VirtualNetworkGatewayConnection, err error)
GetSharedKey(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string) (result network.ConnectionSharedKey, err error)
List(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayConnectionListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayConnectionListResultIterator, err error)
ResetSharedKey(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string, parameters network.ConnectionResetSharedKey) (result network.VirtualNetworkGatewayConnectionsResetSharedKeyFuture, err error)
SetSharedKey(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string, parameters network.ConnectionSharedKey) (result network.VirtualNetworkGatewayConnectionsSetSharedKeyFuture, err error)
StartPacketCapture(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string, parameters *network.VpnPacketCaptureStartParameters) (result network.VirtualNetworkGatewayConnectionsStartPacketCaptureFuture, err error)
@@ -778,6 +871,7 @@ type LocalNetworkGatewaysClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, localNetworkGatewayName string) (result network.LocalNetworkGatewaysDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, localNetworkGatewayName string) (result network.LocalNetworkGateway, err error)
List(ctx context.Context, resourceGroupName string) (result network.LocalNetworkGatewayListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.LocalNetworkGatewayListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, localNetworkGatewayName string, parameters network.TagsObject) (result network.LocalNetworkGatewaysUpdateTagsFuture, err error)
}
@@ -789,7 +883,9 @@ type VirtualNetworkTapsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, tapName string) (result network.VirtualNetworkTapsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, tapName string) (result network.VirtualNetworkTap, err error)
ListAll(ctx context.Context) (result network.VirtualNetworkTapListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.VirtualNetworkTapListResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkTapListResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkTapListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, tapName string, tapParameters network.TagsObject) (result network.VirtualNetworkTapsUpdateTagsFuture, err error)
}
@@ -801,7 +897,9 @@ type VirtualRoutersClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualRouterName string) (result network.VirtualRoutersDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualRouterName string, expand string) (result network.VirtualRouter, err error)
List(ctx context.Context) (result network.VirtualRouterListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.VirtualRouterListResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.VirtualRouterListResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.VirtualRouterListResultIterator, err error)
Update(ctx context.Context, resourceGroupName string, virtualRouterName string, parameters network.TagsObject) (result network.VirtualRouter, err error)
}
@@ -813,6 +911,7 @@ type VirtualRouterPeeringsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualRouterName string, peeringName string) (result network.VirtualRouterPeeringsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualRouterName string, peeringName string) (result network.VirtualRouterPeering, err error)
List(ctx context.Context, resourceGroupName string, virtualRouterName string) (result network.VirtualRouterPeeringListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, virtualRouterName string) (result network.VirtualRouterPeeringListResultIterator, err error)
Update(ctx context.Context, resourceGroupName string, virtualRouterName string, peeringName string, parameters network.VirtualRouterPeering) (result network.VirtualRouterPeering, err error)
}
@@ -824,7 +923,9 @@ type VirtualWansClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualWANName string) (result network.VirtualWansDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualWANName string) (result network.VirtualWAN, err error)
List(ctx context.Context) (result network.ListVirtualWANsResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ListVirtualWANsResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ListVirtualWANsResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ListVirtualWANsResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, virtualWANName string, wANParameters network.TagsObject) (result network.VirtualWansUpdateTagsFuture, err error)
}
@@ -836,7 +937,9 @@ type VpnSitesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, vpnSiteName string) (result network.VpnSitesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, vpnSiteName string) (result network.VpnSite, err error)
List(ctx context.Context) (result network.ListVpnSitesResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ListVpnSitesResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ListVpnSitesResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ListVpnSitesResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, vpnSiteName string, vpnSiteParameters network.TagsObject) (result network.VpnSitesUpdateTagsFuture, err error)
}
@@ -846,6 +949,7 @@ var _ VpnSitesClientAPI = (*network.VpnSitesClient)(nil)
type VpnSiteLinksClientAPI interface {
Get(ctx context.Context, resourceGroupName string, vpnSiteName string, vpnSiteLinkName string) (result network.VpnSiteLink, err error)
ListByVpnSite(ctx context.Context, resourceGroupName string, vpnSiteName string) (result network.ListVpnSiteLinksResultPage, err error)
+ ListByVpnSiteComplete(ctx context.Context, resourceGroupName string, vpnSiteName string) (result network.ListVpnSiteLinksResultIterator, err error)
}
var _ VpnSiteLinksClientAPI = (*network.VpnSiteLinksClient)(nil)
@@ -863,7 +967,9 @@ type VpnServerConfigurationsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, vpnServerConfigurationName string) (result network.VpnServerConfigurationsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, vpnServerConfigurationName string) (result network.VpnServerConfiguration, err error)
List(ctx context.Context) (result network.ListVpnServerConfigurationsResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ListVpnServerConfigurationsResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ListVpnServerConfigurationsResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ListVpnServerConfigurationsResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, vpnServerConfigurationName string, vpnServerConfigurationParameters network.TagsObject) (result network.VpnServerConfigurationsUpdateTagsFuture, err error)
}
@@ -875,7 +981,9 @@ type VirtualHubsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualHubName string) (result network.VirtualHubsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualHubName string) (result network.VirtualHub, err error)
List(ctx context.Context) (result network.ListVirtualHubsResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ListVirtualHubsResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ListVirtualHubsResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ListVirtualHubsResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, virtualHubName string, virtualHubParameters network.TagsObject) (result network.VirtualHubsUpdateTagsFuture, err error)
}
@@ -885,6 +993,7 @@ var _ VirtualHubsClientAPI = (*network.VirtualHubsClient)(nil)
type HubVirtualNetworkConnectionsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, virtualHubName string, connectionName string) (result network.HubVirtualNetworkConnection, err error)
List(ctx context.Context, resourceGroupName string, virtualHubName string) (result network.ListHubVirtualNetworkConnectionsResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, virtualHubName string) (result network.ListHubVirtualNetworkConnectionsResultIterator, err error)
}
var _ HubVirtualNetworkConnectionsClientAPI = (*network.HubVirtualNetworkConnectionsClient)(nil)
@@ -895,7 +1004,9 @@ type VpnGatewaysClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, gatewayName string) (result network.VpnGatewaysDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, gatewayName string) (result network.VpnGateway, err error)
List(ctx context.Context) (result network.ListVpnGatewaysResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ListVpnGatewaysResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ListVpnGatewaysResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ListVpnGatewaysResultIterator, err error)
Reset(ctx context.Context, resourceGroupName string, gatewayName string) (result network.VpnGatewaysResetFuture, err error)
UpdateTags(ctx context.Context, resourceGroupName string, gatewayName string, vpnGatewayParameters network.TagsObject) (result network.VpnGatewaysUpdateTagsFuture, err error)
}
@@ -908,6 +1019,7 @@ type VpnConnectionsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, gatewayName string, connectionName string) (result network.VpnConnectionsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, gatewayName string, connectionName string) (result network.VpnConnection, err error)
ListByVpnGateway(ctx context.Context, resourceGroupName string, gatewayName string) (result network.ListVpnConnectionsResultPage, err error)
+ ListByVpnGatewayComplete(ctx context.Context, resourceGroupName string, gatewayName string) (result network.ListVpnConnectionsResultIterator, err error)
}
var _ VpnConnectionsClientAPI = (*network.VpnConnectionsClient)(nil)
@@ -922,6 +1034,7 @@ var _ VpnSiteLinkConnectionsClientAPI = (*network.VpnSiteLinkConnectionsClient)(
// VpnLinkConnectionsClientAPI contains the set of methods on the VpnLinkConnectionsClient type.
type VpnLinkConnectionsClientAPI interface {
ListByVpnConnection(ctx context.Context, resourceGroupName string, gatewayName string, connectionName string) (result network.ListVpnSiteLinkConnectionsResultPage, err error)
+ ListByVpnConnectionComplete(ctx context.Context, resourceGroupName string, gatewayName string, connectionName string) (result network.ListVpnSiteLinkConnectionsResultIterator, err error)
}
var _ VpnLinkConnectionsClientAPI = (*network.VpnLinkConnectionsClient)(nil)
@@ -935,7 +1048,9 @@ type P2sVpnGatewaysClientAPI interface {
GetP2sVpnConnectionHealth(ctx context.Context, resourceGroupName string, gatewayName string) (result network.P2sVpnGatewaysGetP2sVpnConnectionHealthFuture, err error)
GetP2sVpnConnectionHealthDetailed(ctx context.Context, resourceGroupName string, gatewayName string, request network.P2SVpnConnectionHealthRequest) (result network.P2sVpnGatewaysGetP2sVpnConnectionHealthDetailedFuture, err error)
List(ctx context.Context) (result network.ListP2SVpnGatewaysResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ListP2SVpnGatewaysResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ListP2SVpnGatewaysResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ListP2SVpnGatewaysResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, gatewayName string, p2SVpnGatewayParameters network.TagsObject) (result network.P2sVpnGatewaysUpdateTagsFuture, err error)
}
@@ -954,7 +1069,9 @@ type WebApplicationFirewallPoliciesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, policyName string) (result network.WebApplicationFirewallPoliciesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, policyName string) (result network.WebApplicationFirewallPolicy, err error)
List(ctx context.Context, resourceGroupName string) (result network.WebApplicationFirewallPolicyListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.WebApplicationFirewallPolicyListResultIterator, err error)
ListAll(ctx context.Context) (result network.WebApplicationFirewallPolicyListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.WebApplicationFirewallPolicyListResultIterator, err error)
}
var _ WebApplicationFirewallPoliciesClientAPI = (*network.WebApplicationFirewallPoliciesClient)(nil)
diff --git a/services/network/mgmt/2019-08-01/network/operations.go b/services/network/mgmt/2019-08-01/network/operations.go
index e5fa731ad485..f9d0cea2bec0 100644
--- a/services/network/mgmt/2019-08-01/network/operations.go
+++ b/services/network/mgmt/2019-08-01/network/operations.go
@@ -35,7 +35,8 @@ func NewOperationsClient(subscriptionID string) OperationsClient {
return NewOperationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewOperationsClientWithBaseURI creates an instance of the OperationsClient client.
+// NewOperationsClientWithBaseURI creates an instance of the OperationsClient client using a custom endpoint. Use this
+// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient {
return OperationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-08-01/network/p2svpngateways.go b/services/network/mgmt/2019-08-01/network/p2svpngateways.go
index c8cb0a52028a..3d68129ee8a7 100644
--- a/services/network/mgmt/2019-08-01/network/p2svpngateways.go
+++ b/services/network/mgmt/2019-08-01/network/p2svpngateways.go
@@ -35,7 +35,8 @@ func NewP2sVpnGatewaysClient(subscriptionID string) P2sVpnGatewaysClient {
return NewP2sVpnGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewP2sVpnGatewaysClientWithBaseURI creates an instance of the P2sVpnGatewaysClient client.
+// NewP2sVpnGatewaysClientWithBaseURI creates an instance of the P2sVpnGatewaysClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewP2sVpnGatewaysClientWithBaseURI(baseURI string, subscriptionID string) P2sVpnGatewaysClient {
return P2sVpnGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-08-01/network/packetcaptures.go b/services/network/mgmt/2019-08-01/network/packetcaptures.go
index 85920514f2ce..fc11a81136b2 100644
--- a/services/network/mgmt/2019-08-01/network/packetcaptures.go
+++ b/services/network/mgmt/2019-08-01/network/packetcaptures.go
@@ -36,7 +36,8 @@ func NewPacketCapturesClient(subscriptionID string) PacketCapturesClient {
return NewPacketCapturesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewPacketCapturesClientWithBaseURI creates an instance of the PacketCapturesClient client.
+// NewPacketCapturesClientWithBaseURI creates an instance of the PacketCapturesClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewPacketCapturesClientWithBaseURI(baseURI string, subscriptionID string) PacketCapturesClient {
return PacketCapturesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-08-01/network/peerexpressroutecircuitconnections.go b/services/network/mgmt/2019-08-01/network/peerexpressroutecircuitconnections.go
index 983c2e4bb3c0..ffbc3281525f 100644
--- a/services/network/mgmt/2019-08-01/network/peerexpressroutecircuitconnections.go
+++ b/services/network/mgmt/2019-08-01/network/peerexpressroutecircuitconnections.go
@@ -37,7 +37,8 @@ func NewPeerExpressRouteCircuitConnectionsClient(subscriptionID string) PeerExpr
}
// NewPeerExpressRouteCircuitConnectionsClientWithBaseURI creates an instance of the
-// PeerExpressRouteCircuitConnectionsClient client.
+// PeerExpressRouteCircuitConnectionsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewPeerExpressRouteCircuitConnectionsClientWithBaseURI(baseURI string, subscriptionID string) PeerExpressRouteCircuitConnectionsClient {
return PeerExpressRouteCircuitConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-08-01/network/privateendpoints.go b/services/network/mgmt/2019-08-01/network/privateendpoints.go
index 25a61faf0e11..ea8bf7ebc016 100644
--- a/services/network/mgmt/2019-08-01/network/privateendpoints.go
+++ b/services/network/mgmt/2019-08-01/network/privateendpoints.go
@@ -35,7 +35,9 @@ func NewPrivateEndpointsClient(subscriptionID string) PrivateEndpointsClient {
return NewPrivateEndpointsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewPrivateEndpointsClientWithBaseURI creates an instance of the PrivateEndpointsClient client.
+// NewPrivateEndpointsClientWithBaseURI creates an instance of the PrivateEndpointsClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewPrivateEndpointsClientWithBaseURI(baseURI string, subscriptionID string) PrivateEndpointsClient {
return PrivateEndpointsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-08-01/network/privatelinkservices.go b/services/network/mgmt/2019-08-01/network/privatelinkservices.go
index 52aa92fa949e..6717712de709 100644
--- a/services/network/mgmt/2019-08-01/network/privatelinkservices.go
+++ b/services/network/mgmt/2019-08-01/network/privatelinkservices.go
@@ -35,7 +35,9 @@ func NewPrivateLinkServicesClient(subscriptionID string) PrivateLinkServicesClie
return NewPrivateLinkServicesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewPrivateLinkServicesClientWithBaseURI creates an instance of the PrivateLinkServicesClient client.
+// NewPrivateLinkServicesClientWithBaseURI creates an instance of the PrivateLinkServicesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewPrivateLinkServicesClientWithBaseURI(baseURI string, subscriptionID string) PrivateLinkServicesClient {
return PrivateLinkServicesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-08-01/network/profiles.go b/services/network/mgmt/2019-08-01/network/profiles.go
index b679a8aea39e..22a50d1aad72 100644
--- a/services/network/mgmt/2019-08-01/network/profiles.go
+++ b/services/network/mgmt/2019-08-01/network/profiles.go
@@ -35,7 +35,8 @@ func NewProfilesClient(subscriptionID string) ProfilesClient {
return NewProfilesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewProfilesClientWithBaseURI creates an instance of the ProfilesClient client.
+// NewProfilesClientWithBaseURI creates an instance of the ProfilesClient client using a custom endpoint. Use this
+// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewProfilesClientWithBaseURI(baseURI string, subscriptionID string) ProfilesClient {
return ProfilesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-08-01/network/publicipaddresses.go b/services/network/mgmt/2019-08-01/network/publicipaddresses.go
index 129862602577..e53b3e85e526 100644
--- a/services/network/mgmt/2019-08-01/network/publicipaddresses.go
+++ b/services/network/mgmt/2019-08-01/network/publicipaddresses.go
@@ -36,7 +36,9 @@ func NewPublicIPAddressesClient(subscriptionID string) PublicIPAddressesClient {
return NewPublicIPAddressesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewPublicIPAddressesClientWithBaseURI creates an instance of the PublicIPAddressesClient client.
+// NewPublicIPAddressesClientWithBaseURI creates an instance of the PublicIPAddressesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewPublicIPAddressesClientWithBaseURI(baseURI string, subscriptionID string) PublicIPAddressesClient {
return PublicIPAddressesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-08-01/network/publicipprefixes.go b/services/network/mgmt/2019-08-01/network/publicipprefixes.go
index 21480e9e53f8..b1b265652da8 100644
--- a/services/network/mgmt/2019-08-01/network/publicipprefixes.go
+++ b/services/network/mgmt/2019-08-01/network/publicipprefixes.go
@@ -35,7 +35,9 @@ func NewPublicIPPrefixesClient(subscriptionID string) PublicIPPrefixesClient {
return NewPublicIPPrefixesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewPublicIPPrefixesClientWithBaseURI creates an instance of the PublicIPPrefixesClient client.
+// NewPublicIPPrefixesClientWithBaseURI creates an instance of the PublicIPPrefixesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewPublicIPPrefixesClientWithBaseURI(baseURI string, subscriptionID string) PublicIPPrefixesClient {
return PublicIPPrefixesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-08-01/network/resourcenavigationlinks.go b/services/network/mgmt/2019-08-01/network/resourcenavigationlinks.go
index 3960a958af94..753eb525a402 100644
--- a/services/network/mgmt/2019-08-01/network/resourcenavigationlinks.go
+++ b/services/network/mgmt/2019-08-01/network/resourcenavigationlinks.go
@@ -35,7 +35,9 @@ func NewResourceNavigationLinksClient(subscriptionID string) ResourceNavigationL
return NewResourceNavigationLinksClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewResourceNavigationLinksClientWithBaseURI creates an instance of the ResourceNavigationLinksClient client.
+// NewResourceNavigationLinksClientWithBaseURI creates an instance of the ResourceNavigationLinksClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewResourceNavigationLinksClientWithBaseURI(baseURI string, subscriptionID string) ResourceNavigationLinksClient {
return ResourceNavigationLinksClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-08-01/network/routefilterrules.go b/services/network/mgmt/2019-08-01/network/routefilterrules.go
index 7c2e478aae83..eddcdf02434a 100644
--- a/services/network/mgmt/2019-08-01/network/routefilterrules.go
+++ b/services/network/mgmt/2019-08-01/network/routefilterrules.go
@@ -36,7 +36,9 @@ func NewRouteFilterRulesClient(subscriptionID string) RouteFilterRulesClient {
return NewRouteFilterRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewRouteFilterRulesClientWithBaseURI creates an instance of the RouteFilterRulesClient client.
+// NewRouteFilterRulesClientWithBaseURI creates an instance of the RouteFilterRulesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewRouteFilterRulesClientWithBaseURI(baseURI string, subscriptionID string) RouteFilterRulesClient {
return RouteFilterRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-08-01/network/routefilters.go b/services/network/mgmt/2019-08-01/network/routefilters.go
index de386aed3499..7e5dccff05bd 100644
--- a/services/network/mgmt/2019-08-01/network/routefilters.go
+++ b/services/network/mgmt/2019-08-01/network/routefilters.go
@@ -35,7 +35,8 @@ func NewRouteFiltersClient(subscriptionID string) RouteFiltersClient {
return NewRouteFiltersClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewRouteFiltersClientWithBaseURI creates an instance of the RouteFiltersClient client.
+// NewRouteFiltersClientWithBaseURI creates an instance of the RouteFiltersClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewRouteFiltersClientWithBaseURI(baseURI string, subscriptionID string) RouteFiltersClient {
return RouteFiltersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-08-01/network/routes.go b/services/network/mgmt/2019-08-01/network/routes.go
index 280dc511e995..0e721653d559 100644
--- a/services/network/mgmt/2019-08-01/network/routes.go
+++ b/services/network/mgmt/2019-08-01/network/routes.go
@@ -35,7 +35,8 @@ func NewRoutesClient(subscriptionID string) RoutesClient {
return NewRoutesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewRoutesClientWithBaseURI creates an instance of the RoutesClient client.
+// NewRoutesClientWithBaseURI creates an instance of the RoutesClient client using a custom endpoint. Use this when
+// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewRoutesClientWithBaseURI(baseURI string, subscriptionID string) RoutesClient {
return RoutesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-08-01/network/routetables.go b/services/network/mgmt/2019-08-01/network/routetables.go
index a03803adb64b..de1e3bc002bb 100644
--- a/services/network/mgmt/2019-08-01/network/routetables.go
+++ b/services/network/mgmt/2019-08-01/network/routetables.go
@@ -35,7 +35,8 @@ func NewRouteTablesClient(subscriptionID string) RouteTablesClient {
return NewRouteTablesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewRouteTablesClientWithBaseURI creates an instance of the RouteTablesClient client.
+// NewRouteTablesClientWithBaseURI creates an instance of the RouteTablesClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewRouteTablesClientWithBaseURI(baseURI string, subscriptionID string) RouteTablesClient {
return RouteTablesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-08-01/network/securitygroups.go b/services/network/mgmt/2019-08-01/network/securitygroups.go
index f781e821f36f..89a9f7406d02 100644
--- a/services/network/mgmt/2019-08-01/network/securitygroups.go
+++ b/services/network/mgmt/2019-08-01/network/securitygroups.go
@@ -35,7 +35,8 @@ func NewSecurityGroupsClient(subscriptionID string) SecurityGroupsClient {
return NewSecurityGroupsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewSecurityGroupsClientWithBaseURI creates an instance of the SecurityGroupsClient client.
+// NewSecurityGroupsClientWithBaseURI creates an instance of the SecurityGroupsClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewSecurityGroupsClientWithBaseURI(baseURI string, subscriptionID string) SecurityGroupsClient {
return SecurityGroupsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-08-01/network/securityrules.go b/services/network/mgmt/2019-08-01/network/securityrules.go
index 1accaf145285..8889d561b61f 100644
--- a/services/network/mgmt/2019-08-01/network/securityrules.go
+++ b/services/network/mgmt/2019-08-01/network/securityrules.go
@@ -35,7 +35,8 @@ func NewSecurityRulesClient(subscriptionID string) SecurityRulesClient {
return NewSecurityRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewSecurityRulesClientWithBaseURI creates an instance of the SecurityRulesClient client.
+// NewSecurityRulesClientWithBaseURI creates an instance of the SecurityRulesClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewSecurityRulesClientWithBaseURI(baseURI string, subscriptionID string) SecurityRulesClient {
return SecurityRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-08-01/network/serviceassociationlinks.go b/services/network/mgmt/2019-08-01/network/serviceassociationlinks.go
index 39b9eb3f838c..067da999c2a1 100644
--- a/services/network/mgmt/2019-08-01/network/serviceassociationlinks.go
+++ b/services/network/mgmt/2019-08-01/network/serviceassociationlinks.go
@@ -35,7 +35,9 @@ func NewServiceAssociationLinksClient(subscriptionID string) ServiceAssociationL
return NewServiceAssociationLinksClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewServiceAssociationLinksClientWithBaseURI creates an instance of the ServiceAssociationLinksClient client.
+// NewServiceAssociationLinksClientWithBaseURI creates an instance of the ServiceAssociationLinksClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewServiceAssociationLinksClientWithBaseURI(baseURI string, subscriptionID string) ServiceAssociationLinksClient {
return ServiceAssociationLinksClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-08-01/network/serviceendpointpolicies.go b/services/network/mgmt/2019-08-01/network/serviceendpointpolicies.go
index d04522d1faa7..c88d30bcdcda 100644
--- a/services/network/mgmt/2019-08-01/network/serviceendpointpolicies.go
+++ b/services/network/mgmt/2019-08-01/network/serviceendpointpolicies.go
@@ -35,7 +35,9 @@ func NewServiceEndpointPoliciesClient(subscriptionID string) ServiceEndpointPoli
return NewServiceEndpointPoliciesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewServiceEndpointPoliciesClientWithBaseURI creates an instance of the ServiceEndpointPoliciesClient client.
+// NewServiceEndpointPoliciesClientWithBaseURI creates an instance of the ServiceEndpointPoliciesClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewServiceEndpointPoliciesClientWithBaseURI(baseURI string, subscriptionID string) ServiceEndpointPoliciesClient {
return ServiceEndpointPoliciesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-08-01/network/serviceendpointpolicydefinitions.go b/services/network/mgmt/2019-08-01/network/serviceendpointpolicydefinitions.go
index 5e457ce64b82..fa363f786898 100644
--- a/services/network/mgmt/2019-08-01/network/serviceendpointpolicydefinitions.go
+++ b/services/network/mgmt/2019-08-01/network/serviceendpointpolicydefinitions.go
@@ -36,7 +36,8 @@ func NewServiceEndpointPolicyDefinitionsClient(subscriptionID string) ServiceEnd
}
// NewServiceEndpointPolicyDefinitionsClientWithBaseURI creates an instance of the
-// ServiceEndpointPolicyDefinitionsClient client.
+// ServiceEndpointPolicyDefinitionsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewServiceEndpointPolicyDefinitionsClientWithBaseURI(baseURI string, subscriptionID string) ServiceEndpointPolicyDefinitionsClient {
return ServiceEndpointPolicyDefinitionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-08-01/network/servicetags.go b/services/network/mgmt/2019-08-01/network/servicetags.go
index 90652a035cc6..54d763aa2197 100644
--- a/services/network/mgmt/2019-08-01/network/servicetags.go
+++ b/services/network/mgmt/2019-08-01/network/servicetags.go
@@ -35,7 +35,8 @@ func NewServiceTagsClient(subscriptionID string) ServiceTagsClient {
return NewServiceTagsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewServiceTagsClientWithBaseURI creates an instance of the ServiceTagsClient client.
+// NewServiceTagsClientWithBaseURI creates an instance of the ServiceTagsClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewServiceTagsClientWithBaseURI(baseURI string, subscriptionID string) ServiceTagsClient {
return ServiceTagsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-08-01/network/subnets.go b/services/network/mgmt/2019-08-01/network/subnets.go
index 7613fb8a77de..20d1b03f8643 100644
--- a/services/network/mgmt/2019-08-01/network/subnets.go
+++ b/services/network/mgmt/2019-08-01/network/subnets.go
@@ -35,7 +35,8 @@ func NewSubnetsClient(subscriptionID string) SubnetsClient {
return NewSubnetsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewSubnetsClientWithBaseURI creates an instance of the SubnetsClient client.
+// NewSubnetsClientWithBaseURI creates an instance of the SubnetsClient client using a custom endpoint. Use this when
+// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewSubnetsClientWithBaseURI(baseURI string, subscriptionID string) SubnetsClient {
return SubnetsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-08-01/network/usages.go b/services/network/mgmt/2019-08-01/network/usages.go
index b74f3b69fd08..f0477fe4d84a 100644
--- a/services/network/mgmt/2019-08-01/network/usages.go
+++ b/services/network/mgmt/2019-08-01/network/usages.go
@@ -36,7 +36,8 @@ func NewUsagesClient(subscriptionID string) UsagesClient {
return NewUsagesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewUsagesClientWithBaseURI creates an instance of the UsagesClient client.
+// NewUsagesClientWithBaseURI creates an instance of the UsagesClient client using a custom endpoint. Use this when
+// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewUsagesClientWithBaseURI(baseURI string, subscriptionID string) UsagesClient {
return UsagesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-08-01/network/virtualhubs.go b/services/network/mgmt/2019-08-01/network/virtualhubs.go
index bb84059b2c71..47b8b706f678 100644
--- a/services/network/mgmt/2019-08-01/network/virtualhubs.go
+++ b/services/network/mgmt/2019-08-01/network/virtualhubs.go
@@ -35,7 +35,8 @@ func NewVirtualHubsClient(subscriptionID string) VirtualHubsClient {
return NewVirtualHubsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualHubsClientWithBaseURI creates an instance of the VirtualHubsClient client.
+// NewVirtualHubsClientWithBaseURI creates an instance of the VirtualHubsClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVirtualHubsClientWithBaseURI(baseURI string, subscriptionID string) VirtualHubsClient {
return VirtualHubsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-08-01/network/virtualnetworkgatewayconnections.go b/services/network/mgmt/2019-08-01/network/virtualnetworkgatewayconnections.go
index 7cb492478205..589b548b7869 100644
--- a/services/network/mgmt/2019-08-01/network/virtualnetworkgatewayconnections.go
+++ b/services/network/mgmt/2019-08-01/network/virtualnetworkgatewayconnections.go
@@ -37,7 +37,8 @@ func NewVirtualNetworkGatewayConnectionsClient(subscriptionID string) VirtualNet
}
// NewVirtualNetworkGatewayConnectionsClientWithBaseURI creates an instance of the
-// VirtualNetworkGatewayConnectionsClient client.
+// VirtualNetworkGatewayConnectionsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVirtualNetworkGatewayConnectionsClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworkGatewayConnectionsClient {
return VirtualNetworkGatewayConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-08-01/network/virtualnetworkgateways.go b/services/network/mgmt/2019-08-01/network/virtualnetworkgateways.go
index ba45e31e651b..85cb7e33ad62 100644
--- a/services/network/mgmt/2019-08-01/network/virtualnetworkgateways.go
+++ b/services/network/mgmt/2019-08-01/network/virtualnetworkgateways.go
@@ -36,7 +36,9 @@ func NewVirtualNetworkGatewaysClient(subscriptionID string) VirtualNetworkGatewa
return NewVirtualNetworkGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualNetworkGatewaysClientWithBaseURI creates an instance of the VirtualNetworkGatewaysClient client.
+// NewVirtualNetworkGatewaysClientWithBaseURI creates an instance of the VirtualNetworkGatewaysClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewVirtualNetworkGatewaysClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworkGatewaysClient {
return VirtualNetworkGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-08-01/network/virtualnetworkpeerings.go b/services/network/mgmt/2019-08-01/network/virtualnetworkpeerings.go
index 0b5ceb42a552..dda02d0065e3 100644
--- a/services/network/mgmt/2019-08-01/network/virtualnetworkpeerings.go
+++ b/services/network/mgmt/2019-08-01/network/virtualnetworkpeerings.go
@@ -35,7 +35,9 @@ func NewVirtualNetworkPeeringsClient(subscriptionID string) VirtualNetworkPeerin
return NewVirtualNetworkPeeringsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualNetworkPeeringsClientWithBaseURI creates an instance of the VirtualNetworkPeeringsClient client.
+// NewVirtualNetworkPeeringsClientWithBaseURI creates an instance of the VirtualNetworkPeeringsClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewVirtualNetworkPeeringsClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworkPeeringsClient {
return VirtualNetworkPeeringsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-08-01/network/virtualnetworks.go b/services/network/mgmt/2019-08-01/network/virtualnetworks.go
index be4433b21b89..9823be09d768 100644
--- a/services/network/mgmt/2019-08-01/network/virtualnetworks.go
+++ b/services/network/mgmt/2019-08-01/network/virtualnetworks.go
@@ -36,7 +36,8 @@ func NewVirtualNetworksClient(subscriptionID string) VirtualNetworksClient {
return NewVirtualNetworksClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualNetworksClientWithBaseURI creates an instance of the VirtualNetworksClient client.
+// NewVirtualNetworksClientWithBaseURI creates an instance of the VirtualNetworksClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVirtualNetworksClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworksClient {
return VirtualNetworksClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-08-01/network/virtualnetworktaps.go b/services/network/mgmt/2019-08-01/network/virtualnetworktaps.go
index a4f25dd38ffa..d756edb0e553 100644
--- a/services/network/mgmt/2019-08-01/network/virtualnetworktaps.go
+++ b/services/network/mgmt/2019-08-01/network/virtualnetworktaps.go
@@ -36,7 +36,9 @@ func NewVirtualNetworkTapsClient(subscriptionID string) VirtualNetworkTapsClient
return NewVirtualNetworkTapsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualNetworkTapsClientWithBaseURI creates an instance of the VirtualNetworkTapsClient client.
+// NewVirtualNetworkTapsClientWithBaseURI creates an instance of the VirtualNetworkTapsClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewVirtualNetworkTapsClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworkTapsClient {
return VirtualNetworkTapsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-08-01/network/virtualrouterpeerings.go b/services/network/mgmt/2019-08-01/network/virtualrouterpeerings.go
index ed5cb97aefe8..4705ba49078e 100644
--- a/services/network/mgmt/2019-08-01/network/virtualrouterpeerings.go
+++ b/services/network/mgmt/2019-08-01/network/virtualrouterpeerings.go
@@ -36,7 +36,9 @@ func NewVirtualRouterPeeringsClient(subscriptionID string) VirtualRouterPeerings
return NewVirtualRouterPeeringsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualRouterPeeringsClientWithBaseURI creates an instance of the VirtualRouterPeeringsClient client.
+// NewVirtualRouterPeeringsClientWithBaseURI creates an instance of the VirtualRouterPeeringsClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewVirtualRouterPeeringsClientWithBaseURI(baseURI string, subscriptionID string) VirtualRouterPeeringsClient {
return VirtualRouterPeeringsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-08-01/network/virtualrouters.go b/services/network/mgmt/2019-08-01/network/virtualrouters.go
index 08ef58c4e840..0191082a26fc 100644
--- a/services/network/mgmt/2019-08-01/network/virtualrouters.go
+++ b/services/network/mgmt/2019-08-01/network/virtualrouters.go
@@ -36,7 +36,8 @@ func NewVirtualRoutersClient(subscriptionID string) VirtualRoutersClient {
return NewVirtualRoutersClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualRoutersClientWithBaseURI creates an instance of the VirtualRoutersClient client.
+// NewVirtualRoutersClientWithBaseURI creates an instance of the VirtualRoutersClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVirtualRoutersClientWithBaseURI(baseURI string, subscriptionID string) VirtualRoutersClient {
return VirtualRoutersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-08-01/network/virtualwans.go b/services/network/mgmt/2019-08-01/network/virtualwans.go
index c35f44ded067..a357e0c6a261 100644
--- a/services/network/mgmt/2019-08-01/network/virtualwans.go
+++ b/services/network/mgmt/2019-08-01/network/virtualwans.go
@@ -35,7 +35,8 @@ func NewVirtualWansClient(subscriptionID string) VirtualWansClient {
return NewVirtualWansClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualWansClientWithBaseURI creates an instance of the VirtualWansClient client.
+// NewVirtualWansClientWithBaseURI creates an instance of the VirtualWansClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVirtualWansClientWithBaseURI(baseURI string, subscriptionID string) VirtualWansClient {
return VirtualWansClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-08-01/network/vpnconnections.go b/services/network/mgmt/2019-08-01/network/vpnconnections.go
index f8f082690493..978766ea64d8 100644
--- a/services/network/mgmt/2019-08-01/network/vpnconnections.go
+++ b/services/network/mgmt/2019-08-01/network/vpnconnections.go
@@ -35,7 +35,8 @@ func NewVpnConnectionsClient(subscriptionID string) VpnConnectionsClient {
return NewVpnConnectionsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVpnConnectionsClientWithBaseURI creates an instance of the VpnConnectionsClient client.
+// NewVpnConnectionsClientWithBaseURI creates an instance of the VpnConnectionsClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVpnConnectionsClientWithBaseURI(baseURI string, subscriptionID string) VpnConnectionsClient {
return VpnConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-08-01/network/vpngateways.go b/services/network/mgmt/2019-08-01/network/vpngateways.go
index 95df48106c51..814ebec085d5 100644
--- a/services/network/mgmt/2019-08-01/network/vpngateways.go
+++ b/services/network/mgmt/2019-08-01/network/vpngateways.go
@@ -35,7 +35,8 @@ func NewVpnGatewaysClient(subscriptionID string) VpnGatewaysClient {
return NewVpnGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVpnGatewaysClientWithBaseURI creates an instance of the VpnGatewaysClient client.
+// NewVpnGatewaysClientWithBaseURI creates an instance of the VpnGatewaysClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVpnGatewaysClientWithBaseURI(baseURI string, subscriptionID string) VpnGatewaysClient {
return VpnGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-08-01/network/vpnlinkconnections.go b/services/network/mgmt/2019-08-01/network/vpnlinkconnections.go
index 76b448861fb3..4f0e361b6ad3 100644
--- a/services/network/mgmt/2019-08-01/network/vpnlinkconnections.go
+++ b/services/network/mgmt/2019-08-01/network/vpnlinkconnections.go
@@ -35,7 +35,9 @@ func NewVpnLinkConnectionsClient(subscriptionID string) VpnLinkConnectionsClient
return NewVpnLinkConnectionsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVpnLinkConnectionsClientWithBaseURI creates an instance of the VpnLinkConnectionsClient client.
+// NewVpnLinkConnectionsClientWithBaseURI creates an instance of the VpnLinkConnectionsClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewVpnLinkConnectionsClientWithBaseURI(baseURI string, subscriptionID string) VpnLinkConnectionsClient {
return VpnLinkConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-08-01/network/vpnserverconfigurations.go b/services/network/mgmt/2019-08-01/network/vpnserverconfigurations.go
index 6eb66841fe40..583d0801835f 100644
--- a/services/network/mgmt/2019-08-01/network/vpnserverconfigurations.go
+++ b/services/network/mgmt/2019-08-01/network/vpnserverconfigurations.go
@@ -35,7 +35,9 @@ func NewVpnServerConfigurationsClient(subscriptionID string) VpnServerConfigurat
return NewVpnServerConfigurationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVpnServerConfigurationsClientWithBaseURI creates an instance of the VpnServerConfigurationsClient client.
+// NewVpnServerConfigurationsClientWithBaseURI creates an instance of the VpnServerConfigurationsClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewVpnServerConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) VpnServerConfigurationsClient {
return VpnServerConfigurationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-08-01/network/vpnserverconfigurationsassociatedwithvirtualwan.go b/services/network/mgmt/2019-08-01/network/vpnserverconfigurationsassociatedwithvirtualwan.go
index 3fdb70a04b23..f3fc95626e7d 100644
--- a/services/network/mgmt/2019-08-01/network/vpnserverconfigurationsassociatedwithvirtualwan.go
+++ b/services/network/mgmt/2019-08-01/network/vpnserverconfigurationsassociatedwithvirtualwan.go
@@ -37,7 +37,8 @@ func NewVpnServerConfigurationsAssociatedWithVirtualWanClient(subscriptionID str
}
// NewVpnServerConfigurationsAssociatedWithVirtualWanClientWithBaseURI creates an instance of the
-// VpnServerConfigurationsAssociatedWithVirtualWanClient client.
+// VpnServerConfigurationsAssociatedWithVirtualWanClient client using a custom endpoint. Use this when interacting
+// with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVpnServerConfigurationsAssociatedWithVirtualWanClientWithBaseURI(baseURI string, subscriptionID string) VpnServerConfigurationsAssociatedWithVirtualWanClient {
return VpnServerConfigurationsAssociatedWithVirtualWanClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-08-01/network/vpnsitelinkconnections.go b/services/network/mgmt/2019-08-01/network/vpnsitelinkconnections.go
index 254db8c50ba1..6f609dfc9a5e 100644
--- a/services/network/mgmt/2019-08-01/network/vpnsitelinkconnections.go
+++ b/services/network/mgmt/2019-08-01/network/vpnsitelinkconnections.go
@@ -35,7 +35,9 @@ func NewVpnSiteLinkConnectionsClient(subscriptionID string) VpnSiteLinkConnectio
return NewVpnSiteLinkConnectionsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVpnSiteLinkConnectionsClientWithBaseURI creates an instance of the VpnSiteLinkConnectionsClient client.
+// NewVpnSiteLinkConnectionsClientWithBaseURI creates an instance of the VpnSiteLinkConnectionsClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewVpnSiteLinkConnectionsClientWithBaseURI(baseURI string, subscriptionID string) VpnSiteLinkConnectionsClient {
return VpnSiteLinkConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-08-01/network/vpnsitelinks.go b/services/network/mgmt/2019-08-01/network/vpnsitelinks.go
index 119ee3b6fc2f..6ad8affdc93d 100644
--- a/services/network/mgmt/2019-08-01/network/vpnsitelinks.go
+++ b/services/network/mgmt/2019-08-01/network/vpnsitelinks.go
@@ -35,7 +35,8 @@ func NewVpnSiteLinksClient(subscriptionID string) VpnSiteLinksClient {
return NewVpnSiteLinksClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVpnSiteLinksClientWithBaseURI creates an instance of the VpnSiteLinksClient client.
+// NewVpnSiteLinksClientWithBaseURI creates an instance of the VpnSiteLinksClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVpnSiteLinksClientWithBaseURI(baseURI string, subscriptionID string) VpnSiteLinksClient {
return VpnSiteLinksClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-08-01/network/vpnsites.go b/services/network/mgmt/2019-08-01/network/vpnsites.go
index ffdb87321971..139c1c49651d 100644
--- a/services/network/mgmt/2019-08-01/network/vpnsites.go
+++ b/services/network/mgmt/2019-08-01/network/vpnsites.go
@@ -35,7 +35,8 @@ func NewVpnSitesClient(subscriptionID string) VpnSitesClient {
return NewVpnSitesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVpnSitesClientWithBaseURI creates an instance of the VpnSitesClient client.
+// NewVpnSitesClientWithBaseURI creates an instance of the VpnSitesClient client using a custom endpoint. Use this
+// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVpnSitesClientWithBaseURI(baseURI string, subscriptionID string) VpnSitesClient {
return VpnSitesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-08-01/network/vpnsitesconfiguration.go b/services/network/mgmt/2019-08-01/network/vpnsitesconfiguration.go
index f6faac70eb49..5a47069bd55a 100644
--- a/services/network/mgmt/2019-08-01/network/vpnsitesconfiguration.go
+++ b/services/network/mgmt/2019-08-01/network/vpnsitesconfiguration.go
@@ -36,7 +36,9 @@ func NewVpnSitesConfigurationClient(subscriptionID string) VpnSitesConfiguration
return NewVpnSitesConfigurationClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVpnSitesConfigurationClientWithBaseURI creates an instance of the VpnSitesConfigurationClient client.
+// NewVpnSitesConfigurationClientWithBaseURI creates an instance of the VpnSitesConfigurationClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewVpnSitesConfigurationClientWithBaseURI(baseURI string, subscriptionID string) VpnSitesConfigurationClient {
return VpnSitesConfigurationClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-08-01/network/watchers.go b/services/network/mgmt/2019-08-01/network/watchers.go
index c9d2d8cc5b74..904f3deab55b 100644
--- a/services/network/mgmt/2019-08-01/network/watchers.go
+++ b/services/network/mgmt/2019-08-01/network/watchers.go
@@ -36,7 +36,8 @@ func NewWatchersClient(subscriptionID string) WatchersClient {
return NewWatchersClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewWatchersClientWithBaseURI creates an instance of the WatchersClient client.
+// NewWatchersClientWithBaseURI creates an instance of the WatchersClient client using a custom endpoint. Use this
+// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewWatchersClientWithBaseURI(baseURI string, subscriptionID string) WatchersClient {
return WatchersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-08-01/network/webapplicationfirewallpolicies.go b/services/network/mgmt/2019-08-01/network/webapplicationfirewallpolicies.go
index 6d6220a7fa87..ac054044a6c1 100644
--- a/services/network/mgmt/2019-08-01/network/webapplicationfirewallpolicies.go
+++ b/services/network/mgmt/2019-08-01/network/webapplicationfirewallpolicies.go
@@ -37,7 +37,8 @@ func NewWebApplicationFirewallPoliciesClient(subscriptionID string) WebApplicati
}
// NewWebApplicationFirewallPoliciesClientWithBaseURI creates an instance of the WebApplicationFirewallPoliciesClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewWebApplicationFirewallPoliciesClientWithBaseURI(baseURI string, subscriptionID string) WebApplicationFirewallPoliciesClient {
return WebApplicationFirewallPoliciesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-09-01/network/applicationgateways.go b/services/network/mgmt/2019-09-01/network/applicationgateways.go
index 8e2e3f25221d..9c41ddf9403f 100644
--- a/services/network/mgmt/2019-09-01/network/applicationgateways.go
+++ b/services/network/mgmt/2019-09-01/network/applicationgateways.go
@@ -36,7 +36,9 @@ func NewApplicationGatewaysClient(subscriptionID string) ApplicationGatewaysClie
return NewApplicationGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewApplicationGatewaysClientWithBaseURI creates an instance of the ApplicationGatewaysClient client.
+// NewApplicationGatewaysClientWithBaseURI creates an instance of the ApplicationGatewaysClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewApplicationGatewaysClientWithBaseURI(baseURI string, subscriptionID string) ApplicationGatewaysClient {
return ApplicationGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-09-01/network/applicationsecuritygroups.go b/services/network/mgmt/2019-09-01/network/applicationsecuritygroups.go
index c968f70c5a3f..77553840c9a9 100644
--- a/services/network/mgmt/2019-09-01/network/applicationsecuritygroups.go
+++ b/services/network/mgmt/2019-09-01/network/applicationsecuritygroups.go
@@ -35,7 +35,9 @@ func NewApplicationSecurityGroupsClient(subscriptionID string) ApplicationSecuri
return NewApplicationSecurityGroupsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewApplicationSecurityGroupsClientWithBaseURI creates an instance of the ApplicationSecurityGroupsClient client.
+// NewApplicationSecurityGroupsClientWithBaseURI creates an instance of the ApplicationSecurityGroupsClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewApplicationSecurityGroupsClientWithBaseURI(baseURI string, subscriptionID string) ApplicationSecurityGroupsClient {
return ApplicationSecurityGroupsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-09-01/network/availabledelegations.go b/services/network/mgmt/2019-09-01/network/availabledelegations.go
index 98ccff35f2e9..76e2eeb64e60 100644
--- a/services/network/mgmt/2019-09-01/network/availabledelegations.go
+++ b/services/network/mgmt/2019-09-01/network/availabledelegations.go
@@ -35,7 +35,9 @@ func NewAvailableDelegationsClient(subscriptionID string) AvailableDelegationsCl
return NewAvailableDelegationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewAvailableDelegationsClientWithBaseURI creates an instance of the AvailableDelegationsClient client.
+// NewAvailableDelegationsClientWithBaseURI creates an instance of the AvailableDelegationsClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewAvailableDelegationsClientWithBaseURI(baseURI string, subscriptionID string) AvailableDelegationsClient {
return AvailableDelegationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-09-01/network/availableendpointservices.go b/services/network/mgmt/2019-09-01/network/availableendpointservices.go
index bbd8a7081b72..b7f68f8269e7 100644
--- a/services/network/mgmt/2019-09-01/network/availableendpointservices.go
+++ b/services/network/mgmt/2019-09-01/network/availableendpointservices.go
@@ -35,7 +35,9 @@ func NewAvailableEndpointServicesClient(subscriptionID string) AvailableEndpoint
return NewAvailableEndpointServicesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewAvailableEndpointServicesClientWithBaseURI creates an instance of the AvailableEndpointServicesClient client.
+// NewAvailableEndpointServicesClientWithBaseURI creates an instance of the AvailableEndpointServicesClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewAvailableEndpointServicesClientWithBaseURI(baseURI string, subscriptionID string) AvailableEndpointServicesClient {
return AvailableEndpointServicesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-09-01/network/availableprivateendpointtypes.go b/services/network/mgmt/2019-09-01/network/availableprivateendpointtypes.go
index 9a095c60f186..a46aa4c1050e 100644
--- a/services/network/mgmt/2019-09-01/network/availableprivateendpointtypes.go
+++ b/services/network/mgmt/2019-09-01/network/availableprivateendpointtypes.go
@@ -36,7 +36,8 @@ func NewAvailablePrivateEndpointTypesClient(subscriptionID string) AvailablePriv
}
// NewAvailablePrivateEndpointTypesClientWithBaseURI creates an instance of the AvailablePrivateEndpointTypesClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewAvailablePrivateEndpointTypesClientWithBaseURI(baseURI string, subscriptionID string) AvailablePrivateEndpointTypesClient {
return AvailablePrivateEndpointTypesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-09-01/network/availableresourcegroupdelegations.go b/services/network/mgmt/2019-09-01/network/availableresourcegroupdelegations.go
index 0e1db117f7ed..323d6a800b55 100644
--- a/services/network/mgmt/2019-09-01/network/availableresourcegroupdelegations.go
+++ b/services/network/mgmt/2019-09-01/network/availableresourcegroupdelegations.go
@@ -37,7 +37,8 @@ func NewAvailableResourceGroupDelegationsClient(subscriptionID string) Available
}
// NewAvailableResourceGroupDelegationsClientWithBaseURI creates an instance of the
-// AvailableResourceGroupDelegationsClient client.
+// AvailableResourceGroupDelegationsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewAvailableResourceGroupDelegationsClientWithBaseURI(baseURI string, subscriptionID string) AvailableResourceGroupDelegationsClient {
return AvailableResourceGroupDelegationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-09-01/network/availableservicealiases.go b/services/network/mgmt/2019-09-01/network/availableservicealiases.go
index dc23f413de28..16431a4d172e 100644
--- a/services/network/mgmt/2019-09-01/network/availableservicealiases.go
+++ b/services/network/mgmt/2019-09-01/network/availableservicealiases.go
@@ -35,7 +35,9 @@ func NewAvailableServiceAliasesClient(subscriptionID string) AvailableServiceAli
return NewAvailableServiceAliasesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewAvailableServiceAliasesClientWithBaseURI creates an instance of the AvailableServiceAliasesClient client.
+// NewAvailableServiceAliasesClientWithBaseURI creates an instance of the AvailableServiceAliasesClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewAvailableServiceAliasesClientWithBaseURI(baseURI string, subscriptionID string) AvailableServiceAliasesClient {
return AvailableServiceAliasesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-09-01/network/azurefirewallfqdntags.go b/services/network/mgmt/2019-09-01/network/azurefirewallfqdntags.go
index 575b91181c28..7243ccaedfb6 100644
--- a/services/network/mgmt/2019-09-01/network/azurefirewallfqdntags.go
+++ b/services/network/mgmt/2019-09-01/network/azurefirewallfqdntags.go
@@ -35,7 +35,9 @@ func NewAzureFirewallFqdnTagsClient(subscriptionID string) AzureFirewallFqdnTags
return NewAzureFirewallFqdnTagsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewAzureFirewallFqdnTagsClientWithBaseURI creates an instance of the AzureFirewallFqdnTagsClient client.
+// NewAzureFirewallFqdnTagsClientWithBaseURI creates an instance of the AzureFirewallFqdnTagsClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewAzureFirewallFqdnTagsClientWithBaseURI(baseURI string, subscriptionID string) AzureFirewallFqdnTagsClient {
return AzureFirewallFqdnTagsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-09-01/network/azurefirewalls.go b/services/network/mgmt/2019-09-01/network/azurefirewalls.go
index 02323fe15943..85d00d3e9ad3 100644
--- a/services/network/mgmt/2019-09-01/network/azurefirewalls.go
+++ b/services/network/mgmt/2019-09-01/network/azurefirewalls.go
@@ -35,7 +35,8 @@ func NewAzureFirewallsClient(subscriptionID string) AzureFirewallsClient {
return NewAzureFirewallsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewAzureFirewallsClientWithBaseURI creates an instance of the AzureFirewallsClient client.
+// NewAzureFirewallsClientWithBaseURI creates an instance of the AzureFirewallsClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewAzureFirewallsClientWithBaseURI(baseURI string, subscriptionID string) AzureFirewallsClient {
return AzureFirewallsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
@@ -502,13 +503,13 @@ func (client AzureFirewallsClient) ListAllComplete(ctx context.Context) (result
// resourceGroupName - the name of the resource group.
// azureFirewallName - the name of the Azure Firewall.
// parameters - parameters supplied to update azure firewall tags.
-func (client AzureFirewallsClient) UpdateTags(ctx context.Context, resourceGroupName string, azureFirewallName string, parameters TagsObject) (result AzureFirewall, err error) {
+func (client AzureFirewallsClient) UpdateTags(ctx context.Context, resourceGroupName string, azureFirewallName string, parameters TagsObject) (result AzureFirewallsUpdateTagsFuture, err error) {
if tracing.IsEnabled() {
ctx = tracing.StartSpan(ctx, fqdn+"/AzureFirewallsClient.UpdateTags")
defer func() {
sc := -1
- if result.Response.Response != nil {
- sc = result.Response.Response.StatusCode
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
}
tracing.EndSpan(ctx, sc, err)
}()
@@ -519,18 +520,12 @@ func (client AzureFirewallsClient) UpdateTags(ctx context.Context, resourceGroup
return
}
- resp, err := client.UpdateTagsSender(req)
+ result, err = client.UpdateTagsSender(req)
if err != nil {
- result.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "UpdateTags", resp, "Failure sending request")
+ err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "UpdateTags", result.Response(), "Failure sending request")
return
}
- result, err = client.UpdateTagsResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "UpdateTags", resp, "Failure responding to request")
- }
-
return
}
@@ -559,9 +554,15 @@ func (client AzureFirewallsClient) UpdateTagsPreparer(ctx context.Context, resou
// UpdateTagsSender sends the UpdateTags request. The method will close the
// http.Response Body if it receives an error.
-func (client AzureFirewallsClient) UpdateTagsSender(req *http.Request) (*http.Response, error) {
+func (client AzureFirewallsClient) UpdateTagsSender(req *http.Request) (future AzureFirewallsUpdateTagsFuture, err error) {
sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
}
// UpdateTagsResponder handles the response to the UpdateTags request. The method always
@@ -570,7 +571,7 @@ func (client AzureFirewallsClient) UpdateTagsResponder(resp *http.Response) (res
err = autorest.Respond(
resp,
client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted),
autorest.ByUnmarshallingJSON(&result),
autorest.ByClosing())
result.Response = autorest.Response{Response: resp}
diff --git a/services/network/mgmt/2019-09-01/network/bastionhosts.go b/services/network/mgmt/2019-09-01/network/bastionhosts.go
index a6d1e4ace024..1c4f184fef82 100644
--- a/services/network/mgmt/2019-09-01/network/bastionhosts.go
+++ b/services/network/mgmt/2019-09-01/network/bastionhosts.go
@@ -35,7 +35,8 @@ func NewBastionHostsClient(subscriptionID string) BastionHostsClient {
return NewBastionHostsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewBastionHostsClientWithBaseURI creates an instance of the BastionHostsClient client.
+// NewBastionHostsClientWithBaseURI creates an instance of the BastionHostsClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewBastionHostsClientWithBaseURI(baseURI string, subscriptionID string) BastionHostsClient {
return BastionHostsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-09-01/network/bgpservicecommunities.go b/services/network/mgmt/2019-09-01/network/bgpservicecommunities.go
index 232f48887118..24899ecf39fb 100644
--- a/services/network/mgmt/2019-09-01/network/bgpservicecommunities.go
+++ b/services/network/mgmt/2019-09-01/network/bgpservicecommunities.go
@@ -35,7 +35,9 @@ func NewBgpServiceCommunitiesClient(subscriptionID string) BgpServiceCommunities
return NewBgpServiceCommunitiesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewBgpServiceCommunitiesClientWithBaseURI creates an instance of the BgpServiceCommunitiesClient client.
+// NewBgpServiceCommunitiesClientWithBaseURI creates an instance of the BgpServiceCommunitiesClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewBgpServiceCommunitiesClientWithBaseURI(baseURI string, subscriptionID string) BgpServiceCommunitiesClient {
return BgpServiceCommunitiesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-09-01/network/client.go b/services/network/mgmt/2019-09-01/network/client.go
index 60a1dba12619..b0aaaff915d9 100644
--- a/services/network/mgmt/2019-09-01/network/client.go
+++ b/services/network/mgmt/2019-09-01/network/client.go
@@ -45,7 +45,8 @@ func New(subscriptionID string) BaseClient {
return NewWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewWithBaseURI creates an instance of the BaseClient client.
+// NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with
+// an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient {
return BaseClient{
Client: autorest.NewClientWithUserAgent(UserAgent()),
@@ -132,6 +133,203 @@ func (client BaseClient) CheckDNSNameAvailabilityResponder(resp *http.Response)
return
}
+// DeleteBastionShareableLink deletes the Bastion Shareable Links for all the VMs specified in the request.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// bastionHostName - the name of the Bastion Host.
+// bslRequest - post request for all the Bastion Shareable Link endpoints.
+func (client BaseClient) DeleteBastionShareableLink(ctx context.Context, resourceGroupName string, bastionHostName string, bslRequest BastionShareableLinkListRequest) (result DeleteBastionShareableLinkFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/BaseClient.DeleteBastionShareableLink")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.DeleteBastionShareableLinkPreparer(ctx, resourceGroupName, bastionHostName, bslRequest)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.BaseClient", "DeleteBastionShareableLink", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.DeleteBastionShareableLinkSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.BaseClient", "DeleteBastionShareableLink", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// DeleteBastionShareableLinkPreparer prepares the DeleteBastionShareableLink request.
+func (client BaseClient) DeleteBastionShareableLinkPreparer(ctx context.Context, resourceGroupName string, bastionHostName string, bslRequest BastionShareableLinkListRequest) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "bastionHostName": autorest.Encode("path", bastionHostName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-09-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPost(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/bastionHosts/{bastionHostName}/deleteShareableLinks", pathParameters),
+ autorest.WithJSON(bslRequest),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// DeleteBastionShareableLinkSender sends the DeleteBastionShareableLink request. The method will close the
+// http.Response Body if it receives an error.
+func (client BaseClient) DeleteBastionShareableLinkSender(req *http.Request) (future DeleteBastionShareableLinkFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// DeleteBastionShareableLinkResponder handles the response to the DeleteBastionShareableLink request. The method always
+// closes the http.Response Body.
+func (client BaseClient) DeleteBastionShareableLinkResponder(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
+}
+
+// DisconnectActiveSessions returns the list of currently active sessions on the Bastion.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// bastionHostName - the name of the Bastion Host.
+// sessionIds - the list of sessionids to disconnect.
+func (client BaseClient) DisconnectActiveSessions(ctx context.Context, resourceGroupName string, bastionHostName string, sessionIds SessionIds) (result BastionSessionDeleteResultPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/BaseClient.DisconnectActiveSessions")
+ defer func() {
+ sc := -1
+ if result.bsdr.Response.Response != nil {
+ sc = result.bsdr.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.disconnectActiveSessionsNextResults
+ req, err := client.DisconnectActiveSessionsPreparer(ctx, resourceGroupName, bastionHostName, sessionIds)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.BaseClient", "DisconnectActiveSessions", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.DisconnectActiveSessionsSender(req)
+ if err != nil {
+ result.bsdr.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.BaseClient", "DisconnectActiveSessions", resp, "Failure sending request")
+ return
+ }
+
+ result.bsdr, err = client.DisconnectActiveSessionsResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.BaseClient", "DisconnectActiveSessions", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// DisconnectActiveSessionsPreparer prepares the DisconnectActiveSessions request.
+func (client BaseClient) DisconnectActiveSessionsPreparer(ctx context.Context, resourceGroupName string, bastionHostName string, sessionIds SessionIds) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "bastionHostName": autorest.Encode("path", bastionHostName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-09-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPost(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/bastionHosts/{bastionHostName}/disconnectActiveSessions", pathParameters),
+ autorest.WithJSON(sessionIds),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// DisconnectActiveSessionsSender sends the DisconnectActiveSessions request. The method will close the
+// http.Response Body if it receives an error.
+func (client BaseClient) DisconnectActiveSessionsSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// DisconnectActiveSessionsResponder handles the response to the DisconnectActiveSessions request. The method always
+// closes the http.Response Body.
+func (client BaseClient) DisconnectActiveSessionsResponder(resp *http.Response) (result BastionSessionDeleteResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// disconnectActiveSessionsNextResults retrieves the next set of results, if any.
+func (client BaseClient) disconnectActiveSessionsNextResults(ctx context.Context, lastResults BastionSessionDeleteResult) (result BastionSessionDeleteResult, err error) {
+ req, err := lastResults.bastionSessionDeleteResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "network.BaseClient", "disconnectActiveSessionsNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.DisconnectActiveSessionsSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "network.BaseClient", "disconnectActiveSessionsNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.DisconnectActiveSessionsResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.BaseClient", "disconnectActiveSessionsNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// DisconnectActiveSessionsComplete enumerates all values, automatically crossing page boundaries as required.
+func (client BaseClient) DisconnectActiveSessionsComplete(ctx context.Context, resourceGroupName string, bastionHostName string, sessionIds SessionIds) (result BastionSessionDeleteResultIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/BaseClient.DisconnectActiveSessions")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.DisconnectActiveSessions(ctx, resourceGroupName, bastionHostName, sessionIds)
+ return
+}
+
// Generatevirtualwanvpnserverconfigurationvpnprofile generates a unique VPN profile for P2S clients for VirtualWan and
// associated VpnServerConfiguration combination in the specified resource group.
// Parameters:
@@ -213,6 +411,365 @@ func (client BaseClient) GeneratevirtualwanvpnserverconfigurationvpnprofileRespo
return
}
+// GetActiveSessions returns the list of currently active sessions on the Bastion.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// bastionHostName - the name of the Bastion Host.
+func (client BaseClient) GetActiveSessions(ctx context.Context, resourceGroupName string, bastionHostName string) (result GetActiveSessionsFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/BaseClient.GetActiveSessions")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetActiveSessionsPreparer(ctx, resourceGroupName, bastionHostName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.BaseClient", "GetActiveSessions", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.GetActiveSessionsSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.BaseClient", "GetActiveSessions", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// GetActiveSessionsPreparer prepares the GetActiveSessions request.
+func (client BaseClient) GetActiveSessionsPreparer(ctx context.Context, resourceGroupName string, bastionHostName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "bastionHostName": autorest.Encode("path", bastionHostName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-09-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.Network/bastionHosts/{bastionHostName}/getActiveSessions", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetActiveSessionsSender sends the GetActiveSessions request. The method will close the
+// http.Response Body if it receives an error.
+func (client BaseClient) GetActiveSessionsSender(req *http.Request) (future GetActiveSessionsFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// GetActiveSessionsResponder handles the response to the GetActiveSessions request. The method always
+// closes the http.Response Body.
+func (client BaseClient) GetActiveSessionsResponder(resp *http.Response) (result BastionActiveSessionListResultPage, err error) {
+ result.baslr, err = client.getActiveSessionsResponder(resp)
+ result.fn = client.getActiveSessionsNextResults
+ return
+}
+
+func (client BaseClient) getActiveSessionsResponder(resp *http.Response) (result BastionActiveSessionListResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// getActiveSessionsNextResults retrieves the next set of results, if any.
+func (client BaseClient) getActiveSessionsNextResults(ctx context.Context, lastResults BastionActiveSessionListResult) (result BastionActiveSessionListResult, err error) {
+ req, err := lastResults.bastionActiveSessionListResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "network.BaseClient", "getActiveSessionsNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req,
+ autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "network.BaseClient", "getActiveSessionsNextResults", resp, "Failure sending next results request")
+ }
+ return client.getActiveSessionsResponder(resp)
+}
+
+// GetActiveSessionsComplete enumerates all values, automatically crossing page boundaries as required.
+func (client BaseClient) GetActiveSessionsComplete(ctx context.Context, resourceGroupName string, bastionHostName string) (result GetActiveSessionsAllFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/BaseClient.GetActiveSessions")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ var future GetActiveSessionsFuture
+ future, err = client.GetActiveSessions(ctx, resourceGroupName, bastionHostName)
+ result.Future = future.Future
+ return
+}
+
+// GetBastionShareableLink return the Bastion Shareable Links for all the VMs specified in the request.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// bastionHostName - the name of the Bastion Host.
+// bslRequest - post request for all the Bastion Shareable Link endpoints.
+func (client BaseClient) GetBastionShareableLink(ctx context.Context, resourceGroupName string, bastionHostName string, bslRequest BastionShareableLinkListRequest) (result BastionShareableLinkListResultPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/BaseClient.GetBastionShareableLink")
+ defer func() {
+ sc := -1
+ if result.bsllr.Response.Response != nil {
+ sc = result.bsllr.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.getBastionShareableLinkNextResults
+ req, err := client.GetBastionShareableLinkPreparer(ctx, resourceGroupName, bastionHostName, bslRequest)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.BaseClient", "GetBastionShareableLink", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetBastionShareableLinkSender(req)
+ if err != nil {
+ result.bsllr.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.BaseClient", "GetBastionShareableLink", resp, "Failure sending request")
+ return
+ }
+
+ result.bsllr, err = client.GetBastionShareableLinkResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.BaseClient", "GetBastionShareableLink", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetBastionShareableLinkPreparer prepares the GetBastionShareableLink request.
+func (client BaseClient) GetBastionShareableLinkPreparer(ctx context.Context, resourceGroupName string, bastionHostName string, bslRequest BastionShareableLinkListRequest) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "bastionHostName": autorest.Encode("path", bastionHostName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-09-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPost(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/bastionHosts/{bastionHostName}/getShareableLinks", pathParameters),
+ autorest.WithJSON(bslRequest),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetBastionShareableLinkSender sends the GetBastionShareableLink request. The method will close the
+// http.Response Body if it receives an error.
+func (client BaseClient) GetBastionShareableLinkSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetBastionShareableLinkResponder handles the response to the GetBastionShareableLink request. The method always
+// closes the http.Response Body.
+func (client BaseClient) GetBastionShareableLinkResponder(resp *http.Response) (result BastionShareableLinkListResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// getBastionShareableLinkNextResults retrieves the next set of results, if any.
+func (client BaseClient) getBastionShareableLinkNextResults(ctx context.Context, lastResults BastionShareableLinkListResult) (result BastionShareableLinkListResult, err error) {
+ req, err := lastResults.bastionShareableLinkListResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "network.BaseClient", "getBastionShareableLinkNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.GetBastionShareableLinkSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "network.BaseClient", "getBastionShareableLinkNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.GetBastionShareableLinkResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.BaseClient", "getBastionShareableLinkNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// GetBastionShareableLinkComplete enumerates all values, automatically crossing page boundaries as required.
+func (client BaseClient) GetBastionShareableLinkComplete(ctx context.Context, resourceGroupName string, bastionHostName string, bslRequest BastionShareableLinkListRequest) (result BastionShareableLinkListResultIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/BaseClient.GetBastionShareableLink")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.GetBastionShareableLink(ctx, resourceGroupName, bastionHostName, bslRequest)
+ return
+}
+
+// PutBastionShareableLink creates a Bastion Shareable Links for all the VMs specified in the request.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// bastionHostName - the name of the Bastion Host.
+// bslRequest - post request for all the Bastion Shareable Link endpoints.
+func (client BaseClient) PutBastionShareableLink(ctx context.Context, resourceGroupName string, bastionHostName string, bslRequest BastionShareableLinkListRequest) (result PutBastionShareableLinkFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/BaseClient.PutBastionShareableLink")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.PutBastionShareableLinkPreparer(ctx, resourceGroupName, bastionHostName, bslRequest)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.BaseClient", "PutBastionShareableLink", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.PutBastionShareableLinkSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.BaseClient", "PutBastionShareableLink", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// PutBastionShareableLinkPreparer prepares the PutBastionShareableLink request.
+func (client BaseClient) PutBastionShareableLinkPreparer(ctx context.Context, resourceGroupName string, bastionHostName string, bslRequest BastionShareableLinkListRequest) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "bastionHostName": autorest.Encode("path", bastionHostName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-09-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPost(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/bastionHosts/{bastionHostName}/createShareableLinks", pathParameters),
+ autorest.WithJSON(bslRequest),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// PutBastionShareableLinkSender sends the PutBastionShareableLink request. The method will close the
+// http.Response Body if it receives an error.
+func (client BaseClient) PutBastionShareableLinkSender(req *http.Request) (future PutBastionShareableLinkFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// PutBastionShareableLinkResponder handles the response to the PutBastionShareableLink request. The method always
+// closes the http.Response Body.
+func (client BaseClient) PutBastionShareableLinkResponder(resp *http.Response) (result BastionShareableLinkListResultPage, err error) {
+ result.bsllr, err = client.putBastionShareableLinkResponder(resp)
+ result.fn = client.putBastionShareableLinkNextResults
+ return
+}
+
+func (client BaseClient) putBastionShareableLinkResponder(resp *http.Response) (result BastionShareableLinkListResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// putBastionShareableLinkNextResults retrieves the next set of results, if any.
+func (client BaseClient) putBastionShareableLinkNextResults(ctx context.Context, lastResults BastionShareableLinkListResult) (result BastionShareableLinkListResult, err error) {
+ req, err := lastResults.bastionShareableLinkListResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "network.BaseClient", "putBastionShareableLinkNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req,
+ autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "network.BaseClient", "putBastionShareableLinkNextResults", resp, "Failure sending next results request")
+ }
+ return client.putBastionShareableLinkResponder(resp)
+}
+
+// PutBastionShareableLinkComplete enumerates all values, automatically crossing page boundaries as required.
+func (client BaseClient) PutBastionShareableLinkComplete(ctx context.Context, resourceGroupName string, bastionHostName string, bslRequest BastionShareableLinkListRequest) (result PutBastionShareableLinkAllFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/BaseClient.PutBastionShareableLink")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ var future PutBastionShareableLinkFuture
+ future, err = client.PutBastionShareableLink(ctx, resourceGroupName, bastionHostName, bslRequest)
+ result.Future = future.Future
+ return
+}
+
// SupportedSecurityProviders gives the supported security providers for the virtual wan.
// Parameters:
// resourceGroupName - the resource group name.
diff --git a/services/network/mgmt/2019-09-01/network/connectionmonitors.go b/services/network/mgmt/2019-09-01/network/connectionmonitors.go
index ca171615eb08..b33487f27c44 100644
--- a/services/network/mgmt/2019-09-01/network/connectionmonitors.go
+++ b/services/network/mgmt/2019-09-01/network/connectionmonitors.go
@@ -36,7 +36,9 @@ func NewConnectionMonitorsClient(subscriptionID string) ConnectionMonitorsClient
return NewConnectionMonitorsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewConnectionMonitorsClientWithBaseURI creates an instance of the ConnectionMonitorsClient client.
+// NewConnectionMonitorsClientWithBaseURI creates an instance of the ConnectionMonitorsClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewConnectionMonitorsClientWithBaseURI(baseURI string, subscriptionID string) ConnectionMonitorsClient {
return ConnectionMonitorsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-09-01/network/ddoscustompolicies.go b/services/network/mgmt/2019-09-01/network/ddoscustompolicies.go
index 6e661d60fd1b..0da38a0e2a90 100644
--- a/services/network/mgmt/2019-09-01/network/ddoscustompolicies.go
+++ b/services/network/mgmt/2019-09-01/network/ddoscustompolicies.go
@@ -35,7 +35,9 @@ func NewDdosCustomPoliciesClient(subscriptionID string) DdosCustomPoliciesClient
return NewDdosCustomPoliciesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewDdosCustomPoliciesClientWithBaseURI creates an instance of the DdosCustomPoliciesClient client.
+// NewDdosCustomPoliciesClientWithBaseURI creates an instance of the DdosCustomPoliciesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewDdosCustomPoliciesClientWithBaseURI(baseURI string, subscriptionID string) DdosCustomPoliciesClient {
return DdosCustomPoliciesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-09-01/network/ddosprotectionplans.go b/services/network/mgmt/2019-09-01/network/ddosprotectionplans.go
index a93595c46b3b..526e984ed639 100644
--- a/services/network/mgmt/2019-09-01/network/ddosprotectionplans.go
+++ b/services/network/mgmt/2019-09-01/network/ddosprotectionplans.go
@@ -35,7 +35,9 @@ func NewDdosProtectionPlansClient(subscriptionID string) DdosProtectionPlansClie
return NewDdosProtectionPlansClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewDdosProtectionPlansClientWithBaseURI creates an instance of the DdosProtectionPlansClient client.
+// NewDdosProtectionPlansClientWithBaseURI creates an instance of the DdosProtectionPlansClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewDdosProtectionPlansClientWithBaseURI(baseURI string, subscriptionID string) DdosProtectionPlansClient {
return DdosProtectionPlansClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-09-01/network/defaultsecurityrules.go b/services/network/mgmt/2019-09-01/network/defaultsecurityrules.go
index 207905c4391e..9c666a12dcb5 100644
--- a/services/network/mgmt/2019-09-01/network/defaultsecurityrules.go
+++ b/services/network/mgmt/2019-09-01/network/defaultsecurityrules.go
@@ -35,7 +35,9 @@ func NewDefaultSecurityRulesClient(subscriptionID string) DefaultSecurityRulesCl
return NewDefaultSecurityRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewDefaultSecurityRulesClientWithBaseURI creates an instance of the DefaultSecurityRulesClient client.
+// NewDefaultSecurityRulesClientWithBaseURI creates an instance of the DefaultSecurityRulesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewDefaultSecurityRulesClientWithBaseURI(baseURI string, subscriptionID string) DefaultSecurityRulesClient {
return DefaultSecurityRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-09-01/network/expressroutecircuitauthorizations.go b/services/network/mgmt/2019-09-01/network/expressroutecircuitauthorizations.go
index 0fdccd576106..e50c6bebdbc1 100644
--- a/services/network/mgmt/2019-09-01/network/expressroutecircuitauthorizations.go
+++ b/services/network/mgmt/2019-09-01/network/expressroutecircuitauthorizations.go
@@ -37,7 +37,8 @@ func NewExpressRouteCircuitAuthorizationsClient(subscriptionID string) ExpressRo
}
// NewExpressRouteCircuitAuthorizationsClientWithBaseURI creates an instance of the
-// ExpressRouteCircuitAuthorizationsClient client.
+// ExpressRouteCircuitAuthorizationsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewExpressRouteCircuitAuthorizationsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCircuitAuthorizationsClient {
return ExpressRouteCircuitAuthorizationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-09-01/network/expressroutecircuitconnections.go b/services/network/mgmt/2019-09-01/network/expressroutecircuitconnections.go
index 81162a3ea0e0..4e344eca177c 100644
--- a/services/network/mgmt/2019-09-01/network/expressroutecircuitconnections.go
+++ b/services/network/mgmt/2019-09-01/network/expressroutecircuitconnections.go
@@ -36,7 +36,8 @@ func NewExpressRouteCircuitConnectionsClient(subscriptionID string) ExpressRoute
}
// NewExpressRouteCircuitConnectionsClientWithBaseURI creates an instance of the ExpressRouteCircuitConnectionsClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewExpressRouteCircuitConnectionsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCircuitConnectionsClient {
return ExpressRouteCircuitConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-09-01/network/expressroutecircuitpeerings.go b/services/network/mgmt/2019-09-01/network/expressroutecircuitpeerings.go
index 5889f2f03458..e8ddb3ccf06d 100644
--- a/services/network/mgmt/2019-09-01/network/expressroutecircuitpeerings.go
+++ b/services/network/mgmt/2019-09-01/network/expressroutecircuitpeerings.go
@@ -36,7 +36,9 @@ func NewExpressRouteCircuitPeeringsClient(subscriptionID string) ExpressRouteCir
return NewExpressRouteCircuitPeeringsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewExpressRouteCircuitPeeringsClientWithBaseURI creates an instance of the ExpressRouteCircuitPeeringsClient client.
+// NewExpressRouteCircuitPeeringsClientWithBaseURI creates an instance of the ExpressRouteCircuitPeeringsClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewExpressRouteCircuitPeeringsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCircuitPeeringsClient {
return ExpressRouteCircuitPeeringsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-09-01/network/expressroutecircuits.go b/services/network/mgmt/2019-09-01/network/expressroutecircuits.go
index f71a1a4abffa..511c3dce673a 100644
--- a/services/network/mgmt/2019-09-01/network/expressroutecircuits.go
+++ b/services/network/mgmt/2019-09-01/network/expressroutecircuits.go
@@ -35,7 +35,9 @@ func NewExpressRouteCircuitsClient(subscriptionID string) ExpressRouteCircuitsCl
return NewExpressRouteCircuitsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewExpressRouteCircuitsClientWithBaseURI creates an instance of the ExpressRouteCircuitsClient client.
+// NewExpressRouteCircuitsClientWithBaseURI creates an instance of the ExpressRouteCircuitsClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewExpressRouteCircuitsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCircuitsClient {
return ExpressRouteCircuitsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-09-01/network/expressrouteconnections.go b/services/network/mgmt/2019-09-01/network/expressrouteconnections.go
index 4d83f3e20d57..c9f6280242c7 100644
--- a/services/network/mgmt/2019-09-01/network/expressrouteconnections.go
+++ b/services/network/mgmt/2019-09-01/network/expressrouteconnections.go
@@ -36,7 +36,9 @@ func NewExpressRouteConnectionsClient(subscriptionID string) ExpressRouteConnect
return NewExpressRouteConnectionsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewExpressRouteConnectionsClientWithBaseURI creates an instance of the ExpressRouteConnectionsClient client.
+// NewExpressRouteConnectionsClientWithBaseURI creates an instance of the ExpressRouteConnectionsClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewExpressRouteConnectionsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteConnectionsClient {
return ExpressRouteConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-09-01/network/expressroutecrossconnectionpeerings.go b/services/network/mgmt/2019-09-01/network/expressroutecrossconnectionpeerings.go
index c18b9029d2f7..31c063d93c56 100644
--- a/services/network/mgmt/2019-09-01/network/expressroutecrossconnectionpeerings.go
+++ b/services/network/mgmt/2019-09-01/network/expressroutecrossconnectionpeerings.go
@@ -38,7 +38,8 @@ func NewExpressRouteCrossConnectionPeeringsClient(subscriptionID string) Express
}
// NewExpressRouteCrossConnectionPeeringsClientWithBaseURI creates an instance of the
-// ExpressRouteCrossConnectionPeeringsClient client.
+// ExpressRouteCrossConnectionPeeringsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewExpressRouteCrossConnectionPeeringsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCrossConnectionPeeringsClient {
return ExpressRouteCrossConnectionPeeringsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-09-01/network/expressroutecrossconnections.go b/services/network/mgmt/2019-09-01/network/expressroutecrossconnections.go
index b0c6882fd72b..539976f9b758 100644
--- a/services/network/mgmt/2019-09-01/network/expressroutecrossconnections.go
+++ b/services/network/mgmt/2019-09-01/network/expressroutecrossconnections.go
@@ -36,7 +36,8 @@ func NewExpressRouteCrossConnectionsClient(subscriptionID string) ExpressRouteCr
}
// NewExpressRouteCrossConnectionsClientWithBaseURI creates an instance of the ExpressRouteCrossConnectionsClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewExpressRouteCrossConnectionsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCrossConnectionsClient {
return ExpressRouteCrossConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-09-01/network/expressroutegateways.go b/services/network/mgmt/2019-09-01/network/expressroutegateways.go
index 999897a85a25..38c9f651e29e 100644
--- a/services/network/mgmt/2019-09-01/network/expressroutegateways.go
+++ b/services/network/mgmt/2019-09-01/network/expressroutegateways.go
@@ -36,7 +36,9 @@ func NewExpressRouteGatewaysClient(subscriptionID string) ExpressRouteGatewaysCl
return NewExpressRouteGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewExpressRouteGatewaysClientWithBaseURI creates an instance of the ExpressRouteGatewaysClient client.
+// NewExpressRouteGatewaysClientWithBaseURI creates an instance of the ExpressRouteGatewaysClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewExpressRouteGatewaysClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteGatewaysClient {
return ExpressRouteGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-09-01/network/expressroutelinks.go b/services/network/mgmt/2019-09-01/network/expressroutelinks.go
index 54b2e087c291..d0e442232d46 100644
--- a/services/network/mgmt/2019-09-01/network/expressroutelinks.go
+++ b/services/network/mgmt/2019-09-01/network/expressroutelinks.go
@@ -35,7 +35,9 @@ func NewExpressRouteLinksClient(subscriptionID string) ExpressRouteLinksClient {
return NewExpressRouteLinksClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewExpressRouteLinksClientWithBaseURI creates an instance of the ExpressRouteLinksClient client.
+// NewExpressRouteLinksClientWithBaseURI creates an instance of the ExpressRouteLinksClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewExpressRouteLinksClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteLinksClient {
return ExpressRouteLinksClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-09-01/network/expressrouteports.go b/services/network/mgmt/2019-09-01/network/expressrouteports.go
index 5c329a43510b..83499b743ad8 100644
--- a/services/network/mgmt/2019-09-01/network/expressrouteports.go
+++ b/services/network/mgmt/2019-09-01/network/expressrouteports.go
@@ -35,7 +35,9 @@ func NewExpressRoutePortsClient(subscriptionID string) ExpressRoutePortsClient {
return NewExpressRoutePortsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewExpressRoutePortsClientWithBaseURI creates an instance of the ExpressRoutePortsClient client.
+// NewExpressRoutePortsClientWithBaseURI creates an instance of the ExpressRoutePortsClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewExpressRoutePortsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRoutePortsClient {
return ExpressRoutePortsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-09-01/network/expressrouteportslocations.go b/services/network/mgmt/2019-09-01/network/expressrouteportslocations.go
index 63ea58d2b0c6..5b944d90023f 100644
--- a/services/network/mgmt/2019-09-01/network/expressrouteportslocations.go
+++ b/services/network/mgmt/2019-09-01/network/expressrouteportslocations.go
@@ -35,7 +35,9 @@ func NewExpressRoutePortsLocationsClient(subscriptionID string) ExpressRoutePort
return NewExpressRoutePortsLocationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewExpressRoutePortsLocationsClientWithBaseURI creates an instance of the ExpressRoutePortsLocationsClient client.
+// NewExpressRoutePortsLocationsClientWithBaseURI creates an instance of the ExpressRoutePortsLocationsClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewExpressRoutePortsLocationsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRoutePortsLocationsClient {
return ExpressRoutePortsLocationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-09-01/network/expressrouteserviceproviders.go b/services/network/mgmt/2019-09-01/network/expressrouteserviceproviders.go
index 9f18c083e83d..29cc09bb576d 100644
--- a/services/network/mgmt/2019-09-01/network/expressrouteserviceproviders.go
+++ b/services/network/mgmt/2019-09-01/network/expressrouteserviceproviders.go
@@ -36,7 +36,8 @@ func NewExpressRouteServiceProvidersClient(subscriptionID string) ExpressRouteSe
}
// NewExpressRouteServiceProvidersClientWithBaseURI creates an instance of the ExpressRouteServiceProvidersClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewExpressRouteServiceProvidersClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteServiceProvidersClient {
return ExpressRouteServiceProvidersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-09-01/network/firewallpolicies.go b/services/network/mgmt/2019-09-01/network/firewallpolicies.go
index e254354c737b..d433976f52a5 100644
--- a/services/network/mgmt/2019-09-01/network/firewallpolicies.go
+++ b/services/network/mgmt/2019-09-01/network/firewallpolicies.go
@@ -35,7 +35,9 @@ func NewFirewallPoliciesClient(subscriptionID string) FirewallPoliciesClient {
return NewFirewallPoliciesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewFirewallPoliciesClientWithBaseURI creates an instance of the FirewallPoliciesClient client.
+// NewFirewallPoliciesClientWithBaseURI creates an instance of the FirewallPoliciesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewFirewallPoliciesClientWithBaseURI(baseURI string, subscriptionID string) FirewallPoliciesClient {
return FirewallPoliciesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-09-01/network/firewallpolicyrulegroups.go b/services/network/mgmt/2019-09-01/network/firewallpolicyrulegroups.go
index 1f9d711f63d8..9f5b5e66829e 100644
--- a/services/network/mgmt/2019-09-01/network/firewallpolicyrulegroups.go
+++ b/services/network/mgmt/2019-09-01/network/firewallpolicyrulegroups.go
@@ -36,7 +36,9 @@ func NewFirewallPolicyRuleGroupsClient(subscriptionID string) FirewallPolicyRule
return NewFirewallPolicyRuleGroupsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewFirewallPolicyRuleGroupsClientWithBaseURI creates an instance of the FirewallPolicyRuleGroupsClient client.
+// NewFirewallPolicyRuleGroupsClientWithBaseURI creates an instance of the FirewallPolicyRuleGroupsClient client using
+// a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewFirewallPolicyRuleGroupsClientWithBaseURI(baseURI string, subscriptionID string) FirewallPolicyRuleGroupsClient {
return FirewallPolicyRuleGroupsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-09-01/network/hubvirtualnetworkconnections.go b/services/network/mgmt/2019-09-01/network/hubvirtualnetworkconnections.go
index 538c6bc30321..35f66bddc74f 100644
--- a/services/network/mgmt/2019-09-01/network/hubvirtualnetworkconnections.go
+++ b/services/network/mgmt/2019-09-01/network/hubvirtualnetworkconnections.go
@@ -36,7 +36,8 @@ func NewHubVirtualNetworkConnectionsClient(subscriptionID string) HubVirtualNetw
}
// NewHubVirtualNetworkConnectionsClientWithBaseURI creates an instance of the HubVirtualNetworkConnectionsClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewHubVirtualNetworkConnectionsClientWithBaseURI(baseURI string, subscriptionID string) HubVirtualNetworkConnectionsClient {
return HubVirtualNetworkConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-09-01/network/inboundnatrules.go b/services/network/mgmt/2019-09-01/network/inboundnatrules.go
index 2b6fdfe1a52e..2d5785e7286d 100644
--- a/services/network/mgmt/2019-09-01/network/inboundnatrules.go
+++ b/services/network/mgmt/2019-09-01/network/inboundnatrules.go
@@ -36,7 +36,8 @@ func NewInboundNatRulesClient(subscriptionID string) InboundNatRulesClient {
return NewInboundNatRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewInboundNatRulesClientWithBaseURI creates an instance of the InboundNatRulesClient client.
+// NewInboundNatRulesClientWithBaseURI creates an instance of the InboundNatRulesClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewInboundNatRulesClientWithBaseURI(baseURI string, subscriptionID string) InboundNatRulesClient {
return InboundNatRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-09-01/network/interfaceipconfigurations.go b/services/network/mgmt/2019-09-01/network/interfaceipconfigurations.go
index 81814cc9823d..283015206ee7 100644
--- a/services/network/mgmt/2019-09-01/network/interfaceipconfigurations.go
+++ b/services/network/mgmt/2019-09-01/network/interfaceipconfigurations.go
@@ -35,7 +35,9 @@ func NewInterfaceIPConfigurationsClient(subscriptionID string) InterfaceIPConfig
return NewInterfaceIPConfigurationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewInterfaceIPConfigurationsClientWithBaseURI creates an instance of the InterfaceIPConfigurationsClient client.
+// NewInterfaceIPConfigurationsClientWithBaseURI creates an instance of the InterfaceIPConfigurationsClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewInterfaceIPConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) InterfaceIPConfigurationsClient {
return InterfaceIPConfigurationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-09-01/network/interfaceloadbalancers.go b/services/network/mgmt/2019-09-01/network/interfaceloadbalancers.go
index 86df7b5c0e97..8e1c8548a2a4 100644
--- a/services/network/mgmt/2019-09-01/network/interfaceloadbalancers.go
+++ b/services/network/mgmt/2019-09-01/network/interfaceloadbalancers.go
@@ -35,7 +35,9 @@ func NewInterfaceLoadBalancersClient(subscriptionID string) InterfaceLoadBalance
return NewInterfaceLoadBalancersClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewInterfaceLoadBalancersClientWithBaseURI creates an instance of the InterfaceLoadBalancersClient client.
+// NewInterfaceLoadBalancersClientWithBaseURI creates an instance of the InterfaceLoadBalancersClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewInterfaceLoadBalancersClientWithBaseURI(baseURI string, subscriptionID string) InterfaceLoadBalancersClient {
return InterfaceLoadBalancersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-09-01/network/interfacesgroup.go b/services/network/mgmt/2019-09-01/network/interfacesgroup.go
index 7438dfed813c..64c287fd0e6c 100644
--- a/services/network/mgmt/2019-09-01/network/interfacesgroup.go
+++ b/services/network/mgmt/2019-09-01/network/interfacesgroup.go
@@ -35,7 +35,8 @@ func NewInterfacesClient(subscriptionID string) InterfacesClient {
return NewInterfacesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewInterfacesClientWithBaseURI creates an instance of the InterfacesClient client.
+// NewInterfacesClientWithBaseURI creates an instance of the InterfacesClient client using a custom endpoint. Use this
+// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewInterfacesClientWithBaseURI(baseURI string, subscriptionID string) InterfacesClient {
return InterfacesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-09-01/network/interfacetapconfigurations.go b/services/network/mgmt/2019-09-01/network/interfacetapconfigurations.go
index ca96f6a92593..96c582b23c89 100644
--- a/services/network/mgmt/2019-09-01/network/interfacetapconfigurations.go
+++ b/services/network/mgmt/2019-09-01/network/interfacetapconfigurations.go
@@ -36,7 +36,9 @@ func NewInterfaceTapConfigurationsClient(subscriptionID string) InterfaceTapConf
return NewInterfaceTapConfigurationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewInterfaceTapConfigurationsClientWithBaseURI creates an instance of the InterfaceTapConfigurationsClient client.
+// NewInterfaceTapConfigurationsClientWithBaseURI creates an instance of the InterfaceTapConfigurationsClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewInterfaceTapConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) InterfaceTapConfigurationsClient {
return InterfaceTapConfigurationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-09-01/network/ipgroups.go b/services/network/mgmt/2019-09-01/network/ipgroups.go
index fc9c39e4b049..083f20d0168d 100644
--- a/services/network/mgmt/2019-09-01/network/ipgroups.go
+++ b/services/network/mgmt/2019-09-01/network/ipgroups.go
@@ -35,7 +35,8 @@ func NewIPGroupsClient(subscriptionID string) IPGroupsClient {
return NewIPGroupsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewIPGroupsClientWithBaseURI creates an instance of the IPGroupsClient client.
+// NewIPGroupsClientWithBaseURI creates an instance of the IPGroupsClient client using a custom endpoint. Use this
+// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewIPGroupsClientWithBaseURI(baseURI string, subscriptionID string) IPGroupsClient {
return IPGroupsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-09-01/network/loadbalancerbackendaddresspools.go b/services/network/mgmt/2019-09-01/network/loadbalancerbackendaddresspools.go
index 3a313c458b60..b770b19440f1 100644
--- a/services/network/mgmt/2019-09-01/network/loadbalancerbackendaddresspools.go
+++ b/services/network/mgmt/2019-09-01/network/loadbalancerbackendaddresspools.go
@@ -36,7 +36,8 @@ func NewLoadBalancerBackendAddressPoolsClient(subscriptionID string) LoadBalance
}
// NewLoadBalancerBackendAddressPoolsClientWithBaseURI creates an instance of the LoadBalancerBackendAddressPoolsClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewLoadBalancerBackendAddressPoolsClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerBackendAddressPoolsClient {
return LoadBalancerBackendAddressPoolsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-09-01/network/loadbalancerfrontendipconfigurations.go b/services/network/mgmt/2019-09-01/network/loadbalancerfrontendipconfigurations.go
index 6a4ac7319d2e..f29c3a567a9c 100644
--- a/services/network/mgmt/2019-09-01/network/loadbalancerfrontendipconfigurations.go
+++ b/services/network/mgmt/2019-09-01/network/loadbalancerfrontendipconfigurations.go
@@ -37,7 +37,8 @@ func NewLoadBalancerFrontendIPConfigurationsClient(subscriptionID string) LoadBa
}
// NewLoadBalancerFrontendIPConfigurationsClientWithBaseURI creates an instance of the
-// LoadBalancerFrontendIPConfigurationsClient client.
+// LoadBalancerFrontendIPConfigurationsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewLoadBalancerFrontendIPConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerFrontendIPConfigurationsClient {
return LoadBalancerFrontendIPConfigurationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-09-01/network/loadbalancerloadbalancingrules.go b/services/network/mgmt/2019-09-01/network/loadbalancerloadbalancingrules.go
index 3905fe084dcd..5400ed1f8fd1 100644
--- a/services/network/mgmt/2019-09-01/network/loadbalancerloadbalancingrules.go
+++ b/services/network/mgmt/2019-09-01/network/loadbalancerloadbalancingrules.go
@@ -36,7 +36,8 @@ func NewLoadBalancerLoadBalancingRulesClient(subscriptionID string) LoadBalancer
}
// NewLoadBalancerLoadBalancingRulesClientWithBaseURI creates an instance of the LoadBalancerLoadBalancingRulesClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewLoadBalancerLoadBalancingRulesClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerLoadBalancingRulesClient {
return LoadBalancerLoadBalancingRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-09-01/network/loadbalancernetworkinterfaces.go b/services/network/mgmt/2019-09-01/network/loadbalancernetworkinterfaces.go
index 0a311ef156df..bb4c2c069097 100644
--- a/services/network/mgmt/2019-09-01/network/loadbalancernetworkinterfaces.go
+++ b/services/network/mgmt/2019-09-01/network/loadbalancernetworkinterfaces.go
@@ -36,7 +36,8 @@ func NewLoadBalancerNetworkInterfacesClient(subscriptionID string) LoadBalancerN
}
// NewLoadBalancerNetworkInterfacesClientWithBaseURI creates an instance of the LoadBalancerNetworkInterfacesClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewLoadBalancerNetworkInterfacesClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerNetworkInterfacesClient {
return LoadBalancerNetworkInterfacesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-09-01/network/loadbalanceroutboundrules.go b/services/network/mgmt/2019-09-01/network/loadbalanceroutboundrules.go
index 3fb4c68dec82..33c004e5c081 100644
--- a/services/network/mgmt/2019-09-01/network/loadbalanceroutboundrules.go
+++ b/services/network/mgmt/2019-09-01/network/loadbalanceroutboundrules.go
@@ -35,7 +35,9 @@ func NewLoadBalancerOutboundRulesClient(subscriptionID string) LoadBalancerOutbo
return NewLoadBalancerOutboundRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewLoadBalancerOutboundRulesClientWithBaseURI creates an instance of the LoadBalancerOutboundRulesClient client.
+// NewLoadBalancerOutboundRulesClientWithBaseURI creates an instance of the LoadBalancerOutboundRulesClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
func NewLoadBalancerOutboundRulesClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerOutboundRulesClient {
return LoadBalancerOutboundRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-09-01/network/loadbalancerprobes.go b/services/network/mgmt/2019-09-01/network/loadbalancerprobes.go
index 0b741a93e012..db52451703e3 100644
--- a/services/network/mgmt/2019-09-01/network/loadbalancerprobes.go
+++ b/services/network/mgmt/2019-09-01/network/loadbalancerprobes.go
@@ -35,7 +35,9 @@ func NewLoadBalancerProbesClient(subscriptionID string) LoadBalancerProbesClient
return NewLoadBalancerProbesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewLoadBalancerProbesClientWithBaseURI creates an instance of the LoadBalancerProbesClient client.
+// NewLoadBalancerProbesClientWithBaseURI creates an instance of the LoadBalancerProbesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewLoadBalancerProbesClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerProbesClient {
return LoadBalancerProbesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-09-01/network/loadbalancers.go b/services/network/mgmt/2019-09-01/network/loadbalancers.go
index 471324a5395f..f7629c14e17a 100644
--- a/services/network/mgmt/2019-09-01/network/loadbalancers.go
+++ b/services/network/mgmt/2019-09-01/network/loadbalancers.go
@@ -35,7 +35,8 @@ func NewLoadBalancersClient(subscriptionID string) LoadBalancersClient {
return NewLoadBalancersClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewLoadBalancersClientWithBaseURI creates an instance of the LoadBalancersClient client.
+// NewLoadBalancersClientWithBaseURI creates an instance of the LoadBalancersClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewLoadBalancersClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancersClient {
return LoadBalancersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-09-01/network/localnetworkgateways.go b/services/network/mgmt/2019-09-01/network/localnetworkgateways.go
index ba4d9f315ba2..be5194aec010 100644
--- a/services/network/mgmt/2019-09-01/network/localnetworkgateways.go
+++ b/services/network/mgmt/2019-09-01/network/localnetworkgateways.go
@@ -36,7 +36,9 @@ func NewLocalNetworkGatewaysClient(subscriptionID string) LocalNetworkGatewaysCl
return NewLocalNetworkGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewLocalNetworkGatewaysClientWithBaseURI creates an instance of the LocalNetworkGatewaysClient client.
+// NewLocalNetworkGatewaysClientWithBaseURI creates an instance of the LocalNetworkGatewaysClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewLocalNetworkGatewaysClientWithBaseURI(baseURI string, subscriptionID string) LocalNetworkGatewaysClient {
return LocalNetworkGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-09-01/network/models.go b/services/network/mgmt/2019-09-01/network/models.go
index a75fb13510ee..d803d1f8edba 100644
--- a/services/network/mgmt/2019-09-01/network/models.go
+++ b/services/network/mgmt/2019-09-01/network/models.go
@@ -500,6 +500,21 @@ func PossibleAzureFirewallThreatIntelModeValues() []AzureFirewallThreatIntelMode
return []AzureFirewallThreatIntelMode{AzureFirewallThreatIntelModeAlert, AzureFirewallThreatIntelModeDeny, AzureFirewallThreatIntelModeOff}
}
+// BastionConnectProtocol enumerates the values for bastion connect protocol.
+type BastionConnectProtocol string
+
+const (
+ // RDP ...
+ RDP BastionConnectProtocol = "RDP"
+ // SSH ...
+ SSH BastionConnectProtocol = "SSH"
+)
+
+// PossibleBastionConnectProtocolValues returns an array of possible values for the BastionConnectProtocol const type.
+func PossibleBastionConnectProtocolValues() []BastionConnectProtocol {
+ return []BastionConnectProtocol{RDP, SSH}
+}
+
// BgpPeerState enumerates the values for bgp peer state.
type BgpPeerState string
@@ -5579,9 +5594,9 @@ func NewAuthorizationListResultPage(getNextPage func(context.Context, Authorizat
// AuthorizationPropertiesFormat properties of ExpressRouteCircuitAuthorization.
type AuthorizationPropertiesFormat struct {
- // AuthorizationKey - READ-ONLY; The authorization key.
+ // AuthorizationKey - The authorization key.
AuthorizationKey *string `json:"authorizationKey,omitempty"`
- // AuthorizationUseStatus - READ-ONLY; The authorization use status. Possible values include: 'Available', 'InUse'
+ // AuthorizationUseStatus - The authorization use status. Possible values include: 'Available', 'InUse'
AuthorizationUseStatus AuthorizationUseStatus `json:"authorizationUseStatus,omitempty"`
// ProvisioningState - READ-ONLY; The provisioning state of the authorization resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'
ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
@@ -7404,6 +7419,35 @@ type AzureFirewallSku struct {
Tier AzureFirewallSkuTier `json:"tier,omitempty"`
}
+// AzureFirewallsUpdateTagsFuture an abstraction for monitoring and retrieving the results of a
+// long-running operation.
+type AzureFirewallsUpdateTagsFuture struct {
+ azure.Future
+}
+
+// Result returns the result of the asynchronous operation.
+// If the operation has not completed it will return an error.
+func (future *AzureFirewallsUpdateTagsFuture) Result(client AzureFirewallsClient) (af AzureFirewall, err error) {
+ var done bool
+ done, err = future.DoneWithContext(context.Background(), client)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.AzureFirewallsUpdateTagsFuture", "Result", future.Response(), "Polling failure")
+ return
+ }
+ if !done {
+ err = azure.NewAsyncOpIncompleteError("network.AzureFirewallsUpdateTagsFuture")
+ return
+ }
+ sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ if af.Response.Response, err = future.GetResult(sender); err == nil && af.Response.Response.StatusCode != http.StatusNoContent {
+ af, err = client.UpdateTagsResponder(af.Response.Response)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.AzureFirewallsUpdateTagsFuture", "Result", af.Response.Response, "Failure responding to request")
+ }
+ }
+ return
+}
+
// AzureReachabilityReport azure reachability report details.
type AzureReachabilityReport struct {
autorest.Response `json:"-"`
@@ -7561,6 +7605,179 @@ type BackendAddressPoolPropertiesFormat struct {
ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
}
+// BastionActiveSession the session detail for a target.
+type BastionActiveSession struct {
+ // SessionID - READ-ONLY; A unique id for the session.
+ SessionID *string `json:"sessionId,omitempty"`
+ // StartTime - READ-ONLY; The time when the session started.
+ StartTime interface{} `json:"startTime,omitempty"`
+ // TargetSubscriptionID - READ-ONLY; The subscription id for the target virtual machine.
+ TargetSubscriptionID *string `json:"targetSubscriptionId,omitempty"`
+ // ResourceType - READ-ONLY; The type of the resource.
+ ResourceType *string `json:"resourceType,omitempty"`
+ // TargetHostName - READ-ONLY; The host name of the target.
+ TargetHostName *string `json:"targetHostName,omitempty"`
+ // TargetResourceGroup - READ-ONLY; The resource group of the target.
+ TargetResourceGroup *string `json:"targetResourceGroup,omitempty"`
+ // UserName - READ-ONLY; The user name who is active on this session.
+ UserName *string `json:"userName,omitempty"`
+ // TargetIPAddress - READ-ONLY; The IP Address of the target.
+ TargetIPAddress *string `json:"targetIpAddress,omitempty"`
+ // Protocol - READ-ONLY; The protocol used to connect to the target. Possible values include: 'SSH', 'RDP'
+ Protocol BastionConnectProtocol `json:"protocol,omitempty"`
+ // TargetResourceID - READ-ONLY; The resource id of the target.
+ TargetResourceID *string `json:"targetResourceId,omitempty"`
+ // SessionDurationInMins - READ-ONLY; Duration in mins the session has been active.
+ SessionDurationInMins *float64 `json:"sessionDurationInMins,omitempty"`
+}
+
+// BastionActiveSessionListResult response for GetActiveSessions.
+type BastionActiveSessionListResult struct {
+ autorest.Response `json:"-"`
+ // Value - List of active sessions on the bastion.
+ Value *[]BastionActiveSession `json:"value,omitempty"`
+ // NextLink - Gets or sets the URL to get the next set of results.
+ NextLink *string `json:"nextLink,omitempty"`
+}
+
+// BastionActiveSessionListResultIterator provides access to a complete listing of BastionActiveSession
+// values.
+type BastionActiveSessionListResultIterator struct {
+ i int
+ page BastionActiveSessionListResultPage
+}
+
+// NextWithContext 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 *BastionActiveSessionListResultIterator) NextWithContext(ctx context.Context) (err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/BastionActiveSessionListResultIterator.NextWithContext")
+ defer func() {
+ sc := -1
+ if iter.Response().Response.Response != nil {
+ sc = iter.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ iter.i++
+ if iter.i < len(iter.page.Values()) {
+ return nil
+ }
+ err = iter.page.NextWithContext(ctx)
+ if err != nil {
+ iter.i--
+ return err
+ }
+ iter.i = 0
+ return nil
+}
+
+// Next advances to the next value. If there was an error making
+// the request the iterator does not advance and the error is returned.
+// Deprecated: Use NextWithContext() instead.
+func (iter *BastionActiveSessionListResultIterator) Next() error {
+ return iter.NextWithContext(context.Background())
+}
+
+// NotDone returns true if the enumeration should be started or is not yet complete.
+func (iter BastionActiveSessionListResultIterator) 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 BastionActiveSessionListResultIterator) Response() BastionActiveSessionListResult {
+ 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 BastionActiveSessionListResultIterator) Value() BastionActiveSession {
+ if !iter.page.NotDone() {
+ return BastionActiveSession{}
+ }
+ return iter.page.Values()[iter.i]
+}
+
+// Creates a new instance of the BastionActiveSessionListResultIterator type.
+func NewBastionActiveSessionListResultIterator(page BastionActiveSessionListResultPage) BastionActiveSessionListResultIterator {
+ return BastionActiveSessionListResultIterator{page: page}
+}
+
+// IsEmpty returns true if the ListResult contains no values.
+func (baslr BastionActiveSessionListResult) IsEmpty() bool {
+ return baslr.Value == nil || len(*baslr.Value) == 0
+}
+
+// bastionActiveSessionListResultPreparer prepares a request to retrieve the next set of results.
+// It returns nil if no more results exist.
+func (baslr BastionActiveSessionListResult) bastionActiveSessionListResultPreparer(ctx context.Context) (*http.Request, error) {
+ if baslr.NextLink == nil || len(to.String(baslr.NextLink)) < 1 {
+ return nil, nil
+ }
+ return autorest.Prepare((&http.Request{}).WithContext(ctx),
+ autorest.AsJSON(),
+ autorest.AsGet(),
+ autorest.WithBaseURL(to.String(baslr.NextLink)))
+}
+
+// BastionActiveSessionListResultPage contains a page of BastionActiveSession values.
+type BastionActiveSessionListResultPage struct {
+ fn func(context.Context, BastionActiveSessionListResult) (BastionActiveSessionListResult, error)
+ baslr BastionActiveSessionListResult
+}
+
+// NextWithContext 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 *BastionActiveSessionListResultPage) NextWithContext(ctx context.Context) (err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/BastionActiveSessionListResultPage.NextWithContext")
+ defer func() {
+ sc := -1
+ if page.Response().Response.Response != nil {
+ sc = page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ next, err := page.fn(ctx, page.baslr)
+ if err != nil {
+ return err
+ }
+ page.baslr = next
+ return nil
+}
+
+// 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.
+// Deprecated: Use NextWithContext() instead.
+func (page *BastionActiveSessionListResultPage) Next() error {
+ return page.NextWithContext(context.Background())
+}
+
+// NotDone returns true if the page enumeration should be started or is not yet complete.
+func (page BastionActiveSessionListResultPage) NotDone() bool {
+ return !page.baslr.IsEmpty()
+}
+
+// Response returns the raw server response from the last page request.
+func (page BastionActiveSessionListResultPage) Response() BastionActiveSessionListResult {
+ return page.baslr
+}
+
+// Values returns the slice of values for the current page or nil if there are no values.
+func (page BastionActiveSessionListResultPage) Values() []BastionActiveSession {
+ if page.baslr.IsEmpty() {
+ return nil
+ }
+ return *page.baslr.Value
+}
+
+// Creates a new instance of the BastionActiveSessionListResultPage type.
+func NewBastionActiveSessionListResultPage(getNextPage func(context.Context, BastionActiveSessionListResult) (BastionActiveSessionListResult, error)) BastionActiveSessionListResultPage {
+ return BastionActiveSessionListResultPage{fn: getNextPage}
+}
+
// BastionHost bastion Host resource.
type BastionHost struct {
autorest.Response `json:"-"`
@@ -7985,6 +8202,327 @@ func (future *BastionHostsDeleteFuture) Result(client BastionHostsClient) (ar au
return
}
+// BastionSessionDeleteResult response for DisconnectActiveSessions.
+type BastionSessionDeleteResult struct {
+ autorest.Response `json:"-"`
+ // Value - List of sessions with their corresponding state.
+ Value *[]BastionSessionState `json:"value,omitempty"`
+ // NextLink - Gets or sets the URL to get the next set of results.
+ NextLink *string `json:"nextLink,omitempty"`
+}
+
+// BastionSessionDeleteResultIterator provides access to a complete listing of BastionSessionState values.
+type BastionSessionDeleteResultIterator struct {
+ i int
+ page BastionSessionDeleteResultPage
+}
+
+// NextWithContext 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 *BastionSessionDeleteResultIterator) NextWithContext(ctx context.Context) (err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/BastionSessionDeleteResultIterator.NextWithContext")
+ defer func() {
+ sc := -1
+ if iter.Response().Response.Response != nil {
+ sc = iter.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ iter.i++
+ if iter.i < len(iter.page.Values()) {
+ return nil
+ }
+ err = iter.page.NextWithContext(ctx)
+ if err != nil {
+ iter.i--
+ return err
+ }
+ iter.i = 0
+ return nil
+}
+
+// Next advances to the next value. If there was an error making
+// the request the iterator does not advance and the error is returned.
+// Deprecated: Use NextWithContext() instead.
+func (iter *BastionSessionDeleteResultIterator) Next() error {
+ return iter.NextWithContext(context.Background())
+}
+
+// NotDone returns true if the enumeration should be started or is not yet complete.
+func (iter BastionSessionDeleteResultIterator) 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 BastionSessionDeleteResultIterator) Response() BastionSessionDeleteResult {
+ 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 BastionSessionDeleteResultIterator) Value() BastionSessionState {
+ if !iter.page.NotDone() {
+ return BastionSessionState{}
+ }
+ return iter.page.Values()[iter.i]
+}
+
+// Creates a new instance of the BastionSessionDeleteResultIterator type.
+func NewBastionSessionDeleteResultIterator(page BastionSessionDeleteResultPage) BastionSessionDeleteResultIterator {
+ return BastionSessionDeleteResultIterator{page: page}
+}
+
+// IsEmpty returns true if the ListResult contains no values.
+func (bsdr BastionSessionDeleteResult) IsEmpty() bool {
+ return bsdr.Value == nil || len(*bsdr.Value) == 0
+}
+
+// bastionSessionDeleteResultPreparer prepares a request to retrieve the next set of results.
+// It returns nil if no more results exist.
+func (bsdr BastionSessionDeleteResult) bastionSessionDeleteResultPreparer(ctx context.Context) (*http.Request, error) {
+ if bsdr.NextLink == nil || len(to.String(bsdr.NextLink)) < 1 {
+ return nil, nil
+ }
+ return autorest.Prepare((&http.Request{}).WithContext(ctx),
+ autorest.AsJSON(),
+ autorest.AsGet(),
+ autorest.WithBaseURL(to.String(bsdr.NextLink)))
+}
+
+// BastionSessionDeleteResultPage contains a page of BastionSessionState values.
+type BastionSessionDeleteResultPage struct {
+ fn func(context.Context, BastionSessionDeleteResult) (BastionSessionDeleteResult, error)
+ bsdr BastionSessionDeleteResult
+}
+
+// NextWithContext 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 *BastionSessionDeleteResultPage) NextWithContext(ctx context.Context) (err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/BastionSessionDeleteResultPage.NextWithContext")
+ defer func() {
+ sc := -1
+ if page.Response().Response.Response != nil {
+ sc = page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ next, err := page.fn(ctx, page.bsdr)
+ if err != nil {
+ return err
+ }
+ page.bsdr = next
+ return nil
+}
+
+// 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.
+// Deprecated: Use NextWithContext() instead.
+func (page *BastionSessionDeleteResultPage) Next() error {
+ return page.NextWithContext(context.Background())
+}
+
+// NotDone returns true if the page enumeration should be started or is not yet complete.
+func (page BastionSessionDeleteResultPage) NotDone() bool {
+ return !page.bsdr.IsEmpty()
+}
+
+// Response returns the raw server response from the last page request.
+func (page BastionSessionDeleteResultPage) Response() BastionSessionDeleteResult {
+ return page.bsdr
+}
+
+// Values returns the slice of values for the current page or nil if there are no values.
+func (page BastionSessionDeleteResultPage) Values() []BastionSessionState {
+ if page.bsdr.IsEmpty() {
+ return nil
+ }
+ return *page.bsdr.Value
+}
+
+// Creates a new instance of the BastionSessionDeleteResultPage type.
+func NewBastionSessionDeleteResultPage(getNextPage func(context.Context, BastionSessionDeleteResult) (BastionSessionDeleteResult, error)) BastionSessionDeleteResultPage {
+ return BastionSessionDeleteResultPage{fn: getNextPage}
+}
+
+// BastionSessionState the session state detail for a target.
+type BastionSessionState struct {
+ // SessionID - READ-ONLY; A unique id for the session.
+ SessionID *string `json:"sessionId,omitempty"`
+ // Message - READ-ONLY; Used for extra information.
+ Message *string `json:"message,omitempty"`
+ // State - READ-ONLY; The state of the session. Disconnected/Failed/NotFound.
+ State *string `json:"state,omitempty"`
+}
+
+// BastionShareableLink bastion Shareable Link.
+type BastionShareableLink struct {
+ // VM - Reference of the virtual machine resource.
+ VM *VM `json:"vm,omitempty"`
+ // Bsl - READ-ONLY; The unique Bastion Shareable Link to the virtual machine.
+ Bsl *string `json:"bsl,omitempty"`
+ // CreatedAt - READ-ONLY; The time when the link was created.
+ CreatedAt *string `json:"createdAt,omitempty"`
+ // Message - READ-ONLY; Optional field indicating the warning or error message related to the vm in case of partial failure
+ Message *string `json:"message,omitempty"`
+}
+
+// BastionShareableLinkListRequest post request for all the Bastion Shareable Link endpoints.
+type BastionShareableLinkListRequest struct {
+ // Vms - List of VM references.
+ Vms *[]BastionShareableLink `json:"vms,omitempty"`
+}
+
+// BastionShareableLinkListResult response for all the Bastion Shareable Link endpoints.
+type BastionShareableLinkListResult struct {
+ autorest.Response `json:"-"`
+ // Value - List of Bastion Shareable Links for the request.
+ Value *[]BastionShareableLink `json:"value,omitempty"`
+ // NextLink - Gets or sets the URL to get the next set of results.
+ NextLink *string `json:"nextLink,omitempty"`
+}
+
+// BastionShareableLinkListResultIterator provides access to a complete listing of BastionShareableLink
+// values.
+type BastionShareableLinkListResultIterator struct {
+ i int
+ page BastionShareableLinkListResultPage
+}
+
+// NextWithContext 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 *BastionShareableLinkListResultIterator) NextWithContext(ctx context.Context) (err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/BastionShareableLinkListResultIterator.NextWithContext")
+ defer func() {
+ sc := -1
+ if iter.Response().Response.Response != nil {
+ sc = iter.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ iter.i++
+ if iter.i < len(iter.page.Values()) {
+ return nil
+ }
+ err = iter.page.NextWithContext(ctx)
+ if err != nil {
+ iter.i--
+ return err
+ }
+ iter.i = 0
+ return nil
+}
+
+// Next advances to the next value. If there was an error making
+// the request the iterator does not advance and the error is returned.
+// Deprecated: Use NextWithContext() instead.
+func (iter *BastionShareableLinkListResultIterator) Next() error {
+ return iter.NextWithContext(context.Background())
+}
+
+// NotDone returns true if the enumeration should be started or is not yet complete.
+func (iter BastionShareableLinkListResultIterator) 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 BastionShareableLinkListResultIterator) Response() BastionShareableLinkListResult {
+ 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 BastionShareableLinkListResultIterator) Value() BastionShareableLink {
+ if !iter.page.NotDone() {
+ return BastionShareableLink{}
+ }
+ return iter.page.Values()[iter.i]
+}
+
+// Creates a new instance of the BastionShareableLinkListResultIterator type.
+func NewBastionShareableLinkListResultIterator(page BastionShareableLinkListResultPage) BastionShareableLinkListResultIterator {
+ return BastionShareableLinkListResultIterator{page: page}
+}
+
+// IsEmpty returns true if the ListResult contains no values.
+func (bsllr BastionShareableLinkListResult) IsEmpty() bool {
+ return bsllr.Value == nil || len(*bsllr.Value) == 0
+}
+
+// bastionShareableLinkListResultPreparer prepares a request to retrieve the next set of results.
+// It returns nil if no more results exist.
+func (bsllr BastionShareableLinkListResult) bastionShareableLinkListResultPreparer(ctx context.Context) (*http.Request, error) {
+ if bsllr.NextLink == nil || len(to.String(bsllr.NextLink)) < 1 {
+ return nil, nil
+ }
+ return autorest.Prepare((&http.Request{}).WithContext(ctx),
+ autorest.AsJSON(),
+ autorest.AsGet(),
+ autorest.WithBaseURL(to.String(bsllr.NextLink)))
+}
+
+// BastionShareableLinkListResultPage contains a page of BastionShareableLink values.
+type BastionShareableLinkListResultPage struct {
+ fn func(context.Context, BastionShareableLinkListResult) (BastionShareableLinkListResult, error)
+ bsllr BastionShareableLinkListResult
+}
+
+// NextWithContext 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 *BastionShareableLinkListResultPage) NextWithContext(ctx context.Context) (err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/BastionShareableLinkListResultPage.NextWithContext")
+ defer func() {
+ sc := -1
+ if page.Response().Response.Response != nil {
+ sc = page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ next, err := page.fn(ctx, page.bsllr)
+ if err != nil {
+ return err
+ }
+ page.bsllr = next
+ return nil
+}
+
+// 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.
+// Deprecated: Use NextWithContext() instead.
+func (page *BastionShareableLinkListResultPage) Next() error {
+ return page.NextWithContext(context.Background())
+}
+
+// NotDone returns true if the page enumeration should be started or is not yet complete.
+func (page BastionShareableLinkListResultPage) NotDone() bool {
+ return !page.bsllr.IsEmpty()
+}
+
+// Response returns the raw server response from the last page request.
+func (page BastionShareableLinkListResultPage) Response() BastionShareableLinkListResult {
+ return page.bsllr
+}
+
+// Values returns the slice of values for the current page or nil if there are no values.
+func (page BastionShareableLinkListResultPage) Values() []BastionShareableLink {
+ if page.bsllr.IsEmpty() {
+ return nil
+ }
+ return *page.bsllr.Value
+}
+
+// Creates a new instance of the BastionShareableLinkListResultPage type.
+func NewBastionShareableLinkListResultPage(getNextPage func(context.Context, BastionShareableLinkListResult) (BastionShareableLinkListResult, error)) BastionShareableLinkListResultPage {
+ return BastionShareableLinkListResultPage{fn: getNextPage}
+}
+
// BGPCommunity contains bgp community information offered in Service Community resources.
type BGPCommunity struct {
// ServiceSupportedRegion - The region which the service support. e.g. For O365, region is Global.
@@ -9727,6 +10265,29 @@ func (d *Delegation) UnmarshalJSON(body []byte) error {
return nil
}
+// DeleteBastionShareableLinkFuture an abstraction for monitoring and retrieving the results of a
+// long-running operation.
+type DeleteBastionShareableLinkFuture struct {
+ azure.Future
+}
+
+// Result returns the result of the asynchronous operation.
+// If the operation has not completed it will return an error.
+func (future *DeleteBastionShareableLinkFuture) Result(client BaseClient) (ar autorest.Response, err error) {
+ var done bool
+ done, err = future.DoneWithContext(context.Background(), client)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.DeleteBastionShareableLinkFuture", "Result", future.Response(), "Polling failure")
+ return
+ }
+ if !done {
+ err = azure.NewAsyncOpIncompleteError("network.DeleteBastionShareableLinkFuture")
+ return
+ }
+ ar.Response = future.Response()
+ return
+}
+
// DeviceProperties list of properties of the device.
type DeviceProperties struct {
// DeviceVendor - Name of the device Vendor.
@@ -10601,7 +11162,7 @@ type ExpressRouteCircuitConnectionPropertiesFormat struct {
AddressPrefix *string `json:"addressPrefix,omitempty"`
// AuthorizationKey - The authorization key.
AuthorizationKey *string `json:"authorizationKey,omitempty"`
- // CircuitConnectionStatus - READ-ONLY; Express Route Circuit connection state. Possible values include: 'Connected', 'Connecting', 'Disconnected'
+ // CircuitConnectionStatus - Express Route Circuit connection state. Possible values include: 'Connected', 'Connecting', 'Disconnected'
CircuitConnectionStatus CircuitConnectionStatus `json:"circuitConnectionStatus,omitempty"`
// ProvisioningState - READ-ONLY; The provisioning state of the express route circuit connection resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'
ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
@@ -11072,7 +11633,7 @@ type ExpressRouteCircuitPeeringPropertiesFormat struct {
PeeringType ExpressRoutePeeringType `json:"peeringType,omitempty"`
// State - The peering state. Possible values include: 'ExpressRoutePeeringStateDisabled', 'ExpressRoutePeeringStateEnabled'
State ExpressRoutePeeringState `json:"state,omitempty"`
- // AzureASN - READ-ONLY; The Azure ASN.
+ // AzureASN - The Azure ASN.
AzureASN *int32 `json:"azureASN,omitempty"`
// PeerASN - The peer ASN.
PeerASN *int64 `json:"peerASN,omitempty"`
@@ -11080,9 +11641,9 @@ type ExpressRouteCircuitPeeringPropertiesFormat struct {
PrimaryPeerAddressPrefix *string `json:"primaryPeerAddressPrefix,omitempty"`
// SecondaryPeerAddressPrefix - The secondary address prefix.
SecondaryPeerAddressPrefix *string `json:"secondaryPeerAddressPrefix,omitempty"`
- // PrimaryAzurePort - READ-ONLY; The primary port.
+ // PrimaryAzurePort - The primary port.
PrimaryAzurePort *string `json:"primaryAzurePort,omitempty"`
- // SecondaryAzurePort - READ-ONLY; The secondary port.
+ // SecondaryAzurePort - The secondary port.
SecondaryAzurePort *string `json:"secondaryAzurePort,omitempty"`
// SharedKey - The shared key.
SharedKey *string `json:"sharedKey,omitempty"`
@@ -11104,7 +11665,7 @@ type ExpressRouteCircuitPeeringPropertiesFormat struct {
Ipv6PeeringConfig *Ipv6ExpressRouteCircuitPeeringConfig `json:"ipv6PeeringConfig,omitempty"`
// ExpressRouteConnection - The ExpressRoute connection.
ExpressRouteConnection *ExpressRouteConnectionID `json:"expressRouteConnection,omitempty"`
- // Connections - READ-ONLY; The list of circuit connections associated with Azure Private Peering for this circuit.
+ // Connections - The list of circuit connections associated with Azure Private Peering for this circuit.
Connections *[]ExpressRouteCircuitConnection `json:"connections,omitempty"`
// PeeredConnections - READ-ONLY; The list of peered circuit connections associated with Azure Private Peering for this circuit.
PeeredConnections *[]PeerExpressRouteCircuitConnection `json:"peeredConnections,omitempty"`
@@ -11166,15 +11727,15 @@ func (future *ExpressRouteCircuitPeeringsDeleteFuture) Result(client ExpressRout
type ExpressRouteCircuitPropertiesFormat struct {
// AllowClassicOperations - Allow classic operations.
AllowClassicOperations *bool `json:"allowClassicOperations,omitempty"`
- // CircuitProvisioningState - READ-ONLY; The CircuitProvisioningState state of the resource.
+ // CircuitProvisioningState - The CircuitProvisioningState state of the resource.
CircuitProvisioningState *string `json:"circuitProvisioningState,omitempty"`
- // ServiceProviderProvisioningState - READ-ONLY; The ServiceProviderProvisioningState state of the resource. Possible values include: 'NotProvisioned', 'Provisioning', 'Provisioned', 'Deprovisioning'
+ // ServiceProviderProvisioningState - The ServiceProviderProvisioningState state of the resource. Possible values include: 'NotProvisioned', 'Provisioning', 'Provisioned', 'Deprovisioning'
ServiceProviderProvisioningState ServiceProviderProvisioningState `json:"serviceProviderProvisioningState,omitempty"`
// Authorizations - The list of authorizations.
Authorizations *[]ExpressRouteCircuitAuthorization `json:"authorizations,omitempty"`
// Peerings - The list of peerings.
Peerings *[]ExpressRouteCircuitPeering `json:"peerings,omitempty"`
- // ServiceKey - READ-ONLY; The ServiceKey.
+ // ServiceKey - The ServiceKey.
ServiceKey *string `json:"serviceKey,omitempty"`
// ServiceProviderNotes - The ServiceProviderNotes.
ServiceProviderNotes *string `json:"serviceProviderNotes,omitempty"`
@@ -11190,7 +11751,7 @@ type ExpressRouteCircuitPropertiesFormat struct {
ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
// GatewayManagerEtag - The GatewayManager Etag.
GatewayManagerEtag *string `json:"gatewayManagerEtag,omitempty"`
- // GlobalReachEnabled - READ-ONLY; Flag denoting Global reach status.
+ // GlobalReachEnabled - Flag denoting Global reach status.
GlobalReachEnabled *bool `json:"globalReachEnabled,omitempty"`
}
@@ -15077,6 +15638,64 @@ func (future *GeneratevirtualwanvpnserverconfigurationvpnprofileFuture) Result(c
return
}
+// GetActiveSessionsAllFuture an abstraction for monitoring and retrieving the results of a long-running
+// operation.
+type GetActiveSessionsAllFuture struct {
+ azure.Future
+}
+
+// Result returns the result of the asynchronous operation.
+// If the operation has not completed it will return an error.
+func (future *GetActiveSessionsAllFuture) Result(client BaseClient) (baslrp BastionActiveSessionListResultPage, err error) {
+ var done bool
+ done, err = future.DoneWithContext(context.Background(), client)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.GetActiveSessionsAllFuture", "Result", future.Response(), "Polling failure")
+ return
+ }
+ if !done {
+ err = azure.NewAsyncOpIncompleteError("network.GetActiveSessionsAllFuture")
+ return
+ }
+ sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ if baslrp.baslr.Response.Response, err = future.GetResult(sender); err == nil && baslrp.baslr.Response.Response.StatusCode != http.StatusNoContent {
+ baslrp, err = client.GetActiveSessionsResponder(baslrp.baslr.Response.Response)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.GetActiveSessionsAllFuture", "Result", baslrp.baslr.Response.Response, "Failure responding to request")
+ }
+ }
+ return
+}
+
+// GetActiveSessionsFuture an abstraction for monitoring and retrieving the results of a long-running
+// operation.
+type GetActiveSessionsFuture struct {
+ azure.Future
+}
+
+// Result returns the result of the asynchronous operation.
+// If the operation has not completed it will return an error.
+func (future *GetActiveSessionsFuture) Result(client BaseClient) (baslrp BastionActiveSessionListResultPage, err error) {
+ var done bool
+ done, err = future.DoneWithContext(context.Background(), client)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.GetActiveSessionsFuture", "Result", future.Response(), "Polling failure")
+ return
+ }
+ if !done {
+ err = azure.NewAsyncOpIncompleteError("network.GetActiveSessionsFuture")
+ return
+ }
+ sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ if baslrp.baslr.Response.Response, err = future.GetResult(sender); err == nil && baslrp.baslr.Response.Response.StatusCode != http.StatusNoContent {
+ baslrp, err = client.GetActiveSessionsResponder(baslrp.baslr.Response.Response)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.GetActiveSessionsFuture", "Result", baslrp.baslr.Response.Response, "Failure responding to request")
+ }
+ }
+ return
+}
+
// GetVpnSitesConfigurationRequest list of Vpn-Sites.
type GetVpnSitesConfigurationRequest struct {
// VpnSites - List of resource-ids of the vpn-sites for which config is to be downloaded.
@@ -24895,6 +25514,64 @@ type PublicIPPrefixSku struct {
Name PublicIPPrefixSkuName `json:"name,omitempty"`
}
+// PutBastionShareableLinkAllFuture an abstraction for monitoring and retrieving the results of a
+// long-running operation.
+type PutBastionShareableLinkAllFuture struct {
+ azure.Future
+}
+
+// Result returns the result of the asynchronous operation.
+// If the operation has not completed it will return an error.
+func (future *PutBastionShareableLinkAllFuture) Result(client BaseClient) (bsllrp BastionShareableLinkListResultPage, err error) {
+ var done bool
+ done, err = future.DoneWithContext(context.Background(), client)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.PutBastionShareableLinkAllFuture", "Result", future.Response(), "Polling failure")
+ return
+ }
+ if !done {
+ err = azure.NewAsyncOpIncompleteError("network.PutBastionShareableLinkAllFuture")
+ return
+ }
+ sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ if bsllrp.bsllr.Response.Response, err = future.GetResult(sender); err == nil && bsllrp.bsllr.Response.Response.StatusCode != http.StatusNoContent {
+ bsllrp, err = client.PutBastionShareableLinkResponder(bsllrp.bsllr.Response.Response)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.PutBastionShareableLinkAllFuture", "Result", bsllrp.bsllr.Response.Response, "Failure responding to request")
+ }
+ }
+ return
+}
+
+// PutBastionShareableLinkFuture an abstraction for monitoring and retrieving the results of a long-running
+// operation.
+type PutBastionShareableLinkFuture struct {
+ azure.Future
+}
+
+// Result returns the result of the asynchronous operation.
+// If the operation has not completed it will return an error.
+func (future *PutBastionShareableLinkFuture) Result(client BaseClient) (bsllrp BastionShareableLinkListResultPage, err error) {
+ var done bool
+ done, err = future.DoneWithContext(context.Background(), client)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.PutBastionShareableLinkFuture", "Result", future.Response(), "Polling failure")
+ return
+ }
+ if !done {
+ err = azure.NewAsyncOpIncompleteError("network.PutBastionShareableLinkFuture")
+ return
+ }
+ sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ if bsllrp.bsllr.Response.Response, err = future.GetResult(sender); err == nil && bsllrp.bsllr.Response.Response.StatusCode != http.StatusNoContent {
+ bsllrp, err = client.PutBastionShareableLinkResponder(bsllrp.bsllr.Response.Response)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.PutBastionShareableLinkFuture", "Result", bsllrp.bsllr.Response.Response, "Failure responding to request")
+ }
+ }
+ return
+}
+
// QueryTroubleshootingParameters parameters that define the resource to query the troubleshooting result.
type QueryTroubleshootingParameters struct {
// TargetResourceID - The target resource ID to query the troubleshooting result.
@@ -27853,6 +28530,12 @@ type ServiceTagsListResult struct {
Values *[]ServiceTagInformation `json:"values,omitempty"`
}
+// SessionIds list of session ids.
+type SessionIds struct {
+ // SessionIds - List of session ids
+ SessionIds *[]string `json:"sessionIds,omitempty"`
+}
+
// String ...
type String struct {
autorest.Response `json:"-"`
@@ -32657,6 +33340,35 @@ type VirtualWanVpnProfileParameters struct {
AuthenticationMethod AuthenticationMethod `json:"authenticationMethod,omitempty"`
}
+// VM describes a Virtual Machine.
+type VM struct {
+ // ID - Resource ID.
+ ID *string `json:"id,omitempty"`
+ // Name - READ-ONLY; Resource name.
+ Name *string `json:"name,omitempty"`
+ // Type - READ-ONLY; Resource type.
+ Type *string `json:"type,omitempty"`
+ // Location - Resource location.
+ Location *string `json:"location,omitempty"`
+ // Tags - Resource tags.
+ Tags map[string]*string `json:"tags"`
+}
+
+// MarshalJSON is the custom marshaler for VM.
+func (vVar VM) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ if vVar.ID != nil {
+ objectMap["id"] = vVar.ID
+ }
+ if vVar.Location != nil {
+ objectMap["location"] = vVar.Location
+ }
+ if vVar.Tags != nil {
+ objectMap["tags"] = vVar.Tags
+ }
+ return json.Marshal(objectMap)
+}
+
// VpnClientConfiguration vpnClientConfiguration for P2S client.
type VpnClientConfiguration struct {
// VpnClientAddressPool - The reference of the address space resource which represents Address space for P2S VpnClient.
diff --git a/services/network/mgmt/2019-09-01/network/natgateways.go b/services/network/mgmt/2019-09-01/network/natgateways.go
index 6062fe5018a6..c7117ff54faa 100644
--- a/services/network/mgmt/2019-09-01/network/natgateways.go
+++ b/services/network/mgmt/2019-09-01/network/natgateways.go
@@ -35,7 +35,8 @@ func NewNatGatewaysClient(subscriptionID string) NatGatewaysClient {
return NewNatGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewNatGatewaysClientWithBaseURI creates an instance of the NatGatewaysClient client.
+// NewNatGatewaysClientWithBaseURI creates an instance of the NatGatewaysClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewNatGatewaysClientWithBaseURI(baseURI string, subscriptionID string) NatGatewaysClient {
return NatGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-09-01/network/networkapi/interfaces.go b/services/network/mgmt/2019-09-01/network/networkapi/interfaces.go
index 82f369329002..5a004001a516 100644
--- a/services/network/mgmt/2019-09-01/network/networkapi/interfaces.go
+++ b/services/network/mgmt/2019-09-01/network/networkapi/interfaces.go
@@ -25,7 +25,16 @@ import (
// BaseClientAPI contains the set of methods on the BaseClient type.
type BaseClientAPI interface {
CheckDNSNameAvailability(ctx context.Context, location string, domainNameLabel string) (result network.DNSNameAvailabilityResult, err error)
+ DeleteBastionShareableLink(ctx context.Context, resourceGroupName string, bastionHostName string, bslRequest network.BastionShareableLinkListRequest) (result network.DeleteBastionShareableLinkFuture, err error)
+ DisconnectActiveSessions(ctx context.Context, resourceGroupName string, bastionHostName string, sessionIds network.SessionIds) (result network.BastionSessionDeleteResultPage, err error)
+ DisconnectActiveSessionsComplete(ctx context.Context, resourceGroupName string, bastionHostName string, sessionIds network.SessionIds) (result network.BastionSessionDeleteResultIterator, err error)
Generatevirtualwanvpnserverconfigurationvpnprofile(ctx context.Context, resourceGroupName string, virtualWANName string, vpnClientParams network.VirtualWanVpnProfileParameters) (result network.GeneratevirtualwanvpnserverconfigurationvpnprofileFuture, err error)
+ GetActiveSessions(ctx context.Context, resourceGroupName string, bastionHostName string) (result network.GetActiveSessionsFuture, err error)
+ GetActiveSessionsComplete(ctx context.Context, resourceGroupName string, bastionHostName string) (result network.GetActiveSessionsAllFuture, err error)
+ GetBastionShareableLink(ctx context.Context, resourceGroupName string, bastionHostName string, bslRequest network.BastionShareableLinkListRequest) (result network.BastionShareableLinkListResultPage, err error)
+ GetBastionShareableLinkComplete(ctx context.Context, resourceGroupName string, bastionHostName string, bslRequest network.BastionShareableLinkListRequest) (result network.BastionShareableLinkListResultIterator, err error)
+ PutBastionShareableLink(ctx context.Context, resourceGroupName string, bastionHostName string, bslRequest network.BastionShareableLinkListRequest) (result network.PutBastionShareableLinkFuture, err error)
+ PutBastionShareableLinkComplete(ctx context.Context, resourceGroupName string, bastionHostName string, bslRequest network.BastionShareableLinkListRequest) (result network.PutBastionShareableLinkAllFuture, err error)
SupportedSecurityProviders(ctx context.Context, resourceGroupName string, virtualWANName string) (result network.VirtualWanSecurityProviders, err error)
}
@@ -40,12 +49,15 @@ type ApplicationGatewaysClientAPI interface {
Get(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result network.ApplicationGateway, err error)
GetSslPredefinedPolicy(ctx context.Context, predefinedPolicyName string) (result network.ApplicationGatewaySslPredefinedPolicy, err error)
List(ctx context.Context, resourceGroupName string) (result network.ApplicationGatewayListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.ApplicationGatewayListResultIterator, err error)
ListAll(ctx context.Context) (result network.ApplicationGatewayListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.ApplicationGatewayListResultIterator, err error)
ListAvailableRequestHeaders(ctx context.Context) (result network.ListString, err error)
ListAvailableResponseHeaders(ctx context.Context) (result network.ListString, err error)
ListAvailableServerVariables(ctx context.Context) (result network.ListString, err error)
ListAvailableSslOptions(ctx context.Context) (result network.ApplicationGatewayAvailableSslOptions, err error)
ListAvailableSslPredefinedPolicies(ctx context.Context) (result network.ApplicationGatewayAvailableSslPredefinedPoliciesPage, err error)
+ ListAvailableSslPredefinedPoliciesComplete(ctx context.Context) (result network.ApplicationGatewayAvailableSslPredefinedPoliciesIterator, err error)
ListAvailableWafRuleSets(ctx context.Context) (result network.ApplicationGatewayAvailableWafRuleSetsResult, err error)
Start(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result network.ApplicationGatewaysStartFuture, err error)
Stop(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result network.ApplicationGatewaysStopFuture, err error)
@@ -60,7 +72,9 @@ type ApplicationSecurityGroupsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, applicationSecurityGroupName string) (result network.ApplicationSecurityGroupsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, applicationSecurityGroupName string) (result network.ApplicationSecurityGroup, err error)
List(ctx context.Context, resourceGroupName string) (result network.ApplicationSecurityGroupListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.ApplicationSecurityGroupListResultIterator, err error)
ListAll(ctx context.Context) (result network.ApplicationSecurityGroupListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.ApplicationSecurityGroupListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, applicationSecurityGroupName string, parameters network.TagsObject) (result network.ApplicationSecurityGroup, err error)
}
@@ -69,6 +83,7 @@ var _ ApplicationSecurityGroupsClientAPI = (*network.ApplicationSecurityGroupsCl
// AvailableDelegationsClientAPI contains the set of methods on the AvailableDelegationsClient type.
type AvailableDelegationsClientAPI interface {
List(ctx context.Context, location string) (result network.AvailableDelegationsResultPage, err error)
+ ListComplete(ctx context.Context, location string) (result network.AvailableDelegationsResultIterator, err error)
}
var _ AvailableDelegationsClientAPI = (*network.AvailableDelegationsClient)(nil)
@@ -76,6 +91,7 @@ var _ AvailableDelegationsClientAPI = (*network.AvailableDelegationsClient)(nil)
// AvailableResourceGroupDelegationsClientAPI contains the set of methods on the AvailableResourceGroupDelegationsClient type.
type AvailableResourceGroupDelegationsClientAPI interface {
List(ctx context.Context, location string, resourceGroupName string) (result network.AvailableDelegationsResultPage, err error)
+ ListComplete(ctx context.Context, location string, resourceGroupName string) (result network.AvailableDelegationsResultIterator, err error)
}
var _ AvailableResourceGroupDelegationsClientAPI = (*network.AvailableResourceGroupDelegationsClient)(nil)
@@ -83,7 +99,9 @@ var _ AvailableResourceGroupDelegationsClientAPI = (*network.AvailableResourceGr
// AvailableServiceAliasesClientAPI contains the set of methods on the AvailableServiceAliasesClient type.
type AvailableServiceAliasesClientAPI interface {
List(ctx context.Context, location string) (result network.AvailableServiceAliasesResultPage, err error)
+ ListComplete(ctx context.Context, location string) (result network.AvailableServiceAliasesResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string, location string) (result network.AvailableServiceAliasesResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string, location string) (result network.AvailableServiceAliasesResultIterator, err error)
}
var _ AvailableServiceAliasesClientAPI = (*network.AvailableServiceAliasesClient)(nil)
@@ -94,8 +112,10 @@ type AzureFirewallsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, azureFirewallName string) (result network.AzureFirewallsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, azureFirewallName string) (result network.AzureFirewall, err error)
List(ctx context.Context, resourceGroupName string) (result network.AzureFirewallListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.AzureFirewallListResultIterator, err error)
ListAll(ctx context.Context) (result network.AzureFirewallListResultPage, err error)
- UpdateTags(ctx context.Context, resourceGroupName string, azureFirewallName string, parameters network.TagsObject) (result network.AzureFirewall, err error)
+ ListAllComplete(ctx context.Context) (result network.AzureFirewallListResultIterator, err error)
+ UpdateTags(ctx context.Context, resourceGroupName string, azureFirewallName string, parameters network.TagsObject) (result network.AzureFirewallsUpdateTagsFuture, err error)
}
var _ AzureFirewallsClientAPI = (*network.AzureFirewallsClient)(nil)
@@ -103,6 +123,7 @@ var _ AzureFirewallsClientAPI = (*network.AzureFirewallsClient)(nil)
// AzureFirewallFqdnTagsClientAPI contains the set of methods on the AzureFirewallFqdnTagsClient type.
type AzureFirewallFqdnTagsClientAPI interface {
ListAll(ctx context.Context) (result network.AzureFirewallFqdnTagListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.AzureFirewallFqdnTagListResultIterator, err error)
}
var _ AzureFirewallFqdnTagsClientAPI = (*network.AzureFirewallFqdnTagsClient)(nil)
@@ -113,7 +134,9 @@ type BastionHostsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, bastionHostName string) (result network.BastionHostsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, bastionHostName string) (result network.BastionHost, err error)
List(ctx context.Context) (result network.BastionHostListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.BastionHostListResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.BastionHostListResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.BastionHostListResultIterator, err error)
}
var _ BastionHostsClientAPI = (*network.BastionHostsClient)(nil)
@@ -134,7 +157,9 @@ type DdosProtectionPlansClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, ddosProtectionPlanName string) (result network.DdosProtectionPlansDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, ddosProtectionPlanName string) (result network.DdosProtectionPlan, err error)
List(ctx context.Context) (result network.DdosProtectionPlanListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.DdosProtectionPlanListResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.DdosProtectionPlanListResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.DdosProtectionPlanListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, ddosProtectionPlanName string, parameters network.TagsObject) (result network.DdosProtectionPlan, err error)
}
@@ -143,6 +168,7 @@ var _ DdosProtectionPlansClientAPI = (*network.DdosProtectionPlansClient)(nil)
// AvailableEndpointServicesClientAPI contains the set of methods on the AvailableEndpointServicesClient type.
type AvailableEndpointServicesClientAPI interface {
List(ctx context.Context, location string) (result network.EndpointServicesListResultPage, err error)
+ ListComplete(ctx context.Context, location string) (result network.EndpointServicesListResultIterator, err error)
}
var _ AvailableEndpointServicesClientAPI = (*network.AvailableEndpointServicesClient)(nil)
@@ -153,6 +179,7 @@ type ExpressRouteCircuitAuthorizationsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, circuitName string, authorizationName string) (result network.ExpressRouteCircuitAuthorizationsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, circuitName string, authorizationName string) (result network.ExpressRouteCircuitAuthorization, err error)
List(ctx context.Context, resourceGroupName string, circuitName string) (result network.AuthorizationListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, circuitName string) (result network.AuthorizationListResultIterator, err error)
}
var _ ExpressRouteCircuitAuthorizationsClientAPI = (*network.ExpressRouteCircuitAuthorizationsClient)(nil)
@@ -163,6 +190,7 @@ type ExpressRouteCircuitPeeringsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.ExpressRouteCircuitPeeringsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.ExpressRouteCircuitPeering, err error)
List(ctx context.Context, resourceGroupName string, circuitName string) (result network.ExpressRouteCircuitPeeringListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, circuitName string) (result network.ExpressRouteCircuitPeeringListResultIterator, err error)
}
var _ ExpressRouteCircuitPeeringsClientAPI = (*network.ExpressRouteCircuitPeeringsClient)(nil)
@@ -173,6 +201,7 @@ type ExpressRouteCircuitConnectionsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, connectionName string) (result network.ExpressRouteCircuitConnectionsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, connectionName string) (result network.ExpressRouteCircuitConnection, err error)
List(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.ExpressRouteCircuitConnectionListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.ExpressRouteCircuitConnectionListResultIterator, err error)
}
var _ ExpressRouteCircuitConnectionsClientAPI = (*network.ExpressRouteCircuitConnectionsClient)(nil)
@@ -181,6 +210,7 @@ var _ ExpressRouteCircuitConnectionsClientAPI = (*network.ExpressRouteCircuitCon
type PeerExpressRouteCircuitConnectionsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, connectionName string) (result network.PeerExpressRouteCircuitConnection, err error)
List(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.PeerExpressRouteCircuitConnectionListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.PeerExpressRouteCircuitConnectionListResultIterator, err error)
}
var _ PeerExpressRouteCircuitConnectionsClientAPI = (*network.PeerExpressRouteCircuitConnectionsClient)(nil)
@@ -193,7 +223,9 @@ type ExpressRouteCircuitsClientAPI interface {
GetPeeringStats(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result network.ExpressRouteCircuitStats, err error)
GetStats(ctx context.Context, resourceGroupName string, circuitName string) (result network.ExpressRouteCircuitStats, err error)
List(ctx context.Context, resourceGroupName string) (result network.ExpressRouteCircuitListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.ExpressRouteCircuitListResultIterator, err error)
ListAll(ctx context.Context) (result network.ExpressRouteCircuitListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.ExpressRouteCircuitListResultIterator, err error)
ListArpTable(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, devicePath string) (result network.ExpressRouteCircuitsListArpTableFuture, err error)
ListRoutesTable(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, devicePath string) (result network.ExpressRouteCircuitsListRoutesTableFuture, err error)
ListRoutesTableSummary(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, devicePath string) (result network.ExpressRouteCircuitsListRoutesTableSummaryFuture, err error)
@@ -205,6 +237,7 @@ var _ ExpressRouteCircuitsClientAPI = (*network.ExpressRouteCircuitsClient)(nil)
// ExpressRouteServiceProvidersClientAPI contains the set of methods on the ExpressRouteServiceProvidersClient type.
type ExpressRouteServiceProvidersClientAPI interface {
List(ctx context.Context) (result network.ExpressRouteServiceProviderListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ExpressRouteServiceProviderListResultIterator, err error)
}
var _ ExpressRouteServiceProvidersClientAPI = (*network.ExpressRouteServiceProvidersClient)(nil)
@@ -214,8 +247,10 @@ type ExpressRouteCrossConnectionsClientAPI interface {
CreateOrUpdate(ctx context.Context, resourceGroupName string, crossConnectionName string, parameters network.ExpressRouteCrossConnection) (result network.ExpressRouteCrossConnectionsCreateOrUpdateFuture, err error)
Get(ctx context.Context, resourceGroupName string, crossConnectionName string) (result network.ExpressRouteCrossConnection, err error)
List(ctx context.Context) (result network.ExpressRouteCrossConnectionListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ExpressRouteCrossConnectionListResultIterator, err error)
ListArpTable(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string, devicePath string) (result network.ExpressRouteCrossConnectionsListArpTableFuture, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ExpressRouteCrossConnectionListResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ExpressRouteCrossConnectionListResultIterator, err error)
ListRoutesTable(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string, devicePath string) (result network.ExpressRouteCrossConnectionsListRoutesTableFuture, err error)
ListRoutesTableSummary(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string, devicePath string) (result network.ExpressRouteCrossConnectionsListRoutesTableSummaryFuture, err error)
UpdateTags(ctx context.Context, resourceGroupName string, crossConnectionName string, crossConnectionParameters network.TagsObject) (result network.ExpressRouteCrossConnection, err error)
@@ -229,6 +264,7 @@ type ExpressRouteCrossConnectionPeeringsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string) (result network.ExpressRouteCrossConnectionPeeringsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string) (result network.ExpressRouteCrossConnectionPeering, err error)
List(ctx context.Context, resourceGroupName string, crossConnectionName string) (result network.ExpressRouteCrossConnectionPeeringListPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, crossConnectionName string) (result network.ExpressRouteCrossConnectionPeeringListIterator, err error)
}
var _ ExpressRouteCrossConnectionPeeringsClientAPI = (*network.ExpressRouteCrossConnectionPeeringsClient)(nil)
@@ -258,6 +294,7 @@ var _ ExpressRouteConnectionsClientAPI = (*network.ExpressRouteConnectionsClient
type ExpressRoutePortsLocationsClientAPI interface {
Get(ctx context.Context, locationName string) (result network.ExpressRoutePortsLocation, err error)
List(ctx context.Context) (result network.ExpressRoutePortsLocationListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ExpressRoutePortsLocationListResultIterator, err error)
}
var _ ExpressRoutePortsLocationsClientAPI = (*network.ExpressRoutePortsLocationsClient)(nil)
@@ -268,7 +305,9 @@ type ExpressRoutePortsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, expressRoutePortName string) (result network.ExpressRoutePortsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, expressRoutePortName string) (result network.ExpressRoutePort, err error)
List(ctx context.Context) (result network.ExpressRoutePortListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ExpressRoutePortListResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ExpressRoutePortListResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ExpressRoutePortListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, expressRoutePortName string, parameters network.TagsObject) (result network.ExpressRoutePort, err error)
}
@@ -278,6 +317,7 @@ var _ ExpressRoutePortsClientAPI = (*network.ExpressRoutePortsClient)(nil)
type ExpressRouteLinksClientAPI interface {
Get(ctx context.Context, resourceGroupName string, expressRoutePortName string, linkName string) (result network.ExpressRouteLink, err error)
List(ctx context.Context, resourceGroupName string, expressRoutePortName string) (result network.ExpressRouteLinkListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, expressRoutePortName string) (result network.ExpressRouteLinkListResultIterator, err error)
}
var _ ExpressRouteLinksClientAPI = (*network.ExpressRouteLinksClient)(nil)
@@ -288,7 +328,9 @@ type FirewallPoliciesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, firewallPolicyName string) (result network.FirewallPoliciesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, firewallPolicyName string, expand string) (result network.FirewallPolicy, err error)
List(ctx context.Context, resourceGroupName string) (result network.FirewallPolicyListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.FirewallPolicyListResultIterator, err error)
ListAll(ctx context.Context) (result network.FirewallPolicyListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.FirewallPolicyListResultIterator, err error)
}
var _ FirewallPoliciesClientAPI = (*network.FirewallPoliciesClient)(nil)
@@ -299,6 +341,7 @@ type FirewallPolicyRuleGroupsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, firewallPolicyName string, ruleGroupName string) (result network.FirewallPolicyRuleGroupsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, firewallPolicyName string, ruleGroupName string) (result network.FirewallPolicyRuleGroup, err error)
List(ctx context.Context, resourceGroupName string, firewallPolicyName string) (result network.FirewallPolicyRuleGroupListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, firewallPolicyName string) (result network.FirewallPolicyRuleGroupListResultIterator, err error)
}
var _ FirewallPolicyRuleGroupsClientAPI = (*network.FirewallPolicyRuleGroupsClient)(nil)
@@ -309,7 +352,9 @@ type IPGroupsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, IPGroupsName string) (result network.IPGroupsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, IPGroupsName string, expand string) (result network.IPGroup, err error)
List(ctx context.Context) (result network.IPGroupListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.IPGroupListResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.IPGroupListResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.IPGroupListResultIterator, err error)
UpdateGroups(ctx context.Context, resourceGroupName string, IPGroupsName string, parameters network.TagsObject) (result network.IPGroup, err error)
}
@@ -321,7 +366,9 @@ type LoadBalancersClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancersDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, expand string) (result network.LoadBalancer, err error)
List(ctx context.Context, resourceGroupName string) (result network.LoadBalancerListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.LoadBalancerListResultIterator, err error)
ListAll(ctx context.Context) (result network.LoadBalancerListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.LoadBalancerListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, loadBalancerName string, parameters network.TagsObject) (result network.LoadBalancer, err error)
}
@@ -331,6 +378,7 @@ var _ LoadBalancersClientAPI = (*network.LoadBalancersClient)(nil)
type LoadBalancerBackendAddressPoolsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, backendAddressPoolName string) (result network.BackendAddressPool, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerBackendAddressPoolListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerBackendAddressPoolListResultIterator, err error)
}
var _ LoadBalancerBackendAddressPoolsClientAPI = (*network.LoadBalancerBackendAddressPoolsClient)(nil)
@@ -339,6 +387,7 @@ var _ LoadBalancerBackendAddressPoolsClientAPI = (*network.LoadBalancerBackendAd
type LoadBalancerFrontendIPConfigurationsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, frontendIPConfigurationName string) (result network.FrontendIPConfiguration, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerFrontendIPConfigurationListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerFrontendIPConfigurationListResultIterator, err error)
}
var _ LoadBalancerFrontendIPConfigurationsClientAPI = (*network.LoadBalancerFrontendIPConfigurationsClient)(nil)
@@ -349,6 +398,7 @@ type InboundNatRulesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, loadBalancerName string, inboundNatRuleName string) (result network.InboundNatRulesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, inboundNatRuleName string, expand string) (result network.InboundNatRule, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.InboundNatRuleListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.InboundNatRuleListResultIterator, err error)
}
var _ InboundNatRulesClientAPI = (*network.InboundNatRulesClient)(nil)
@@ -357,6 +407,7 @@ var _ InboundNatRulesClientAPI = (*network.InboundNatRulesClient)(nil)
type LoadBalancerLoadBalancingRulesClientAPI interface {
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, loadBalancingRuleName string) (result network.LoadBalancingRule, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerLoadBalancingRuleListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerLoadBalancingRuleListResultIterator, err error)
}
var _ LoadBalancerLoadBalancingRulesClientAPI = (*network.LoadBalancerLoadBalancingRulesClient)(nil)
@@ -365,6 +416,7 @@ var _ LoadBalancerLoadBalancingRulesClientAPI = (*network.LoadBalancerLoadBalanc
type LoadBalancerOutboundRulesClientAPI interface {
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, outboundRuleName string) (result network.OutboundRule, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerOutboundRuleListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerOutboundRuleListResultIterator, err error)
}
var _ LoadBalancerOutboundRulesClientAPI = (*network.LoadBalancerOutboundRulesClient)(nil)
@@ -372,6 +424,7 @@ var _ LoadBalancerOutboundRulesClientAPI = (*network.LoadBalancerOutboundRulesCl
// LoadBalancerNetworkInterfacesClientAPI contains the set of methods on the LoadBalancerNetworkInterfacesClient type.
type LoadBalancerNetworkInterfacesClientAPI interface {
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.InterfaceListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.InterfaceListResultIterator, err error)
}
var _ LoadBalancerNetworkInterfacesClientAPI = (*network.LoadBalancerNetworkInterfacesClient)(nil)
@@ -380,6 +433,7 @@ var _ LoadBalancerNetworkInterfacesClientAPI = (*network.LoadBalancerNetworkInte
type LoadBalancerProbesClientAPI interface {
Get(ctx context.Context, resourceGroupName string, loadBalancerName string, probeName string) (result network.Probe, err error)
List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerProbeListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result network.LoadBalancerProbeListResultIterator, err error)
}
var _ LoadBalancerProbesClientAPI = (*network.LoadBalancerProbesClient)(nil)
@@ -390,7 +444,9 @@ type NatGatewaysClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, natGatewayName string) (result network.NatGatewaysDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, natGatewayName string, expand string) (result network.NatGateway, err error)
List(ctx context.Context, resourceGroupName string) (result network.NatGatewayListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.NatGatewayListResultIterator, err error)
ListAll(ctx context.Context) (result network.NatGatewayListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.NatGatewayListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, natGatewayName string, parameters network.TagsObject) (result network.NatGateway, err error)
}
@@ -405,11 +461,16 @@ type InterfacesClientAPI interface {
GetVirtualMachineScaleSetIPConfiguration(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, IPConfigurationName string, expand string) (result network.InterfaceIPConfiguration, err error)
GetVirtualMachineScaleSetNetworkInterface(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, expand string) (result network.Interface, err error)
List(ctx context.Context, resourceGroupName string) (result network.InterfaceListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.InterfaceListResultIterator, err error)
ListAll(ctx context.Context) (result network.InterfaceListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.InterfaceListResultIterator, err error)
ListEffectiveNetworkSecurityGroups(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfacesListEffectiveNetworkSecurityGroupsFuture, err error)
ListVirtualMachineScaleSetIPConfigurations(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, expand string) (result network.InterfaceIPConfigurationListResultPage, err error)
+ ListVirtualMachineScaleSetIPConfigurationsComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, expand string) (result network.InterfaceIPConfigurationListResultIterator, err error)
ListVirtualMachineScaleSetNetworkInterfaces(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result network.InterfaceListResultPage, err error)
+ ListVirtualMachineScaleSetNetworkInterfacesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result network.InterfaceListResultIterator, err error)
ListVirtualMachineScaleSetVMNetworkInterfaces(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string) (result network.InterfaceListResultPage, err error)
+ ListVirtualMachineScaleSetVMNetworkInterfacesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string) (result network.InterfaceListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, networkInterfaceName string, parameters network.TagsObject) (result network.Interface, err error)
}
@@ -419,6 +480,7 @@ var _ InterfacesClientAPI = (*network.InterfacesClient)(nil)
type InterfaceIPConfigurationsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, networkInterfaceName string, IPConfigurationName string) (result network.InterfaceIPConfiguration, err error)
List(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceIPConfigurationListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceIPConfigurationListResultIterator, err error)
}
var _ InterfaceIPConfigurationsClientAPI = (*network.InterfaceIPConfigurationsClient)(nil)
@@ -426,6 +488,7 @@ var _ InterfaceIPConfigurationsClientAPI = (*network.InterfaceIPConfigurationsCl
// InterfaceLoadBalancersClientAPI contains the set of methods on the InterfaceLoadBalancersClient type.
type InterfaceLoadBalancersClientAPI interface {
List(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceLoadBalancerListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceLoadBalancerListResultIterator, err error)
}
var _ InterfaceLoadBalancersClientAPI = (*network.InterfaceLoadBalancersClient)(nil)
@@ -436,6 +499,7 @@ type InterfaceTapConfigurationsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, networkInterfaceName string, tapConfigurationName string) (result network.InterfaceTapConfigurationsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, networkInterfaceName string, tapConfigurationName string) (result network.InterfaceTapConfiguration, err error)
List(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceTapConfigurationListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result network.InterfaceTapConfigurationListResultIterator, err error)
}
var _ InterfaceTapConfigurationsClientAPI = (*network.InterfaceTapConfigurationsClient)(nil)
@@ -446,7 +510,9 @@ type ProfilesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, networkProfileName string) (result network.ProfilesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, networkProfileName string, expand string) (result network.Profile, err error)
List(ctx context.Context, resourceGroupName string) (result network.ProfileListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.ProfileListResultIterator, err error)
ListAll(ctx context.Context) (result network.ProfileListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.ProfileListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, networkProfileName string, parameters network.TagsObject) (result network.Profile, err error)
}
@@ -458,7 +524,9 @@ type SecurityGroupsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityGroupsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, expand string) (result network.SecurityGroup, err error)
List(ctx context.Context, resourceGroupName string) (result network.SecurityGroupListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.SecurityGroupListResultIterator, err error)
ListAll(ctx context.Context) (result network.SecurityGroupListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.SecurityGroupListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, parameters network.TagsObject) (result network.SecurityGroup, err error)
}
@@ -470,6 +538,7 @@ type SecurityRulesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, securityRuleName string) (result network.SecurityRulesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, securityRuleName string) (result network.SecurityRule, err error)
List(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityRuleListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityRuleListResultIterator, err error)
}
var _ SecurityRulesClientAPI = (*network.SecurityRulesClient)(nil)
@@ -478,6 +547,7 @@ var _ SecurityRulesClientAPI = (*network.SecurityRulesClient)(nil)
type DefaultSecurityRulesClientAPI interface {
Get(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, defaultSecurityRuleName string) (result network.SecurityRule, err error)
List(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityRuleListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result network.SecurityRuleListResultIterator, err error)
}
var _ DefaultSecurityRulesClientAPI = (*network.DefaultSecurityRulesClient)(nil)
@@ -535,6 +605,7 @@ var _ ConnectionMonitorsClientAPI = (*network.ConnectionMonitorsClient)(nil)
// OperationsClientAPI contains the set of methods on the OperationsClient type.
type OperationsClientAPI interface {
List(ctx context.Context) (result network.OperationListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.OperationListResultIterator, err error)
}
var _ OperationsClientAPI = (*network.OperationsClient)(nil)
@@ -545,7 +616,9 @@ type PrivateEndpointsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, privateEndpointName string) (result network.PrivateEndpointsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, privateEndpointName string, expand string) (result network.PrivateEndpoint, err error)
List(ctx context.Context, resourceGroupName string) (result network.PrivateEndpointListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.PrivateEndpointListResultIterator, err error)
ListBySubscription(ctx context.Context) (result network.PrivateEndpointListResultPage, err error)
+ ListBySubscriptionComplete(ctx context.Context) (result network.PrivateEndpointListResultIterator, err error)
}
var _ PrivateEndpointsClientAPI = (*network.PrivateEndpointsClient)(nil)
@@ -553,7 +626,9 @@ var _ PrivateEndpointsClientAPI = (*network.PrivateEndpointsClient)(nil)
// AvailablePrivateEndpointTypesClientAPI contains the set of methods on the AvailablePrivateEndpointTypesClient type.
type AvailablePrivateEndpointTypesClientAPI interface {
List(ctx context.Context, location string) (result network.AvailablePrivateEndpointTypesResultPage, err error)
+ ListComplete(ctx context.Context, location string) (result network.AvailablePrivateEndpointTypesResultIterator, err error)
ListByResourceGroup(ctx context.Context, location string, resourceGroupName string) (result network.AvailablePrivateEndpointTypesResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, location string, resourceGroupName string) (result network.AvailablePrivateEndpointTypesResultIterator, err error)
}
var _ AvailablePrivateEndpointTypesClientAPI = (*network.AvailablePrivateEndpointTypesClient)(nil)
@@ -568,10 +643,15 @@ type PrivateLinkServicesClientAPI interface {
Get(ctx context.Context, resourceGroupName string, serviceName string, expand string) (result network.PrivateLinkService, err error)
GetPrivateEndpointConnection(ctx context.Context, resourceGroupName string, serviceName string, peConnectionName string, expand string) (result network.PrivateEndpointConnection, err error)
List(ctx context.Context, resourceGroupName string) (result network.PrivateLinkServiceListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.PrivateLinkServiceListResultIterator, err error)
ListAutoApprovedPrivateLinkServices(ctx context.Context, location string) (result network.AutoApprovedPrivateLinkServicesResultPage, err error)
+ ListAutoApprovedPrivateLinkServicesComplete(ctx context.Context, location string) (result network.AutoApprovedPrivateLinkServicesResultIterator, err error)
ListAutoApprovedPrivateLinkServicesByResourceGroup(ctx context.Context, location string, resourceGroupName string) (result network.AutoApprovedPrivateLinkServicesResultPage, err error)
+ ListAutoApprovedPrivateLinkServicesByResourceGroupComplete(ctx context.Context, location string, resourceGroupName string) (result network.AutoApprovedPrivateLinkServicesResultIterator, err error)
ListBySubscription(ctx context.Context) (result network.PrivateLinkServiceListResultPage, err error)
+ ListBySubscriptionComplete(ctx context.Context) (result network.PrivateLinkServiceListResultIterator, err error)
ListPrivateEndpointConnections(ctx context.Context, resourceGroupName string, serviceName string) (result network.PrivateEndpointConnectionListResultPage, err error)
+ ListPrivateEndpointConnectionsComplete(ctx context.Context, resourceGroupName string, serviceName string) (result network.PrivateEndpointConnectionListResultIterator, err error)
UpdatePrivateEndpointConnection(ctx context.Context, resourceGroupName string, serviceName string, peConnectionName string, parameters network.PrivateEndpointConnection) (result network.PrivateEndpointConnection, err error)
}
@@ -584,9 +664,13 @@ type PublicIPAddressesClientAPI interface {
Get(ctx context.Context, resourceGroupName string, publicIPAddressName string, expand string) (result network.PublicIPAddress, err error)
GetVirtualMachineScaleSetPublicIPAddress(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, IPConfigurationName string, publicIPAddressName string, expand string) (result network.PublicIPAddress, err error)
List(ctx context.Context, resourceGroupName string) (result network.PublicIPAddressListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.PublicIPAddressListResultIterator, err error)
ListAll(ctx context.Context) (result network.PublicIPAddressListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.PublicIPAddressListResultIterator, err error)
ListVirtualMachineScaleSetPublicIPAddresses(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result network.PublicIPAddressListResultPage, err error)
+ ListVirtualMachineScaleSetPublicIPAddressesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result network.PublicIPAddressListResultIterator, err error)
ListVirtualMachineScaleSetVMPublicIPAddresses(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, IPConfigurationName string) (result network.PublicIPAddressListResultPage, err error)
+ ListVirtualMachineScaleSetVMPublicIPAddressesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, IPConfigurationName string) (result network.PublicIPAddressListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, publicIPAddressName string, parameters network.TagsObject) (result network.PublicIPAddress, err error)
}
@@ -598,7 +682,9 @@ type PublicIPPrefixesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, publicIPPrefixName string) (result network.PublicIPPrefixesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, publicIPPrefixName string, expand string) (result network.PublicIPPrefix, err error)
List(ctx context.Context, resourceGroupName string) (result network.PublicIPPrefixListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.PublicIPPrefixListResultIterator, err error)
ListAll(ctx context.Context) (result network.PublicIPPrefixListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.PublicIPPrefixListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, publicIPPrefixName string, parameters network.TagsObject) (result network.PublicIPPrefix, err error)
}
@@ -610,7 +696,9 @@ type RouteFiltersClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, routeFilterName string) (result network.RouteFiltersDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, routeFilterName string, expand string) (result network.RouteFilter, err error)
List(ctx context.Context) (result network.RouteFilterListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.RouteFilterListResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.RouteFilterListResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.RouteFilterListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, routeFilterName string, parameters network.TagsObject) (result network.RouteFilter, err error)
}
@@ -622,6 +710,7 @@ type RouteFilterRulesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, routeFilterName string, ruleName string) (result network.RouteFilterRulesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, routeFilterName string, ruleName string) (result network.RouteFilterRule, err error)
ListByRouteFilter(ctx context.Context, resourceGroupName string, routeFilterName string) (result network.RouteFilterRuleListResultPage, err error)
+ ListByRouteFilterComplete(ctx context.Context, resourceGroupName string, routeFilterName string) (result network.RouteFilterRuleListResultIterator, err error)
}
var _ RouteFilterRulesClientAPI = (*network.RouteFilterRulesClient)(nil)
@@ -632,7 +721,9 @@ type RouteTablesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, routeTableName string) (result network.RouteTablesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, routeTableName string, expand string) (result network.RouteTable, err error)
List(ctx context.Context, resourceGroupName string) (result network.RouteTableListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.RouteTableListResultIterator, err error)
ListAll(ctx context.Context) (result network.RouteTableListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.RouteTableListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, routeTableName string, parameters network.TagsObject) (result network.RouteTable, err error)
}
@@ -644,6 +735,7 @@ type RoutesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, routeTableName string, routeName string) (result network.RoutesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, routeTableName string, routeName string) (result network.Route, err error)
List(ctx context.Context, resourceGroupName string, routeTableName string) (result network.RouteListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, routeTableName string) (result network.RouteListResultIterator, err error)
}
var _ RoutesClientAPI = (*network.RoutesClient)(nil)
@@ -651,6 +743,7 @@ var _ RoutesClientAPI = (*network.RoutesClient)(nil)
// BgpServiceCommunitiesClientAPI contains the set of methods on the BgpServiceCommunitiesClient type.
type BgpServiceCommunitiesClientAPI interface {
List(ctx context.Context) (result network.BgpServiceCommunityListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.BgpServiceCommunityListResultIterator, err error)
}
var _ BgpServiceCommunitiesClientAPI = (*network.BgpServiceCommunitiesClient)(nil)
@@ -661,7 +754,9 @@ type ServiceEndpointPoliciesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string) (result network.ServiceEndpointPoliciesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string, expand string) (result network.ServiceEndpointPolicy, err error)
List(ctx context.Context) (result network.ServiceEndpointPolicyListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ServiceEndpointPolicyListResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ServiceEndpointPolicyListResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ServiceEndpointPolicyListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string, parameters network.TagsObject) (result network.ServiceEndpointPolicy, err error)
}
@@ -673,6 +768,7 @@ type ServiceEndpointPolicyDefinitionsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string, serviceEndpointPolicyDefinitionName string) (result network.ServiceEndpointPolicyDefinitionsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string, serviceEndpointPolicyDefinitionName string) (result network.ServiceEndpointPolicyDefinition, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string) (result network.ServiceEndpointPolicyDefinitionListResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string, serviceEndpointPolicyName string) (result network.ServiceEndpointPolicyDefinitionListResultIterator, err error)
}
var _ ServiceEndpointPolicyDefinitionsClientAPI = (*network.ServiceEndpointPolicyDefinitionsClient)(nil)
@@ -687,6 +783,7 @@ var _ ServiceTagsClientAPI = (*network.ServiceTagsClient)(nil)
// UsagesClientAPI contains the set of methods on the UsagesClient type.
type UsagesClientAPI interface {
List(ctx context.Context, location string) (result network.UsagesListResultPage, err error)
+ ListComplete(ctx context.Context, location string) (result network.UsagesListResultIterator, err error)
}
var _ UsagesClientAPI = (*network.UsagesClient)(nil)
@@ -698,8 +795,11 @@ type VirtualNetworksClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworksDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualNetworkName string, expand string) (result network.VirtualNetwork, err error)
List(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkListResultIterator, err error)
ListAll(ctx context.Context) (result network.VirtualNetworkListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.VirtualNetworkListResultIterator, err error)
ListUsage(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworkListUsageResultPage, err error)
+ ListUsageComplete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworkListUsageResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, virtualNetworkName string, parameters network.TagsObject) (result network.VirtualNetwork, err error)
}
@@ -711,6 +811,7 @@ type SubnetsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualNetworkName string, subnetName string) (result network.SubnetsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualNetworkName string, subnetName string, expand string) (result network.Subnet, err error)
List(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.SubnetListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.SubnetListResultIterator, err error)
PrepareNetworkPolicies(ctx context.Context, resourceGroupName string, virtualNetworkName string, subnetName string, prepareNetworkPoliciesRequestParameters network.PrepareNetworkPoliciesRequest) (result network.SubnetsPrepareNetworkPoliciesFuture, err error)
UnprepareNetworkPolicies(ctx context.Context, resourceGroupName string, virtualNetworkName string, subnetName string, unprepareNetworkPoliciesRequestParameters network.UnprepareNetworkPoliciesRequest) (result network.SubnetsUnprepareNetworkPoliciesFuture, err error)
}
@@ -737,6 +838,7 @@ type VirtualNetworkPeeringsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualNetworkName string, virtualNetworkPeeringName string) (result network.VirtualNetworkPeeringsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualNetworkName string, virtualNetworkPeeringName string) (result network.VirtualNetworkPeering, err error)
List(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworkPeeringListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworkPeeringListResultIterator, err error)
}
var _ VirtualNetworkPeeringsClientAPI = (*network.VirtualNetworkPeeringsClient)(nil)
@@ -755,7 +857,9 @@ type VirtualNetworkGatewaysClientAPI interface {
GetVpnclientIpsecParameters(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGatewaysGetVpnclientIpsecParametersFuture, err error)
GetVpnProfilePackageURL(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGatewaysGetVpnProfilePackageURLFuture, err error)
List(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayListResultIterator, err error)
ListConnections(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGatewayListConnectionsResultPage, err error)
+ ListConnectionsComplete(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGatewayListConnectionsResultIterator, err error)
Reset(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, gatewayVip string) (result network.VirtualNetworkGatewaysResetFuture, err error)
ResetVpnClientSharedKey(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string) (result network.VirtualNetworkGatewaysResetVpnClientSharedKeyFuture, err error)
SetVpnclientIpsecParameters(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, vpnclientIpsecParams network.VpnClientIPsecParameters) (result network.VirtualNetworkGatewaysSetVpnclientIpsecParametersFuture, err error)
@@ -775,6 +879,7 @@ type VirtualNetworkGatewayConnectionsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string) (result network.VirtualNetworkGatewayConnection, err error)
GetSharedKey(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string) (result network.ConnectionSharedKey, err error)
List(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayConnectionListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkGatewayConnectionListResultIterator, err error)
ResetSharedKey(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string, parameters network.ConnectionResetSharedKey) (result network.VirtualNetworkGatewayConnectionsResetSharedKeyFuture, err error)
SetSharedKey(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string, parameters network.ConnectionSharedKey) (result network.VirtualNetworkGatewayConnectionsSetSharedKeyFuture, err error)
StartPacketCapture(ctx context.Context, resourceGroupName string, virtualNetworkGatewayConnectionName string, parameters *network.VpnPacketCaptureStartParameters) (result network.VirtualNetworkGatewayConnectionsStartPacketCaptureFuture, err error)
@@ -790,6 +895,7 @@ type LocalNetworkGatewaysClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, localNetworkGatewayName string) (result network.LocalNetworkGatewaysDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, localNetworkGatewayName string) (result network.LocalNetworkGateway, err error)
List(ctx context.Context, resourceGroupName string) (result network.LocalNetworkGatewayListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.LocalNetworkGatewayListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, localNetworkGatewayName string, parameters network.TagsObject) (result network.LocalNetworkGateway, err error)
}
@@ -801,7 +907,9 @@ type VirtualNetworkTapsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, tapName string) (result network.VirtualNetworkTapsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, tapName string) (result network.VirtualNetworkTap, err error)
ListAll(ctx context.Context) (result network.VirtualNetworkTapListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.VirtualNetworkTapListResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkTapListResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkTapListResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, tapName string, tapParameters network.TagsObject) (result network.VirtualNetworkTap, err error)
}
@@ -813,7 +921,9 @@ type VirtualRoutersClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualRouterName string) (result network.VirtualRoutersDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualRouterName string, expand string) (result network.VirtualRouter, err error)
List(ctx context.Context) (result network.VirtualRouterListResultPage, err error)
+ ListComplete(ctx context.Context) (result network.VirtualRouterListResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.VirtualRouterListResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.VirtualRouterListResultIterator, err error)
}
var _ VirtualRoutersClientAPI = (*network.VirtualRoutersClient)(nil)
@@ -824,6 +934,7 @@ type VirtualRouterPeeringsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualRouterName string, peeringName string) (result network.VirtualRouterPeeringsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualRouterName string, peeringName string) (result network.VirtualRouterPeering, err error)
List(ctx context.Context, resourceGroupName string, virtualRouterName string) (result network.VirtualRouterPeeringListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, virtualRouterName string) (result network.VirtualRouterPeeringListResultIterator, err error)
}
var _ VirtualRouterPeeringsClientAPI = (*network.VirtualRouterPeeringsClient)(nil)
@@ -834,7 +945,9 @@ type VirtualWansClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualWANName string) (result network.VirtualWansDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualWANName string) (result network.VirtualWAN, err error)
List(ctx context.Context) (result network.ListVirtualWANsResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ListVirtualWANsResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ListVirtualWANsResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ListVirtualWANsResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, virtualWANName string, wANParameters network.TagsObject) (result network.VirtualWAN, err error)
}
@@ -846,7 +959,9 @@ type VpnSitesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, vpnSiteName string) (result network.VpnSitesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, vpnSiteName string) (result network.VpnSite, err error)
List(ctx context.Context) (result network.ListVpnSitesResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ListVpnSitesResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ListVpnSitesResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ListVpnSitesResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, vpnSiteName string, vpnSiteParameters network.TagsObject) (result network.VpnSite, err error)
}
@@ -856,6 +971,7 @@ var _ VpnSitesClientAPI = (*network.VpnSitesClient)(nil)
type VpnSiteLinksClientAPI interface {
Get(ctx context.Context, resourceGroupName string, vpnSiteName string, vpnSiteLinkName string) (result network.VpnSiteLink, err error)
ListByVpnSite(ctx context.Context, resourceGroupName string, vpnSiteName string) (result network.ListVpnSiteLinksResultPage, err error)
+ ListByVpnSiteComplete(ctx context.Context, resourceGroupName string, vpnSiteName string) (result network.ListVpnSiteLinksResultIterator, err error)
}
var _ VpnSiteLinksClientAPI = (*network.VpnSiteLinksClient)(nil)
@@ -873,7 +989,9 @@ type VpnServerConfigurationsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, vpnServerConfigurationName string) (result network.VpnServerConfigurationsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, vpnServerConfigurationName string) (result network.VpnServerConfiguration, err error)
List(ctx context.Context) (result network.ListVpnServerConfigurationsResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ListVpnServerConfigurationsResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ListVpnServerConfigurationsResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ListVpnServerConfigurationsResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, vpnServerConfigurationName string, vpnServerConfigurationParameters network.TagsObject) (result network.VpnServerConfiguration, err error)
}
@@ -885,7 +1003,9 @@ type VirtualHubsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualHubName string) (result network.VirtualHubsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualHubName string) (result network.VirtualHub, err error)
List(ctx context.Context) (result network.ListVirtualHubsResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ListVirtualHubsResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ListVirtualHubsResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ListVirtualHubsResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, virtualHubName string, virtualHubParameters network.TagsObject) (result network.VirtualHub, err error)
}
@@ -895,6 +1015,7 @@ var _ VirtualHubsClientAPI = (*network.VirtualHubsClient)(nil)
type HubVirtualNetworkConnectionsClientAPI interface {
Get(ctx context.Context, resourceGroupName string, virtualHubName string, connectionName string) (result network.HubVirtualNetworkConnection, err error)
List(ctx context.Context, resourceGroupName string, virtualHubName string) (result network.ListHubVirtualNetworkConnectionsResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, virtualHubName string) (result network.ListHubVirtualNetworkConnectionsResultIterator, err error)
}
var _ HubVirtualNetworkConnectionsClientAPI = (*network.HubVirtualNetworkConnectionsClient)(nil)
@@ -905,7 +1026,9 @@ type VpnGatewaysClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, gatewayName string) (result network.VpnGatewaysDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, gatewayName string) (result network.VpnGateway, err error)
List(ctx context.Context) (result network.ListVpnGatewaysResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ListVpnGatewaysResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ListVpnGatewaysResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ListVpnGatewaysResultIterator, err error)
Reset(ctx context.Context, resourceGroupName string, gatewayName string) (result network.VpnGatewaysResetFuture, err error)
UpdateTags(ctx context.Context, resourceGroupName string, gatewayName string, vpnGatewayParameters network.TagsObject) (result network.VpnGateway, err error)
}
@@ -918,6 +1041,7 @@ type VpnConnectionsClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, gatewayName string, connectionName string) (result network.VpnConnectionsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, gatewayName string, connectionName string) (result network.VpnConnection, err error)
ListByVpnGateway(ctx context.Context, resourceGroupName string, gatewayName string) (result network.ListVpnConnectionsResultPage, err error)
+ ListByVpnGatewayComplete(ctx context.Context, resourceGroupName string, gatewayName string) (result network.ListVpnConnectionsResultIterator, err error)
}
var _ VpnConnectionsClientAPI = (*network.VpnConnectionsClient)(nil)
@@ -932,6 +1056,7 @@ var _ VpnSiteLinkConnectionsClientAPI = (*network.VpnSiteLinkConnectionsClient)(
// VpnLinkConnectionsClientAPI contains the set of methods on the VpnLinkConnectionsClient type.
type VpnLinkConnectionsClientAPI interface {
ListByVpnConnection(ctx context.Context, resourceGroupName string, gatewayName string, connectionName string) (result network.ListVpnSiteLinkConnectionsResultPage, err error)
+ ListByVpnConnectionComplete(ctx context.Context, resourceGroupName string, gatewayName string, connectionName string) (result network.ListVpnSiteLinkConnectionsResultIterator, err error)
}
var _ VpnLinkConnectionsClientAPI = (*network.VpnLinkConnectionsClient)(nil)
@@ -945,7 +1070,9 @@ type P2sVpnGatewaysClientAPI interface {
GetP2sVpnConnectionHealth(ctx context.Context, resourceGroupName string, gatewayName string) (result network.P2sVpnGatewaysGetP2sVpnConnectionHealthFuture, err error)
GetP2sVpnConnectionHealthDetailed(ctx context.Context, resourceGroupName string, gatewayName string, request network.P2SVpnConnectionHealthRequest) (result network.P2sVpnGatewaysGetP2sVpnConnectionHealthDetailedFuture, err error)
List(ctx context.Context) (result network.ListP2SVpnGatewaysResultPage, err error)
+ ListComplete(ctx context.Context) (result network.ListP2SVpnGatewaysResultIterator, err error)
ListByResourceGroup(ctx context.Context, resourceGroupName string) (result network.ListP2SVpnGatewaysResultPage, err error)
+ ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result network.ListP2SVpnGatewaysResultIterator, err error)
UpdateTags(ctx context.Context, resourceGroupName string, gatewayName string, p2SVpnGatewayParameters network.TagsObject) (result network.P2SVpnGateway, err error)
}
@@ -964,6 +1091,7 @@ type VirtualHubRouteTableV2sClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, virtualHubName string, routeTableName string) (result network.VirtualHubRouteTableV2sDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, virtualHubName string, routeTableName string) (result network.VirtualHubRouteTableV2, err error)
List(ctx context.Context, resourceGroupName string, virtualHubName string) (result network.ListVirtualHubRouteTableV2sResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string, virtualHubName string) (result network.ListVirtualHubRouteTableV2sResultIterator, err error)
}
var _ VirtualHubRouteTableV2sClientAPI = (*network.VirtualHubRouteTableV2sClient)(nil)
@@ -974,7 +1102,9 @@ type WebApplicationFirewallPoliciesClientAPI interface {
Delete(ctx context.Context, resourceGroupName string, policyName string) (result network.WebApplicationFirewallPoliciesDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, policyName string) (result network.WebApplicationFirewallPolicy, err error)
List(ctx context.Context, resourceGroupName string) (result network.WebApplicationFirewallPolicyListResultPage, err error)
+ ListComplete(ctx context.Context, resourceGroupName string) (result network.WebApplicationFirewallPolicyListResultIterator, err error)
ListAll(ctx context.Context) (result network.WebApplicationFirewallPolicyListResultPage, err error)
+ ListAllComplete(ctx context.Context) (result network.WebApplicationFirewallPolicyListResultIterator, err error)
}
var _ WebApplicationFirewallPoliciesClientAPI = (*network.WebApplicationFirewallPoliciesClient)(nil)
diff --git a/services/network/mgmt/2019-09-01/network/operations.go b/services/network/mgmt/2019-09-01/network/operations.go
index 9ff7ba899c26..867e02175375 100644
--- a/services/network/mgmt/2019-09-01/network/operations.go
+++ b/services/network/mgmt/2019-09-01/network/operations.go
@@ -35,7 +35,8 @@ func NewOperationsClient(subscriptionID string) OperationsClient {
return NewOperationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewOperationsClientWithBaseURI creates an instance of the OperationsClient client.
+// NewOperationsClientWithBaseURI creates an instance of the OperationsClient client using a custom endpoint. Use this
+// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient {
return OperationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-09-01/network/p2svpngateways.go b/services/network/mgmt/2019-09-01/network/p2svpngateways.go
index e6ce519a6921..2a740e493f66 100644
--- a/services/network/mgmt/2019-09-01/network/p2svpngateways.go
+++ b/services/network/mgmt/2019-09-01/network/p2svpngateways.go
@@ -35,7 +35,8 @@ func NewP2sVpnGatewaysClient(subscriptionID string) P2sVpnGatewaysClient {
return NewP2sVpnGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewP2sVpnGatewaysClientWithBaseURI creates an instance of the P2sVpnGatewaysClient client.
+// NewP2sVpnGatewaysClientWithBaseURI creates an instance of the P2sVpnGatewaysClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewP2sVpnGatewaysClientWithBaseURI(baseURI string, subscriptionID string) P2sVpnGatewaysClient {
return P2sVpnGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-09-01/network/packetcaptures.go b/services/network/mgmt/2019-09-01/network/packetcaptures.go
index 66849468a82b..ad7678e86442 100644
--- a/services/network/mgmt/2019-09-01/network/packetcaptures.go
+++ b/services/network/mgmt/2019-09-01/network/packetcaptures.go
@@ -36,7 +36,8 @@ func NewPacketCapturesClient(subscriptionID string) PacketCapturesClient {
return NewPacketCapturesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewPacketCapturesClientWithBaseURI creates an instance of the PacketCapturesClient client.
+// NewPacketCapturesClientWithBaseURI creates an instance of the PacketCapturesClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewPacketCapturesClientWithBaseURI(baseURI string, subscriptionID string) PacketCapturesClient {
return PacketCapturesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-09-01/network/peerexpressroutecircuitconnections.go b/services/network/mgmt/2019-09-01/network/peerexpressroutecircuitconnections.go
index 463a28627bdf..166d6d72eefc 100644
--- a/services/network/mgmt/2019-09-01/network/peerexpressroutecircuitconnections.go
+++ b/services/network/mgmt/2019-09-01/network/peerexpressroutecircuitconnections.go
@@ -37,7 +37,8 @@ func NewPeerExpressRouteCircuitConnectionsClient(subscriptionID string) PeerExpr
}
// NewPeerExpressRouteCircuitConnectionsClientWithBaseURI creates an instance of the
-// PeerExpressRouteCircuitConnectionsClient client.
+// PeerExpressRouteCircuitConnectionsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewPeerExpressRouteCircuitConnectionsClientWithBaseURI(baseURI string, subscriptionID string) PeerExpressRouteCircuitConnectionsClient {
return PeerExpressRouteCircuitConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-09-01/network/privateendpoints.go b/services/network/mgmt/2019-09-01/network/privateendpoints.go
index 88e6404315eb..41871c839684 100644
--- a/services/network/mgmt/2019-09-01/network/privateendpoints.go
+++ b/services/network/mgmt/2019-09-01/network/privateendpoints.go
@@ -35,7 +35,9 @@ func NewPrivateEndpointsClient(subscriptionID string) PrivateEndpointsClient {
return NewPrivateEndpointsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewPrivateEndpointsClientWithBaseURI creates an instance of the PrivateEndpointsClient client.
+// NewPrivateEndpointsClientWithBaseURI creates an instance of the PrivateEndpointsClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewPrivateEndpointsClientWithBaseURI(baseURI string, subscriptionID string) PrivateEndpointsClient {
return PrivateEndpointsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-09-01/network/privatelinkservices.go b/services/network/mgmt/2019-09-01/network/privatelinkservices.go
index b720d3016ac4..dff7bdc8acf6 100644
--- a/services/network/mgmt/2019-09-01/network/privatelinkservices.go
+++ b/services/network/mgmt/2019-09-01/network/privatelinkservices.go
@@ -35,7 +35,9 @@ func NewPrivateLinkServicesClient(subscriptionID string) PrivateLinkServicesClie
return NewPrivateLinkServicesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewPrivateLinkServicesClientWithBaseURI creates an instance of the PrivateLinkServicesClient client.
+// NewPrivateLinkServicesClientWithBaseURI creates an instance of the PrivateLinkServicesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewPrivateLinkServicesClientWithBaseURI(baseURI string, subscriptionID string) PrivateLinkServicesClient {
return PrivateLinkServicesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-09-01/network/profiles.go b/services/network/mgmt/2019-09-01/network/profiles.go
index 5ced517fd52b..de2aef1235ab 100644
--- a/services/network/mgmt/2019-09-01/network/profiles.go
+++ b/services/network/mgmt/2019-09-01/network/profiles.go
@@ -35,7 +35,8 @@ func NewProfilesClient(subscriptionID string) ProfilesClient {
return NewProfilesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewProfilesClientWithBaseURI creates an instance of the ProfilesClient client.
+// NewProfilesClientWithBaseURI creates an instance of the ProfilesClient client using a custom endpoint. Use this
+// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewProfilesClientWithBaseURI(baseURI string, subscriptionID string) ProfilesClient {
return ProfilesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-09-01/network/publicipaddresses.go b/services/network/mgmt/2019-09-01/network/publicipaddresses.go
index d6def66f39c4..eb322b36dfd6 100644
--- a/services/network/mgmt/2019-09-01/network/publicipaddresses.go
+++ b/services/network/mgmt/2019-09-01/network/publicipaddresses.go
@@ -36,7 +36,9 @@ func NewPublicIPAddressesClient(subscriptionID string) PublicIPAddressesClient {
return NewPublicIPAddressesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewPublicIPAddressesClientWithBaseURI creates an instance of the PublicIPAddressesClient client.
+// NewPublicIPAddressesClientWithBaseURI creates an instance of the PublicIPAddressesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewPublicIPAddressesClientWithBaseURI(baseURI string, subscriptionID string) PublicIPAddressesClient {
return PublicIPAddressesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-09-01/network/publicipprefixes.go b/services/network/mgmt/2019-09-01/network/publicipprefixes.go
index e9c290bda0de..e0e9a5f30e78 100644
--- a/services/network/mgmt/2019-09-01/network/publicipprefixes.go
+++ b/services/network/mgmt/2019-09-01/network/publicipprefixes.go
@@ -35,7 +35,9 @@ func NewPublicIPPrefixesClient(subscriptionID string) PublicIPPrefixesClient {
return NewPublicIPPrefixesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewPublicIPPrefixesClientWithBaseURI creates an instance of the PublicIPPrefixesClient client.
+// NewPublicIPPrefixesClientWithBaseURI creates an instance of the PublicIPPrefixesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewPublicIPPrefixesClientWithBaseURI(baseURI string, subscriptionID string) PublicIPPrefixesClient {
return PublicIPPrefixesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-09-01/network/resourcenavigationlinks.go b/services/network/mgmt/2019-09-01/network/resourcenavigationlinks.go
index 465305198d67..bd3f63cf13e8 100644
--- a/services/network/mgmt/2019-09-01/network/resourcenavigationlinks.go
+++ b/services/network/mgmt/2019-09-01/network/resourcenavigationlinks.go
@@ -35,7 +35,9 @@ func NewResourceNavigationLinksClient(subscriptionID string) ResourceNavigationL
return NewResourceNavigationLinksClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewResourceNavigationLinksClientWithBaseURI creates an instance of the ResourceNavigationLinksClient client.
+// NewResourceNavigationLinksClientWithBaseURI creates an instance of the ResourceNavigationLinksClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewResourceNavigationLinksClientWithBaseURI(baseURI string, subscriptionID string) ResourceNavigationLinksClient {
return ResourceNavigationLinksClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-09-01/network/routefilterrules.go b/services/network/mgmt/2019-09-01/network/routefilterrules.go
index 0a72eab675a9..11670272ff13 100644
--- a/services/network/mgmt/2019-09-01/network/routefilterrules.go
+++ b/services/network/mgmt/2019-09-01/network/routefilterrules.go
@@ -36,7 +36,9 @@ func NewRouteFilterRulesClient(subscriptionID string) RouteFilterRulesClient {
return NewRouteFilterRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewRouteFilterRulesClientWithBaseURI creates an instance of the RouteFilterRulesClient client.
+// NewRouteFilterRulesClientWithBaseURI creates an instance of the RouteFilterRulesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewRouteFilterRulesClientWithBaseURI(baseURI string, subscriptionID string) RouteFilterRulesClient {
return RouteFilterRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-09-01/network/routefilters.go b/services/network/mgmt/2019-09-01/network/routefilters.go
index 0cf33cff6e54..4c613d9a2d4e 100644
--- a/services/network/mgmt/2019-09-01/network/routefilters.go
+++ b/services/network/mgmt/2019-09-01/network/routefilters.go
@@ -35,7 +35,8 @@ func NewRouteFiltersClient(subscriptionID string) RouteFiltersClient {
return NewRouteFiltersClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewRouteFiltersClientWithBaseURI creates an instance of the RouteFiltersClient client.
+// NewRouteFiltersClientWithBaseURI creates an instance of the RouteFiltersClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewRouteFiltersClientWithBaseURI(baseURI string, subscriptionID string) RouteFiltersClient {
return RouteFiltersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-09-01/network/routes.go b/services/network/mgmt/2019-09-01/network/routes.go
index f5ac2576c739..3e23fb0a922d 100644
--- a/services/network/mgmt/2019-09-01/network/routes.go
+++ b/services/network/mgmt/2019-09-01/network/routes.go
@@ -35,7 +35,8 @@ func NewRoutesClient(subscriptionID string) RoutesClient {
return NewRoutesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewRoutesClientWithBaseURI creates an instance of the RoutesClient client.
+// NewRoutesClientWithBaseURI creates an instance of the RoutesClient client using a custom endpoint. Use this when
+// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewRoutesClientWithBaseURI(baseURI string, subscriptionID string) RoutesClient {
return RoutesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-09-01/network/routetables.go b/services/network/mgmt/2019-09-01/network/routetables.go
index a7df1c0b6f03..3567cefc37b8 100644
--- a/services/network/mgmt/2019-09-01/network/routetables.go
+++ b/services/network/mgmt/2019-09-01/network/routetables.go
@@ -35,7 +35,8 @@ func NewRouteTablesClient(subscriptionID string) RouteTablesClient {
return NewRouteTablesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewRouteTablesClientWithBaseURI creates an instance of the RouteTablesClient client.
+// NewRouteTablesClientWithBaseURI creates an instance of the RouteTablesClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewRouteTablesClientWithBaseURI(baseURI string, subscriptionID string) RouteTablesClient {
return RouteTablesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-09-01/network/securitygroups.go b/services/network/mgmt/2019-09-01/network/securitygroups.go
index 8ec0a4a4158a..72e6fb8b8527 100644
--- a/services/network/mgmt/2019-09-01/network/securitygroups.go
+++ b/services/network/mgmt/2019-09-01/network/securitygroups.go
@@ -35,7 +35,8 @@ func NewSecurityGroupsClient(subscriptionID string) SecurityGroupsClient {
return NewSecurityGroupsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewSecurityGroupsClientWithBaseURI creates an instance of the SecurityGroupsClient client.
+// NewSecurityGroupsClientWithBaseURI creates an instance of the SecurityGroupsClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewSecurityGroupsClientWithBaseURI(baseURI string, subscriptionID string) SecurityGroupsClient {
return SecurityGroupsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-09-01/network/securityrules.go b/services/network/mgmt/2019-09-01/network/securityrules.go
index b3ce9a155428..f5f962b1b561 100644
--- a/services/network/mgmt/2019-09-01/network/securityrules.go
+++ b/services/network/mgmt/2019-09-01/network/securityrules.go
@@ -35,7 +35,8 @@ func NewSecurityRulesClient(subscriptionID string) SecurityRulesClient {
return NewSecurityRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewSecurityRulesClientWithBaseURI creates an instance of the SecurityRulesClient client.
+// NewSecurityRulesClientWithBaseURI creates an instance of the SecurityRulesClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewSecurityRulesClientWithBaseURI(baseURI string, subscriptionID string) SecurityRulesClient {
return SecurityRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-09-01/network/serviceassociationlinks.go b/services/network/mgmt/2019-09-01/network/serviceassociationlinks.go
index afb9d5c59d73..bf5fe3391d33 100644
--- a/services/network/mgmt/2019-09-01/network/serviceassociationlinks.go
+++ b/services/network/mgmt/2019-09-01/network/serviceassociationlinks.go
@@ -35,7 +35,9 @@ func NewServiceAssociationLinksClient(subscriptionID string) ServiceAssociationL
return NewServiceAssociationLinksClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewServiceAssociationLinksClientWithBaseURI creates an instance of the ServiceAssociationLinksClient client.
+// NewServiceAssociationLinksClientWithBaseURI creates an instance of the ServiceAssociationLinksClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewServiceAssociationLinksClientWithBaseURI(baseURI string, subscriptionID string) ServiceAssociationLinksClient {
return ServiceAssociationLinksClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-09-01/network/serviceendpointpolicies.go b/services/network/mgmt/2019-09-01/network/serviceendpointpolicies.go
index 8f3a89785c42..b18f9b20e01e 100644
--- a/services/network/mgmt/2019-09-01/network/serviceendpointpolicies.go
+++ b/services/network/mgmt/2019-09-01/network/serviceendpointpolicies.go
@@ -35,7 +35,9 @@ func NewServiceEndpointPoliciesClient(subscriptionID string) ServiceEndpointPoli
return NewServiceEndpointPoliciesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewServiceEndpointPoliciesClientWithBaseURI creates an instance of the ServiceEndpointPoliciesClient client.
+// NewServiceEndpointPoliciesClientWithBaseURI creates an instance of the ServiceEndpointPoliciesClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewServiceEndpointPoliciesClientWithBaseURI(baseURI string, subscriptionID string) ServiceEndpointPoliciesClient {
return ServiceEndpointPoliciesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-09-01/network/serviceendpointpolicydefinitions.go b/services/network/mgmt/2019-09-01/network/serviceendpointpolicydefinitions.go
index 222d07dcd4ab..517d2cb6745e 100644
--- a/services/network/mgmt/2019-09-01/network/serviceendpointpolicydefinitions.go
+++ b/services/network/mgmt/2019-09-01/network/serviceendpointpolicydefinitions.go
@@ -36,7 +36,8 @@ func NewServiceEndpointPolicyDefinitionsClient(subscriptionID string) ServiceEnd
}
// NewServiceEndpointPolicyDefinitionsClientWithBaseURI creates an instance of the
-// ServiceEndpointPolicyDefinitionsClient client.
+// ServiceEndpointPolicyDefinitionsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewServiceEndpointPolicyDefinitionsClientWithBaseURI(baseURI string, subscriptionID string) ServiceEndpointPolicyDefinitionsClient {
return ServiceEndpointPolicyDefinitionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-09-01/network/servicetags.go b/services/network/mgmt/2019-09-01/network/servicetags.go
index cbbd7d0fbde3..9b6295d7a9f6 100644
--- a/services/network/mgmt/2019-09-01/network/servicetags.go
+++ b/services/network/mgmt/2019-09-01/network/servicetags.go
@@ -35,7 +35,8 @@ func NewServiceTagsClient(subscriptionID string) ServiceTagsClient {
return NewServiceTagsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewServiceTagsClientWithBaseURI creates an instance of the ServiceTagsClient client.
+// NewServiceTagsClientWithBaseURI creates an instance of the ServiceTagsClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewServiceTagsClientWithBaseURI(baseURI string, subscriptionID string) ServiceTagsClient {
return ServiceTagsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-09-01/network/subnets.go b/services/network/mgmt/2019-09-01/network/subnets.go
index 96ab7b847dbe..edcf1d7fcebe 100644
--- a/services/network/mgmt/2019-09-01/network/subnets.go
+++ b/services/network/mgmt/2019-09-01/network/subnets.go
@@ -35,7 +35,8 @@ func NewSubnetsClient(subscriptionID string) SubnetsClient {
return NewSubnetsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewSubnetsClientWithBaseURI creates an instance of the SubnetsClient client.
+// NewSubnetsClientWithBaseURI creates an instance of the SubnetsClient client using a custom endpoint. Use this when
+// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewSubnetsClientWithBaseURI(baseURI string, subscriptionID string) SubnetsClient {
return SubnetsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-09-01/network/usages.go b/services/network/mgmt/2019-09-01/network/usages.go
index c658a631cf95..70d240068a67 100644
--- a/services/network/mgmt/2019-09-01/network/usages.go
+++ b/services/network/mgmt/2019-09-01/network/usages.go
@@ -36,7 +36,8 @@ func NewUsagesClient(subscriptionID string) UsagesClient {
return NewUsagesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewUsagesClientWithBaseURI creates an instance of the UsagesClient client.
+// NewUsagesClientWithBaseURI creates an instance of the UsagesClient client using a custom endpoint. Use this when
+// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewUsagesClientWithBaseURI(baseURI string, subscriptionID string) UsagesClient {
return UsagesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-09-01/network/virtualhubroutetablev2s.go b/services/network/mgmt/2019-09-01/network/virtualhubroutetablev2s.go
index a95c5cb00bfb..10f635a24002 100644
--- a/services/network/mgmt/2019-09-01/network/virtualhubroutetablev2s.go
+++ b/services/network/mgmt/2019-09-01/network/virtualhubroutetablev2s.go
@@ -35,7 +35,9 @@ func NewVirtualHubRouteTableV2sClient(subscriptionID string) VirtualHubRouteTabl
return NewVirtualHubRouteTableV2sClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualHubRouteTableV2sClientWithBaseURI creates an instance of the VirtualHubRouteTableV2sClient client.
+// NewVirtualHubRouteTableV2sClientWithBaseURI creates an instance of the VirtualHubRouteTableV2sClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewVirtualHubRouteTableV2sClientWithBaseURI(baseURI string, subscriptionID string) VirtualHubRouteTableV2sClient {
return VirtualHubRouteTableV2sClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-09-01/network/virtualhubs.go b/services/network/mgmt/2019-09-01/network/virtualhubs.go
index 4106182e4972..d78a492559d0 100644
--- a/services/network/mgmt/2019-09-01/network/virtualhubs.go
+++ b/services/network/mgmt/2019-09-01/network/virtualhubs.go
@@ -35,7 +35,8 @@ func NewVirtualHubsClient(subscriptionID string) VirtualHubsClient {
return NewVirtualHubsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualHubsClientWithBaseURI creates an instance of the VirtualHubsClient client.
+// NewVirtualHubsClientWithBaseURI creates an instance of the VirtualHubsClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVirtualHubsClientWithBaseURI(baseURI string, subscriptionID string) VirtualHubsClient {
return VirtualHubsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-09-01/network/virtualnetworkgatewayconnections.go b/services/network/mgmt/2019-09-01/network/virtualnetworkgatewayconnections.go
index 28425f557f63..511f6be47992 100644
--- a/services/network/mgmt/2019-09-01/network/virtualnetworkgatewayconnections.go
+++ b/services/network/mgmt/2019-09-01/network/virtualnetworkgatewayconnections.go
@@ -37,7 +37,8 @@ func NewVirtualNetworkGatewayConnectionsClient(subscriptionID string) VirtualNet
}
// NewVirtualNetworkGatewayConnectionsClientWithBaseURI creates an instance of the
-// VirtualNetworkGatewayConnectionsClient client.
+// VirtualNetworkGatewayConnectionsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVirtualNetworkGatewayConnectionsClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworkGatewayConnectionsClient {
return VirtualNetworkGatewayConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-09-01/network/virtualnetworkgateways.go b/services/network/mgmt/2019-09-01/network/virtualnetworkgateways.go
index f7780bd49cfd..537dcf124cb3 100644
--- a/services/network/mgmt/2019-09-01/network/virtualnetworkgateways.go
+++ b/services/network/mgmt/2019-09-01/network/virtualnetworkgateways.go
@@ -36,7 +36,9 @@ func NewVirtualNetworkGatewaysClient(subscriptionID string) VirtualNetworkGatewa
return NewVirtualNetworkGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualNetworkGatewaysClientWithBaseURI creates an instance of the VirtualNetworkGatewaysClient client.
+// NewVirtualNetworkGatewaysClientWithBaseURI creates an instance of the VirtualNetworkGatewaysClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewVirtualNetworkGatewaysClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworkGatewaysClient {
return VirtualNetworkGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-09-01/network/virtualnetworkpeerings.go b/services/network/mgmt/2019-09-01/network/virtualnetworkpeerings.go
index 717551401a73..0a6a281d13b7 100644
--- a/services/network/mgmt/2019-09-01/network/virtualnetworkpeerings.go
+++ b/services/network/mgmt/2019-09-01/network/virtualnetworkpeerings.go
@@ -35,7 +35,9 @@ func NewVirtualNetworkPeeringsClient(subscriptionID string) VirtualNetworkPeerin
return NewVirtualNetworkPeeringsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualNetworkPeeringsClientWithBaseURI creates an instance of the VirtualNetworkPeeringsClient client.
+// NewVirtualNetworkPeeringsClientWithBaseURI creates an instance of the VirtualNetworkPeeringsClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewVirtualNetworkPeeringsClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworkPeeringsClient {
return VirtualNetworkPeeringsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-09-01/network/virtualnetworks.go b/services/network/mgmt/2019-09-01/network/virtualnetworks.go
index d024e61f0082..ac12325a8500 100644
--- a/services/network/mgmt/2019-09-01/network/virtualnetworks.go
+++ b/services/network/mgmt/2019-09-01/network/virtualnetworks.go
@@ -36,7 +36,8 @@ func NewVirtualNetworksClient(subscriptionID string) VirtualNetworksClient {
return NewVirtualNetworksClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualNetworksClientWithBaseURI creates an instance of the VirtualNetworksClient client.
+// NewVirtualNetworksClientWithBaseURI creates an instance of the VirtualNetworksClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVirtualNetworksClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworksClient {
return VirtualNetworksClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-09-01/network/virtualnetworktaps.go b/services/network/mgmt/2019-09-01/network/virtualnetworktaps.go
index a4374217dea1..c9a0ac69e7de 100644
--- a/services/network/mgmt/2019-09-01/network/virtualnetworktaps.go
+++ b/services/network/mgmt/2019-09-01/network/virtualnetworktaps.go
@@ -36,7 +36,9 @@ func NewVirtualNetworkTapsClient(subscriptionID string) VirtualNetworkTapsClient
return NewVirtualNetworkTapsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualNetworkTapsClientWithBaseURI creates an instance of the VirtualNetworkTapsClient client.
+// NewVirtualNetworkTapsClientWithBaseURI creates an instance of the VirtualNetworkTapsClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewVirtualNetworkTapsClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworkTapsClient {
return VirtualNetworkTapsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-09-01/network/virtualrouterpeerings.go b/services/network/mgmt/2019-09-01/network/virtualrouterpeerings.go
index edf837845395..31ee9e1c296d 100644
--- a/services/network/mgmt/2019-09-01/network/virtualrouterpeerings.go
+++ b/services/network/mgmt/2019-09-01/network/virtualrouterpeerings.go
@@ -36,7 +36,9 @@ func NewVirtualRouterPeeringsClient(subscriptionID string) VirtualRouterPeerings
return NewVirtualRouterPeeringsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualRouterPeeringsClientWithBaseURI creates an instance of the VirtualRouterPeeringsClient client.
+// NewVirtualRouterPeeringsClientWithBaseURI creates an instance of the VirtualRouterPeeringsClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewVirtualRouterPeeringsClientWithBaseURI(baseURI string, subscriptionID string) VirtualRouterPeeringsClient {
return VirtualRouterPeeringsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-09-01/network/virtualrouters.go b/services/network/mgmt/2019-09-01/network/virtualrouters.go
index ed42d5b28ace..9c7955fa9f3b 100644
--- a/services/network/mgmt/2019-09-01/network/virtualrouters.go
+++ b/services/network/mgmt/2019-09-01/network/virtualrouters.go
@@ -36,7 +36,8 @@ func NewVirtualRoutersClient(subscriptionID string) VirtualRoutersClient {
return NewVirtualRoutersClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualRoutersClientWithBaseURI creates an instance of the VirtualRoutersClient client.
+// NewVirtualRoutersClientWithBaseURI creates an instance of the VirtualRoutersClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVirtualRoutersClientWithBaseURI(baseURI string, subscriptionID string) VirtualRoutersClient {
return VirtualRoutersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-09-01/network/virtualwans.go b/services/network/mgmt/2019-09-01/network/virtualwans.go
index 7361f96c4328..e91c9c90560f 100644
--- a/services/network/mgmt/2019-09-01/network/virtualwans.go
+++ b/services/network/mgmt/2019-09-01/network/virtualwans.go
@@ -35,7 +35,8 @@ func NewVirtualWansClient(subscriptionID string) VirtualWansClient {
return NewVirtualWansClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVirtualWansClientWithBaseURI creates an instance of the VirtualWansClient client.
+// NewVirtualWansClientWithBaseURI creates an instance of the VirtualWansClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVirtualWansClientWithBaseURI(baseURI string, subscriptionID string) VirtualWansClient {
return VirtualWansClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-09-01/network/vpnconnections.go b/services/network/mgmt/2019-09-01/network/vpnconnections.go
index 993de186d960..5bc2fa7a3916 100644
--- a/services/network/mgmt/2019-09-01/network/vpnconnections.go
+++ b/services/network/mgmt/2019-09-01/network/vpnconnections.go
@@ -35,7 +35,8 @@ func NewVpnConnectionsClient(subscriptionID string) VpnConnectionsClient {
return NewVpnConnectionsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVpnConnectionsClientWithBaseURI creates an instance of the VpnConnectionsClient client.
+// NewVpnConnectionsClientWithBaseURI creates an instance of the VpnConnectionsClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVpnConnectionsClientWithBaseURI(baseURI string, subscriptionID string) VpnConnectionsClient {
return VpnConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-09-01/network/vpngateways.go b/services/network/mgmt/2019-09-01/network/vpngateways.go
index f08842016690..10d6618f78c7 100644
--- a/services/network/mgmt/2019-09-01/network/vpngateways.go
+++ b/services/network/mgmt/2019-09-01/network/vpngateways.go
@@ -35,7 +35,8 @@ func NewVpnGatewaysClient(subscriptionID string) VpnGatewaysClient {
return NewVpnGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVpnGatewaysClientWithBaseURI creates an instance of the VpnGatewaysClient client.
+// NewVpnGatewaysClientWithBaseURI creates an instance of the VpnGatewaysClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVpnGatewaysClientWithBaseURI(baseURI string, subscriptionID string) VpnGatewaysClient {
return VpnGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-09-01/network/vpnlinkconnections.go b/services/network/mgmt/2019-09-01/network/vpnlinkconnections.go
index 8bc32e604e95..2f64798841de 100644
--- a/services/network/mgmt/2019-09-01/network/vpnlinkconnections.go
+++ b/services/network/mgmt/2019-09-01/network/vpnlinkconnections.go
@@ -35,7 +35,9 @@ func NewVpnLinkConnectionsClient(subscriptionID string) VpnLinkConnectionsClient
return NewVpnLinkConnectionsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVpnLinkConnectionsClientWithBaseURI creates an instance of the VpnLinkConnectionsClient client.
+// NewVpnLinkConnectionsClientWithBaseURI creates an instance of the VpnLinkConnectionsClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
func NewVpnLinkConnectionsClientWithBaseURI(baseURI string, subscriptionID string) VpnLinkConnectionsClient {
return VpnLinkConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-09-01/network/vpnserverconfigurations.go b/services/network/mgmt/2019-09-01/network/vpnserverconfigurations.go
index cc734dd887f5..137f72225539 100644
--- a/services/network/mgmt/2019-09-01/network/vpnserverconfigurations.go
+++ b/services/network/mgmt/2019-09-01/network/vpnserverconfigurations.go
@@ -35,7 +35,9 @@ func NewVpnServerConfigurationsClient(subscriptionID string) VpnServerConfigurat
return NewVpnServerConfigurationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVpnServerConfigurationsClientWithBaseURI creates an instance of the VpnServerConfigurationsClient client.
+// NewVpnServerConfigurationsClientWithBaseURI creates an instance of the VpnServerConfigurationsClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewVpnServerConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) VpnServerConfigurationsClient {
return VpnServerConfigurationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-09-01/network/vpnserverconfigurationsassociatedwithvirtualwan.go b/services/network/mgmt/2019-09-01/network/vpnserverconfigurationsassociatedwithvirtualwan.go
index 5213d528a99b..9e381288c0c4 100644
--- a/services/network/mgmt/2019-09-01/network/vpnserverconfigurationsassociatedwithvirtualwan.go
+++ b/services/network/mgmt/2019-09-01/network/vpnserverconfigurationsassociatedwithvirtualwan.go
@@ -37,7 +37,8 @@ func NewVpnServerConfigurationsAssociatedWithVirtualWanClient(subscriptionID str
}
// NewVpnServerConfigurationsAssociatedWithVirtualWanClientWithBaseURI creates an instance of the
-// VpnServerConfigurationsAssociatedWithVirtualWanClient client.
+// VpnServerConfigurationsAssociatedWithVirtualWanClient client using a custom endpoint. Use this when interacting
+// with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVpnServerConfigurationsAssociatedWithVirtualWanClientWithBaseURI(baseURI string, subscriptionID string) VpnServerConfigurationsAssociatedWithVirtualWanClient {
return VpnServerConfigurationsAssociatedWithVirtualWanClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-09-01/network/vpnsitelinkconnections.go b/services/network/mgmt/2019-09-01/network/vpnsitelinkconnections.go
index 8db1c30b9af2..9a2a631ff73e 100644
--- a/services/network/mgmt/2019-09-01/network/vpnsitelinkconnections.go
+++ b/services/network/mgmt/2019-09-01/network/vpnsitelinkconnections.go
@@ -35,7 +35,9 @@ func NewVpnSiteLinkConnectionsClient(subscriptionID string) VpnSiteLinkConnectio
return NewVpnSiteLinkConnectionsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVpnSiteLinkConnectionsClientWithBaseURI creates an instance of the VpnSiteLinkConnectionsClient client.
+// NewVpnSiteLinkConnectionsClientWithBaseURI creates an instance of the VpnSiteLinkConnectionsClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewVpnSiteLinkConnectionsClientWithBaseURI(baseURI string, subscriptionID string) VpnSiteLinkConnectionsClient {
return VpnSiteLinkConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-09-01/network/vpnsitelinks.go b/services/network/mgmt/2019-09-01/network/vpnsitelinks.go
index b3cc45a2ad05..7f9d039474ee 100644
--- a/services/network/mgmt/2019-09-01/network/vpnsitelinks.go
+++ b/services/network/mgmt/2019-09-01/network/vpnsitelinks.go
@@ -35,7 +35,8 @@ func NewVpnSiteLinksClient(subscriptionID string) VpnSiteLinksClient {
return NewVpnSiteLinksClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVpnSiteLinksClientWithBaseURI creates an instance of the VpnSiteLinksClient client.
+// NewVpnSiteLinksClientWithBaseURI creates an instance of the VpnSiteLinksClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVpnSiteLinksClientWithBaseURI(baseURI string, subscriptionID string) VpnSiteLinksClient {
return VpnSiteLinksClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-09-01/network/vpnsites.go b/services/network/mgmt/2019-09-01/network/vpnsites.go
index 7bba492f7ea5..5d607fc5ca2c 100644
--- a/services/network/mgmt/2019-09-01/network/vpnsites.go
+++ b/services/network/mgmt/2019-09-01/network/vpnsites.go
@@ -35,7 +35,8 @@ func NewVpnSitesClient(subscriptionID string) VpnSitesClient {
return NewVpnSitesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVpnSitesClientWithBaseURI creates an instance of the VpnSitesClient client.
+// NewVpnSitesClientWithBaseURI creates an instance of the VpnSitesClient client using a custom endpoint. Use this
+// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewVpnSitesClientWithBaseURI(baseURI string, subscriptionID string) VpnSitesClient {
return VpnSitesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-09-01/network/vpnsitesconfiguration.go b/services/network/mgmt/2019-09-01/network/vpnsitesconfiguration.go
index 4baf61776b10..83b76e73888c 100644
--- a/services/network/mgmt/2019-09-01/network/vpnsitesconfiguration.go
+++ b/services/network/mgmt/2019-09-01/network/vpnsitesconfiguration.go
@@ -36,7 +36,9 @@ func NewVpnSitesConfigurationClient(subscriptionID string) VpnSitesConfiguration
return NewVpnSitesConfigurationClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewVpnSitesConfigurationClientWithBaseURI creates an instance of the VpnSitesConfigurationClient client.
+// NewVpnSitesConfigurationClientWithBaseURI creates an instance of the VpnSitesConfigurationClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
func NewVpnSitesConfigurationClientWithBaseURI(baseURI string, subscriptionID string) VpnSitesConfigurationClient {
return VpnSitesConfigurationClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-09-01/network/watchers.go b/services/network/mgmt/2019-09-01/network/watchers.go
index 2965b624be69..857e8962c06a 100644
--- a/services/network/mgmt/2019-09-01/network/watchers.go
+++ b/services/network/mgmt/2019-09-01/network/watchers.go
@@ -36,7 +36,8 @@ func NewWatchersClient(subscriptionID string) WatchersClient {
return NewWatchersClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewWatchersClientWithBaseURI creates an instance of the WatchersClient client.
+// NewWatchersClientWithBaseURI creates an instance of the WatchersClient client using a custom endpoint. Use this
+// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func NewWatchersClientWithBaseURI(baseURI string, subscriptionID string) WatchersClient {
return WatchersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-09-01/network/webapplicationfirewallpolicies.go b/services/network/mgmt/2019-09-01/network/webapplicationfirewallpolicies.go
index 9f0e270160d6..52588e47c2aa 100644
--- a/services/network/mgmt/2019-09-01/network/webapplicationfirewallpolicies.go
+++ b/services/network/mgmt/2019-09-01/network/webapplicationfirewallpolicies.go
@@ -37,7 +37,8 @@ func NewWebApplicationFirewallPoliciesClient(subscriptionID string) WebApplicati
}
// NewWebApplicationFirewallPoliciesClientWithBaseURI creates an instance of the WebApplicationFirewallPoliciesClient
-// client.
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
func NewWebApplicationFirewallPoliciesClientWithBaseURI(baseURI string, subscriptionID string) WebApplicationFirewallPoliciesClient {
return WebApplicationFirewallPoliciesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
diff --git a/services/network/mgmt/2019-11-01/network/applicationgateways.go b/services/network/mgmt/2019-11-01/network/applicationgateways.go
new file mode 100644
index 000000000000..87cfcab850e5
--- /dev/null
+++ b/services/network/mgmt/2019-11-01/network/applicationgateways.go
@@ -0,0 +1,1472 @@
+package network
+
+// Copyright (c) Microsoft and contributors. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+ "context"
+ "github.com/Azure/go-autorest/autorest"
+ "github.com/Azure/go-autorest/autorest/azure"
+ "github.com/Azure/go-autorest/autorest/validation"
+ "github.com/Azure/go-autorest/tracing"
+ "net/http"
+)
+
+// ApplicationGatewaysClient is the network Client
+type ApplicationGatewaysClient struct {
+ BaseClient
+}
+
+// NewApplicationGatewaysClient creates an instance of the ApplicationGatewaysClient client.
+func NewApplicationGatewaysClient(subscriptionID string) ApplicationGatewaysClient {
+ return NewApplicationGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
+}
+
+// NewApplicationGatewaysClientWithBaseURI creates an instance of the ApplicationGatewaysClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
+func NewApplicationGatewaysClientWithBaseURI(baseURI string, subscriptionID string) ApplicationGatewaysClient {
+ return ApplicationGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
+}
+
+// BackendHealth gets the backend health of the specified application gateway in a resource group.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// applicationGatewayName - the name of the application gateway.
+// expand - expands BackendAddressPool and BackendHttpSettings referenced in backend health.
+func (client ApplicationGatewaysClient) BackendHealth(ctx context.Context, resourceGroupName string, applicationGatewayName string, expand string) (result ApplicationGatewaysBackendHealthFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ApplicationGatewaysClient.BackendHealth")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.BackendHealthPreparer(ctx, resourceGroupName, applicationGatewayName, expand)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "BackendHealth", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.BackendHealthSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "BackendHealth", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// BackendHealthPreparer prepares the BackendHealth request.
+func (client ApplicationGatewaysClient) BackendHealthPreparer(ctx context.Context, resourceGroupName string, applicationGatewayName string, expand string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "applicationGatewayName": autorest.Encode("path", applicationGatewayName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+ if len(expand) > 0 {
+ queryParameters["$expand"] = autorest.Encode("query", expand)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsPost(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}/backendhealth", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// BackendHealthSender sends the BackendHealth request. The method will close the
+// http.Response Body if it receives an error.
+func (client ApplicationGatewaysClient) BackendHealthSender(req *http.Request) (future ApplicationGatewaysBackendHealthFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// BackendHealthResponder handles the response to the BackendHealth request. The method always
+// closes the http.Response Body.
+func (client ApplicationGatewaysClient) BackendHealthResponder(resp *http.Response) (result ApplicationGatewayBackendHealth, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// BackendHealthOnDemand gets the backend health for given combination of backend pool and http setting of the
+// specified application gateway in a resource group.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// applicationGatewayName - the name of the application gateway.
+// probeRequest - request body for on-demand test probe operation.
+// expand - expands BackendAddressPool and BackendHttpSettings referenced in backend health.
+func (client ApplicationGatewaysClient) BackendHealthOnDemand(ctx context.Context, resourceGroupName string, applicationGatewayName string, probeRequest ApplicationGatewayOnDemandProbe, expand string) (result ApplicationGatewaysBackendHealthOnDemandFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ApplicationGatewaysClient.BackendHealthOnDemand")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.BackendHealthOnDemandPreparer(ctx, resourceGroupName, applicationGatewayName, probeRequest, expand)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "BackendHealthOnDemand", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.BackendHealthOnDemandSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "BackendHealthOnDemand", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// BackendHealthOnDemandPreparer prepares the BackendHealthOnDemand request.
+func (client ApplicationGatewaysClient) BackendHealthOnDemandPreparer(ctx context.Context, resourceGroupName string, applicationGatewayName string, probeRequest ApplicationGatewayOnDemandProbe, expand string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "applicationGatewayName": autorest.Encode("path", applicationGatewayName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+ if len(expand) > 0 {
+ queryParameters["$expand"] = autorest.Encode("query", expand)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPost(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}/getBackendHealthOnDemand", pathParameters),
+ autorest.WithJSON(probeRequest),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// BackendHealthOnDemandSender sends the BackendHealthOnDemand request. The method will close the
+// http.Response Body if it receives an error.
+func (client ApplicationGatewaysClient) BackendHealthOnDemandSender(req *http.Request) (future ApplicationGatewaysBackendHealthOnDemandFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// BackendHealthOnDemandResponder handles the response to the BackendHealthOnDemand request. The method always
+// closes the http.Response Body.
+func (client ApplicationGatewaysClient) BackendHealthOnDemandResponder(resp *http.Response) (result ApplicationGatewayBackendHealthOnDemand, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// CreateOrUpdate creates or updates the specified application gateway.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// applicationGatewayName - the name of the application gateway.
+// parameters - parameters supplied to the create or update application gateway operation.
+func (client ApplicationGatewaysClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, applicationGatewayName string, parameters ApplicationGateway) (result ApplicationGatewaysCreateOrUpdateFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ApplicationGatewaysClient.CreateOrUpdate")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: parameters,
+ Constraints: []validation.Constraint{{Target: "parameters.ApplicationGatewayPropertiesFormat", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "parameters.ApplicationGatewayPropertiesFormat.WebApplicationFirewallConfiguration", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "parameters.ApplicationGatewayPropertiesFormat.WebApplicationFirewallConfiguration.Enabled", Name: validation.Null, Rule: true, Chain: nil},
+ {Target: "parameters.ApplicationGatewayPropertiesFormat.WebApplicationFirewallConfiguration.RuleSetType", Name: validation.Null, Rule: true, Chain: nil},
+ {Target: "parameters.ApplicationGatewayPropertiesFormat.WebApplicationFirewallConfiguration.RuleSetVersion", Name: validation.Null, Rule: true, Chain: nil},
+ {Target: "parameters.ApplicationGatewayPropertiesFormat.WebApplicationFirewallConfiguration.MaxRequestBodySize", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "parameters.ApplicationGatewayPropertiesFormat.WebApplicationFirewallConfiguration.MaxRequestBodySize", Name: validation.InclusiveMaximum, Rule: int64(128), Chain: nil},
+ {Target: "parameters.ApplicationGatewayPropertiesFormat.WebApplicationFirewallConfiguration.MaxRequestBodySize", Name: validation.InclusiveMinimum, Rule: int64(8), Chain: nil},
+ }},
+ {Target: "parameters.ApplicationGatewayPropertiesFormat.WebApplicationFirewallConfiguration.MaxRequestBodySizeInKb", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "parameters.ApplicationGatewayPropertiesFormat.WebApplicationFirewallConfiguration.MaxRequestBodySizeInKb", Name: validation.InclusiveMaximum, Rule: int64(128), Chain: nil},
+ {Target: "parameters.ApplicationGatewayPropertiesFormat.WebApplicationFirewallConfiguration.MaxRequestBodySizeInKb", Name: validation.InclusiveMinimum, Rule: int64(8), Chain: nil},
+ }},
+ {Target: "parameters.ApplicationGatewayPropertiesFormat.WebApplicationFirewallConfiguration.FileUploadLimitInMb", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "parameters.ApplicationGatewayPropertiesFormat.WebApplicationFirewallConfiguration.FileUploadLimitInMb", Name: validation.InclusiveMinimum, Rule: int64(0), Chain: nil}}},
+ }},
+ {Target: "parameters.ApplicationGatewayPropertiesFormat.AutoscaleConfiguration", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "parameters.ApplicationGatewayPropertiesFormat.AutoscaleConfiguration.MinCapacity", Name: validation.Null, Rule: true,
+ Chain: []validation.Constraint{{Target: "parameters.ApplicationGatewayPropertiesFormat.AutoscaleConfiguration.MinCapacity", Name: validation.InclusiveMinimum, Rule: int64(0), Chain: nil}}},
+ {Target: "parameters.ApplicationGatewayPropertiesFormat.AutoscaleConfiguration.MaxCapacity", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "parameters.ApplicationGatewayPropertiesFormat.AutoscaleConfiguration.MaxCapacity", Name: validation.InclusiveMinimum, Rule: int64(2), Chain: nil}}},
+ }},
+ }}}}}); err != nil {
+ return result, validation.NewError("network.ApplicationGatewaysClient", "CreateOrUpdate", err.Error())
+ }
+
+ req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, applicationGatewayName, parameters)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "CreateOrUpdate", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.CreateOrUpdateSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "CreateOrUpdate", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// CreateOrUpdatePreparer prepares the CreateOrUpdate request.
+func (client ApplicationGatewaysClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, applicationGatewayName string, parameters ApplicationGateway) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "applicationGatewayName": autorest.Encode("path", applicationGatewayName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ parameters.Etag = nil
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPut(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}", pathParameters),
+ autorest.WithJSON(parameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the
+// http.Response Body if it receives an error.
+func (client ApplicationGatewaysClient) CreateOrUpdateSender(req *http.Request) (future ApplicationGatewaysCreateOrUpdateFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always
+// closes the http.Response Body.
+func (client ApplicationGatewaysClient) CreateOrUpdateResponder(resp *http.Response) (result ApplicationGateway, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// Delete deletes the specified application gateway.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// applicationGatewayName - the name of the application gateway.
+func (client ApplicationGatewaysClient) Delete(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result ApplicationGatewaysDeleteFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ApplicationGatewaysClient.Delete")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.DeletePreparer(ctx, resourceGroupName, applicationGatewayName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "Delete", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.DeleteSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "Delete", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// DeletePreparer prepares the Delete request.
+func (client ApplicationGatewaysClient) DeletePreparer(ctx context.Context, resourceGroupName string, applicationGatewayName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "applicationGatewayName": autorest.Encode("path", applicationGatewayName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/applicationGateways/{applicationGatewayName}", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// DeleteSender sends the Delete request. The method will close the
+// http.Response Body if it receives an error.
+func (client ApplicationGatewaysClient) DeleteSender(req *http.Request) (future ApplicationGatewaysDeleteFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// DeleteResponder handles the response to the Delete request. The method always
+// closes the http.Response Body.
+func (client ApplicationGatewaysClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent),
+ autorest.ByClosing())
+ result.Response = resp
+ return
+}
+
+// Get gets the specified application gateway.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// applicationGatewayName - the name of the application gateway.
+func (client ApplicationGatewaysClient) Get(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result ApplicationGateway, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ApplicationGatewaysClient.Get")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetPreparer(ctx, resourceGroupName, applicationGatewayName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "Get", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "Get", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "Get", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetPreparer prepares the Get request.
+func (client ApplicationGatewaysClient) GetPreparer(ctx context.Context, resourceGroupName string, applicationGatewayName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "applicationGatewayName": autorest.Encode("path", applicationGatewayName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/applicationGateways/{applicationGatewayName}", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetSender sends the Get request. The method will close the
+// http.Response Body if it receives an error.
+func (client ApplicationGatewaysClient) GetSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetResponder handles the response to the Get request. The method always
+// closes the http.Response Body.
+func (client ApplicationGatewaysClient) GetResponder(resp *http.Response) (result ApplicationGateway, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// GetSslPredefinedPolicy gets Ssl predefined policy with the specified policy name.
+// Parameters:
+// predefinedPolicyName - name of Ssl predefined policy.
+func (client ApplicationGatewaysClient) GetSslPredefinedPolicy(ctx context.Context, predefinedPolicyName string) (result ApplicationGatewaySslPredefinedPolicy, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ApplicationGatewaysClient.GetSslPredefinedPolicy")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetSslPredefinedPolicyPreparer(ctx, predefinedPolicyName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "GetSslPredefinedPolicy", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetSslPredefinedPolicySender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "GetSslPredefinedPolicy", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetSslPredefinedPolicyResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "GetSslPredefinedPolicy", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetSslPredefinedPolicyPreparer prepares the GetSslPredefinedPolicy request.
+func (client ApplicationGatewaysClient) GetSslPredefinedPolicyPreparer(ctx context.Context, predefinedPolicyName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "predefinedPolicyName": autorest.Encode("path", predefinedPolicyName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGatewayAvailableSslOptions/default/predefinedPolicies/{predefinedPolicyName}", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetSslPredefinedPolicySender sends the GetSslPredefinedPolicy request. The method will close the
+// http.Response Body if it receives an error.
+func (client ApplicationGatewaysClient) GetSslPredefinedPolicySender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetSslPredefinedPolicyResponder handles the response to the GetSslPredefinedPolicy request. The method always
+// closes the http.Response Body.
+func (client ApplicationGatewaysClient) GetSslPredefinedPolicyResponder(resp *http.Response) (result ApplicationGatewaySslPredefinedPolicy, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// List lists all application gateways in a resource group.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+func (client ApplicationGatewaysClient) List(ctx context.Context, resourceGroupName string) (result ApplicationGatewayListResultPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ApplicationGatewaysClient.List")
+ defer func() {
+ sc := -1
+ if result.aglr.Response.Response != nil {
+ sc = result.aglr.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.listNextResults
+ req, err := client.ListPreparer(ctx, resourceGroupName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "List", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.aglr.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "List", resp, "Failure sending request")
+ return
+ }
+
+ result.aglr, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "List", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListPreparer prepares the List request.
+func (client ApplicationGatewaysClient) ListPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/applicationGateways", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListSender sends the List request. The method will close the
+// http.Response Body if it receives an error.
+func (client ApplicationGatewaysClient) ListSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListResponder handles the response to the List request. The method always
+// closes the http.Response Body.
+func (client ApplicationGatewaysClient) ListResponder(resp *http.Response) (result ApplicationGatewayListResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listNextResults retrieves the next set of results, if any.
+func (client ApplicationGatewaysClient) listNextResults(ctx context.Context, lastResults ApplicationGatewayListResult) (result ApplicationGatewayListResult, err error) {
+ req, err := lastResults.applicationGatewayListResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListComplete enumerates all values, automatically crossing page boundaries as required.
+func (client ApplicationGatewaysClient) ListComplete(ctx context.Context, resourceGroupName string) (result ApplicationGatewayListResultIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ApplicationGatewaysClient.List")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.List(ctx, resourceGroupName)
+ return
+}
+
+// ListAll gets all the application gateways in a subscription.
+func (client ApplicationGatewaysClient) ListAll(ctx context.Context) (result ApplicationGatewayListResultPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ApplicationGatewaysClient.ListAll")
+ defer func() {
+ sc := -1
+ if result.aglr.Response.Response != nil {
+ sc = result.aglr.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.listAllNextResults
+ req, err := client.ListAllPreparer(ctx)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAll", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListAllSender(req)
+ if err != nil {
+ result.aglr.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAll", resp, "Failure sending request")
+ return
+ }
+
+ result.aglr, err = client.ListAllResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAll", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListAllPreparer prepares the ListAll request.
+func (client ApplicationGatewaysClient) ListAllPreparer(ctx context.Context) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGateways", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListAllSender sends the ListAll request. The method will close the
+// http.Response Body if it receives an error.
+func (client ApplicationGatewaysClient) ListAllSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListAllResponder handles the response to the ListAll request. The method always
+// closes the http.Response Body.
+func (client ApplicationGatewaysClient) ListAllResponder(resp *http.Response) (result ApplicationGatewayListResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listAllNextResults retrieves the next set of results, if any.
+func (client ApplicationGatewaysClient) listAllNextResults(ctx context.Context, lastResults ApplicationGatewayListResult) (result ApplicationGatewayListResult, err error) {
+ req, err := lastResults.applicationGatewayListResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listAllNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListAllSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listAllNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListAllResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listAllNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListAllComplete enumerates all values, automatically crossing page boundaries as required.
+func (client ApplicationGatewaysClient) ListAllComplete(ctx context.Context) (result ApplicationGatewayListResultIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ApplicationGatewaysClient.ListAll")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.ListAll(ctx)
+ return
+}
+
+// ListAvailableRequestHeaders lists all available request headers.
+func (client ApplicationGatewaysClient) ListAvailableRequestHeaders(ctx context.Context) (result ListString, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ApplicationGatewaysClient.ListAvailableRequestHeaders")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.ListAvailableRequestHeadersPreparer(ctx)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableRequestHeaders", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListAvailableRequestHeadersSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableRequestHeaders", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.ListAvailableRequestHeadersResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableRequestHeaders", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListAvailableRequestHeadersPreparer prepares the ListAvailableRequestHeaders request.
+func (client ApplicationGatewaysClient) ListAvailableRequestHeadersPreparer(ctx context.Context) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGatewayAvailableRequestHeaders", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListAvailableRequestHeadersSender sends the ListAvailableRequestHeaders request. The method will close the
+// http.Response Body if it receives an error.
+func (client ApplicationGatewaysClient) ListAvailableRequestHeadersSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListAvailableRequestHeadersResponder handles the response to the ListAvailableRequestHeaders request. The method always
+// closes the http.Response Body.
+func (client ApplicationGatewaysClient) ListAvailableRequestHeadersResponder(resp *http.Response) (result ListString, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result.Value),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// ListAvailableResponseHeaders lists all available response headers.
+func (client ApplicationGatewaysClient) ListAvailableResponseHeaders(ctx context.Context) (result ListString, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ApplicationGatewaysClient.ListAvailableResponseHeaders")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.ListAvailableResponseHeadersPreparer(ctx)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableResponseHeaders", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListAvailableResponseHeadersSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableResponseHeaders", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.ListAvailableResponseHeadersResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableResponseHeaders", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListAvailableResponseHeadersPreparer prepares the ListAvailableResponseHeaders request.
+func (client ApplicationGatewaysClient) ListAvailableResponseHeadersPreparer(ctx context.Context) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGatewayAvailableResponseHeaders", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListAvailableResponseHeadersSender sends the ListAvailableResponseHeaders request. The method will close the
+// http.Response Body if it receives an error.
+func (client ApplicationGatewaysClient) ListAvailableResponseHeadersSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListAvailableResponseHeadersResponder handles the response to the ListAvailableResponseHeaders request. The method always
+// closes the http.Response Body.
+func (client ApplicationGatewaysClient) ListAvailableResponseHeadersResponder(resp *http.Response) (result ListString, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result.Value),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// ListAvailableServerVariables lists all available server variables.
+func (client ApplicationGatewaysClient) ListAvailableServerVariables(ctx context.Context) (result ListString, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ApplicationGatewaysClient.ListAvailableServerVariables")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.ListAvailableServerVariablesPreparer(ctx)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableServerVariables", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListAvailableServerVariablesSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableServerVariables", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.ListAvailableServerVariablesResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableServerVariables", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListAvailableServerVariablesPreparer prepares the ListAvailableServerVariables request.
+func (client ApplicationGatewaysClient) ListAvailableServerVariablesPreparer(ctx context.Context) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGatewayAvailableServerVariables", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListAvailableServerVariablesSender sends the ListAvailableServerVariables request. The method will close the
+// http.Response Body if it receives an error.
+func (client ApplicationGatewaysClient) ListAvailableServerVariablesSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListAvailableServerVariablesResponder handles the response to the ListAvailableServerVariables request. The method always
+// closes the http.Response Body.
+func (client ApplicationGatewaysClient) ListAvailableServerVariablesResponder(resp *http.Response) (result ListString, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result.Value),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// ListAvailableSslOptions lists available Ssl options for configuring Ssl policy.
+func (client ApplicationGatewaysClient) ListAvailableSslOptions(ctx context.Context) (result ApplicationGatewayAvailableSslOptions, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ApplicationGatewaysClient.ListAvailableSslOptions")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.ListAvailableSslOptionsPreparer(ctx)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableSslOptions", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListAvailableSslOptionsSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableSslOptions", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.ListAvailableSslOptionsResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableSslOptions", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListAvailableSslOptionsPreparer prepares the ListAvailableSslOptions request.
+func (client ApplicationGatewaysClient) ListAvailableSslOptionsPreparer(ctx context.Context) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGatewayAvailableSslOptions/default", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListAvailableSslOptionsSender sends the ListAvailableSslOptions request. The method will close the
+// http.Response Body if it receives an error.
+func (client ApplicationGatewaysClient) ListAvailableSslOptionsSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListAvailableSslOptionsResponder handles the response to the ListAvailableSslOptions request. The method always
+// closes the http.Response Body.
+func (client ApplicationGatewaysClient) ListAvailableSslOptionsResponder(resp *http.Response) (result ApplicationGatewayAvailableSslOptions, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// ListAvailableSslPredefinedPolicies lists all SSL predefined policies for configuring Ssl policy.
+func (client ApplicationGatewaysClient) ListAvailableSslPredefinedPolicies(ctx context.Context) (result ApplicationGatewayAvailableSslPredefinedPoliciesPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ApplicationGatewaysClient.ListAvailableSslPredefinedPolicies")
+ defer func() {
+ sc := -1
+ if result.agaspp.Response.Response != nil {
+ sc = result.agaspp.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.listAvailableSslPredefinedPoliciesNextResults
+ req, err := client.ListAvailableSslPredefinedPoliciesPreparer(ctx)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableSslPredefinedPolicies", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListAvailableSslPredefinedPoliciesSender(req)
+ if err != nil {
+ result.agaspp.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableSslPredefinedPolicies", resp, "Failure sending request")
+ return
+ }
+
+ result.agaspp, err = client.ListAvailableSslPredefinedPoliciesResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableSslPredefinedPolicies", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListAvailableSslPredefinedPoliciesPreparer prepares the ListAvailableSslPredefinedPolicies request.
+func (client ApplicationGatewaysClient) ListAvailableSslPredefinedPoliciesPreparer(ctx context.Context) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGatewayAvailableSslOptions/default/predefinedPolicies", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListAvailableSslPredefinedPoliciesSender sends the ListAvailableSslPredefinedPolicies request. The method will close the
+// http.Response Body if it receives an error.
+func (client ApplicationGatewaysClient) ListAvailableSslPredefinedPoliciesSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListAvailableSslPredefinedPoliciesResponder handles the response to the ListAvailableSslPredefinedPolicies request. The method always
+// closes the http.Response Body.
+func (client ApplicationGatewaysClient) ListAvailableSslPredefinedPoliciesResponder(resp *http.Response) (result ApplicationGatewayAvailableSslPredefinedPolicies, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listAvailableSslPredefinedPoliciesNextResults retrieves the next set of results, if any.
+func (client ApplicationGatewaysClient) listAvailableSslPredefinedPoliciesNextResults(ctx context.Context, lastResults ApplicationGatewayAvailableSslPredefinedPolicies) (result ApplicationGatewayAvailableSslPredefinedPolicies, err error) {
+ req, err := lastResults.applicationGatewayAvailableSslPredefinedPoliciesPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listAvailableSslPredefinedPoliciesNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListAvailableSslPredefinedPoliciesSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listAvailableSslPredefinedPoliciesNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListAvailableSslPredefinedPoliciesResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "listAvailableSslPredefinedPoliciesNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListAvailableSslPredefinedPoliciesComplete enumerates all values, automatically crossing page boundaries as required.
+func (client ApplicationGatewaysClient) ListAvailableSslPredefinedPoliciesComplete(ctx context.Context) (result ApplicationGatewayAvailableSslPredefinedPoliciesIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ApplicationGatewaysClient.ListAvailableSslPredefinedPolicies")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.ListAvailableSslPredefinedPolicies(ctx)
+ return
+}
+
+// ListAvailableWafRuleSets lists all available web application firewall rule sets.
+func (client ApplicationGatewaysClient) ListAvailableWafRuleSets(ctx context.Context) (result ApplicationGatewayAvailableWafRuleSetsResult, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ApplicationGatewaysClient.ListAvailableWafRuleSets")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.ListAvailableWafRuleSetsPreparer(ctx)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableWafRuleSets", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListAvailableWafRuleSetsSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableWafRuleSets", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.ListAvailableWafRuleSetsResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableWafRuleSets", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListAvailableWafRuleSetsPreparer prepares the ListAvailableWafRuleSets request.
+func (client ApplicationGatewaysClient) ListAvailableWafRuleSetsPreparer(ctx context.Context) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGatewayAvailableWafRuleSets", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListAvailableWafRuleSetsSender sends the ListAvailableWafRuleSets request. The method will close the
+// http.Response Body if it receives an error.
+func (client ApplicationGatewaysClient) ListAvailableWafRuleSetsSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListAvailableWafRuleSetsResponder handles the response to the ListAvailableWafRuleSets request. The method always
+// closes the http.Response Body.
+func (client ApplicationGatewaysClient) ListAvailableWafRuleSetsResponder(resp *http.Response) (result ApplicationGatewayAvailableWafRuleSetsResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// Start starts the specified application gateway.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// applicationGatewayName - the name of the application gateway.
+func (client ApplicationGatewaysClient) Start(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result ApplicationGatewaysStartFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ApplicationGatewaysClient.Start")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.StartPreparer(ctx, resourceGroupName, applicationGatewayName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "Start", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.StartSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "Start", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// StartPreparer prepares the Start request.
+func (client ApplicationGatewaysClient) StartPreparer(ctx context.Context, resourceGroupName string, applicationGatewayName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "applicationGatewayName": autorest.Encode("path", applicationGatewayName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/applicationGateways/{applicationGatewayName}/start", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// StartSender sends the Start request. The method will close the
+// http.Response Body if it receives an error.
+func (client ApplicationGatewaysClient) StartSender(req *http.Request) (future ApplicationGatewaysStartFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// StartResponder handles the response to the Start request. The method always
+// closes the http.Response Body.
+func (client ApplicationGatewaysClient) StartResponder(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
+}
+
+// Stop stops the specified application gateway in a resource group.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// applicationGatewayName - the name of the application gateway.
+func (client ApplicationGatewaysClient) Stop(ctx context.Context, resourceGroupName string, applicationGatewayName string) (result ApplicationGatewaysStopFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ApplicationGatewaysClient.Stop")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.StopPreparer(ctx, resourceGroupName, applicationGatewayName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "Stop", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.StopSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "Stop", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// StopPreparer prepares the Stop request.
+func (client ApplicationGatewaysClient) StopPreparer(ctx context.Context, resourceGroupName string, applicationGatewayName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "applicationGatewayName": autorest.Encode("path", applicationGatewayName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/applicationGateways/{applicationGatewayName}/stop", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// StopSender sends the Stop request. The method will close the
+// http.Response Body if it receives an error.
+func (client ApplicationGatewaysClient) StopSender(req *http.Request) (future ApplicationGatewaysStopFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// StopResponder handles the response to the Stop request. The method always
+// closes the http.Response Body.
+func (client ApplicationGatewaysClient) StopResponder(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
+}
+
+// UpdateTags updates the specified application gateway tags.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// applicationGatewayName - the name of the application gateway.
+// parameters - parameters supplied to update application gateway tags.
+func (client ApplicationGatewaysClient) UpdateTags(ctx context.Context, resourceGroupName string, applicationGatewayName string, parameters TagsObject) (result ApplicationGateway, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ApplicationGatewaysClient.UpdateTags")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.UpdateTagsPreparer(ctx, resourceGroupName, applicationGatewayName, parameters)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "UpdateTags", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.UpdateTagsSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "UpdateTags", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.UpdateTagsResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "UpdateTags", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// UpdateTagsPreparer prepares the UpdateTags request.
+func (client ApplicationGatewaysClient) UpdateTagsPreparer(ctx context.Context, resourceGroupName string, applicationGatewayName string, parameters TagsObject) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "applicationGatewayName": autorest.Encode("path", applicationGatewayName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/applicationGateways/{applicationGatewayName}", pathParameters),
+ autorest.WithJSON(parameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// UpdateTagsSender sends the UpdateTags request. The method will close the
+// http.Response Body if it receives an error.
+func (client ApplicationGatewaysClient) UpdateTagsSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// UpdateTagsResponder handles the response to the UpdateTags request. The method always
+// closes the http.Response Body.
+func (client ApplicationGatewaysClient) UpdateTagsResponder(resp *http.Response) (result ApplicationGateway, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
diff --git a/services/network/mgmt/2019-11-01/network/applicationsecuritygroups.go b/services/network/mgmt/2019-11-01/network/applicationsecuritygroups.go
new file mode 100644
index 000000000000..bd30614bed40
--- /dev/null
+++ b/services/network/mgmt/2019-11-01/network/applicationsecuritygroups.go
@@ -0,0 +1,580 @@
+package network
+
+// Copyright (c) Microsoft and contributors. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+ "context"
+ "github.com/Azure/go-autorest/autorest"
+ "github.com/Azure/go-autorest/autorest/azure"
+ "github.com/Azure/go-autorest/tracing"
+ "net/http"
+)
+
+// ApplicationSecurityGroupsClient is the network Client
+type ApplicationSecurityGroupsClient struct {
+ BaseClient
+}
+
+// NewApplicationSecurityGroupsClient creates an instance of the ApplicationSecurityGroupsClient client.
+func NewApplicationSecurityGroupsClient(subscriptionID string) ApplicationSecurityGroupsClient {
+ return NewApplicationSecurityGroupsClientWithBaseURI(DefaultBaseURI, subscriptionID)
+}
+
+// NewApplicationSecurityGroupsClientWithBaseURI creates an instance of the ApplicationSecurityGroupsClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
+func NewApplicationSecurityGroupsClientWithBaseURI(baseURI string, subscriptionID string) ApplicationSecurityGroupsClient {
+ return ApplicationSecurityGroupsClient{NewWithBaseURI(baseURI, subscriptionID)}
+}
+
+// CreateOrUpdate creates or updates an application security group.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// applicationSecurityGroupName - the name of the application security group.
+// parameters - parameters supplied to the create or update ApplicationSecurityGroup operation.
+func (client ApplicationSecurityGroupsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, applicationSecurityGroupName string, parameters ApplicationSecurityGroup) (result ApplicationSecurityGroupsCreateOrUpdateFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ApplicationSecurityGroupsClient.CreateOrUpdate")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, applicationSecurityGroupName, parameters)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "CreateOrUpdate", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.CreateOrUpdateSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "CreateOrUpdate", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// CreateOrUpdatePreparer prepares the CreateOrUpdate request.
+func (client ApplicationSecurityGroupsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, applicationSecurityGroupName string, parameters ApplicationSecurityGroup) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "applicationSecurityGroupName": autorest.Encode("path", applicationSecurityGroupName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ parameters.Etag = nil
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPut(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationSecurityGroups/{applicationSecurityGroupName}", pathParameters),
+ autorest.WithJSON(parameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the
+// http.Response Body if it receives an error.
+func (client ApplicationSecurityGroupsClient) CreateOrUpdateSender(req *http.Request) (future ApplicationSecurityGroupsCreateOrUpdateFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always
+// closes the http.Response Body.
+func (client ApplicationSecurityGroupsClient) CreateOrUpdateResponder(resp *http.Response) (result ApplicationSecurityGroup, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// Delete deletes the specified application security group.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// applicationSecurityGroupName - the name of the application security group.
+func (client ApplicationSecurityGroupsClient) Delete(ctx context.Context, resourceGroupName string, applicationSecurityGroupName string) (result ApplicationSecurityGroupsDeleteFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ApplicationSecurityGroupsClient.Delete")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.DeletePreparer(ctx, resourceGroupName, applicationSecurityGroupName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "Delete", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.DeleteSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "Delete", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// DeletePreparer prepares the Delete request.
+func (client ApplicationSecurityGroupsClient) DeletePreparer(ctx context.Context, resourceGroupName string, applicationSecurityGroupName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "applicationSecurityGroupName": autorest.Encode("path", applicationSecurityGroupName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/applicationSecurityGroups/{applicationSecurityGroupName}", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// DeleteSender sends the Delete request. The method will close the
+// http.Response Body if it receives an error.
+func (client ApplicationSecurityGroupsClient) DeleteSender(req *http.Request) (future ApplicationSecurityGroupsDeleteFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// DeleteResponder handles the response to the Delete request. The method always
+// closes the http.Response Body.
+func (client ApplicationSecurityGroupsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent),
+ autorest.ByClosing())
+ result.Response = resp
+ return
+}
+
+// Get gets information about the specified application security group.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// applicationSecurityGroupName - the name of the application security group.
+func (client ApplicationSecurityGroupsClient) Get(ctx context.Context, resourceGroupName string, applicationSecurityGroupName string) (result ApplicationSecurityGroup, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ApplicationSecurityGroupsClient.Get")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetPreparer(ctx, resourceGroupName, applicationSecurityGroupName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "Get", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "Get", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "Get", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetPreparer prepares the Get request.
+func (client ApplicationSecurityGroupsClient) GetPreparer(ctx context.Context, resourceGroupName string, applicationSecurityGroupName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "applicationSecurityGroupName": autorest.Encode("path", applicationSecurityGroupName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/applicationSecurityGroups/{applicationSecurityGroupName}", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetSender sends the Get request. The method will close the
+// http.Response Body if it receives an error.
+func (client ApplicationSecurityGroupsClient) GetSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetResponder handles the response to the Get request. The method always
+// closes the http.Response Body.
+func (client ApplicationSecurityGroupsClient) GetResponder(resp *http.Response) (result ApplicationSecurityGroup, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// List gets all the application security groups in a resource group.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+func (client ApplicationSecurityGroupsClient) List(ctx context.Context, resourceGroupName string) (result ApplicationSecurityGroupListResultPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ApplicationSecurityGroupsClient.List")
+ defer func() {
+ sc := -1
+ if result.asglr.Response.Response != nil {
+ sc = result.asglr.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.listNextResults
+ req, err := client.ListPreparer(ctx, resourceGroupName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "List", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.asglr.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "List", resp, "Failure sending request")
+ return
+ }
+
+ result.asglr, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "List", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListPreparer prepares the List request.
+func (client ApplicationSecurityGroupsClient) ListPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/applicationSecurityGroups", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListSender sends the List request. The method will close the
+// http.Response Body if it receives an error.
+func (client ApplicationSecurityGroupsClient) ListSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListResponder handles the response to the List request. The method always
+// closes the http.Response Body.
+func (client ApplicationSecurityGroupsClient) ListResponder(resp *http.Response) (result ApplicationSecurityGroupListResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listNextResults retrieves the next set of results, if any.
+func (client ApplicationSecurityGroupsClient) listNextResults(ctx context.Context, lastResults ApplicationSecurityGroupListResult) (result ApplicationSecurityGroupListResult, err error) {
+ req, err := lastResults.applicationSecurityGroupListResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "listNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "listNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "listNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListComplete enumerates all values, automatically crossing page boundaries as required.
+func (client ApplicationSecurityGroupsClient) ListComplete(ctx context.Context, resourceGroupName string) (result ApplicationSecurityGroupListResultIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ApplicationSecurityGroupsClient.List")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.List(ctx, resourceGroupName)
+ return
+}
+
+// ListAll gets all application security groups in a subscription.
+func (client ApplicationSecurityGroupsClient) ListAll(ctx context.Context) (result ApplicationSecurityGroupListResultPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ApplicationSecurityGroupsClient.ListAll")
+ defer func() {
+ sc := -1
+ if result.asglr.Response.Response != nil {
+ sc = result.asglr.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.listAllNextResults
+ req, err := client.ListAllPreparer(ctx)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "ListAll", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListAllSender(req)
+ if err != nil {
+ result.asglr.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "ListAll", resp, "Failure sending request")
+ return
+ }
+
+ result.asglr, err = client.ListAllResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "ListAll", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListAllPreparer prepares the ListAll request.
+func (client ApplicationSecurityGroupsClient) ListAllPreparer(ctx context.Context) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationSecurityGroups", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListAllSender sends the ListAll request. The method will close the
+// http.Response Body if it receives an error.
+func (client ApplicationSecurityGroupsClient) ListAllSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListAllResponder handles the response to the ListAll request. The method always
+// closes the http.Response Body.
+func (client ApplicationSecurityGroupsClient) ListAllResponder(resp *http.Response) (result ApplicationSecurityGroupListResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listAllNextResults retrieves the next set of results, if any.
+func (client ApplicationSecurityGroupsClient) listAllNextResults(ctx context.Context, lastResults ApplicationSecurityGroupListResult) (result ApplicationSecurityGroupListResult, err error) {
+ req, err := lastResults.applicationSecurityGroupListResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "listAllNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListAllSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "listAllNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListAllResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "listAllNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListAllComplete enumerates all values, automatically crossing page boundaries as required.
+func (client ApplicationSecurityGroupsClient) ListAllComplete(ctx context.Context) (result ApplicationSecurityGroupListResultIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ApplicationSecurityGroupsClient.ListAll")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.ListAll(ctx)
+ return
+}
+
+// UpdateTags updates an application security group's tags.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// applicationSecurityGroupName - the name of the application security group.
+// parameters - parameters supplied to update application security group tags.
+func (client ApplicationSecurityGroupsClient) UpdateTags(ctx context.Context, resourceGroupName string, applicationSecurityGroupName string, parameters TagsObject) (result ApplicationSecurityGroup, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ApplicationSecurityGroupsClient.UpdateTags")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.UpdateTagsPreparer(ctx, resourceGroupName, applicationSecurityGroupName, parameters)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "UpdateTags", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.UpdateTagsSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "UpdateTags", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.UpdateTagsResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "UpdateTags", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// UpdateTagsPreparer prepares the UpdateTags request.
+func (client ApplicationSecurityGroupsClient) UpdateTagsPreparer(ctx context.Context, resourceGroupName string, applicationSecurityGroupName string, parameters TagsObject) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "applicationSecurityGroupName": autorest.Encode("path", applicationSecurityGroupName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/applicationSecurityGroups/{applicationSecurityGroupName}", pathParameters),
+ autorest.WithJSON(parameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// UpdateTagsSender sends the UpdateTags request. The method will close the
+// http.Response Body if it receives an error.
+func (client ApplicationSecurityGroupsClient) UpdateTagsSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// UpdateTagsResponder handles the response to the UpdateTags request. The method always
+// closes the http.Response Body.
+func (client ApplicationSecurityGroupsClient) UpdateTagsResponder(resp *http.Response) (result ApplicationSecurityGroup, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
diff --git a/services/network/mgmt/2019-11-01/network/availabledelegations.go b/services/network/mgmt/2019-11-01/network/availabledelegations.go
new file mode 100644
index 000000000000..21005113aec3
--- /dev/null
+++ b/services/network/mgmt/2019-11-01/network/availabledelegations.go
@@ -0,0 +1,156 @@
+package network
+
+// Copyright (c) Microsoft and contributors. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+ "context"
+ "github.com/Azure/go-autorest/autorest"
+ "github.com/Azure/go-autorest/autorest/azure"
+ "github.com/Azure/go-autorest/tracing"
+ "net/http"
+)
+
+// AvailableDelegationsClient is the network Client
+type AvailableDelegationsClient struct {
+ BaseClient
+}
+
+// NewAvailableDelegationsClient creates an instance of the AvailableDelegationsClient client.
+func NewAvailableDelegationsClient(subscriptionID string) AvailableDelegationsClient {
+ return NewAvailableDelegationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
+}
+
+// NewAvailableDelegationsClientWithBaseURI creates an instance of the AvailableDelegationsClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
+func NewAvailableDelegationsClientWithBaseURI(baseURI string, subscriptionID string) AvailableDelegationsClient {
+ return AvailableDelegationsClient{NewWithBaseURI(baseURI, subscriptionID)}
+}
+
+// List gets all of the available subnet delegations for this subscription in this region.
+// Parameters:
+// location - the location of the subnet.
+func (client AvailableDelegationsClient) List(ctx context.Context, location string) (result AvailableDelegationsResultPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/AvailableDelegationsClient.List")
+ defer func() {
+ sc := -1
+ if result.adr.Response.Response != nil {
+ sc = result.adr.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.listNextResults
+ req, err := client.ListPreparer(ctx, location)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.AvailableDelegationsClient", "List", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.adr.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.AvailableDelegationsClient", "List", resp, "Failure sending request")
+ return
+ }
+
+ result.adr, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.AvailableDelegationsClient", "List", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListPreparer prepares the List request.
+func (client AvailableDelegationsClient) ListPreparer(ctx context.Context, location string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "location": autorest.Encode("path", location),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/availableDelegations", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListSender sends the List request. The method will close the
+// http.Response Body if it receives an error.
+func (client AvailableDelegationsClient) ListSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListResponder handles the response to the List request. The method always
+// closes the http.Response Body.
+func (client AvailableDelegationsClient) ListResponder(resp *http.Response) (result AvailableDelegationsResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listNextResults retrieves the next set of results, if any.
+func (client AvailableDelegationsClient) listNextResults(ctx context.Context, lastResults AvailableDelegationsResult) (result AvailableDelegationsResult, err error) {
+ req, err := lastResults.availableDelegationsResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "network.AvailableDelegationsClient", "listNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "network.AvailableDelegationsClient", "listNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.AvailableDelegationsClient", "listNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListComplete enumerates all values, automatically crossing page boundaries as required.
+func (client AvailableDelegationsClient) ListComplete(ctx context.Context, location string) (result AvailableDelegationsResultIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/AvailableDelegationsClient.List")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.List(ctx, location)
+ return
+}
diff --git a/services/network/mgmt/2019-11-01/network/availableendpointservices.go b/services/network/mgmt/2019-11-01/network/availableendpointservices.go
new file mode 100644
index 000000000000..8c8ef0b7e14e
--- /dev/null
+++ b/services/network/mgmt/2019-11-01/network/availableendpointservices.go
@@ -0,0 +1,156 @@
+package network
+
+// Copyright (c) Microsoft and contributors. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+ "context"
+ "github.com/Azure/go-autorest/autorest"
+ "github.com/Azure/go-autorest/autorest/azure"
+ "github.com/Azure/go-autorest/tracing"
+ "net/http"
+)
+
+// AvailableEndpointServicesClient is the network Client
+type AvailableEndpointServicesClient struct {
+ BaseClient
+}
+
+// NewAvailableEndpointServicesClient creates an instance of the AvailableEndpointServicesClient client.
+func NewAvailableEndpointServicesClient(subscriptionID string) AvailableEndpointServicesClient {
+ return NewAvailableEndpointServicesClientWithBaseURI(DefaultBaseURI, subscriptionID)
+}
+
+// NewAvailableEndpointServicesClientWithBaseURI creates an instance of the AvailableEndpointServicesClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
+func NewAvailableEndpointServicesClientWithBaseURI(baseURI string, subscriptionID string) AvailableEndpointServicesClient {
+ return AvailableEndpointServicesClient{NewWithBaseURI(baseURI, subscriptionID)}
+}
+
+// List list what values of endpoint services are available for use.
+// Parameters:
+// location - the location to check available endpoint services.
+func (client AvailableEndpointServicesClient) List(ctx context.Context, location string) (result EndpointServicesListResultPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/AvailableEndpointServicesClient.List")
+ defer func() {
+ sc := -1
+ if result.eslr.Response.Response != nil {
+ sc = result.eslr.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.listNextResults
+ req, err := client.ListPreparer(ctx, location)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.AvailableEndpointServicesClient", "List", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.eslr.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.AvailableEndpointServicesClient", "List", resp, "Failure sending request")
+ return
+ }
+
+ result.eslr, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.AvailableEndpointServicesClient", "List", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListPreparer prepares the List request.
+func (client AvailableEndpointServicesClient) ListPreparer(ctx context.Context, location string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "location": autorest.Encode("path", location),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/virtualNetworkAvailableEndpointServices", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListSender sends the List request. The method will close the
+// http.Response Body if it receives an error.
+func (client AvailableEndpointServicesClient) ListSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListResponder handles the response to the List request. The method always
+// closes the http.Response Body.
+func (client AvailableEndpointServicesClient) ListResponder(resp *http.Response) (result EndpointServicesListResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listNextResults retrieves the next set of results, if any.
+func (client AvailableEndpointServicesClient) listNextResults(ctx context.Context, lastResults EndpointServicesListResult) (result EndpointServicesListResult, err error) {
+ req, err := lastResults.endpointServicesListResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "network.AvailableEndpointServicesClient", "listNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "network.AvailableEndpointServicesClient", "listNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.AvailableEndpointServicesClient", "listNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListComplete enumerates all values, automatically crossing page boundaries as required.
+func (client AvailableEndpointServicesClient) ListComplete(ctx context.Context, location string) (result EndpointServicesListResultIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/AvailableEndpointServicesClient.List")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.List(ctx, location)
+ return
+}
diff --git a/services/network/mgmt/2019-11-01/network/availableprivateendpointtypes.go b/services/network/mgmt/2019-11-01/network/availableprivateendpointtypes.go
new file mode 100644
index 000000000000..90342db31c68
--- /dev/null
+++ b/services/network/mgmt/2019-11-01/network/availableprivateendpointtypes.go
@@ -0,0 +1,272 @@
+package network
+
+// Copyright (c) Microsoft and contributors. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+ "context"
+ "github.com/Azure/go-autorest/autorest"
+ "github.com/Azure/go-autorest/autorest/azure"
+ "github.com/Azure/go-autorest/tracing"
+ "net/http"
+)
+
+// AvailablePrivateEndpointTypesClient is the network Client
+type AvailablePrivateEndpointTypesClient struct {
+ BaseClient
+}
+
+// NewAvailablePrivateEndpointTypesClient creates an instance of the AvailablePrivateEndpointTypesClient client.
+func NewAvailablePrivateEndpointTypesClient(subscriptionID string) AvailablePrivateEndpointTypesClient {
+ return NewAvailablePrivateEndpointTypesClientWithBaseURI(DefaultBaseURI, subscriptionID)
+}
+
+// NewAvailablePrivateEndpointTypesClientWithBaseURI creates an instance of the AvailablePrivateEndpointTypesClient
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
+func NewAvailablePrivateEndpointTypesClientWithBaseURI(baseURI string, subscriptionID string) AvailablePrivateEndpointTypesClient {
+ return AvailablePrivateEndpointTypesClient{NewWithBaseURI(baseURI, subscriptionID)}
+}
+
+// List returns all of the resource types that can be linked to a Private Endpoint in this subscription in this region.
+// Parameters:
+// location - the location of the domain name.
+func (client AvailablePrivateEndpointTypesClient) List(ctx context.Context, location string) (result AvailablePrivateEndpointTypesResultPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/AvailablePrivateEndpointTypesClient.List")
+ defer func() {
+ sc := -1
+ if result.apetr.Response.Response != nil {
+ sc = result.apetr.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.listNextResults
+ req, err := client.ListPreparer(ctx, location)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.AvailablePrivateEndpointTypesClient", "List", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.apetr.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.AvailablePrivateEndpointTypesClient", "List", resp, "Failure sending request")
+ return
+ }
+
+ result.apetr, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.AvailablePrivateEndpointTypesClient", "List", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListPreparer prepares the List request.
+func (client AvailablePrivateEndpointTypesClient) ListPreparer(ctx context.Context, location string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "location": autorest.Encode("path", location),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/availablePrivateEndpointTypes", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListSender sends the List request. The method will close the
+// http.Response Body if it receives an error.
+func (client AvailablePrivateEndpointTypesClient) ListSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListResponder handles the response to the List request. The method always
+// closes the http.Response Body.
+func (client AvailablePrivateEndpointTypesClient) ListResponder(resp *http.Response) (result AvailablePrivateEndpointTypesResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listNextResults retrieves the next set of results, if any.
+func (client AvailablePrivateEndpointTypesClient) listNextResults(ctx context.Context, lastResults AvailablePrivateEndpointTypesResult) (result AvailablePrivateEndpointTypesResult, err error) {
+ req, err := lastResults.availablePrivateEndpointTypesResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "network.AvailablePrivateEndpointTypesClient", "listNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "network.AvailablePrivateEndpointTypesClient", "listNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.AvailablePrivateEndpointTypesClient", "listNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListComplete enumerates all values, automatically crossing page boundaries as required.
+func (client AvailablePrivateEndpointTypesClient) ListComplete(ctx context.Context, location string) (result AvailablePrivateEndpointTypesResultIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/AvailablePrivateEndpointTypesClient.List")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.List(ctx, location)
+ return
+}
+
+// ListByResourceGroup returns all of the resource types that can be linked to a Private Endpoint in this subscription
+// in this region.
+// Parameters:
+// location - the location of the domain name.
+// resourceGroupName - the name of the resource group.
+func (client AvailablePrivateEndpointTypesClient) ListByResourceGroup(ctx context.Context, location string, resourceGroupName string) (result AvailablePrivateEndpointTypesResultPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/AvailablePrivateEndpointTypesClient.ListByResourceGroup")
+ defer func() {
+ sc := -1
+ if result.apetr.Response.Response != nil {
+ sc = result.apetr.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.listByResourceGroupNextResults
+ req, err := client.ListByResourceGroupPreparer(ctx, location, resourceGroupName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.AvailablePrivateEndpointTypesClient", "ListByResourceGroup", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListByResourceGroupSender(req)
+ if err != nil {
+ result.apetr.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.AvailablePrivateEndpointTypesClient", "ListByResourceGroup", resp, "Failure sending request")
+ return
+ }
+
+ result.apetr, err = client.ListByResourceGroupResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.AvailablePrivateEndpointTypesClient", "ListByResourceGroup", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListByResourceGroupPreparer prepares the ListByResourceGroup request.
+func (client AvailablePrivateEndpointTypesClient) ListByResourceGroupPreparer(ctx context.Context, location string, resourceGroupName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "location": autorest.Encode("path", location),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/locations/{location}/availablePrivateEndpointTypes", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the
+// http.Response Body if it receives an error.
+func (client AvailablePrivateEndpointTypesClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always
+// closes the http.Response Body.
+func (client AvailablePrivateEndpointTypesClient) ListByResourceGroupResponder(resp *http.Response) (result AvailablePrivateEndpointTypesResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listByResourceGroupNextResults retrieves the next set of results, if any.
+func (client AvailablePrivateEndpointTypesClient) listByResourceGroupNextResults(ctx context.Context, lastResults AvailablePrivateEndpointTypesResult) (result AvailablePrivateEndpointTypesResult, err error) {
+ req, err := lastResults.availablePrivateEndpointTypesResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "network.AvailablePrivateEndpointTypesClient", "listByResourceGroupNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListByResourceGroupSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "network.AvailablePrivateEndpointTypesClient", "listByResourceGroupNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListByResourceGroupResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.AvailablePrivateEndpointTypesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required.
+func (client AvailablePrivateEndpointTypesClient) ListByResourceGroupComplete(ctx context.Context, location string, resourceGroupName string) (result AvailablePrivateEndpointTypesResultIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/AvailablePrivateEndpointTypesClient.ListByResourceGroup")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.ListByResourceGroup(ctx, location, resourceGroupName)
+ return
+}
diff --git a/services/network/mgmt/2019-11-01/network/availableresourcegroupdelegations.go b/services/network/mgmt/2019-11-01/network/availableresourcegroupdelegations.go
new file mode 100644
index 000000000000..d0dfead85f41
--- /dev/null
+++ b/services/network/mgmt/2019-11-01/network/availableresourcegroupdelegations.go
@@ -0,0 +1,159 @@
+package network
+
+// Copyright (c) Microsoft and contributors. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+ "context"
+ "github.com/Azure/go-autorest/autorest"
+ "github.com/Azure/go-autorest/autorest/azure"
+ "github.com/Azure/go-autorest/tracing"
+ "net/http"
+)
+
+// AvailableResourceGroupDelegationsClient is the network Client
+type AvailableResourceGroupDelegationsClient struct {
+ BaseClient
+}
+
+// NewAvailableResourceGroupDelegationsClient creates an instance of the AvailableResourceGroupDelegationsClient
+// client.
+func NewAvailableResourceGroupDelegationsClient(subscriptionID string) AvailableResourceGroupDelegationsClient {
+ return NewAvailableResourceGroupDelegationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
+}
+
+// NewAvailableResourceGroupDelegationsClientWithBaseURI creates an instance of the
+// AvailableResourceGroupDelegationsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
+func NewAvailableResourceGroupDelegationsClientWithBaseURI(baseURI string, subscriptionID string) AvailableResourceGroupDelegationsClient {
+ return AvailableResourceGroupDelegationsClient{NewWithBaseURI(baseURI, subscriptionID)}
+}
+
+// List gets all of the available subnet delegations for this resource group in this region.
+// Parameters:
+// location - the location of the domain name.
+// resourceGroupName - the name of the resource group.
+func (client AvailableResourceGroupDelegationsClient) List(ctx context.Context, location string, resourceGroupName string) (result AvailableDelegationsResultPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/AvailableResourceGroupDelegationsClient.List")
+ defer func() {
+ sc := -1
+ if result.adr.Response.Response != nil {
+ sc = result.adr.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.listNextResults
+ req, err := client.ListPreparer(ctx, location, resourceGroupName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.AvailableResourceGroupDelegationsClient", "List", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.adr.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.AvailableResourceGroupDelegationsClient", "List", resp, "Failure sending request")
+ return
+ }
+
+ result.adr, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.AvailableResourceGroupDelegationsClient", "List", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListPreparer prepares the List request.
+func (client AvailableResourceGroupDelegationsClient) ListPreparer(ctx context.Context, location string, resourceGroupName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "location": autorest.Encode("path", location),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/locations/{location}/availableDelegations", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListSender sends the List request. The method will close the
+// http.Response Body if it receives an error.
+func (client AvailableResourceGroupDelegationsClient) ListSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListResponder handles the response to the List request. The method always
+// closes the http.Response Body.
+func (client AvailableResourceGroupDelegationsClient) ListResponder(resp *http.Response) (result AvailableDelegationsResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listNextResults retrieves the next set of results, if any.
+func (client AvailableResourceGroupDelegationsClient) listNextResults(ctx context.Context, lastResults AvailableDelegationsResult) (result AvailableDelegationsResult, err error) {
+ req, err := lastResults.availableDelegationsResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "network.AvailableResourceGroupDelegationsClient", "listNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "network.AvailableResourceGroupDelegationsClient", "listNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.AvailableResourceGroupDelegationsClient", "listNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListComplete enumerates all values, automatically crossing page boundaries as required.
+func (client AvailableResourceGroupDelegationsClient) ListComplete(ctx context.Context, location string, resourceGroupName string) (result AvailableDelegationsResultIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/AvailableResourceGroupDelegationsClient.List")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.List(ctx, location, resourceGroupName)
+ return
+}
diff --git a/services/network/mgmt/2019-11-01/network/availableservicealiases.go b/services/network/mgmt/2019-11-01/network/availableservicealiases.go
new file mode 100644
index 000000000000..f18afd512034
--- /dev/null
+++ b/services/network/mgmt/2019-11-01/network/availableservicealiases.go
@@ -0,0 +1,271 @@
+package network
+
+// Copyright (c) Microsoft and contributors. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+ "context"
+ "github.com/Azure/go-autorest/autorest"
+ "github.com/Azure/go-autorest/autorest/azure"
+ "github.com/Azure/go-autorest/tracing"
+ "net/http"
+)
+
+// AvailableServiceAliasesClient is the network Client
+type AvailableServiceAliasesClient struct {
+ BaseClient
+}
+
+// NewAvailableServiceAliasesClient creates an instance of the AvailableServiceAliasesClient client.
+func NewAvailableServiceAliasesClient(subscriptionID string) AvailableServiceAliasesClient {
+ return NewAvailableServiceAliasesClientWithBaseURI(DefaultBaseURI, subscriptionID)
+}
+
+// NewAvailableServiceAliasesClientWithBaseURI creates an instance of the AvailableServiceAliasesClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
+func NewAvailableServiceAliasesClientWithBaseURI(baseURI string, subscriptionID string) AvailableServiceAliasesClient {
+ return AvailableServiceAliasesClient{NewWithBaseURI(baseURI, subscriptionID)}
+}
+
+// List gets all available service aliases for this subscription in this region.
+// Parameters:
+// location - the location.
+func (client AvailableServiceAliasesClient) List(ctx context.Context, location string) (result AvailableServiceAliasesResultPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/AvailableServiceAliasesClient.List")
+ defer func() {
+ sc := -1
+ if result.asar.Response.Response != nil {
+ sc = result.asar.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.listNextResults
+ req, err := client.ListPreparer(ctx, location)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.AvailableServiceAliasesClient", "List", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.asar.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.AvailableServiceAliasesClient", "List", resp, "Failure sending request")
+ return
+ }
+
+ result.asar, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.AvailableServiceAliasesClient", "List", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListPreparer prepares the List request.
+func (client AvailableServiceAliasesClient) ListPreparer(ctx context.Context, location string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "location": autorest.Encode("path", location),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/availableServiceAliases", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListSender sends the List request. The method will close the
+// http.Response Body if it receives an error.
+func (client AvailableServiceAliasesClient) ListSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListResponder handles the response to the List request. The method always
+// closes the http.Response Body.
+func (client AvailableServiceAliasesClient) ListResponder(resp *http.Response) (result AvailableServiceAliasesResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listNextResults retrieves the next set of results, if any.
+func (client AvailableServiceAliasesClient) listNextResults(ctx context.Context, lastResults AvailableServiceAliasesResult) (result AvailableServiceAliasesResult, err error) {
+ req, err := lastResults.availableServiceAliasesResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "network.AvailableServiceAliasesClient", "listNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "network.AvailableServiceAliasesClient", "listNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.AvailableServiceAliasesClient", "listNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListComplete enumerates all values, automatically crossing page boundaries as required.
+func (client AvailableServiceAliasesClient) ListComplete(ctx context.Context, location string) (result AvailableServiceAliasesResultIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/AvailableServiceAliasesClient.List")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.List(ctx, location)
+ return
+}
+
+// ListByResourceGroup gets all available service aliases for this resource group in this region.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// location - the location.
+func (client AvailableServiceAliasesClient) ListByResourceGroup(ctx context.Context, resourceGroupName string, location string) (result AvailableServiceAliasesResultPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/AvailableServiceAliasesClient.ListByResourceGroup")
+ defer func() {
+ sc := -1
+ if result.asar.Response.Response != nil {
+ sc = result.asar.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.listByResourceGroupNextResults
+ req, err := client.ListByResourceGroupPreparer(ctx, resourceGroupName, location)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.AvailableServiceAliasesClient", "ListByResourceGroup", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListByResourceGroupSender(req)
+ if err != nil {
+ result.asar.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.AvailableServiceAliasesClient", "ListByResourceGroup", resp, "Failure sending request")
+ return
+ }
+
+ result.asar, err = client.ListByResourceGroupResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.AvailableServiceAliasesClient", "ListByResourceGroup", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListByResourceGroupPreparer prepares the ListByResourceGroup request.
+func (client AvailableServiceAliasesClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string, location string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "location": autorest.Encode("path", location),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/locations/{location}/availableServiceAliases", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the
+// http.Response Body if it receives an error.
+func (client AvailableServiceAliasesClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always
+// closes the http.Response Body.
+func (client AvailableServiceAliasesClient) ListByResourceGroupResponder(resp *http.Response) (result AvailableServiceAliasesResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listByResourceGroupNextResults retrieves the next set of results, if any.
+func (client AvailableServiceAliasesClient) listByResourceGroupNextResults(ctx context.Context, lastResults AvailableServiceAliasesResult) (result AvailableServiceAliasesResult, err error) {
+ req, err := lastResults.availableServiceAliasesResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "network.AvailableServiceAliasesClient", "listByResourceGroupNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListByResourceGroupSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "network.AvailableServiceAliasesClient", "listByResourceGroupNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListByResourceGroupResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.AvailableServiceAliasesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required.
+func (client AvailableServiceAliasesClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string, location string) (result AvailableServiceAliasesResultIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/AvailableServiceAliasesClient.ListByResourceGroup")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.ListByResourceGroup(ctx, resourceGroupName, location)
+ return
+}
diff --git a/services/network/mgmt/2019-11-01/network/azurefirewallfqdntags.go b/services/network/mgmt/2019-11-01/network/azurefirewallfqdntags.go
new file mode 100644
index 000000000000..f4a6631ecd2e
--- /dev/null
+++ b/services/network/mgmt/2019-11-01/network/azurefirewallfqdntags.go
@@ -0,0 +1,153 @@
+package network
+
+// Copyright (c) Microsoft and contributors. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+ "context"
+ "github.com/Azure/go-autorest/autorest"
+ "github.com/Azure/go-autorest/autorest/azure"
+ "github.com/Azure/go-autorest/tracing"
+ "net/http"
+)
+
+// AzureFirewallFqdnTagsClient is the network Client
+type AzureFirewallFqdnTagsClient struct {
+ BaseClient
+}
+
+// NewAzureFirewallFqdnTagsClient creates an instance of the AzureFirewallFqdnTagsClient client.
+func NewAzureFirewallFqdnTagsClient(subscriptionID string) AzureFirewallFqdnTagsClient {
+ return NewAzureFirewallFqdnTagsClientWithBaseURI(DefaultBaseURI, subscriptionID)
+}
+
+// NewAzureFirewallFqdnTagsClientWithBaseURI creates an instance of the AzureFirewallFqdnTagsClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
+func NewAzureFirewallFqdnTagsClientWithBaseURI(baseURI string, subscriptionID string) AzureFirewallFqdnTagsClient {
+ return AzureFirewallFqdnTagsClient{NewWithBaseURI(baseURI, subscriptionID)}
+}
+
+// ListAll gets all the Azure Firewall FQDN Tags in a subscription.
+func (client AzureFirewallFqdnTagsClient) ListAll(ctx context.Context) (result AzureFirewallFqdnTagListResultPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/AzureFirewallFqdnTagsClient.ListAll")
+ defer func() {
+ sc := -1
+ if result.afftlr.Response.Response != nil {
+ sc = result.afftlr.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.listAllNextResults
+ req, err := client.ListAllPreparer(ctx)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.AzureFirewallFqdnTagsClient", "ListAll", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListAllSender(req)
+ if err != nil {
+ result.afftlr.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.AzureFirewallFqdnTagsClient", "ListAll", resp, "Failure sending request")
+ return
+ }
+
+ result.afftlr, err = client.ListAllResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.AzureFirewallFqdnTagsClient", "ListAll", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListAllPreparer prepares the ListAll request.
+func (client AzureFirewallFqdnTagsClient) ListAllPreparer(ctx context.Context) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/azureFirewallFqdnTags", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListAllSender sends the ListAll request. The method will close the
+// http.Response Body if it receives an error.
+func (client AzureFirewallFqdnTagsClient) ListAllSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListAllResponder handles the response to the ListAll request. The method always
+// closes the http.Response Body.
+func (client AzureFirewallFqdnTagsClient) ListAllResponder(resp *http.Response) (result AzureFirewallFqdnTagListResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listAllNextResults retrieves the next set of results, if any.
+func (client AzureFirewallFqdnTagsClient) listAllNextResults(ctx context.Context, lastResults AzureFirewallFqdnTagListResult) (result AzureFirewallFqdnTagListResult, err error) {
+ req, err := lastResults.azureFirewallFqdnTagListResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "network.AzureFirewallFqdnTagsClient", "listAllNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListAllSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "network.AzureFirewallFqdnTagsClient", "listAllNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListAllResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.AzureFirewallFqdnTagsClient", "listAllNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListAllComplete enumerates all values, automatically crossing page boundaries as required.
+func (client AzureFirewallFqdnTagsClient) ListAllComplete(ctx context.Context) (result AzureFirewallFqdnTagListResultIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/AzureFirewallFqdnTagsClient.ListAll")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.ListAll(ctx)
+ return
+}
diff --git a/services/network/mgmt/2019-11-01/network/azurefirewalls.go b/services/network/mgmt/2019-11-01/network/azurefirewalls.go
new file mode 100644
index 000000000000..87b97f7dd8bf
--- /dev/null
+++ b/services/network/mgmt/2019-11-01/network/azurefirewalls.go
@@ -0,0 +1,579 @@
+package network
+
+// Copyright (c) Microsoft and contributors. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+ "context"
+ "github.com/Azure/go-autorest/autorest"
+ "github.com/Azure/go-autorest/autorest/azure"
+ "github.com/Azure/go-autorest/tracing"
+ "net/http"
+)
+
+// AzureFirewallsClient is the network Client
+type AzureFirewallsClient struct {
+ BaseClient
+}
+
+// NewAzureFirewallsClient creates an instance of the AzureFirewallsClient client.
+func NewAzureFirewallsClient(subscriptionID string) AzureFirewallsClient {
+ return NewAzureFirewallsClientWithBaseURI(DefaultBaseURI, subscriptionID)
+}
+
+// NewAzureFirewallsClientWithBaseURI creates an instance of the AzureFirewallsClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
+func NewAzureFirewallsClientWithBaseURI(baseURI string, subscriptionID string) AzureFirewallsClient {
+ return AzureFirewallsClient{NewWithBaseURI(baseURI, subscriptionID)}
+}
+
+// CreateOrUpdate creates or updates the specified Azure Firewall.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// azureFirewallName - the name of the Azure Firewall.
+// parameters - parameters supplied to the create or update Azure Firewall operation.
+func (client AzureFirewallsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, azureFirewallName string, parameters AzureFirewall) (result AzureFirewallsCreateOrUpdateFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/AzureFirewallsClient.CreateOrUpdate")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, azureFirewallName, parameters)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "CreateOrUpdate", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.CreateOrUpdateSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "CreateOrUpdate", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// CreateOrUpdatePreparer prepares the CreateOrUpdate request.
+func (client AzureFirewallsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, azureFirewallName string, parameters AzureFirewall) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "azureFirewallName": autorest.Encode("path", azureFirewallName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ parameters.Etag = nil
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPut(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/azureFirewalls/{azureFirewallName}", pathParameters),
+ autorest.WithJSON(parameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the
+// http.Response Body if it receives an error.
+func (client AzureFirewallsClient) CreateOrUpdateSender(req *http.Request) (future AzureFirewallsCreateOrUpdateFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always
+// closes the http.Response Body.
+func (client AzureFirewallsClient) CreateOrUpdateResponder(resp *http.Response) (result AzureFirewall, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// Delete deletes the specified Azure Firewall.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// azureFirewallName - the name of the Azure Firewall.
+func (client AzureFirewallsClient) Delete(ctx context.Context, resourceGroupName string, azureFirewallName string) (result AzureFirewallsDeleteFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/AzureFirewallsClient.Delete")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.DeletePreparer(ctx, resourceGroupName, azureFirewallName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "Delete", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.DeleteSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "Delete", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// DeletePreparer prepares the Delete request.
+func (client AzureFirewallsClient) DeletePreparer(ctx context.Context, resourceGroupName string, azureFirewallName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "azureFirewallName": autorest.Encode("path", azureFirewallName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/azureFirewalls/{azureFirewallName}", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// DeleteSender sends the Delete request. The method will close the
+// http.Response Body if it receives an error.
+func (client AzureFirewallsClient) DeleteSender(req *http.Request) (future AzureFirewallsDeleteFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// DeleteResponder handles the response to the Delete request. The method always
+// closes the http.Response Body.
+func (client AzureFirewallsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent),
+ autorest.ByClosing())
+ result.Response = resp
+ return
+}
+
+// Get gets the specified Azure Firewall.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// azureFirewallName - the name of the Azure Firewall.
+func (client AzureFirewallsClient) Get(ctx context.Context, resourceGroupName string, azureFirewallName string) (result AzureFirewall, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/AzureFirewallsClient.Get")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetPreparer(ctx, resourceGroupName, azureFirewallName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "Get", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "Get", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "Get", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetPreparer prepares the Get request.
+func (client AzureFirewallsClient) GetPreparer(ctx context.Context, resourceGroupName string, azureFirewallName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "azureFirewallName": autorest.Encode("path", azureFirewallName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/azureFirewalls/{azureFirewallName}", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetSender sends the Get request. The method will close the
+// http.Response Body if it receives an error.
+func (client AzureFirewallsClient) GetSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetResponder handles the response to the Get request. The method always
+// closes the http.Response Body.
+func (client AzureFirewallsClient) GetResponder(resp *http.Response) (result AzureFirewall, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// List lists all Azure Firewalls in a resource group.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+func (client AzureFirewallsClient) List(ctx context.Context, resourceGroupName string) (result AzureFirewallListResultPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/AzureFirewallsClient.List")
+ defer func() {
+ sc := -1
+ if result.aflr.Response.Response != nil {
+ sc = result.aflr.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.listNextResults
+ req, err := client.ListPreparer(ctx, resourceGroupName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "List", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.aflr.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "List", resp, "Failure sending request")
+ return
+ }
+
+ result.aflr, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "List", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListPreparer prepares the List request.
+func (client AzureFirewallsClient) ListPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/azureFirewalls", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListSender sends the List request. The method will close the
+// http.Response Body if it receives an error.
+func (client AzureFirewallsClient) ListSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListResponder handles the response to the List request. The method always
+// closes the http.Response Body.
+func (client AzureFirewallsClient) ListResponder(resp *http.Response) (result AzureFirewallListResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listNextResults retrieves the next set of results, if any.
+func (client AzureFirewallsClient) listNextResults(ctx context.Context, lastResults AzureFirewallListResult) (result AzureFirewallListResult, err error) {
+ req, err := lastResults.azureFirewallListResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "listNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "listNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "listNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListComplete enumerates all values, automatically crossing page boundaries as required.
+func (client AzureFirewallsClient) ListComplete(ctx context.Context, resourceGroupName string) (result AzureFirewallListResultIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/AzureFirewallsClient.List")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.List(ctx, resourceGroupName)
+ return
+}
+
+// ListAll gets all the Azure Firewalls in a subscription.
+func (client AzureFirewallsClient) ListAll(ctx context.Context) (result AzureFirewallListResultPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/AzureFirewallsClient.ListAll")
+ defer func() {
+ sc := -1
+ if result.aflr.Response.Response != nil {
+ sc = result.aflr.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.listAllNextResults
+ req, err := client.ListAllPreparer(ctx)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "ListAll", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListAllSender(req)
+ if err != nil {
+ result.aflr.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "ListAll", resp, "Failure sending request")
+ return
+ }
+
+ result.aflr, err = client.ListAllResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "ListAll", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListAllPreparer prepares the ListAll request.
+func (client AzureFirewallsClient) ListAllPreparer(ctx context.Context) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/azureFirewalls", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListAllSender sends the ListAll request. The method will close the
+// http.Response Body if it receives an error.
+func (client AzureFirewallsClient) ListAllSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListAllResponder handles the response to the ListAll request. The method always
+// closes the http.Response Body.
+func (client AzureFirewallsClient) ListAllResponder(resp *http.Response) (result AzureFirewallListResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listAllNextResults retrieves the next set of results, if any.
+func (client AzureFirewallsClient) listAllNextResults(ctx context.Context, lastResults AzureFirewallListResult) (result AzureFirewallListResult, err error) {
+ req, err := lastResults.azureFirewallListResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "listAllNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListAllSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "listAllNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListAllResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "listAllNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListAllComplete enumerates all values, automatically crossing page boundaries as required.
+func (client AzureFirewallsClient) ListAllComplete(ctx context.Context) (result AzureFirewallListResultIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/AzureFirewallsClient.ListAll")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.ListAll(ctx)
+ return
+}
+
+// UpdateTags updates tags of an Azure Firewall resource.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// azureFirewallName - the name of the Azure Firewall.
+// parameters - parameters supplied to update azure firewall tags.
+func (client AzureFirewallsClient) UpdateTags(ctx context.Context, resourceGroupName string, azureFirewallName string, parameters TagsObject) (result AzureFirewall, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/AzureFirewallsClient.UpdateTags")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.UpdateTagsPreparer(ctx, resourceGroupName, azureFirewallName, parameters)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "UpdateTags", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.UpdateTagsSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "UpdateTags", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.UpdateTagsResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "UpdateTags", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// UpdateTagsPreparer prepares the UpdateTags request.
+func (client AzureFirewallsClient) UpdateTagsPreparer(ctx context.Context, resourceGroupName string, azureFirewallName string, parameters TagsObject) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "azureFirewallName": autorest.Encode("path", azureFirewallName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/azureFirewalls/{azureFirewallName}", pathParameters),
+ autorest.WithJSON(parameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// UpdateTagsSender sends the UpdateTags request. The method will close the
+// http.Response Body if it receives an error.
+func (client AzureFirewallsClient) UpdateTagsSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// UpdateTagsResponder handles the response to the UpdateTags request. The method always
+// closes the http.Response Body.
+func (client AzureFirewallsClient) UpdateTagsResponder(resp *http.Response) (result AzureFirewall, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
diff --git a/services/network/mgmt/2019-11-01/network/bastionhosts.go b/services/network/mgmt/2019-11-01/network/bastionhosts.go
new file mode 100644
index 000000000000..1440fd642446
--- /dev/null
+++ b/services/network/mgmt/2019-11-01/network/bastionhosts.go
@@ -0,0 +1,499 @@
+package network
+
+// Copyright (c) Microsoft and contributors. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+ "context"
+ "github.com/Azure/go-autorest/autorest"
+ "github.com/Azure/go-autorest/autorest/azure"
+ "github.com/Azure/go-autorest/tracing"
+ "net/http"
+)
+
+// BastionHostsClient is the network Client
+type BastionHostsClient struct {
+ BaseClient
+}
+
+// NewBastionHostsClient creates an instance of the BastionHostsClient client.
+func NewBastionHostsClient(subscriptionID string) BastionHostsClient {
+ return NewBastionHostsClientWithBaseURI(DefaultBaseURI, subscriptionID)
+}
+
+// NewBastionHostsClientWithBaseURI creates an instance of the BastionHostsClient client using a custom endpoint. Use
+// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
+func NewBastionHostsClientWithBaseURI(baseURI string, subscriptionID string) BastionHostsClient {
+ return BastionHostsClient{NewWithBaseURI(baseURI, subscriptionID)}
+}
+
+// CreateOrUpdate creates or updates the specified Bastion Host.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// bastionHostName - the name of the Bastion Host.
+// parameters - parameters supplied to the create or update Bastion Host operation.
+func (client BastionHostsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, bastionHostName string, parameters BastionHost) (result BastionHostsCreateOrUpdateFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/BastionHostsClient.CreateOrUpdate")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, bastionHostName, parameters)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.BastionHostsClient", "CreateOrUpdate", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.CreateOrUpdateSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.BastionHostsClient", "CreateOrUpdate", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// CreateOrUpdatePreparer prepares the CreateOrUpdate request.
+func (client BastionHostsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, bastionHostName string, parameters BastionHost) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "bastionHostName": autorest.Encode("path", bastionHostName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ parameters.Etag = nil
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPut(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/bastionHosts/{bastionHostName}", pathParameters),
+ autorest.WithJSON(parameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the
+// http.Response Body if it receives an error.
+func (client BastionHostsClient) CreateOrUpdateSender(req *http.Request) (future BastionHostsCreateOrUpdateFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always
+// closes the http.Response Body.
+func (client BastionHostsClient) CreateOrUpdateResponder(resp *http.Response) (result BastionHost, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// Delete deletes the specified Bastion Host.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// bastionHostName - the name of the Bastion Host.
+func (client BastionHostsClient) Delete(ctx context.Context, resourceGroupName string, bastionHostName string) (result BastionHostsDeleteFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/BastionHostsClient.Delete")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.DeletePreparer(ctx, resourceGroupName, bastionHostName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.BastionHostsClient", "Delete", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.DeleteSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.BastionHostsClient", "Delete", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// DeletePreparer prepares the Delete request.
+func (client BastionHostsClient) DeletePreparer(ctx context.Context, resourceGroupName string, bastionHostName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "bastionHostName": autorest.Encode("path", bastionHostName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/bastionHosts/{bastionHostName}", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// DeleteSender sends the Delete request. The method will close the
+// http.Response Body if it receives an error.
+func (client BastionHostsClient) DeleteSender(req *http.Request) (future BastionHostsDeleteFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// DeleteResponder handles the response to the Delete request. The method always
+// closes the http.Response Body.
+func (client BastionHostsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent),
+ autorest.ByClosing())
+ result.Response = resp
+ return
+}
+
+// Get gets the specified Bastion Host.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// bastionHostName - the name of the Bastion Host.
+func (client BastionHostsClient) Get(ctx context.Context, resourceGroupName string, bastionHostName string) (result BastionHost, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/BastionHostsClient.Get")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetPreparer(ctx, resourceGroupName, bastionHostName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.BastionHostsClient", "Get", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.BastionHostsClient", "Get", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.BastionHostsClient", "Get", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetPreparer prepares the Get request.
+func (client BastionHostsClient) GetPreparer(ctx context.Context, resourceGroupName string, bastionHostName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "bastionHostName": autorest.Encode("path", bastionHostName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/bastionHosts/{bastionHostName}", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetSender sends the Get request. The method will close the
+// http.Response Body if it receives an error.
+func (client BastionHostsClient) GetSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetResponder handles the response to the Get request. The method always
+// closes the http.Response Body.
+func (client BastionHostsClient) GetResponder(resp *http.Response) (result BastionHost, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// List lists all Bastion Hosts in a subscription.
+func (client BastionHostsClient) List(ctx context.Context) (result BastionHostListResultPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/BastionHostsClient.List")
+ defer func() {
+ sc := -1
+ if result.bhlr.Response.Response != nil {
+ sc = result.bhlr.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.listNextResults
+ req, err := client.ListPreparer(ctx)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.BastionHostsClient", "List", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.bhlr.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.BastionHostsClient", "List", resp, "Failure sending request")
+ return
+ }
+
+ result.bhlr, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.BastionHostsClient", "List", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListPreparer prepares the List request.
+func (client BastionHostsClient) ListPreparer(ctx context.Context) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/bastionHosts", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListSender sends the List request. The method will close the
+// http.Response Body if it receives an error.
+func (client BastionHostsClient) ListSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListResponder handles the response to the List request. The method always
+// closes the http.Response Body.
+func (client BastionHostsClient) ListResponder(resp *http.Response) (result BastionHostListResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listNextResults retrieves the next set of results, if any.
+func (client BastionHostsClient) listNextResults(ctx context.Context, lastResults BastionHostListResult) (result BastionHostListResult, err error) {
+ req, err := lastResults.bastionHostListResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "network.BastionHostsClient", "listNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "network.BastionHostsClient", "listNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.BastionHostsClient", "listNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListComplete enumerates all values, automatically crossing page boundaries as required.
+func (client BastionHostsClient) ListComplete(ctx context.Context) (result BastionHostListResultIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/BastionHostsClient.List")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.List(ctx)
+ return
+}
+
+// ListByResourceGroup lists all Bastion Hosts in a resource group.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+func (client BastionHostsClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result BastionHostListResultPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/BastionHostsClient.ListByResourceGroup")
+ defer func() {
+ sc := -1
+ if result.bhlr.Response.Response != nil {
+ sc = result.bhlr.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.listByResourceGroupNextResults
+ req, err := client.ListByResourceGroupPreparer(ctx, resourceGroupName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.BastionHostsClient", "ListByResourceGroup", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListByResourceGroupSender(req)
+ if err != nil {
+ result.bhlr.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.BastionHostsClient", "ListByResourceGroup", resp, "Failure sending request")
+ return
+ }
+
+ result.bhlr, err = client.ListByResourceGroupResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.BastionHostsClient", "ListByResourceGroup", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListByResourceGroupPreparer prepares the ListByResourceGroup request.
+func (client BastionHostsClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/bastionHosts", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the
+// http.Response Body if it receives an error.
+func (client BastionHostsClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always
+// closes the http.Response Body.
+func (client BastionHostsClient) ListByResourceGroupResponder(resp *http.Response) (result BastionHostListResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listByResourceGroupNextResults retrieves the next set of results, if any.
+func (client BastionHostsClient) listByResourceGroupNextResults(ctx context.Context, lastResults BastionHostListResult) (result BastionHostListResult, err error) {
+ req, err := lastResults.bastionHostListResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "network.BastionHostsClient", "listByResourceGroupNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListByResourceGroupSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "network.BastionHostsClient", "listByResourceGroupNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListByResourceGroupResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.BastionHostsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required.
+func (client BastionHostsClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result BastionHostListResultIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/BastionHostsClient.ListByResourceGroup")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.ListByResourceGroup(ctx, resourceGroupName)
+ return
+}
diff --git a/services/network/mgmt/2019-11-01/network/bgpservicecommunities.go b/services/network/mgmt/2019-11-01/network/bgpservicecommunities.go
new file mode 100644
index 000000000000..21bbe8023313
--- /dev/null
+++ b/services/network/mgmt/2019-11-01/network/bgpservicecommunities.go
@@ -0,0 +1,153 @@
+package network
+
+// Copyright (c) Microsoft and contributors. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+ "context"
+ "github.com/Azure/go-autorest/autorest"
+ "github.com/Azure/go-autorest/autorest/azure"
+ "github.com/Azure/go-autorest/tracing"
+ "net/http"
+)
+
+// BgpServiceCommunitiesClient is the network Client
+type BgpServiceCommunitiesClient struct {
+ BaseClient
+}
+
+// NewBgpServiceCommunitiesClient creates an instance of the BgpServiceCommunitiesClient client.
+func NewBgpServiceCommunitiesClient(subscriptionID string) BgpServiceCommunitiesClient {
+ return NewBgpServiceCommunitiesClientWithBaseURI(DefaultBaseURI, subscriptionID)
+}
+
+// NewBgpServiceCommunitiesClientWithBaseURI creates an instance of the BgpServiceCommunitiesClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
+func NewBgpServiceCommunitiesClientWithBaseURI(baseURI string, subscriptionID string) BgpServiceCommunitiesClient {
+ return BgpServiceCommunitiesClient{NewWithBaseURI(baseURI, subscriptionID)}
+}
+
+// List gets all the available bgp service communities.
+func (client BgpServiceCommunitiesClient) List(ctx context.Context) (result BgpServiceCommunityListResultPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/BgpServiceCommunitiesClient.List")
+ defer func() {
+ sc := -1
+ if result.bsclr.Response.Response != nil {
+ sc = result.bsclr.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.listNextResults
+ req, err := client.ListPreparer(ctx)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.BgpServiceCommunitiesClient", "List", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.bsclr.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.BgpServiceCommunitiesClient", "List", resp, "Failure sending request")
+ return
+ }
+
+ result.bsclr, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.BgpServiceCommunitiesClient", "List", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListPreparer prepares the List request.
+func (client BgpServiceCommunitiesClient) ListPreparer(ctx context.Context) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/bgpServiceCommunities", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListSender sends the List request. The method will close the
+// http.Response Body if it receives an error.
+func (client BgpServiceCommunitiesClient) ListSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListResponder handles the response to the List request. The method always
+// closes the http.Response Body.
+func (client BgpServiceCommunitiesClient) ListResponder(resp *http.Response) (result BgpServiceCommunityListResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listNextResults retrieves the next set of results, if any.
+func (client BgpServiceCommunitiesClient) listNextResults(ctx context.Context, lastResults BgpServiceCommunityListResult) (result BgpServiceCommunityListResult, err error) {
+ req, err := lastResults.bgpServiceCommunityListResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "network.BgpServiceCommunitiesClient", "listNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "network.BgpServiceCommunitiesClient", "listNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.BgpServiceCommunitiesClient", "listNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListComplete enumerates all values, automatically crossing page boundaries as required.
+func (client BgpServiceCommunitiesClient) ListComplete(ctx context.Context) (result BgpServiceCommunityListResultIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/BgpServiceCommunitiesClient.List")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.List(ctx)
+ return
+}
diff --git a/services/network/mgmt/2019-11-01/network/client.go b/services/network/mgmt/2019-11-01/network/client.go
new file mode 100644
index 000000000000..7a95b7264bbf
--- /dev/null
+++ b/services/network/mgmt/2019-11-01/network/client.go
@@ -0,0 +1,848 @@
+// Package network implements the Azure ARM Network service API version .
+//
+// Network Client
+package network
+
+// Copyright (c) Microsoft and contributors. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+ "context"
+ "github.com/Azure/go-autorest/autorest"
+ "github.com/Azure/go-autorest/autorest/azure"
+ "github.com/Azure/go-autorest/tracing"
+ "net/http"
+)
+
+const (
+ // DefaultBaseURI is the default URI used for the service Network
+ DefaultBaseURI = "https://management.azure.com"
+)
+
+// BaseClient is the base client for Network.
+type BaseClient struct {
+ autorest.Client
+ BaseURI string
+ SubscriptionID string
+}
+
+// New creates an instance of the BaseClient client.
+func New(subscriptionID string) BaseClient {
+ return NewWithBaseURI(DefaultBaseURI, subscriptionID)
+}
+
+// NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with
+// an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
+func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient {
+ return BaseClient{
+ Client: autorest.NewClientWithUserAgent(UserAgent()),
+ BaseURI: baseURI,
+ SubscriptionID: subscriptionID,
+ }
+}
+
+// CheckDNSNameAvailability checks whether a domain name in the cloudapp.azure.com zone is available for use.
+// Parameters:
+// location - the location of the domain name.
+// domainNameLabel - the domain name to be verified. It must conform to the following regular expression:
+// ^[a-z][a-z0-9-]{1,61}[a-z0-9]$.
+func (client BaseClient) CheckDNSNameAvailability(ctx context.Context, location string, domainNameLabel string) (result DNSNameAvailabilityResult, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/BaseClient.CheckDNSNameAvailability")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.CheckDNSNameAvailabilityPreparer(ctx, location, domainNameLabel)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.BaseClient", "CheckDNSNameAvailability", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.CheckDNSNameAvailabilitySender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.BaseClient", "CheckDNSNameAvailability", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.CheckDNSNameAvailabilityResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.BaseClient", "CheckDNSNameAvailability", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// CheckDNSNameAvailabilityPreparer prepares the CheckDNSNameAvailability request.
+func (client BaseClient) CheckDNSNameAvailabilityPreparer(ctx context.Context, location string, domainNameLabel string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "location": autorest.Encode("path", location),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ "domainNameLabel": autorest.Encode("query", domainNameLabel),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/CheckDnsNameAvailability", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// CheckDNSNameAvailabilitySender sends the CheckDNSNameAvailability request. The method will close the
+// http.Response Body if it receives an error.
+func (client BaseClient) CheckDNSNameAvailabilitySender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// CheckDNSNameAvailabilityResponder handles the response to the CheckDNSNameAvailability request. The method always
+// closes the http.Response Body.
+func (client BaseClient) CheckDNSNameAvailabilityResponder(resp *http.Response) (result DNSNameAvailabilityResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// DeleteBastionShareableLink deletes the Bastion Shareable Links for all the VMs specified in the request.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// bastionHostName - the name of the Bastion Host.
+// bslRequest - post request for all the Bastion Shareable Link endpoints.
+func (client BaseClient) DeleteBastionShareableLink(ctx context.Context, resourceGroupName string, bastionHostName string, bslRequest BastionShareableLinkListRequest) (result DeleteBastionShareableLinkFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/BaseClient.DeleteBastionShareableLink")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.DeleteBastionShareableLinkPreparer(ctx, resourceGroupName, bastionHostName, bslRequest)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.BaseClient", "DeleteBastionShareableLink", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.DeleteBastionShareableLinkSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.BaseClient", "DeleteBastionShareableLink", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// DeleteBastionShareableLinkPreparer prepares the DeleteBastionShareableLink request.
+func (client BaseClient) DeleteBastionShareableLinkPreparer(ctx context.Context, resourceGroupName string, bastionHostName string, bslRequest BastionShareableLinkListRequest) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "bastionHostName": autorest.Encode("path", bastionHostName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPost(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/bastionHosts/{bastionHostName}/deleteShareableLinks", pathParameters),
+ autorest.WithJSON(bslRequest),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// DeleteBastionShareableLinkSender sends the DeleteBastionShareableLink request. The method will close the
+// http.Response Body if it receives an error.
+func (client BaseClient) DeleteBastionShareableLinkSender(req *http.Request) (future DeleteBastionShareableLinkFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// DeleteBastionShareableLinkResponder handles the response to the DeleteBastionShareableLink request. The method always
+// closes the http.Response Body.
+func (client BaseClient) DeleteBastionShareableLinkResponder(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
+}
+
+// DisconnectActiveSessions returns the list of currently active sessions on the Bastion.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// bastionHostName - the name of the Bastion Host.
+// sessionIds - the list of sessionids to disconnect.
+func (client BaseClient) DisconnectActiveSessions(ctx context.Context, resourceGroupName string, bastionHostName string, sessionIds SessionIds) (result BastionSessionDeleteResultPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/BaseClient.DisconnectActiveSessions")
+ defer func() {
+ sc := -1
+ if result.bsdr.Response.Response != nil {
+ sc = result.bsdr.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.disconnectActiveSessionsNextResults
+ req, err := client.DisconnectActiveSessionsPreparer(ctx, resourceGroupName, bastionHostName, sessionIds)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.BaseClient", "DisconnectActiveSessions", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.DisconnectActiveSessionsSender(req)
+ if err != nil {
+ result.bsdr.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.BaseClient", "DisconnectActiveSessions", resp, "Failure sending request")
+ return
+ }
+
+ result.bsdr, err = client.DisconnectActiveSessionsResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.BaseClient", "DisconnectActiveSessions", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// DisconnectActiveSessionsPreparer prepares the DisconnectActiveSessions request.
+func (client BaseClient) DisconnectActiveSessionsPreparer(ctx context.Context, resourceGroupName string, bastionHostName string, sessionIds SessionIds) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "bastionHostName": autorest.Encode("path", bastionHostName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPost(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/bastionHosts/{bastionHostName}/disconnectActiveSessions", pathParameters),
+ autorest.WithJSON(sessionIds),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// DisconnectActiveSessionsSender sends the DisconnectActiveSessions request. The method will close the
+// http.Response Body if it receives an error.
+func (client BaseClient) DisconnectActiveSessionsSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// DisconnectActiveSessionsResponder handles the response to the DisconnectActiveSessions request. The method always
+// closes the http.Response Body.
+func (client BaseClient) DisconnectActiveSessionsResponder(resp *http.Response) (result BastionSessionDeleteResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// disconnectActiveSessionsNextResults retrieves the next set of results, if any.
+func (client BaseClient) disconnectActiveSessionsNextResults(ctx context.Context, lastResults BastionSessionDeleteResult) (result BastionSessionDeleteResult, err error) {
+ req, err := lastResults.bastionSessionDeleteResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "network.BaseClient", "disconnectActiveSessionsNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.DisconnectActiveSessionsSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "network.BaseClient", "disconnectActiveSessionsNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.DisconnectActiveSessionsResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.BaseClient", "disconnectActiveSessionsNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// DisconnectActiveSessionsComplete enumerates all values, automatically crossing page boundaries as required.
+func (client BaseClient) DisconnectActiveSessionsComplete(ctx context.Context, resourceGroupName string, bastionHostName string, sessionIds SessionIds) (result BastionSessionDeleteResultIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/BaseClient.DisconnectActiveSessions")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.DisconnectActiveSessions(ctx, resourceGroupName, bastionHostName, sessionIds)
+ return
+}
+
+// Generatevirtualwanvpnserverconfigurationvpnprofile generates a unique VPN profile for P2S clients for VirtualWan and
+// associated VpnServerConfiguration combination in the specified resource group.
+// Parameters:
+// resourceGroupName - the resource group name.
+// virtualWANName - the name of the VirtualWAN whose associated VpnServerConfigurations is needed.
+// vpnClientParams - parameters supplied to the generate VirtualWan VPN profile generation operation.
+func (client BaseClient) Generatevirtualwanvpnserverconfigurationvpnprofile(ctx context.Context, resourceGroupName string, virtualWANName string, vpnClientParams VirtualWanVpnProfileParameters) (result GeneratevirtualwanvpnserverconfigurationvpnprofileFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/BaseClient.Generatevirtualwanvpnserverconfigurationvpnprofile")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GeneratevirtualwanvpnserverconfigurationvpnprofilePreparer(ctx, resourceGroupName, virtualWANName, vpnClientParams)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.BaseClient", "Generatevirtualwanvpnserverconfigurationvpnprofile", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.GeneratevirtualwanvpnserverconfigurationvpnprofileSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.BaseClient", "Generatevirtualwanvpnserverconfigurationvpnprofile", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// GeneratevirtualwanvpnserverconfigurationvpnprofilePreparer prepares the Generatevirtualwanvpnserverconfigurationvpnprofile request.
+func (client BaseClient) GeneratevirtualwanvpnserverconfigurationvpnprofilePreparer(ctx context.Context, resourceGroupName string, virtualWANName string, vpnClientParams VirtualWanVpnProfileParameters) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ "virtualWANName": autorest.Encode("path", virtualWANName),
+ }
+
+ const APIVersion = "2019-11-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPost(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualWans/{virtualWANName}/GenerateVpnProfile", pathParameters),
+ autorest.WithJSON(vpnClientParams),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GeneratevirtualwanvpnserverconfigurationvpnprofileSender sends the Generatevirtualwanvpnserverconfigurationvpnprofile request. The method will close the
+// http.Response Body if it receives an error.
+func (client BaseClient) GeneratevirtualwanvpnserverconfigurationvpnprofileSender(req *http.Request) (future GeneratevirtualwanvpnserverconfigurationvpnprofileFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// GeneratevirtualwanvpnserverconfigurationvpnprofileResponder handles the response to the Generatevirtualwanvpnserverconfigurationvpnprofile request. The method always
+// closes the http.Response Body.
+func (client BaseClient) GeneratevirtualwanvpnserverconfigurationvpnprofileResponder(resp *http.Response) (result VpnProfileResponse, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// GetActiveSessions returns the list of currently active sessions on the Bastion.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// bastionHostName - the name of the Bastion Host.
+func (client BaseClient) GetActiveSessions(ctx context.Context, resourceGroupName string, bastionHostName string) (result GetActiveSessionsFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/BaseClient.GetActiveSessions")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetActiveSessionsPreparer(ctx, resourceGroupName, bastionHostName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.BaseClient", "GetActiveSessions", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.GetActiveSessionsSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.BaseClient", "GetActiveSessions", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// GetActiveSessionsPreparer prepares the GetActiveSessions request.
+func (client BaseClient) GetActiveSessionsPreparer(ctx context.Context, resourceGroupName string, bastionHostName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "bastionHostName": autorest.Encode("path", bastionHostName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/bastionHosts/{bastionHostName}/getActiveSessions", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetActiveSessionsSender sends the GetActiveSessions request. The method will close the
+// http.Response Body if it receives an error.
+func (client BaseClient) GetActiveSessionsSender(req *http.Request) (future GetActiveSessionsFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// GetActiveSessionsResponder handles the response to the GetActiveSessions request. The method always
+// closes the http.Response Body.
+func (client BaseClient) GetActiveSessionsResponder(resp *http.Response) (result BastionActiveSessionListResultPage, err error) {
+ result.baslr, err = client.getActiveSessionsResponder(resp)
+ result.fn = client.getActiveSessionsNextResults
+ return
+}
+
+func (client BaseClient) getActiveSessionsResponder(resp *http.Response) (result BastionActiveSessionListResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// getActiveSessionsNextResults retrieves the next set of results, if any.
+func (client BaseClient) getActiveSessionsNextResults(ctx context.Context, lastResults BastionActiveSessionListResult) (result BastionActiveSessionListResult, err error) {
+ req, err := lastResults.bastionActiveSessionListResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "network.BaseClient", "getActiveSessionsNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req,
+ autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "network.BaseClient", "getActiveSessionsNextResults", resp, "Failure sending next results request")
+ }
+ return client.getActiveSessionsResponder(resp)
+}
+
+// GetActiveSessionsComplete enumerates all values, automatically crossing page boundaries as required.
+func (client BaseClient) GetActiveSessionsComplete(ctx context.Context, resourceGroupName string, bastionHostName string) (result GetActiveSessionsAllFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/BaseClient.GetActiveSessions")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ var future GetActiveSessionsFuture
+ future, err = client.GetActiveSessions(ctx, resourceGroupName, bastionHostName)
+ result.Future = future.Future
+ return
+}
+
+// GetBastionShareableLink return the Bastion Shareable Links for all the VMs specified in the request.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// bastionHostName - the name of the Bastion Host.
+// bslRequest - post request for all the Bastion Shareable Link endpoints.
+func (client BaseClient) GetBastionShareableLink(ctx context.Context, resourceGroupName string, bastionHostName string, bslRequest BastionShareableLinkListRequest) (result BastionShareableLinkListResultPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/BaseClient.GetBastionShareableLink")
+ defer func() {
+ sc := -1
+ if result.bsllr.Response.Response != nil {
+ sc = result.bsllr.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.getBastionShareableLinkNextResults
+ req, err := client.GetBastionShareableLinkPreparer(ctx, resourceGroupName, bastionHostName, bslRequest)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.BaseClient", "GetBastionShareableLink", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetBastionShareableLinkSender(req)
+ if err != nil {
+ result.bsllr.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.BaseClient", "GetBastionShareableLink", resp, "Failure sending request")
+ return
+ }
+
+ result.bsllr, err = client.GetBastionShareableLinkResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.BaseClient", "GetBastionShareableLink", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetBastionShareableLinkPreparer prepares the GetBastionShareableLink request.
+func (client BaseClient) GetBastionShareableLinkPreparer(ctx context.Context, resourceGroupName string, bastionHostName string, bslRequest BastionShareableLinkListRequest) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "bastionHostName": autorest.Encode("path", bastionHostName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPost(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/bastionHosts/{bastionHostName}/getShareableLinks", pathParameters),
+ autorest.WithJSON(bslRequest),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetBastionShareableLinkSender sends the GetBastionShareableLink request. The method will close the
+// http.Response Body if it receives an error.
+func (client BaseClient) GetBastionShareableLinkSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetBastionShareableLinkResponder handles the response to the GetBastionShareableLink request. The method always
+// closes the http.Response Body.
+func (client BaseClient) GetBastionShareableLinkResponder(resp *http.Response) (result BastionShareableLinkListResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// getBastionShareableLinkNextResults retrieves the next set of results, if any.
+func (client BaseClient) getBastionShareableLinkNextResults(ctx context.Context, lastResults BastionShareableLinkListResult) (result BastionShareableLinkListResult, err error) {
+ req, err := lastResults.bastionShareableLinkListResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "network.BaseClient", "getBastionShareableLinkNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.GetBastionShareableLinkSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "network.BaseClient", "getBastionShareableLinkNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.GetBastionShareableLinkResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.BaseClient", "getBastionShareableLinkNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// GetBastionShareableLinkComplete enumerates all values, automatically crossing page boundaries as required.
+func (client BaseClient) GetBastionShareableLinkComplete(ctx context.Context, resourceGroupName string, bastionHostName string, bslRequest BastionShareableLinkListRequest) (result BastionShareableLinkListResultIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/BaseClient.GetBastionShareableLink")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.GetBastionShareableLink(ctx, resourceGroupName, bastionHostName, bslRequest)
+ return
+}
+
+// PutBastionShareableLink creates a Bastion Shareable Links for all the VMs specified in the request.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// bastionHostName - the name of the Bastion Host.
+// bslRequest - post request for all the Bastion Shareable Link endpoints.
+func (client BaseClient) PutBastionShareableLink(ctx context.Context, resourceGroupName string, bastionHostName string, bslRequest BastionShareableLinkListRequest) (result PutBastionShareableLinkFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/BaseClient.PutBastionShareableLink")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.PutBastionShareableLinkPreparer(ctx, resourceGroupName, bastionHostName, bslRequest)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.BaseClient", "PutBastionShareableLink", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.PutBastionShareableLinkSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.BaseClient", "PutBastionShareableLink", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// PutBastionShareableLinkPreparer prepares the PutBastionShareableLink request.
+func (client BaseClient) PutBastionShareableLinkPreparer(ctx context.Context, resourceGroupName string, bastionHostName string, bslRequest BastionShareableLinkListRequest) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "bastionHostName": autorest.Encode("path", bastionHostName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPost(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/bastionHosts/{bastionHostName}/createShareableLinks", pathParameters),
+ autorest.WithJSON(bslRequest),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// PutBastionShareableLinkSender sends the PutBastionShareableLink request. The method will close the
+// http.Response Body if it receives an error.
+func (client BaseClient) PutBastionShareableLinkSender(req *http.Request) (future PutBastionShareableLinkFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// PutBastionShareableLinkResponder handles the response to the PutBastionShareableLink request. The method always
+// closes the http.Response Body.
+func (client BaseClient) PutBastionShareableLinkResponder(resp *http.Response) (result BastionShareableLinkListResultPage, err error) {
+ result.bsllr, err = client.putBastionShareableLinkResponder(resp)
+ result.fn = client.putBastionShareableLinkNextResults
+ return
+}
+
+func (client BaseClient) putBastionShareableLinkResponder(resp *http.Response) (result BastionShareableLinkListResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// putBastionShareableLinkNextResults retrieves the next set of results, if any.
+func (client BaseClient) putBastionShareableLinkNextResults(ctx context.Context, lastResults BastionShareableLinkListResult) (result BastionShareableLinkListResult, err error) {
+ req, err := lastResults.bastionShareableLinkListResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "network.BaseClient", "putBastionShareableLinkNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req,
+ autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "network.BaseClient", "putBastionShareableLinkNextResults", resp, "Failure sending next results request")
+ }
+ return client.putBastionShareableLinkResponder(resp)
+}
+
+// PutBastionShareableLinkComplete enumerates all values, automatically crossing page boundaries as required.
+func (client BaseClient) PutBastionShareableLinkComplete(ctx context.Context, resourceGroupName string, bastionHostName string, bslRequest BastionShareableLinkListRequest) (result PutBastionShareableLinkAllFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/BaseClient.PutBastionShareableLink")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ var future PutBastionShareableLinkFuture
+ future, err = client.PutBastionShareableLink(ctx, resourceGroupName, bastionHostName, bslRequest)
+ result.Future = future.Future
+ return
+}
+
+// SupportedSecurityProviders gives the supported security providers for the virtual wan.
+// Parameters:
+// resourceGroupName - the resource group name.
+// virtualWANName - the name of the VirtualWAN for which supported security providers are needed.
+func (client BaseClient) SupportedSecurityProviders(ctx context.Context, resourceGroupName string, virtualWANName string) (result VirtualWanSecurityProviders, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/BaseClient.SupportedSecurityProviders")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.SupportedSecurityProvidersPreparer(ctx, resourceGroupName, virtualWANName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.BaseClient", "SupportedSecurityProviders", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.SupportedSecurityProvidersSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.BaseClient", "SupportedSecurityProviders", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.SupportedSecurityProvidersResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.BaseClient", "SupportedSecurityProviders", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// SupportedSecurityProvidersPreparer prepares the SupportedSecurityProviders request.
+func (client BaseClient) SupportedSecurityProvidersPreparer(ctx context.Context, resourceGroupName string, virtualWANName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ "virtualWANName": autorest.Encode("path", virtualWANName),
+ }
+
+ const APIVersion = "2019-11-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.Network/virtualWans/{virtualWANName}/supportedSecurityProviders", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// SupportedSecurityProvidersSender sends the SupportedSecurityProviders request. The method will close the
+// http.Response Body if it receives an error.
+func (client BaseClient) SupportedSecurityProvidersSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// SupportedSecurityProvidersResponder handles the response to the SupportedSecurityProviders request. The method always
+// closes the http.Response Body.
+func (client BaseClient) SupportedSecurityProvidersResponder(resp *http.Response) (result VirtualWanSecurityProviders, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
diff --git a/services/network/mgmt/2019-11-01/network/connectionmonitors.go b/services/network/mgmt/2019-11-01/network/connectionmonitors.go
new file mode 100644
index 000000000000..ac4e7a2163be
--- /dev/null
+++ b/services/network/mgmt/2019-11-01/network/connectionmonitors.go
@@ -0,0 +1,686 @@
+package network
+
+// Copyright (c) Microsoft and contributors. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+ "context"
+ "github.com/Azure/go-autorest/autorest"
+ "github.com/Azure/go-autorest/autorest/azure"
+ "github.com/Azure/go-autorest/autorest/validation"
+ "github.com/Azure/go-autorest/tracing"
+ "net/http"
+)
+
+// ConnectionMonitorsClient is the network Client
+type ConnectionMonitorsClient struct {
+ BaseClient
+}
+
+// NewConnectionMonitorsClient creates an instance of the ConnectionMonitorsClient client.
+func NewConnectionMonitorsClient(subscriptionID string) ConnectionMonitorsClient {
+ return NewConnectionMonitorsClientWithBaseURI(DefaultBaseURI, subscriptionID)
+}
+
+// NewConnectionMonitorsClientWithBaseURI creates an instance of the ConnectionMonitorsClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
+func NewConnectionMonitorsClientWithBaseURI(baseURI string, subscriptionID string) ConnectionMonitorsClient {
+ return ConnectionMonitorsClient{NewWithBaseURI(baseURI, subscriptionID)}
+}
+
+// CreateOrUpdate create or update a connection monitor.
+// Parameters:
+// resourceGroupName - the name of the resource group containing Network Watcher.
+// networkWatcherName - the name of the Network Watcher resource.
+// connectionMonitorName - the name of the connection monitor.
+// parameters - parameters that define the operation to create a connection monitor.
+func (client ConnectionMonitorsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, networkWatcherName string, connectionMonitorName string, parameters ConnectionMonitor) (result ConnectionMonitorsCreateOrUpdateFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ConnectionMonitorsClient.CreateOrUpdate")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: parameters,
+ Constraints: []validation.Constraint{{Target: "parameters.ConnectionMonitorParameters", Name: validation.Null, Rule: true,
+ Chain: []validation.Constraint{{Target: "parameters.ConnectionMonitorParameters.Source", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "parameters.ConnectionMonitorParameters.Source.ResourceID", Name: validation.Null, Rule: true, Chain: nil}}},
+ }}}}}); err != nil {
+ return result, validation.NewError("network.ConnectionMonitorsClient", "CreateOrUpdate", err.Error())
+ }
+
+ req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, networkWatcherName, connectionMonitorName, parameters)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "CreateOrUpdate", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.CreateOrUpdateSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "CreateOrUpdate", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// CreateOrUpdatePreparer prepares the CreateOrUpdate request.
+func (client ConnectionMonitorsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, networkWatcherName string, connectionMonitorName string, parameters ConnectionMonitor) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "connectionMonitorName": autorest.Encode("path", connectionMonitorName),
+ "networkWatcherName": autorest.Encode("path", networkWatcherName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", pathParameters),
+ autorest.WithJSON(parameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the
+// http.Response Body if it receives an error.
+func (client ConnectionMonitorsClient) CreateOrUpdateSender(req *http.Request) (future ConnectionMonitorsCreateOrUpdateFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always
+// closes the http.Response Body.
+func (client ConnectionMonitorsClient) CreateOrUpdateResponder(resp *http.Response) (result ConnectionMonitorResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// Delete deletes the specified connection monitor.
+// Parameters:
+// resourceGroupName - the name of the resource group containing Network Watcher.
+// networkWatcherName - the name of the Network Watcher resource.
+// connectionMonitorName - the name of the connection monitor.
+func (client ConnectionMonitorsClient) Delete(ctx context.Context, resourceGroupName string, networkWatcherName string, connectionMonitorName string) (result ConnectionMonitorsDeleteFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ConnectionMonitorsClient.Delete")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.DeletePreparer(ctx, resourceGroupName, networkWatcherName, connectionMonitorName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "Delete", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.DeleteSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "Delete", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// DeletePreparer prepares the Delete request.
+func (client ConnectionMonitorsClient) DeletePreparer(ctx context.Context, resourceGroupName string, networkWatcherName string, connectionMonitorName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "connectionMonitorName": autorest.Encode("path", connectionMonitorName),
+ "networkWatcherName": autorest.Encode("path", networkWatcherName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// DeleteSender sends the Delete request. The method will close the
+// http.Response Body if it receives an error.
+func (client ConnectionMonitorsClient) DeleteSender(req *http.Request) (future ConnectionMonitorsDeleteFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// DeleteResponder handles the response to the Delete request. The method always
+// closes the http.Response Body.
+func (client ConnectionMonitorsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent),
+ autorest.ByClosing())
+ result.Response = resp
+ return
+}
+
+// Get gets a connection monitor by name.
+// Parameters:
+// resourceGroupName - the name of the resource group containing Network Watcher.
+// networkWatcherName - the name of the Network Watcher resource.
+// connectionMonitorName - the name of the connection monitor.
+func (client ConnectionMonitorsClient) Get(ctx context.Context, resourceGroupName string, networkWatcherName string, connectionMonitorName string) (result ConnectionMonitorResult, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ConnectionMonitorsClient.Get")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetPreparer(ctx, resourceGroupName, networkWatcherName, connectionMonitorName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "Get", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "Get", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "Get", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetPreparer prepares the Get request.
+func (client ConnectionMonitorsClient) GetPreparer(ctx context.Context, resourceGroupName string, networkWatcherName string, connectionMonitorName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "connectionMonitorName": autorest.Encode("path", connectionMonitorName),
+ "networkWatcherName": autorest.Encode("path", networkWatcherName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetSender sends the Get request. The method will close the
+// http.Response Body if it receives an error.
+func (client ConnectionMonitorsClient) GetSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetResponder handles the response to the Get request. The method always
+// closes the http.Response Body.
+func (client ConnectionMonitorsClient) GetResponder(resp *http.Response) (result ConnectionMonitorResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// List lists all connection monitors for the specified Network Watcher.
+// Parameters:
+// resourceGroupName - the name of the resource group containing Network Watcher.
+// networkWatcherName - the name of the Network Watcher resource.
+func (client ConnectionMonitorsClient) List(ctx context.Context, resourceGroupName string, networkWatcherName string) (result ConnectionMonitorListResult, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ConnectionMonitorsClient.List")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.ListPreparer(ctx, resourceGroupName, networkWatcherName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "List", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "List", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "List", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListPreparer prepares the List request.
+func (client ConnectionMonitorsClient) ListPreparer(ctx context.Context, resourceGroupName string, networkWatcherName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "networkWatcherName": autorest.Encode("path", networkWatcherName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/networkWatchers/{networkWatcherName}/connectionMonitors", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListSender sends the List request. The method will close the
+// http.Response Body if it receives an error.
+func (client ConnectionMonitorsClient) ListSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListResponder handles the response to the List request. The method always
+// closes the http.Response Body.
+func (client ConnectionMonitorsClient) ListResponder(resp *http.Response) (result ConnectionMonitorListResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// Query query a snapshot of the most recent connection states.
+// Parameters:
+// resourceGroupName - the name of the resource group containing Network Watcher.
+// networkWatcherName - the name of the Network Watcher resource.
+// connectionMonitorName - the name given to the connection monitor.
+func (client ConnectionMonitorsClient) Query(ctx context.Context, resourceGroupName string, networkWatcherName string, connectionMonitorName string) (result ConnectionMonitorsQueryFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ConnectionMonitorsClient.Query")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.QueryPreparer(ctx, resourceGroupName, networkWatcherName, connectionMonitorName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "Query", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.QuerySender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "Query", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// QueryPreparer prepares the Query request.
+func (client ConnectionMonitorsClient) QueryPreparer(ctx context.Context, resourceGroupName string, networkWatcherName string, connectionMonitorName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "connectionMonitorName": autorest.Encode("path", connectionMonitorName),
+ "networkWatcherName": autorest.Encode("path", networkWatcherName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}/query", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// QuerySender sends the Query request. The method will close the
+// http.Response Body if it receives an error.
+func (client ConnectionMonitorsClient) QuerySender(req *http.Request) (future ConnectionMonitorsQueryFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// QueryResponder handles the response to the Query request. The method always
+// closes the http.Response Body.
+func (client ConnectionMonitorsClient) QueryResponder(resp *http.Response) (result ConnectionMonitorQueryResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// Start starts the specified connection monitor.
+// Parameters:
+// resourceGroupName - the name of the resource group containing Network Watcher.
+// networkWatcherName - the name of the Network Watcher resource.
+// connectionMonitorName - the name of the connection monitor.
+func (client ConnectionMonitorsClient) Start(ctx context.Context, resourceGroupName string, networkWatcherName string, connectionMonitorName string) (result ConnectionMonitorsStartFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ConnectionMonitorsClient.Start")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.StartPreparer(ctx, resourceGroupName, networkWatcherName, connectionMonitorName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "Start", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.StartSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "Start", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// StartPreparer prepares the Start request.
+func (client ConnectionMonitorsClient) StartPreparer(ctx context.Context, resourceGroupName string, networkWatcherName string, connectionMonitorName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "connectionMonitorName": autorest.Encode("path", connectionMonitorName),
+ "networkWatcherName": autorest.Encode("path", networkWatcherName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}/start", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// StartSender sends the Start request. The method will close the
+// http.Response Body if it receives an error.
+func (client ConnectionMonitorsClient) StartSender(req *http.Request) (future ConnectionMonitorsStartFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// StartResponder handles the response to the Start request. The method always
+// closes the http.Response Body.
+func (client ConnectionMonitorsClient) StartResponder(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
+}
+
+// Stop stops the specified connection monitor.
+// Parameters:
+// resourceGroupName - the name of the resource group containing Network Watcher.
+// networkWatcherName - the name of the Network Watcher resource.
+// connectionMonitorName - the name of the connection monitor.
+func (client ConnectionMonitorsClient) Stop(ctx context.Context, resourceGroupName string, networkWatcherName string, connectionMonitorName string) (result ConnectionMonitorsStopFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ConnectionMonitorsClient.Stop")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.StopPreparer(ctx, resourceGroupName, networkWatcherName, connectionMonitorName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "Stop", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.StopSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "Stop", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// StopPreparer prepares the Stop request.
+func (client ConnectionMonitorsClient) StopPreparer(ctx context.Context, resourceGroupName string, networkWatcherName string, connectionMonitorName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "connectionMonitorName": autorest.Encode("path", connectionMonitorName),
+ "networkWatcherName": autorest.Encode("path", networkWatcherName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}/stop", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// StopSender sends the Stop request. The method will close the
+// http.Response Body if it receives an error.
+func (client ConnectionMonitorsClient) StopSender(req *http.Request) (future ConnectionMonitorsStopFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// StopResponder handles the response to the Stop request. The method always
+// closes the http.Response Body.
+func (client ConnectionMonitorsClient) StopResponder(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
+}
+
+// UpdateTags update tags of the specified connection monitor.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// networkWatcherName - the name of the network watcher.
+// connectionMonitorName - the name of the connection monitor.
+// parameters - parameters supplied to update connection monitor tags.
+func (client ConnectionMonitorsClient) UpdateTags(ctx context.Context, resourceGroupName string, networkWatcherName string, connectionMonitorName string, parameters TagsObject) (result ConnectionMonitorResult, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ConnectionMonitorsClient.UpdateTags")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.UpdateTagsPreparer(ctx, resourceGroupName, networkWatcherName, connectionMonitorName, parameters)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "UpdateTags", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.UpdateTagsSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "UpdateTags", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.UpdateTagsResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "UpdateTags", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// UpdateTagsPreparer prepares the UpdateTags request.
+func (client ConnectionMonitorsClient) UpdateTagsPreparer(ctx context.Context, resourceGroupName string, networkWatcherName string, connectionMonitorName string, parameters TagsObject) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "connectionMonitorName": autorest.Encode("path", connectionMonitorName),
+ "networkWatcherName": autorest.Encode("path", networkWatcherName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", pathParameters),
+ autorest.WithJSON(parameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// UpdateTagsSender sends the UpdateTags request. The method will close the
+// http.Response Body if it receives an error.
+func (client ConnectionMonitorsClient) UpdateTagsSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// UpdateTagsResponder handles the response to the UpdateTags request. The method always
+// closes the http.Response Body.
+func (client ConnectionMonitorsClient) UpdateTagsResponder(resp *http.Response) (result ConnectionMonitorResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
diff --git a/services/network/mgmt/2019-11-01/network/ddoscustompolicies.go b/services/network/mgmt/2019-11-01/network/ddoscustompolicies.go
new file mode 100644
index 000000000000..024dd5309e35
--- /dev/null
+++ b/services/network/mgmt/2019-11-01/network/ddoscustompolicies.go
@@ -0,0 +1,357 @@
+package network
+
+// Copyright (c) Microsoft and contributors. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+ "context"
+ "github.com/Azure/go-autorest/autorest"
+ "github.com/Azure/go-autorest/autorest/azure"
+ "github.com/Azure/go-autorest/tracing"
+ "net/http"
+)
+
+// DdosCustomPoliciesClient is the network Client
+type DdosCustomPoliciesClient struct {
+ BaseClient
+}
+
+// NewDdosCustomPoliciesClient creates an instance of the DdosCustomPoliciesClient client.
+func NewDdosCustomPoliciesClient(subscriptionID string) DdosCustomPoliciesClient {
+ return NewDdosCustomPoliciesClientWithBaseURI(DefaultBaseURI, subscriptionID)
+}
+
+// NewDdosCustomPoliciesClientWithBaseURI creates an instance of the DdosCustomPoliciesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
+func NewDdosCustomPoliciesClientWithBaseURI(baseURI string, subscriptionID string) DdosCustomPoliciesClient {
+ return DdosCustomPoliciesClient{NewWithBaseURI(baseURI, subscriptionID)}
+}
+
+// CreateOrUpdate creates or updates a DDoS custom policy.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// ddosCustomPolicyName - the name of the DDoS custom policy.
+// parameters - parameters supplied to the create or update operation.
+func (client DdosCustomPoliciesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, ddosCustomPolicyName string, parameters DdosCustomPolicy) (result DdosCustomPoliciesCreateOrUpdateFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/DdosCustomPoliciesClient.CreateOrUpdate")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, ddosCustomPolicyName, parameters)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.DdosCustomPoliciesClient", "CreateOrUpdate", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.CreateOrUpdateSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.DdosCustomPoliciesClient", "CreateOrUpdate", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// CreateOrUpdatePreparer prepares the CreateOrUpdate request.
+func (client DdosCustomPoliciesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, ddosCustomPolicyName string, parameters DdosCustomPolicy) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "ddosCustomPolicyName": autorest.Encode("path", ddosCustomPolicyName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ parameters.Etag = nil
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPut(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ddosCustomPolicies/{ddosCustomPolicyName}", pathParameters),
+ autorest.WithJSON(parameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the
+// http.Response Body if it receives an error.
+func (client DdosCustomPoliciesClient) CreateOrUpdateSender(req *http.Request) (future DdosCustomPoliciesCreateOrUpdateFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always
+// closes the http.Response Body.
+func (client DdosCustomPoliciesClient) CreateOrUpdateResponder(resp *http.Response) (result DdosCustomPolicy, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// Delete deletes the specified DDoS custom policy.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// ddosCustomPolicyName - the name of the DDoS custom policy.
+func (client DdosCustomPoliciesClient) Delete(ctx context.Context, resourceGroupName string, ddosCustomPolicyName string) (result DdosCustomPoliciesDeleteFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/DdosCustomPoliciesClient.Delete")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.DeletePreparer(ctx, resourceGroupName, ddosCustomPolicyName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.DdosCustomPoliciesClient", "Delete", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.DeleteSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.DdosCustomPoliciesClient", "Delete", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// DeletePreparer prepares the Delete request.
+func (client DdosCustomPoliciesClient) DeletePreparer(ctx context.Context, resourceGroupName string, ddosCustomPolicyName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "ddosCustomPolicyName": autorest.Encode("path", ddosCustomPolicyName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/ddosCustomPolicies/{ddosCustomPolicyName}", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// DeleteSender sends the Delete request. The method will close the
+// http.Response Body if it receives an error.
+func (client DdosCustomPoliciesClient) DeleteSender(req *http.Request) (future DdosCustomPoliciesDeleteFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// DeleteResponder handles the response to the Delete request. The method always
+// closes the http.Response Body.
+func (client DdosCustomPoliciesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent),
+ autorest.ByClosing())
+ result.Response = resp
+ return
+}
+
+// Get gets information about the specified DDoS custom policy.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// ddosCustomPolicyName - the name of the DDoS custom policy.
+func (client DdosCustomPoliciesClient) Get(ctx context.Context, resourceGroupName string, ddosCustomPolicyName string) (result DdosCustomPolicy, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/DdosCustomPoliciesClient.Get")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetPreparer(ctx, resourceGroupName, ddosCustomPolicyName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.DdosCustomPoliciesClient", "Get", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.DdosCustomPoliciesClient", "Get", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.DdosCustomPoliciesClient", "Get", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetPreparer prepares the Get request.
+func (client DdosCustomPoliciesClient) GetPreparer(ctx context.Context, resourceGroupName string, ddosCustomPolicyName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "ddosCustomPolicyName": autorest.Encode("path", ddosCustomPolicyName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/ddosCustomPolicies/{ddosCustomPolicyName}", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetSender sends the Get request. The method will close the
+// http.Response Body if it receives an error.
+func (client DdosCustomPoliciesClient) GetSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetResponder handles the response to the Get request. The method always
+// closes the http.Response Body.
+func (client DdosCustomPoliciesClient) GetResponder(resp *http.Response) (result DdosCustomPolicy, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// UpdateTags update a DDoS custom policy tags.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// ddosCustomPolicyName - the name of the DDoS custom policy.
+// parameters - parameters supplied to update DDoS custom policy resource tags.
+func (client DdosCustomPoliciesClient) UpdateTags(ctx context.Context, resourceGroupName string, ddosCustomPolicyName string, parameters TagsObject) (result DdosCustomPolicy, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/DdosCustomPoliciesClient.UpdateTags")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.UpdateTagsPreparer(ctx, resourceGroupName, ddosCustomPolicyName, parameters)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.DdosCustomPoliciesClient", "UpdateTags", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.UpdateTagsSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.DdosCustomPoliciesClient", "UpdateTags", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.UpdateTagsResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.DdosCustomPoliciesClient", "UpdateTags", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// UpdateTagsPreparer prepares the UpdateTags request.
+func (client DdosCustomPoliciesClient) UpdateTagsPreparer(ctx context.Context, resourceGroupName string, ddosCustomPolicyName string, parameters TagsObject) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "ddosCustomPolicyName": autorest.Encode("path", ddosCustomPolicyName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/ddosCustomPolicies/{ddosCustomPolicyName}", pathParameters),
+ autorest.WithJSON(parameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// UpdateTagsSender sends the UpdateTags request. The method will close the
+// http.Response Body if it receives an error.
+func (client DdosCustomPoliciesClient) UpdateTagsSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// UpdateTagsResponder handles the response to the UpdateTags request. The method always
+// closes the http.Response Body.
+func (client DdosCustomPoliciesClient) UpdateTagsResponder(resp *http.Response) (result DdosCustomPolicy, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
diff --git a/services/network/mgmt/2019-11-01/network/ddosprotectionplans.go b/services/network/mgmt/2019-11-01/network/ddosprotectionplans.go
new file mode 100644
index 000000000000..507d986d7330
--- /dev/null
+++ b/services/network/mgmt/2019-11-01/network/ddosprotectionplans.go
@@ -0,0 +1,583 @@
+package network
+
+// Copyright (c) Microsoft and contributors. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+ "context"
+ "github.com/Azure/go-autorest/autorest"
+ "github.com/Azure/go-autorest/autorest/azure"
+ "github.com/Azure/go-autorest/tracing"
+ "net/http"
+)
+
+// DdosProtectionPlansClient is the network Client
+type DdosProtectionPlansClient struct {
+ BaseClient
+}
+
+// NewDdosProtectionPlansClient creates an instance of the DdosProtectionPlansClient client.
+func NewDdosProtectionPlansClient(subscriptionID string) DdosProtectionPlansClient {
+ return NewDdosProtectionPlansClientWithBaseURI(DefaultBaseURI, subscriptionID)
+}
+
+// NewDdosProtectionPlansClientWithBaseURI creates an instance of the DdosProtectionPlansClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
+func NewDdosProtectionPlansClientWithBaseURI(baseURI string, subscriptionID string) DdosProtectionPlansClient {
+ return DdosProtectionPlansClient{NewWithBaseURI(baseURI, subscriptionID)}
+}
+
+// CreateOrUpdate creates or updates a DDoS protection plan.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// ddosProtectionPlanName - the name of the DDoS protection plan.
+// parameters - parameters supplied to the create or update operation.
+func (client DdosProtectionPlansClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, ddosProtectionPlanName string, parameters DdosProtectionPlan) (result DdosProtectionPlansCreateOrUpdateFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/DdosProtectionPlansClient.CreateOrUpdate")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, ddosProtectionPlanName, parameters)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "CreateOrUpdate", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.CreateOrUpdateSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "CreateOrUpdate", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// CreateOrUpdatePreparer prepares the CreateOrUpdate request.
+func (client DdosProtectionPlansClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, ddosProtectionPlanName string, parameters DdosProtectionPlan) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "ddosProtectionPlanName": autorest.Encode("path", ddosProtectionPlanName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ parameters.ID = nil
+ parameters.Name = nil
+ parameters.Type = nil
+ parameters.Etag = nil
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPut(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ddosProtectionPlans/{ddosProtectionPlanName}", pathParameters),
+ autorest.WithJSON(parameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the
+// http.Response Body if it receives an error.
+func (client DdosProtectionPlansClient) CreateOrUpdateSender(req *http.Request) (future DdosProtectionPlansCreateOrUpdateFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always
+// closes the http.Response Body.
+func (client DdosProtectionPlansClient) CreateOrUpdateResponder(resp *http.Response) (result DdosProtectionPlan, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// Delete deletes the specified DDoS protection plan.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// ddosProtectionPlanName - the name of the DDoS protection plan.
+func (client DdosProtectionPlansClient) Delete(ctx context.Context, resourceGroupName string, ddosProtectionPlanName string) (result DdosProtectionPlansDeleteFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/DdosProtectionPlansClient.Delete")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.DeletePreparer(ctx, resourceGroupName, ddosProtectionPlanName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "Delete", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.DeleteSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "Delete", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// DeletePreparer prepares the Delete request.
+func (client DdosProtectionPlansClient) DeletePreparer(ctx context.Context, resourceGroupName string, ddosProtectionPlanName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "ddosProtectionPlanName": autorest.Encode("path", ddosProtectionPlanName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/ddosProtectionPlans/{ddosProtectionPlanName}", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// DeleteSender sends the Delete request. The method will close the
+// http.Response Body if it receives an error.
+func (client DdosProtectionPlansClient) DeleteSender(req *http.Request) (future DdosProtectionPlansDeleteFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// DeleteResponder handles the response to the Delete request. The method always
+// closes the http.Response Body.
+func (client DdosProtectionPlansClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent),
+ autorest.ByClosing())
+ result.Response = resp
+ return
+}
+
+// Get gets information about the specified DDoS protection plan.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// ddosProtectionPlanName - the name of the DDoS protection plan.
+func (client DdosProtectionPlansClient) Get(ctx context.Context, resourceGroupName string, ddosProtectionPlanName string) (result DdosProtectionPlan, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/DdosProtectionPlansClient.Get")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetPreparer(ctx, resourceGroupName, ddosProtectionPlanName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "Get", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "Get", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "Get", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetPreparer prepares the Get request.
+func (client DdosProtectionPlansClient) GetPreparer(ctx context.Context, resourceGroupName string, ddosProtectionPlanName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "ddosProtectionPlanName": autorest.Encode("path", ddosProtectionPlanName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/ddosProtectionPlans/{ddosProtectionPlanName}", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetSender sends the Get request. The method will close the
+// http.Response Body if it receives an error.
+func (client DdosProtectionPlansClient) GetSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetResponder handles the response to the Get request. The method always
+// closes the http.Response Body.
+func (client DdosProtectionPlansClient) GetResponder(resp *http.Response) (result DdosProtectionPlan, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// List gets all DDoS protection plans in a subscription.
+func (client DdosProtectionPlansClient) List(ctx context.Context) (result DdosProtectionPlanListResultPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/DdosProtectionPlansClient.List")
+ defer func() {
+ sc := -1
+ if result.dpplr.Response.Response != nil {
+ sc = result.dpplr.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.listNextResults
+ req, err := client.ListPreparer(ctx)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "List", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.dpplr.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "List", resp, "Failure sending request")
+ return
+ }
+
+ result.dpplr, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "List", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListPreparer prepares the List request.
+func (client DdosProtectionPlansClient) ListPreparer(ctx context.Context) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/ddosProtectionPlans", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListSender sends the List request. The method will close the
+// http.Response Body if it receives an error.
+func (client DdosProtectionPlansClient) ListSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListResponder handles the response to the List request. The method always
+// closes the http.Response Body.
+func (client DdosProtectionPlansClient) ListResponder(resp *http.Response) (result DdosProtectionPlanListResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listNextResults retrieves the next set of results, if any.
+func (client DdosProtectionPlansClient) listNextResults(ctx context.Context, lastResults DdosProtectionPlanListResult) (result DdosProtectionPlanListResult, err error) {
+ req, err := lastResults.ddosProtectionPlanListResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "listNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "listNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "listNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListComplete enumerates all values, automatically crossing page boundaries as required.
+func (client DdosProtectionPlansClient) ListComplete(ctx context.Context) (result DdosProtectionPlanListResultIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/DdosProtectionPlansClient.List")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.List(ctx)
+ return
+}
+
+// ListByResourceGroup gets all the DDoS protection plans in a resource group.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+func (client DdosProtectionPlansClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result DdosProtectionPlanListResultPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/DdosProtectionPlansClient.ListByResourceGroup")
+ defer func() {
+ sc := -1
+ if result.dpplr.Response.Response != nil {
+ sc = result.dpplr.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.listByResourceGroupNextResults
+ req, err := client.ListByResourceGroupPreparer(ctx, resourceGroupName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "ListByResourceGroup", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListByResourceGroupSender(req)
+ if err != nil {
+ result.dpplr.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "ListByResourceGroup", resp, "Failure sending request")
+ return
+ }
+
+ result.dpplr, err = client.ListByResourceGroupResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "ListByResourceGroup", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListByResourceGroupPreparer prepares the ListByResourceGroup request.
+func (client DdosProtectionPlansClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/ddosProtectionPlans", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the
+// http.Response Body if it receives an error.
+func (client DdosProtectionPlansClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always
+// closes the http.Response Body.
+func (client DdosProtectionPlansClient) ListByResourceGroupResponder(resp *http.Response) (result DdosProtectionPlanListResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listByResourceGroupNextResults retrieves the next set of results, if any.
+func (client DdosProtectionPlansClient) listByResourceGroupNextResults(ctx context.Context, lastResults DdosProtectionPlanListResult) (result DdosProtectionPlanListResult, err error) {
+ req, err := lastResults.ddosProtectionPlanListResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "listByResourceGroupNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListByResourceGroupSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "listByResourceGroupNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListByResourceGroupResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required.
+func (client DdosProtectionPlansClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result DdosProtectionPlanListResultIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/DdosProtectionPlansClient.ListByResourceGroup")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.ListByResourceGroup(ctx, resourceGroupName)
+ return
+}
+
+// UpdateTags update a DDoS protection plan tags.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// ddosProtectionPlanName - the name of the DDoS protection plan.
+// parameters - parameters supplied to the update DDoS protection plan resource tags.
+func (client DdosProtectionPlansClient) UpdateTags(ctx context.Context, resourceGroupName string, ddosProtectionPlanName string, parameters TagsObject) (result DdosProtectionPlan, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/DdosProtectionPlansClient.UpdateTags")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.UpdateTagsPreparer(ctx, resourceGroupName, ddosProtectionPlanName, parameters)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "UpdateTags", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.UpdateTagsSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "UpdateTags", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.UpdateTagsResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "UpdateTags", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// UpdateTagsPreparer prepares the UpdateTags request.
+func (client DdosProtectionPlansClient) UpdateTagsPreparer(ctx context.Context, resourceGroupName string, ddosProtectionPlanName string, parameters TagsObject) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "ddosProtectionPlanName": autorest.Encode("path", ddosProtectionPlanName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/ddosProtectionPlans/{ddosProtectionPlanName}", pathParameters),
+ autorest.WithJSON(parameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// UpdateTagsSender sends the UpdateTags request. The method will close the
+// http.Response Body if it receives an error.
+func (client DdosProtectionPlansClient) UpdateTagsSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// UpdateTagsResponder handles the response to the UpdateTags request. The method always
+// closes the http.Response Body.
+func (client DdosProtectionPlansClient) UpdateTagsResponder(resp *http.Response) (result DdosProtectionPlan, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
diff --git a/services/network/mgmt/2019-11-01/network/defaultsecurityrules.go b/services/network/mgmt/2019-11-01/network/defaultsecurityrules.go
new file mode 100644
index 000000000000..7af0411def65
--- /dev/null
+++ b/services/network/mgmt/2019-11-01/network/defaultsecurityrules.go
@@ -0,0 +1,237 @@
+package network
+
+// Copyright (c) Microsoft and contributors. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+ "context"
+ "github.com/Azure/go-autorest/autorest"
+ "github.com/Azure/go-autorest/autorest/azure"
+ "github.com/Azure/go-autorest/tracing"
+ "net/http"
+)
+
+// DefaultSecurityRulesClient is the network Client
+type DefaultSecurityRulesClient struct {
+ BaseClient
+}
+
+// NewDefaultSecurityRulesClient creates an instance of the DefaultSecurityRulesClient client.
+func NewDefaultSecurityRulesClient(subscriptionID string) DefaultSecurityRulesClient {
+ return NewDefaultSecurityRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
+}
+
+// NewDefaultSecurityRulesClientWithBaseURI creates an instance of the DefaultSecurityRulesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
+func NewDefaultSecurityRulesClientWithBaseURI(baseURI string, subscriptionID string) DefaultSecurityRulesClient {
+ return DefaultSecurityRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
+}
+
+// Get get the specified default network security rule.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// networkSecurityGroupName - the name of the network security group.
+// defaultSecurityRuleName - the name of the default security rule.
+func (client DefaultSecurityRulesClient) Get(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, defaultSecurityRuleName string) (result SecurityRule, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/DefaultSecurityRulesClient.Get")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetPreparer(ctx, resourceGroupName, networkSecurityGroupName, defaultSecurityRuleName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.DefaultSecurityRulesClient", "Get", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.DefaultSecurityRulesClient", "Get", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.DefaultSecurityRulesClient", "Get", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetPreparer prepares the Get request.
+func (client DefaultSecurityRulesClient) GetPreparer(ctx context.Context, resourceGroupName string, networkSecurityGroupName string, defaultSecurityRuleName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "defaultSecurityRuleName": autorest.Encode("path", defaultSecurityRuleName),
+ "networkSecurityGroupName": autorest.Encode("path", networkSecurityGroupName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/networkSecurityGroups/{networkSecurityGroupName}/defaultSecurityRules/{defaultSecurityRuleName}", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetSender sends the Get request. The method will close the
+// http.Response Body if it receives an error.
+func (client DefaultSecurityRulesClient) GetSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetResponder handles the response to the Get request. The method always
+// closes the http.Response Body.
+func (client DefaultSecurityRulesClient) GetResponder(resp *http.Response) (result SecurityRule, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// List gets all default security rules in a network security group.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// networkSecurityGroupName - the name of the network security group.
+func (client DefaultSecurityRulesClient) List(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result SecurityRuleListResultPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/DefaultSecurityRulesClient.List")
+ defer func() {
+ sc := -1
+ if result.srlr.Response.Response != nil {
+ sc = result.srlr.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.listNextResults
+ req, err := client.ListPreparer(ctx, resourceGroupName, networkSecurityGroupName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.DefaultSecurityRulesClient", "List", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.srlr.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.DefaultSecurityRulesClient", "List", resp, "Failure sending request")
+ return
+ }
+
+ result.srlr, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.DefaultSecurityRulesClient", "List", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListPreparer prepares the List request.
+func (client DefaultSecurityRulesClient) ListPreparer(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "networkSecurityGroupName": autorest.Encode("path", networkSecurityGroupName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/networkSecurityGroups/{networkSecurityGroupName}/defaultSecurityRules", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListSender sends the List request. The method will close the
+// http.Response Body if it receives an error.
+func (client DefaultSecurityRulesClient) ListSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListResponder handles the response to the List request. The method always
+// closes the http.Response Body.
+func (client DefaultSecurityRulesClient) ListResponder(resp *http.Response) (result SecurityRuleListResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listNextResults retrieves the next set of results, if any.
+func (client DefaultSecurityRulesClient) listNextResults(ctx context.Context, lastResults SecurityRuleListResult) (result SecurityRuleListResult, err error) {
+ req, err := lastResults.securityRuleListResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "network.DefaultSecurityRulesClient", "listNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "network.DefaultSecurityRulesClient", "listNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.DefaultSecurityRulesClient", "listNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListComplete enumerates all values, automatically crossing page boundaries as required.
+func (client DefaultSecurityRulesClient) ListComplete(ctx context.Context, resourceGroupName string, networkSecurityGroupName string) (result SecurityRuleListResultIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/DefaultSecurityRulesClient.List")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.List(ctx, resourceGroupName, networkSecurityGroupName)
+ return
+}
diff --git a/services/network/mgmt/2019-11-01/network/expressroutecircuitauthorizations.go b/services/network/mgmt/2019-11-01/network/expressroutecircuitauthorizations.go
new file mode 100644
index 000000000000..865885f308df
--- /dev/null
+++ b/services/network/mgmt/2019-11-01/network/expressroutecircuitauthorizations.go
@@ -0,0 +1,401 @@
+package network
+
+// Copyright (c) Microsoft and contributors. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+ "context"
+ "github.com/Azure/go-autorest/autorest"
+ "github.com/Azure/go-autorest/autorest/azure"
+ "github.com/Azure/go-autorest/tracing"
+ "net/http"
+)
+
+// ExpressRouteCircuitAuthorizationsClient is the network Client
+type ExpressRouteCircuitAuthorizationsClient struct {
+ BaseClient
+}
+
+// NewExpressRouteCircuitAuthorizationsClient creates an instance of the ExpressRouteCircuitAuthorizationsClient
+// client.
+func NewExpressRouteCircuitAuthorizationsClient(subscriptionID string) ExpressRouteCircuitAuthorizationsClient {
+ return NewExpressRouteCircuitAuthorizationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
+}
+
+// NewExpressRouteCircuitAuthorizationsClientWithBaseURI creates an instance of the
+// ExpressRouteCircuitAuthorizationsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
+func NewExpressRouteCircuitAuthorizationsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCircuitAuthorizationsClient {
+ return ExpressRouteCircuitAuthorizationsClient{NewWithBaseURI(baseURI, subscriptionID)}
+}
+
+// CreateOrUpdate creates or updates an authorization in the specified express route circuit.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// circuitName - the name of the express route circuit.
+// authorizationName - the name of the authorization.
+// authorizationParameters - parameters supplied to the create or update express route circuit authorization
+// operation.
+func (client ExpressRouteCircuitAuthorizationsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, circuitName string, authorizationName string, authorizationParameters ExpressRouteCircuitAuthorization) (result ExpressRouteCircuitAuthorizationsCreateOrUpdateFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteCircuitAuthorizationsClient.CreateOrUpdate")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, circuitName, authorizationName, authorizationParameters)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "CreateOrUpdate", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.CreateOrUpdateSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "CreateOrUpdate", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// CreateOrUpdatePreparer prepares the CreateOrUpdate request.
+func (client ExpressRouteCircuitAuthorizationsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, circuitName string, authorizationName string, authorizationParameters ExpressRouteCircuitAuthorization) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "authorizationName": autorest.Encode("path", authorizationName),
+ "circuitName": autorest.Encode("path", circuitName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ authorizationParameters.Etag = nil
+ authorizationParameters.Type = nil
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPut(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/authorizations/{authorizationName}", pathParameters),
+ autorest.WithJSON(authorizationParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the
+// http.Response Body if it receives an error.
+func (client ExpressRouteCircuitAuthorizationsClient) CreateOrUpdateSender(req *http.Request) (future ExpressRouteCircuitAuthorizationsCreateOrUpdateFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always
+// closes the http.Response Body.
+func (client ExpressRouteCircuitAuthorizationsClient) CreateOrUpdateResponder(resp *http.Response) (result ExpressRouteCircuitAuthorization, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// Delete deletes the specified authorization from the specified express route circuit.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// circuitName - the name of the express route circuit.
+// authorizationName - the name of the authorization.
+func (client ExpressRouteCircuitAuthorizationsClient) Delete(ctx context.Context, resourceGroupName string, circuitName string, authorizationName string) (result ExpressRouteCircuitAuthorizationsDeleteFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteCircuitAuthorizationsClient.Delete")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.DeletePreparer(ctx, resourceGroupName, circuitName, authorizationName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "Delete", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.DeleteSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "Delete", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// DeletePreparer prepares the Delete request.
+func (client ExpressRouteCircuitAuthorizationsClient) DeletePreparer(ctx context.Context, resourceGroupName string, circuitName string, authorizationName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "authorizationName": autorest.Encode("path", authorizationName),
+ "circuitName": autorest.Encode("path", circuitName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/expressRouteCircuits/{circuitName}/authorizations/{authorizationName}", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// DeleteSender sends the Delete request. The method will close the
+// http.Response Body if it receives an error.
+func (client ExpressRouteCircuitAuthorizationsClient) DeleteSender(req *http.Request) (future ExpressRouteCircuitAuthorizationsDeleteFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// DeleteResponder handles the response to the Delete request. The method always
+// closes the http.Response Body.
+func (client ExpressRouteCircuitAuthorizationsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent),
+ autorest.ByClosing())
+ result.Response = resp
+ return
+}
+
+// Get gets the specified authorization from the specified express route circuit.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// circuitName - the name of the express route circuit.
+// authorizationName - the name of the authorization.
+func (client ExpressRouteCircuitAuthorizationsClient) Get(ctx context.Context, resourceGroupName string, circuitName string, authorizationName string) (result ExpressRouteCircuitAuthorization, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteCircuitAuthorizationsClient.Get")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetPreparer(ctx, resourceGroupName, circuitName, authorizationName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "Get", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "Get", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "Get", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetPreparer prepares the Get request.
+func (client ExpressRouteCircuitAuthorizationsClient) GetPreparer(ctx context.Context, resourceGroupName string, circuitName string, authorizationName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "authorizationName": autorest.Encode("path", authorizationName),
+ "circuitName": autorest.Encode("path", circuitName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/expressRouteCircuits/{circuitName}/authorizations/{authorizationName}", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetSender sends the Get request. The method will close the
+// http.Response Body if it receives an error.
+func (client ExpressRouteCircuitAuthorizationsClient) GetSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetResponder handles the response to the Get request. The method always
+// closes the http.Response Body.
+func (client ExpressRouteCircuitAuthorizationsClient) GetResponder(resp *http.Response) (result ExpressRouteCircuitAuthorization, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// List gets all authorizations in an express route circuit.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// circuitName - the name of the circuit.
+func (client ExpressRouteCircuitAuthorizationsClient) List(ctx context.Context, resourceGroupName string, circuitName string) (result AuthorizationListResultPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteCircuitAuthorizationsClient.List")
+ defer func() {
+ sc := -1
+ if result.alr.Response.Response != nil {
+ sc = result.alr.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.listNextResults
+ req, err := client.ListPreparer(ctx, resourceGroupName, circuitName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "List", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.alr.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "List", resp, "Failure sending request")
+ return
+ }
+
+ result.alr, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "List", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListPreparer prepares the List request.
+func (client ExpressRouteCircuitAuthorizationsClient) ListPreparer(ctx context.Context, resourceGroupName string, circuitName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "circuitName": autorest.Encode("path", circuitName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/expressRouteCircuits/{circuitName}/authorizations", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListSender sends the List request. The method will close the
+// http.Response Body if it receives an error.
+func (client ExpressRouteCircuitAuthorizationsClient) ListSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListResponder handles the response to the List request. The method always
+// closes the http.Response Body.
+func (client ExpressRouteCircuitAuthorizationsClient) ListResponder(resp *http.Response) (result AuthorizationListResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listNextResults retrieves the next set of results, if any.
+func (client ExpressRouteCircuitAuthorizationsClient) listNextResults(ctx context.Context, lastResults AuthorizationListResult) (result AuthorizationListResult, err error) {
+ req, err := lastResults.authorizationListResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "listNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "listNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsClient", "listNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListComplete enumerates all values, automatically crossing page boundaries as required.
+func (client ExpressRouteCircuitAuthorizationsClient) ListComplete(ctx context.Context, resourceGroupName string, circuitName string) (result AuthorizationListResultIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteCircuitAuthorizationsClient.List")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.List(ctx, resourceGroupName, circuitName)
+ return
+}
diff --git a/services/network/mgmt/2019-11-01/network/expressroutecircuitconnections.go b/services/network/mgmt/2019-11-01/network/expressroutecircuitconnections.go
new file mode 100644
index 000000000000..90bd18952e31
--- /dev/null
+++ b/services/network/mgmt/2019-11-01/network/expressroutecircuitconnections.go
@@ -0,0 +1,408 @@
+package network
+
+// Copyright (c) Microsoft and contributors. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+ "context"
+ "github.com/Azure/go-autorest/autorest"
+ "github.com/Azure/go-autorest/autorest/azure"
+ "github.com/Azure/go-autorest/tracing"
+ "net/http"
+)
+
+// ExpressRouteCircuitConnectionsClient is the network Client
+type ExpressRouteCircuitConnectionsClient struct {
+ BaseClient
+}
+
+// NewExpressRouteCircuitConnectionsClient creates an instance of the ExpressRouteCircuitConnectionsClient client.
+func NewExpressRouteCircuitConnectionsClient(subscriptionID string) ExpressRouteCircuitConnectionsClient {
+ return NewExpressRouteCircuitConnectionsClientWithBaseURI(DefaultBaseURI, subscriptionID)
+}
+
+// NewExpressRouteCircuitConnectionsClientWithBaseURI creates an instance of the ExpressRouteCircuitConnectionsClient
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
+func NewExpressRouteCircuitConnectionsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCircuitConnectionsClient {
+ return ExpressRouteCircuitConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
+}
+
+// CreateOrUpdate creates or updates a Express Route Circuit Connection in the specified express route circuits.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// circuitName - the name of the express route circuit.
+// peeringName - the name of the peering.
+// connectionName - the name of the express route circuit connection.
+// expressRouteCircuitConnectionParameters - parameters supplied to the create or update express route circuit
+// connection operation.
+func (client ExpressRouteCircuitConnectionsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, connectionName string, expressRouteCircuitConnectionParameters ExpressRouteCircuitConnection) (result ExpressRouteCircuitConnectionsCreateOrUpdateFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteCircuitConnectionsClient.CreateOrUpdate")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, circuitName, peeringName, connectionName, expressRouteCircuitConnectionParameters)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitConnectionsClient", "CreateOrUpdate", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.CreateOrUpdateSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitConnectionsClient", "CreateOrUpdate", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// CreateOrUpdatePreparer prepares the CreateOrUpdate request.
+func (client ExpressRouteCircuitConnectionsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, connectionName string, expressRouteCircuitConnectionParameters ExpressRouteCircuitConnection) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "circuitName": autorest.Encode("path", circuitName),
+ "connectionName": autorest.Encode("path", connectionName),
+ "peeringName": autorest.Encode("path", peeringName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ expressRouteCircuitConnectionParameters.Etag = nil
+ expressRouteCircuitConnectionParameters.Type = nil
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPut(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}/connections/{connectionName}", pathParameters),
+ autorest.WithJSON(expressRouteCircuitConnectionParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the
+// http.Response Body if it receives an error.
+func (client ExpressRouteCircuitConnectionsClient) CreateOrUpdateSender(req *http.Request) (future ExpressRouteCircuitConnectionsCreateOrUpdateFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always
+// closes the http.Response Body.
+func (client ExpressRouteCircuitConnectionsClient) CreateOrUpdateResponder(resp *http.Response) (result ExpressRouteCircuitConnection, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// Delete deletes the specified Express Route Circuit Connection from the specified express route circuit.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// circuitName - the name of the express route circuit.
+// peeringName - the name of the peering.
+// connectionName - the name of the express route circuit connection.
+func (client ExpressRouteCircuitConnectionsClient) Delete(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, connectionName string) (result ExpressRouteCircuitConnectionsDeleteFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteCircuitConnectionsClient.Delete")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.DeletePreparer(ctx, resourceGroupName, circuitName, peeringName, connectionName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitConnectionsClient", "Delete", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.DeleteSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitConnectionsClient", "Delete", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// DeletePreparer prepares the Delete request.
+func (client ExpressRouteCircuitConnectionsClient) DeletePreparer(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, connectionName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "circuitName": autorest.Encode("path", circuitName),
+ "connectionName": autorest.Encode("path", connectionName),
+ "peeringName": autorest.Encode("path", peeringName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}/connections/{connectionName}", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// DeleteSender sends the Delete request. The method will close the
+// http.Response Body if it receives an error.
+func (client ExpressRouteCircuitConnectionsClient) DeleteSender(req *http.Request) (future ExpressRouteCircuitConnectionsDeleteFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// DeleteResponder handles the response to the Delete request. The method always
+// closes the http.Response Body.
+func (client ExpressRouteCircuitConnectionsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent),
+ autorest.ByClosing())
+ result.Response = resp
+ return
+}
+
+// Get gets the specified Express Route Circuit Connection from the specified express route circuit.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// circuitName - the name of the express route circuit.
+// peeringName - the name of the peering.
+// connectionName - the name of the express route circuit connection.
+func (client ExpressRouteCircuitConnectionsClient) Get(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, connectionName string) (result ExpressRouteCircuitConnection, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteCircuitConnectionsClient.Get")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetPreparer(ctx, resourceGroupName, circuitName, peeringName, connectionName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitConnectionsClient", "Get", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitConnectionsClient", "Get", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitConnectionsClient", "Get", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetPreparer prepares the Get request.
+func (client ExpressRouteCircuitConnectionsClient) GetPreparer(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, connectionName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "circuitName": autorest.Encode("path", circuitName),
+ "connectionName": autorest.Encode("path", connectionName),
+ "peeringName": autorest.Encode("path", peeringName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}/connections/{connectionName}", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetSender sends the Get request. The method will close the
+// http.Response Body if it receives an error.
+func (client ExpressRouteCircuitConnectionsClient) GetSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetResponder handles the response to the Get request. The method always
+// closes the http.Response Body.
+func (client ExpressRouteCircuitConnectionsClient) GetResponder(resp *http.Response) (result ExpressRouteCircuitConnection, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// List gets all global reach connections associated with a private peering in an express route circuit.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// circuitName - the name of the circuit.
+// peeringName - the name of the peering.
+func (client ExpressRouteCircuitConnectionsClient) List(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result ExpressRouteCircuitConnectionListResultPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteCircuitConnectionsClient.List")
+ defer func() {
+ sc := -1
+ if result.ercclr.Response.Response != nil {
+ sc = result.ercclr.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.listNextResults
+ req, err := client.ListPreparer(ctx, resourceGroupName, circuitName, peeringName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitConnectionsClient", "List", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.ercclr.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitConnectionsClient", "List", resp, "Failure sending request")
+ return
+ }
+
+ result.ercclr, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitConnectionsClient", "List", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListPreparer prepares the List request.
+func (client ExpressRouteCircuitConnectionsClient) ListPreparer(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "circuitName": autorest.Encode("path", circuitName),
+ "peeringName": autorest.Encode("path", peeringName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}/connections", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListSender sends the List request. The method will close the
+// http.Response Body if it receives an error.
+func (client ExpressRouteCircuitConnectionsClient) ListSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListResponder handles the response to the List request. The method always
+// closes the http.Response Body.
+func (client ExpressRouteCircuitConnectionsClient) ListResponder(resp *http.Response) (result ExpressRouteCircuitConnectionListResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listNextResults retrieves the next set of results, if any.
+func (client ExpressRouteCircuitConnectionsClient) listNextResults(ctx context.Context, lastResults ExpressRouteCircuitConnectionListResult) (result ExpressRouteCircuitConnectionListResult, err error) {
+ req, err := lastResults.expressRouteCircuitConnectionListResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "network.ExpressRouteCircuitConnectionsClient", "listNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "network.ExpressRouteCircuitConnectionsClient", "listNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitConnectionsClient", "listNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListComplete enumerates all values, automatically crossing page boundaries as required.
+func (client ExpressRouteCircuitConnectionsClient) ListComplete(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result ExpressRouteCircuitConnectionListResultIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteCircuitConnectionsClient.List")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.List(ctx, resourceGroupName, circuitName, peeringName)
+ return
+}
diff --git a/services/network/mgmt/2019-11-01/network/expressroutecircuitpeerings.go b/services/network/mgmt/2019-11-01/network/expressroutecircuitpeerings.go
new file mode 100644
index 000000000000..5b82ca1fc97a
--- /dev/null
+++ b/services/network/mgmt/2019-11-01/network/expressroutecircuitpeerings.go
@@ -0,0 +1,411 @@
+package network
+
+// Copyright (c) Microsoft and contributors. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+ "context"
+ "github.com/Azure/go-autorest/autorest"
+ "github.com/Azure/go-autorest/autorest/azure"
+ "github.com/Azure/go-autorest/autorest/validation"
+ "github.com/Azure/go-autorest/tracing"
+ "net/http"
+)
+
+// ExpressRouteCircuitPeeringsClient is the network Client
+type ExpressRouteCircuitPeeringsClient struct {
+ BaseClient
+}
+
+// NewExpressRouteCircuitPeeringsClient creates an instance of the ExpressRouteCircuitPeeringsClient client.
+func NewExpressRouteCircuitPeeringsClient(subscriptionID string) ExpressRouteCircuitPeeringsClient {
+ return NewExpressRouteCircuitPeeringsClientWithBaseURI(DefaultBaseURI, subscriptionID)
+}
+
+// NewExpressRouteCircuitPeeringsClientWithBaseURI creates an instance of the ExpressRouteCircuitPeeringsClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
+func NewExpressRouteCircuitPeeringsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCircuitPeeringsClient {
+ return ExpressRouteCircuitPeeringsClient{NewWithBaseURI(baseURI, subscriptionID)}
+}
+
+// CreateOrUpdate creates or updates a peering in the specified express route circuits.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// circuitName - the name of the express route circuit.
+// peeringName - the name of the peering.
+// peeringParameters - parameters supplied to the create or update express route circuit peering operation.
+func (client ExpressRouteCircuitPeeringsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, peeringParameters ExpressRouteCircuitPeering) (result ExpressRouteCircuitPeeringsCreateOrUpdateFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteCircuitPeeringsClient.CreateOrUpdate")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: peeringParameters,
+ Constraints: []validation.Constraint{{Target: "peeringParameters.ExpressRouteCircuitPeeringPropertiesFormat", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "peeringParameters.ExpressRouteCircuitPeeringPropertiesFormat.PeerASN", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "peeringParameters.ExpressRouteCircuitPeeringPropertiesFormat.PeerASN", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil},
+ {Target: "peeringParameters.ExpressRouteCircuitPeeringPropertiesFormat.PeerASN", Name: validation.InclusiveMinimum, Rule: int64(1), Chain: nil},
+ }},
+ }}}}}); err != nil {
+ return result, validation.NewError("network.ExpressRouteCircuitPeeringsClient", "CreateOrUpdate", err.Error())
+ }
+
+ req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, circuitName, peeringName, peeringParameters)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "CreateOrUpdate", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.CreateOrUpdateSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "CreateOrUpdate", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// CreateOrUpdatePreparer prepares the CreateOrUpdate request.
+func (client ExpressRouteCircuitPeeringsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, peeringParameters ExpressRouteCircuitPeering) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "circuitName": autorest.Encode("path", circuitName),
+ "peeringName": autorest.Encode("path", peeringName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ peeringParameters.Etag = nil
+ peeringParameters.Type = nil
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPut(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}", pathParameters),
+ autorest.WithJSON(peeringParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the
+// http.Response Body if it receives an error.
+func (client ExpressRouteCircuitPeeringsClient) CreateOrUpdateSender(req *http.Request) (future ExpressRouteCircuitPeeringsCreateOrUpdateFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always
+// closes the http.Response Body.
+func (client ExpressRouteCircuitPeeringsClient) CreateOrUpdateResponder(resp *http.Response) (result ExpressRouteCircuitPeering, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// Delete deletes the specified peering from the specified express route circuit.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// circuitName - the name of the express route circuit.
+// peeringName - the name of the peering.
+func (client ExpressRouteCircuitPeeringsClient) Delete(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result ExpressRouteCircuitPeeringsDeleteFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteCircuitPeeringsClient.Delete")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.DeletePreparer(ctx, resourceGroupName, circuitName, peeringName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "Delete", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.DeleteSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "Delete", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// DeletePreparer prepares the Delete request.
+func (client ExpressRouteCircuitPeeringsClient) DeletePreparer(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "circuitName": autorest.Encode("path", circuitName),
+ "peeringName": autorest.Encode("path", peeringName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// DeleteSender sends the Delete request. The method will close the
+// http.Response Body if it receives an error.
+func (client ExpressRouteCircuitPeeringsClient) DeleteSender(req *http.Request) (future ExpressRouteCircuitPeeringsDeleteFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// DeleteResponder handles the response to the Delete request. The method always
+// closes the http.Response Body.
+func (client ExpressRouteCircuitPeeringsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent),
+ autorest.ByClosing())
+ result.Response = resp
+ return
+}
+
+// Get gets the specified peering for the express route circuit.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// circuitName - the name of the express route circuit.
+// peeringName - the name of the peering.
+func (client ExpressRouteCircuitPeeringsClient) Get(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result ExpressRouteCircuitPeering, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteCircuitPeeringsClient.Get")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetPreparer(ctx, resourceGroupName, circuitName, peeringName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "Get", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "Get", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "Get", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetPreparer prepares the Get request.
+func (client ExpressRouteCircuitPeeringsClient) GetPreparer(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "circuitName": autorest.Encode("path", circuitName),
+ "peeringName": autorest.Encode("path", peeringName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetSender sends the Get request. The method will close the
+// http.Response Body if it receives an error.
+func (client ExpressRouteCircuitPeeringsClient) GetSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetResponder handles the response to the Get request. The method always
+// closes the http.Response Body.
+func (client ExpressRouteCircuitPeeringsClient) GetResponder(resp *http.Response) (result ExpressRouteCircuitPeering, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// List gets all peerings in a specified express route circuit.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// circuitName - the name of the express route circuit.
+func (client ExpressRouteCircuitPeeringsClient) List(ctx context.Context, resourceGroupName string, circuitName string) (result ExpressRouteCircuitPeeringListResultPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteCircuitPeeringsClient.List")
+ defer func() {
+ sc := -1
+ if result.ercplr.Response.Response != nil {
+ sc = result.ercplr.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.listNextResults
+ req, err := client.ListPreparer(ctx, resourceGroupName, circuitName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "List", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.ercplr.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "List", resp, "Failure sending request")
+ return
+ }
+
+ result.ercplr, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "List", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListPreparer prepares the List request.
+func (client ExpressRouteCircuitPeeringsClient) ListPreparer(ctx context.Context, resourceGroupName string, circuitName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "circuitName": autorest.Encode("path", circuitName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/expressRouteCircuits/{circuitName}/peerings", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListSender sends the List request. The method will close the
+// http.Response Body if it receives an error.
+func (client ExpressRouteCircuitPeeringsClient) ListSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListResponder handles the response to the List request. The method always
+// closes the http.Response Body.
+func (client ExpressRouteCircuitPeeringsClient) ListResponder(resp *http.Response) (result ExpressRouteCircuitPeeringListResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listNextResults retrieves the next set of results, if any.
+func (client ExpressRouteCircuitPeeringsClient) listNextResults(ctx context.Context, lastResults ExpressRouteCircuitPeeringListResult) (result ExpressRouteCircuitPeeringListResult, err error) {
+ req, err := lastResults.expressRouteCircuitPeeringListResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "listNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "listNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsClient", "listNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListComplete enumerates all values, automatically crossing page boundaries as required.
+func (client ExpressRouteCircuitPeeringsClient) ListComplete(ctx context.Context, resourceGroupName string, circuitName string) (result ExpressRouteCircuitPeeringListResultIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteCircuitPeeringsClient.List")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.List(ctx, resourceGroupName, circuitName)
+ return
+}
diff --git a/services/network/mgmt/2019-11-01/network/expressroutecircuits.go b/services/network/mgmt/2019-11-01/network/expressroutecircuits.go
new file mode 100644
index 000000000000..81474b4f1e86
--- /dev/null
+++ b/services/network/mgmt/2019-11-01/network/expressroutecircuits.go
@@ -0,0 +1,981 @@
+package network
+
+// Copyright (c) Microsoft and contributors. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+ "context"
+ "github.com/Azure/go-autorest/autorest"
+ "github.com/Azure/go-autorest/autorest/azure"
+ "github.com/Azure/go-autorest/tracing"
+ "net/http"
+)
+
+// ExpressRouteCircuitsClient is the network Client
+type ExpressRouteCircuitsClient struct {
+ BaseClient
+}
+
+// NewExpressRouteCircuitsClient creates an instance of the ExpressRouteCircuitsClient client.
+func NewExpressRouteCircuitsClient(subscriptionID string) ExpressRouteCircuitsClient {
+ return NewExpressRouteCircuitsClientWithBaseURI(DefaultBaseURI, subscriptionID)
+}
+
+// NewExpressRouteCircuitsClientWithBaseURI creates an instance of the ExpressRouteCircuitsClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
+func NewExpressRouteCircuitsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCircuitsClient {
+ return ExpressRouteCircuitsClient{NewWithBaseURI(baseURI, subscriptionID)}
+}
+
+// CreateOrUpdate creates or updates an express route circuit.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// circuitName - the name of the circuit.
+// parameters - parameters supplied to the create or update express route circuit operation.
+func (client ExpressRouteCircuitsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, circuitName string, parameters ExpressRouteCircuit) (result ExpressRouteCircuitsCreateOrUpdateFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteCircuitsClient.CreateOrUpdate")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, circuitName, parameters)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "CreateOrUpdate", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.CreateOrUpdateSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "CreateOrUpdate", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// CreateOrUpdatePreparer prepares the CreateOrUpdate request.
+func (client ExpressRouteCircuitsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, circuitName string, parameters ExpressRouteCircuit) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "circuitName": autorest.Encode("path", circuitName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ parameters.Etag = nil
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPut(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}", pathParameters),
+ autorest.WithJSON(parameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the
+// http.Response Body if it receives an error.
+func (client ExpressRouteCircuitsClient) CreateOrUpdateSender(req *http.Request) (future ExpressRouteCircuitsCreateOrUpdateFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always
+// closes the http.Response Body.
+func (client ExpressRouteCircuitsClient) CreateOrUpdateResponder(resp *http.Response) (result ExpressRouteCircuit, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// Delete deletes the specified express route circuit.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// circuitName - the name of the express route circuit.
+func (client ExpressRouteCircuitsClient) Delete(ctx context.Context, resourceGroupName string, circuitName string) (result ExpressRouteCircuitsDeleteFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteCircuitsClient.Delete")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.DeletePreparer(ctx, resourceGroupName, circuitName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "Delete", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.DeleteSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "Delete", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// DeletePreparer prepares the Delete request.
+func (client ExpressRouteCircuitsClient) DeletePreparer(ctx context.Context, resourceGroupName string, circuitName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "circuitName": autorest.Encode("path", circuitName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/expressRouteCircuits/{circuitName}", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// DeleteSender sends the Delete request. The method will close the
+// http.Response Body if it receives an error.
+func (client ExpressRouteCircuitsClient) DeleteSender(req *http.Request) (future ExpressRouteCircuitsDeleteFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// DeleteResponder handles the response to the Delete request. The method always
+// closes the http.Response Body.
+func (client ExpressRouteCircuitsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent),
+ autorest.ByClosing())
+ result.Response = resp
+ return
+}
+
+// Get gets information about the specified express route circuit.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// circuitName - the name of express route circuit.
+func (client ExpressRouteCircuitsClient) Get(ctx context.Context, resourceGroupName string, circuitName string) (result ExpressRouteCircuit, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteCircuitsClient.Get")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetPreparer(ctx, resourceGroupName, circuitName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "Get", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "Get", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "Get", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetPreparer prepares the Get request.
+func (client ExpressRouteCircuitsClient) GetPreparer(ctx context.Context, resourceGroupName string, circuitName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "circuitName": autorest.Encode("path", circuitName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/expressRouteCircuits/{circuitName}", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetSender sends the Get request. The method will close the
+// http.Response Body if it receives an error.
+func (client ExpressRouteCircuitsClient) GetSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetResponder handles the response to the Get request. The method always
+// closes the http.Response Body.
+func (client ExpressRouteCircuitsClient) GetResponder(resp *http.Response) (result ExpressRouteCircuit, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// GetPeeringStats gets all stats from an express route circuit in a resource group.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// circuitName - the name of the express route circuit.
+// peeringName - the name of the peering.
+func (client ExpressRouteCircuitsClient) GetPeeringStats(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (result ExpressRouteCircuitStats, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteCircuitsClient.GetPeeringStats")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetPeeringStatsPreparer(ctx, resourceGroupName, circuitName, peeringName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "GetPeeringStats", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetPeeringStatsSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "GetPeeringStats", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetPeeringStatsResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "GetPeeringStats", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetPeeringStatsPreparer prepares the GetPeeringStats request.
+func (client ExpressRouteCircuitsClient) GetPeeringStatsPreparer(ctx context.Context, resourceGroupName string, circuitName string, peeringName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "circuitName": autorest.Encode("path", circuitName),
+ "peeringName": autorest.Encode("path", peeringName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}/stats", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetPeeringStatsSender sends the GetPeeringStats request. The method will close the
+// http.Response Body if it receives an error.
+func (client ExpressRouteCircuitsClient) GetPeeringStatsSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetPeeringStatsResponder handles the response to the GetPeeringStats request. The method always
+// closes the http.Response Body.
+func (client ExpressRouteCircuitsClient) GetPeeringStatsResponder(resp *http.Response) (result ExpressRouteCircuitStats, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// GetStats gets all the stats from an express route circuit in a resource group.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// circuitName - the name of the express route circuit.
+func (client ExpressRouteCircuitsClient) GetStats(ctx context.Context, resourceGroupName string, circuitName string) (result ExpressRouteCircuitStats, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteCircuitsClient.GetStats")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetStatsPreparer(ctx, resourceGroupName, circuitName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "GetStats", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetStatsSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "GetStats", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetStatsResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "GetStats", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetStatsPreparer prepares the GetStats request.
+func (client ExpressRouteCircuitsClient) GetStatsPreparer(ctx context.Context, resourceGroupName string, circuitName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "circuitName": autorest.Encode("path", circuitName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/expressRouteCircuits/{circuitName}/stats", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetStatsSender sends the GetStats request. The method will close the
+// http.Response Body if it receives an error.
+func (client ExpressRouteCircuitsClient) GetStatsSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetStatsResponder handles the response to the GetStats request. The method always
+// closes the http.Response Body.
+func (client ExpressRouteCircuitsClient) GetStatsResponder(resp *http.Response) (result ExpressRouteCircuitStats, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// List gets all the express route circuits in a resource group.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+func (client ExpressRouteCircuitsClient) List(ctx context.Context, resourceGroupName string) (result ExpressRouteCircuitListResultPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteCircuitsClient.List")
+ defer func() {
+ sc := -1
+ if result.erclr.Response.Response != nil {
+ sc = result.erclr.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.listNextResults
+ req, err := client.ListPreparer(ctx, resourceGroupName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "List", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.erclr.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "List", resp, "Failure sending request")
+ return
+ }
+
+ result.erclr, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "List", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListPreparer prepares the List request.
+func (client ExpressRouteCircuitsClient) ListPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/expressRouteCircuits", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListSender sends the List request. The method will close the
+// http.Response Body if it receives an error.
+func (client ExpressRouteCircuitsClient) ListSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListResponder handles the response to the List request. The method always
+// closes the http.Response Body.
+func (client ExpressRouteCircuitsClient) ListResponder(resp *http.Response) (result ExpressRouteCircuitListResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listNextResults retrieves the next set of results, if any.
+func (client ExpressRouteCircuitsClient) listNextResults(ctx context.Context, lastResults ExpressRouteCircuitListResult) (result ExpressRouteCircuitListResult, err error) {
+ req, err := lastResults.expressRouteCircuitListResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "listNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "listNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "listNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListComplete enumerates all values, automatically crossing page boundaries as required.
+func (client ExpressRouteCircuitsClient) ListComplete(ctx context.Context, resourceGroupName string) (result ExpressRouteCircuitListResultIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteCircuitsClient.List")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.List(ctx, resourceGroupName)
+ return
+}
+
+// ListAll gets all the express route circuits in a subscription.
+func (client ExpressRouteCircuitsClient) ListAll(ctx context.Context) (result ExpressRouteCircuitListResultPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteCircuitsClient.ListAll")
+ defer func() {
+ sc := -1
+ if result.erclr.Response.Response != nil {
+ sc = result.erclr.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.listAllNextResults
+ req, err := client.ListAllPreparer(ctx)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "ListAll", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListAllSender(req)
+ if err != nil {
+ result.erclr.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "ListAll", resp, "Failure sending request")
+ return
+ }
+
+ result.erclr, err = client.ListAllResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "ListAll", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListAllPreparer prepares the ListAll request.
+func (client ExpressRouteCircuitsClient) ListAllPreparer(ctx context.Context) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/expressRouteCircuits", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListAllSender sends the ListAll request. The method will close the
+// http.Response Body if it receives an error.
+func (client ExpressRouteCircuitsClient) ListAllSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListAllResponder handles the response to the ListAll request. The method always
+// closes the http.Response Body.
+func (client ExpressRouteCircuitsClient) ListAllResponder(resp *http.Response) (result ExpressRouteCircuitListResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listAllNextResults retrieves the next set of results, if any.
+func (client ExpressRouteCircuitsClient) listAllNextResults(ctx context.Context, lastResults ExpressRouteCircuitListResult) (result ExpressRouteCircuitListResult, err error) {
+ req, err := lastResults.expressRouteCircuitListResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "listAllNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListAllSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "listAllNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListAllResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "listAllNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListAllComplete enumerates all values, automatically crossing page boundaries as required.
+func (client ExpressRouteCircuitsClient) ListAllComplete(ctx context.Context) (result ExpressRouteCircuitListResultIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteCircuitsClient.ListAll")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.ListAll(ctx)
+ return
+}
+
+// ListArpTable gets the currently advertised ARP table associated with the express route circuit in a resource group.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// circuitName - the name of the express route circuit.
+// peeringName - the name of the peering.
+// devicePath - the path of the device.
+func (client ExpressRouteCircuitsClient) ListArpTable(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, devicePath string) (result ExpressRouteCircuitsListArpTableFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteCircuitsClient.ListArpTable")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.ListArpTablePreparer(ctx, resourceGroupName, circuitName, peeringName, devicePath)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "ListArpTable", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.ListArpTableSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "ListArpTable", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// ListArpTablePreparer prepares the ListArpTable request.
+func (client ExpressRouteCircuitsClient) ListArpTablePreparer(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, devicePath string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "circuitName": autorest.Encode("path", circuitName),
+ "devicePath": autorest.Encode("path", devicePath),
+ "peeringName": autorest.Encode("path", peeringName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}/arpTables/{devicePath}", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListArpTableSender sends the ListArpTable request. The method will close the
+// http.Response Body if it receives an error.
+func (client ExpressRouteCircuitsClient) ListArpTableSender(req *http.Request) (future ExpressRouteCircuitsListArpTableFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// ListArpTableResponder handles the response to the ListArpTable request. The method always
+// closes the http.Response Body.
+func (client ExpressRouteCircuitsClient) ListArpTableResponder(resp *http.Response) (result ExpressRouteCircuitsArpTableListResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// ListRoutesTable gets the currently advertised routes table associated with the express route circuit in a resource
+// group.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// circuitName - the name of the express route circuit.
+// peeringName - the name of the peering.
+// devicePath - the path of the device.
+func (client ExpressRouteCircuitsClient) ListRoutesTable(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, devicePath string) (result ExpressRouteCircuitsListRoutesTableFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteCircuitsClient.ListRoutesTable")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.ListRoutesTablePreparer(ctx, resourceGroupName, circuitName, peeringName, devicePath)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "ListRoutesTable", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.ListRoutesTableSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "ListRoutesTable", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// ListRoutesTablePreparer prepares the ListRoutesTable request.
+func (client ExpressRouteCircuitsClient) ListRoutesTablePreparer(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, devicePath string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "circuitName": autorest.Encode("path", circuitName),
+ "devicePath": autorest.Encode("path", devicePath),
+ "peeringName": autorest.Encode("path", peeringName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}/routeTables/{devicePath}", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListRoutesTableSender sends the ListRoutesTable request. The method will close the
+// http.Response Body if it receives an error.
+func (client ExpressRouteCircuitsClient) ListRoutesTableSender(req *http.Request) (future ExpressRouteCircuitsListRoutesTableFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// ListRoutesTableResponder handles the response to the ListRoutesTable request. The method always
+// closes the http.Response Body.
+func (client ExpressRouteCircuitsClient) ListRoutesTableResponder(resp *http.Response) (result ExpressRouteCircuitsRoutesTableListResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// ListRoutesTableSummary gets the currently advertised routes table summary associated with the express route circuit
+// in a resource group.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// circuitName - the name of the express route circuit.
+// peeringName - the name of the peering.
+// devicePath - the path of the device.
+func (client ExpressRouteCircuitsClient) ListRoutesTableSummary(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, devicePath string) (result ExpressRouteCircuitsListRoutesTableSummaryFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteCircuitsClient.ListRoutesTableSummary")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.ListRoutesTableSummaryPreparer(ctx, resourceGroupName, circuitName, peeringName, devicePath)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "ListRoutesTableSummary", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.ListRoutesTableSummarySender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "ListRoutesTableSummary", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// ListRoutesTableSummaryPreparer prepares the ListRoutesTableSummary request.
+func (client ExpressRouteCircuitsClient) ListRoutesTableSummaryPreparer(ctx context.Context, resourceGroupName string, circuitName string, peeringName string, devicePath string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "circuitName": autorest.Encode("path", circuitName),
+ "devicePath": autorest.Encode("path", devicePath),
+ "peeringName": autorest.Encode("path", peeringName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}/routeTablesSummary/{devicePath}", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListRoutesTableSummarySender sends the ListRoutesTableSummary request. The method will close the
+// http.Response Body if it receives an error.
+func (client ExpressRouteCircuitsClient) ListRoutesTableSummarySender(req *http.Request) (future ExpressRouteCircuitsListRoutesTableSummaryFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// ListRoutesTableSummaryResponder handles the response to the ListRoutesTableSummary request. The method always
+// closes the http.Response Body.
+func (client ExpressRouteCircuitsClient) ListRoutesTableSummaryResponder(resp *http.Response) (result ExpressRouteCircuitsRoutesTableSummaryListResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// UpdateTags updates an express route circuit tags.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// circuitName - the name of the circuit.
+// parameters - parameters supplied to update express route circuit tags.
+func (client ExpressRouteCircuitsClient) UpdateTags(ctx context.Context, resourceGroupName string, circuitName string, parameters TagsObject) (result ExpressRouteCircuit, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteCircuitsClient.UpdateTags")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.UpdateTagsPreparer(ctx, resourceGroupName, circuitName, parameters)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "UpdateTags", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.UpdateTagsSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "UpdateTags", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.UpdateTagsResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsClient", "UpdateTags", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// UpdateTagsPreparer prepares the UpdateTags request.
+func (client ExpressRouteCircuitsClient) UpdateTagsPreparer(ctx context.Context, resourceGroupName string, circuitName string, parameters TagsObject) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "circuitName": autorest.Encode("path", circuitName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/expressRouteCircuits/{circuitName}", pathParameters),
+ autorest.WithJSON(parameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// UpdateTagsSender sends the UpdateTags request. The method will close the
+// http.Response Body if it receives an error.
+func (client ExpressRouteCircuitsClient) UpdateTagsSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// UpdateTagsResponder handles the response to the UpdateTags request. The method always
+// closes the http.Response Body.
+func (client ExpressRouteCircuitsClient) UpdateTagsResponder(resp *http.Response) (result ExpressRouteCircuit, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
diff --git a/services/network/mgmt/2019-11-01/network/expressrouteconnections.go b/services/network/mgmt/2019-11-01/network/expressrouteconnections.go
new file mode 100644
index 000000000000..9f5e22d7b613
--- /dev/null
+++ b/services/network/mgmt/2019-11-01/network/expressrouteconnections.go
@@ -0,0 +1,368 @@
+package network
+
+// Copyright (c) Microsoft and contributors. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+ "context"
+ "github.com/Azure/go-autorest/autorest"
+ "github.com/Azure/go-autorest/autorest/azure"
+ "github.com/Azure/go-autorest/autorest/validation"
+ "github.com/Azure/go-autorest/tracing"
+ "net/http"
+)
+
+// ExpressRouteConnectionsClient is the network Client
+type ExpressRouteConnectionsClient struct {
+ BaseClient
+}
+
+// NewExpressRouteConnectionsClient creates an instance of the ExpressRouteConnectionsClient client.
+func NewExpressRouteConnectionsClient(subscriptionID string) ExpressRouteConnectionsClient {
+ return NewExpressRouteConnectionsClientWithBaseURI(DefaultBaseURI, subscriptionID)
+}
+
+// NewExpressRouteConnectionsClientWithBaseURI creates an instance of the ExpressRouteConnectionsClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
+func NewExpressRouteConnectionsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteConnectionsClient {
+ return ExpressRouteConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
+}
+
+// CreateOrUpdate creates a connection between an ExpressRoute gateway and an ExpressRoute circuit.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// expressRouteGatewayName - the name of the ExpressRoute gateway.
+// connectionName - the name of the connection subresource.
+// putExpressRouteConnectionParameters - parameters required in an ExpressRouteConnection PUT operation.
+func (client ExpressRouteConnectionsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, expressRouteGatewayName string, connectionName string, putExpressRouteConnectionParameters ExpressRouteConnection) (result ExpressRouteConnectionsCreateOrUpdateFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteConnectionsClient.CreateOrUpdate")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: putExpressRouteConnectionParameters,
+ Constraints: []validation.Constraint{{Target: "putExpressRouteConnectionParameters.ExpressRouteConnectionProperties", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "putExpressRouteConnectionParameters.ExpressRouteConnectionProperties.ExpressRouteCircuitPeering", Name: validation.Null, Rule: true, Chain: nil}}},
+ {Target: "putExpressRouteConnectionParameters.Name", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("network.ExpressRouteConnectionsClient", "CreateOrUpdate", err.Error())
+ }
+
+ req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, expressRouteGatewayName, connectionName, putExpressRouteConnectionParameters)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteConnectionsClient", "CreateOrUpdate", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.CreateOrUpdateSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteConnectionsClient", "CreateOrUpdate", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// CreateOrUpdatePreparer prepares the CreateOrUpdate request.
+func (client ExpressRouteConnectionsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, expressRouteGatewayName string, connectionName string, putExpressRouteConnectionParameters ExpressRouteConnection) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "connectionName": autorest.Encode("path", connectionName),
+ "expressRouteGatewayName": autorest.Encode("path", expressRouteGatewayName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/expressRouteGateways/{expressRouteGatewayName}/expressRouteConnections/{connectionName}", pathParameters),
+ autorest.WithJSON(putExpressRouteConnectionParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the
+// http.Response Body if it receives an error.
+func (client ExpressRouteConnectionsClient) CreateOrUpdateSender(req *http.Request) (future ExpressRouteConnectionsCreateOrUpdateFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always
+// closes the http.Response Body.
+func (client ExpressRouteConnectionsClient) CreateOrUpdateResponder(resp *http.Response) (result ExpressRouteConnection, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// Delete deletes a connection to a ExpressRoute circuit.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// expressRouteGatewayName - the name of the ExpressRoute gateway.
+// connectionName - the name of the connection subresource.
+func (client ExpressRouteConnectionsClient) Delete(ctx context.Context, resourceGroupName string, expressRouteGatewayName string, connectionName string) (result ExpressRouteConnectionsDeleteFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteConnectionsClient.Delete")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.DeletePreparer(ctx, resourceGroupName, expressRouteGatewayName, connectionName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteConnectionsClient", "Delete", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.DeleteSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteConnectionsClient", "Delete", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// DeletePreparer prepares the Delete request.
+func (client ExpressRouteConnectionsClient) DeletePreparer(ctx context.Context, resourceGroupName string, expressRouteGatewayName string, connectionName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "connectionName": autorest.Encode("path", connectionName),
+ "expressRouteGatewayName": autorest.Encode("path", expressRouteGatewayName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/expressRouteGateways/{expressRouteGatewayName}/expressRouteConnections/{connectionName}", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// DeleteSender sends the Delete request. The method will close the
+// http.Response Body if it receives an error.
+func (client ExpressRouteConnectionsClient) DeleteSender(req *http.Request) (future ExpressRouteConnectionsDeleteFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// DeleteResponder handles the response to the Delete request. The method always
+// closes the http.Response Body.
+func (client ExpressRouteConnectionsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent),
+ autorest.ByClosing())
+ result.Response = resp
+ return
+}
+
+// Get gets the specified ExpressRouteConnection.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// expressRouteGatewayName - the name of the ExpressRoute gateway.
+// connectionName - the name of the ExpressRoute connection.
+func (client ExpressRouteConnectionsClient) Get(ctx context.Context, resourceGroupName string, expressRouteGatewayName string, connectionName string) (result ExpressRouteConnection, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteConnectionsClient.Get")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetPreparer(ctx, resourceGroupName, expressRouteGatewayName, connectionName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteConnectionsClient", "Get", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteConnectionsClient", "Get", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteConnectionsClient", "Get", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetPreparer prepares the Get request.
+func (client ExpressRouteConnectionsClient) GetPreparer(ctx context.Context, resourceGroupName string, expressRouteGatewayName string, connectionName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "connectionName": autorest.Encode("path", connectionName),
+ "expressRouteGatewayName": autorest.Encode("path", expressRouteGatewayName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/expressRouteGateways/{expressRouteGatewayName}/expressRouteConnections/{connectionName}", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetSender sends the Get request. The method will close the
+// http.Response Body if it receives an error.
+func (client ExpressRouteConnectionsClient) GetSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetResponder handles the response to the Get request. The method always
+// closes the http.Response Body.
+func (client ExpressRouteConnectionsClient) GetResponder(resp *http.Response) (result ExpressRouteConnection, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// List lists ExpressRouteConnections.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// expressRouteGatewayName - the name of the ExpressRoute gateway.
+func (client ExpressRouteConnectionsClient) List(ctx context.Context, resourceGroupName string, expressRouteGatewayName string) (result ExpressRouteConnectionList, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteConnectionsClient.List")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.ListPreparer(ctx, resourceGroupName, expressRouteGatewayName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteConnectionsClient", "List", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteConnectionsClient", "List", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteConnectionsClient", "List", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListPreparer prepares the List request.
+func (client ExpressRouteConnectionsClient) ListPreparer(ctx context.Context, resourceGroupName string, expressRouteGatewayName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "expressRouteGatewayName": autorest.Encode("path", expressRouteGatewayName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/expressRouteGateways/{expressRouteGatewayName}/expressRouteConnections", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListSender sends the List request. The method will close the
+// http.Response Body if it receives an error.
+func (client ExpressRouteConnectionsClient) ListSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListResponder handles the response to the List request. The method always
+// closes the http.Response Body.
+func (client ExpressRouteConnectionsClient) ListResponder(resp *http.Response) (result ExpressRouteConnectionList, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
diff --git a/services/network/mgmt/2019-11-01/network/expressroutecrossconnectionpeerings.go b/services/network/mgmt/2019-11-01/network/expressroutecrossconnectionpeerings.go
new file mode 100644
index 000000000000..edf85f59d904
--- /dev/null
+++ b/services/network/mgmt/2019-11-01/network/expressroutecrossconnectionpeerings.go
@@ -0,0 +1,412 @@
+package network
+
+// Copyright (c) Microsoft and contributors. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+ "context"
+ "github.com/Azure/go-autorest/autorest"
+ "github.com/Azure/go-autorest/autorest/azure"
+ "github.com/Azure/go-autorest/autorest/validation"
+ "github.com/Azure/go-autorest/tracing"
+ "net/http"
+)
+
+// ExpressRouteCrossConnectionPeeringsClient is the network Client
+type ExpressRouteCrossConnectionPeeringsClient struct {
+ BaseClient
+}
+
+// NewExpressRouteCrossConnectionPeeringsClient creates an instance of the ExpressRouteCrossConnectionPeeringsClient
+// client.
+func NewExpressRouteCrossConnectionPeeringsClient(subscriptionID string) ExpressRouteCrossConnectionPeeringsClient {
+ return NewExpressRouteCrossConnectionPeeringsClientWithBaseURI(DefaultBaseURI, subscriptionID)
+}
+
+// NewExpressRouteCrossConnectionPeeringsClientWithBaseURI creates an instance of the
+// ExpressRouteCrossConnectionPeeringsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
+func NewExpressRouteCrossConnectionPeeringsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCrossConnectionPeeringsClient {
+ return ExpressRouteCrossConnectionPeeringsClient{NewWithBaseURI(baseURI, subscriptionID)}
+}
+
+// CreateOrUpdate creates or updates a peering in the specified ExpressRouteCrossConnection.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// crossConnectionName - the name of the ExpressRouteCrossConnection.
+// peeringName - the name of the peering.
+// peeringParameters - parameters supplied to the create or update ExpressRouteCrossConnection peering
+// operation.
+func (client ExpressRouteCrossConnectionPeeringsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string, peeringParameters ExpressRouteCrossConnectionPeering) (result ExpressRouteCrossConnectionPeeringsCreateOrUpdateFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteCrossConnectionPeeringsClient.CreateOrUpdate")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: peeringParameters,
+ Constraints: []validation.Constraint{{Target: "peeringParameters.ExpressRouteCrossConnectionPeeringProperties", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "peeringParameters.ExpressRouteCrossConnectionPeeringProperties.PeerASN", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "peeringParameters.ExpressRouteCrossConnectionPeeringProperties.PeerASN", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil},
+ {Target: "peeringParameters.ExpressRouteCrossConnectionPeeringProperties.PeerASN", Name: validation.InclusiveMinimum, Rule: int64(1), Chain: nil},
+ }},
+ }}}}}); err != nil {
+ return result, validation.NewError("network.ExpressRouteCrossConnectionPeeringsClient", "CreateOrUpdate", err.Error())
+ }
+
+ req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, crossConnectionName, peeringName, peeringParameters)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionPeeringsClient", "CreateOrUpdate", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.CreateOrUpdateSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionPeeringsClient", "CreateOrUpdate", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// CreateOrUpdatePreparer prepares the CreateOrUpdate request.
+func (client ExpressRouteCrossConnectionPeeringsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string, peeringParameters ExpressRouteCrossConnectionPeering) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "crossConnectionName": autorest.Encode("path", crossConnectionName),
+ "peeringName": autorest.Encode("path", peeringName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ peeringParameters.Etag = nil
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPut(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCrossConnections/{crossConnectionName}/peerings/{peeringName}", pathParameters),
+ autorest.WithJSON(peeringParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the
+// http.Response Body if it receives an error.
+func (client ExpressRouteCrossConnectionPeeringsClient) CreateOrUpdateSender(req *http.Request) (future ExpressRouteCrossConnectionPeeringsCreateOrUpdateFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always
+// closes the http.Response Body.
+func (client ExpressRouteCrossConnectionPeeringsClient) CreateOrUpdateResponder(resp *http.Response) (result ExpressRouteCrossConnectionPeering, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// Delete deletes the specified peering from the ExpressRouteCrossConnection.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// crossConnectionName - the name of the ExpressRouteCrossConnection.
+// peeringName - the name of the peering.
+func (client ExpressRouteCrossConnectionPeeringsClient) Delete(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string) (result ExpressRouteCrossConnectionPeeringsDeleteFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteCrossConnectionPeeringsClient.Delete")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.DeletePreparer(ctx, resourceGroupName, crossConnectionName, peeringName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionPeeringsClient", "Delete", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.DeleteSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionPeeringsClient", "Delete", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// DeletePreparer prepares the Delete request.
+func (client ExpressRouteCrossConnectionPeeringsClient) DeletePreparer(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "crossConnectionName": autorest.Encode("path", crossConnectionName),
+ "peeringName": autorest.Encode("path", peeringName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/expressRouteCrossConnections/{crossConnectionName}/peerings/{peeringName}", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// DeleteSender sends the Delete request. The method will close the
+// http.Response Body if it receives an error.
+func (client ExpressRouteCrossConnectionPeeringsClient) DeleteSender(req *http.Request) (future ExpressRouteCrossConnectionPeeringsDeleteFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// DeleteResponder handles the response to the Delete request. The method always
+// closes the http.Response Body.
+func (client ExpressRouteCrossConnectionPeeringsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent),
+ autorest.ByClosing())
+ result.Response = resp
+ return
+}
+
+// Get gets the specified peering for the ExpressRouteCrossConnection.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// crossConnectionName - the name of the ExpressRouteCrossConnection.
+// peeringName - the name of the peering.
+func (client ExpressRouteCrossConnectionPeeringsClient) Get(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string) (result ExpressRouteCrossConnectionPeering, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteCrossConnectionPeeringsClient.Get")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetPreparer(ctx, resourceGroupName, crossConnectionName, peeringName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionPeeringsClient", "Get", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionPeeringsClient", "Get", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionPeeringsClient", "Get", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetPreparer prepares the Get request.
+func (client ExpressRouteCrossConnectionPeeringsClient) GetPreparer(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "crossConnectionName": autorest.Encode("path", crossConnectionName),
+ "peeringName": autorest.Encode("path", peeringName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/expressRouteCrossConnections/{crossConnectionName}/peerings/{peeringName}", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetSender sends the Get request. The method will close the
+// http.Response Body if it receives an error.
+func (client ExpressRouteCrossConnectionPeeringsClient) GetSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetResponder handles the response to the Get request. The method always
+// closes the http.Response Body.
+func (client ExpressRouteCrossConnectionPeeringsClient) GetResponder(resp *http.Response) (result ExpressRouteCrossConnectionPeering, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// List gets all peerings in a specified ExpressRouteCrossConnection.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// crossConnectionName - the name of the ExpressRouteCrossConnection.
+func (client ExpressRouteCrossConnectionPeeringsClient) List(ctx context.Context, resourceGroupName string, crossConnectionName string) (result ExpressRouteCrossConnectionPeeringListPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteCrossConnectionPeeringsClient.List")
+ defer func() {
+ sc := -1
+ if result.erccpl.Response.Response != nil {
+ sc = result.erccpl.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.listNextResults
+ req, err := client.ListPreparer(ctx, resourceGroupName, crossConnectionName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionPeeringsClient", "List", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.erccpl.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionPeeringsClient", "List", resp, "Failure sending request")
+ return
+ }
+
+ result.erccpl, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionPeeringsClient", "List", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListPreparer prepares the List request.
+func (client ExpressRouteCrossConnectionPeeringsClient) ListPreparer(ctx context.Context, resourceGroupName string, crossConnectionName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "crossConnectionName": autorest.Encode("path", crossConnectionName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/expressRouteCrossConnections/{crossConnectionName}/peerings", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListSender sends the List request. The method will close the
+// http.Response Body if it receives an error.
+func (client ExpressRouteCrossConnectionPeeringsClient) ListSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListResponder handles the response to the List request. The method always
+// closes the http.Response Body.
+func (client ExpressRouteCrossConnectionPeeringsClient) ListResponder(resp *http.Response) (result ExpressRouteCrossConnectionPeeringList, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listNextResults retrieves the next set of results, if any.
+func (client ExpressRouteCrossConnectionPeeringsClient) listNextResults(ctx context.Context, lastResults ExpressRouteCrossConnectionPeeringList) (result ExpressRouteCrossConnectionPeeringList, err error) {
+ req, err := lastResults.expressRouteCrossConnectionPeeringListPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionPeeringsClient", "listNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionPeeringsClient", "listNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionPeeringsClient", "listNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListComplete enumerates all values, automatically crossing page boundaries as required.
+func (client ExpressRouteCrossConnectionPeeringsClient) ListComplete(ctx context.Context, resourceGroupName string, crossConnectionName string) (result ExpressRouteCrossConnectionPeeringListIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteCrossConnectionPeeringsClient.List")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.List(ctx, resourceGroupName, crossConnectionName)
+ return
+}
diff --git a/services/network/mgmt/2019-11-01/network/expressroutecrossconnections.go b/services/network/mgmt/2019-11-01/network/expressroutecrossconnections.go
new file mode 100644
index 000000000000..64619fb3f9d2
--- /dev/null
+++ b/services/network/mgmt/2019-11-01/network/expressroutecrossconnections.go
@@ -0,0 +1,750 @@
+package network
+
+// Copyright (c) Microsoft and contributors. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+ "context"
+ "github.com/Azure/go-autorest/autorest"
+ "github.com/Azure/go-autorest/autorest/azure"
+ "github.com/Azure/go-autorest/tracing"
+ "net/http"
+)
+
+// ExpressRouteCrossConnectionsClient is the network Client
+type ExpressRouteCrossConnectionsClient struct {
+ BaseClient
+}
+
+// NewExpressRouteCrossConnectionsClient creates an instance of the ExpressRouteCrossConnectionsClient client.
+func NewExpressRouteCrossConnectionsClient(subscriptionID string) ExpressRouteCrossConnectionsClient {
+ return NewExpressRouteCrossConnectionsClientWithBaseURI(DefaultBaseURI, subscriptionID)
+}
+
+// NewExpressRouteCrossConnectionsClientWithBaseURI creates an instance of the ExpressRouteCrossConnectionsClient
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
+func NewExpressRouteCrossConnectionsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteCrossConnectionsClient {
+ return ExpressRouteCrossConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
+}
+
+// CreateOrUpdate update the specified ExpressRouteCrossConnection.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// crossConnectionName - the name of the ExpressRouteCrossConnection.
+// parameters - parameters supplied to the update express route crossConnection operation.
+func (client ExpressRouteCrossConnectionsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, crossConnectionName string, parameters ExpressRouteCrossConnection) (result ExpressRouteCrossConnectionsCreateOrUpdateFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteCrossConnectionsClient.CreateOrUpdate")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, crossConnectionName, parameters)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "CreateOrUpdate", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.CreateOrUpdateSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "CreateOrUpdate", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// CreateOrUpdatePreparer prepares the CreateOrUpdate request.
+func (client ExpressRouteCrossConnectionsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, crossConnectionName string, parameters ExpressRouteCrossConnection) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "crossConnectionName": autorest.Encode("path", crossConnectionName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ parameters.Etag = nil
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPut(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCrossConnections/{crossConnectionName}", pathParameters),
+ autorest.WithJSON(parameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the
+// http.Response Body if it receives an error.
+func (client ExpressRouteCrossConnectionsClient) CreateOrUpdateSender(req *http.Request) (future ExpressRouteCrossConnectionsCreateOrUpdateFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always
+// closes the http.Response Body.
+func (client ExpressRouteCrossConnectionsClient) CreateOrUpdateResponder(resp *http.Response) (result ExpressRouteCrossConnection, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// Get gets details about the specified ExpressRouteCrossConnection.
+// Parameters:
+// resourceGroupName - the name of the resource group (peering location of the circuit).
+// crossConnectionName - the name of the ExpressRouteCrossConnection (service key of the circuit).
+func (client ExpressRouteCrossConnectionsClient) Get(ctx context.Context, resourceGroupName string, crossConnectionName string) (result ExpressRouteCrossConnection, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteCrossConnectionsClient.Get")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetPreparer(ctx, resourceGroupName, crossConnectionName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "Get", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "Get", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "Get", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetPreparer prepares the Get request.
+func (client ExpressRouteCrossConnectionsClient) GetPreparer(ctx context.Context, resourceGroupName string, crossConnectionName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "crossConnectionName": autorest.Encode("path", crossConnectionName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/expressRouteCrossConnections/{crossConnectionName}", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetSender sends the Get request. The method will close the
+// http.Response Body if it receives an error.
+func (client ExpressRouteCrossConnectionsClient) GetSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetResponder handles the response to the Get request. The method always
+// closes the http.Response Body.
+func (client ExpressRouteCrossConnectionsClient) GetResponder(resp *http.Response) (result ExpressRouteCrossConnection, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// List retrieves all the ExpressRouteCrossConnections in a subscription.
+func (client ExpressRouteCrossConnectionsClient) List(ctx context.Context) (result ExpressRouteCrossConnectionListResultPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteCrossConnectionsClient.List")
+ defer func() {
+ sc := -1
+ if result.ercclr.Response.Response != nil {
+ sc = result.ercclr.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.listNextResults
+ req, err := client.ListPreparer(ctx)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "List", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.ercclr.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "List", resp, "Failure sending request")
+ return
+ }
+
+ result.ercclr, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "List", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListPreparer prepares the List request.
+func (client ExpressRouteCrossConnectionsClient) ListPreparer(ctx context.Context) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/expressRouteCrossConnections", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListSender sends the List request. The method will close the
+// http.Response Body if it receives an error.
+func (client ExpressRouteCrossConnectionsClient) ListSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListResponder handles the response to the List request. The method always
+// closes the http.Response Body.
+func (client ExpressRouteCrossConnectionsClient) ListResponder(resp *http.Response) (result ExpressRouteCrossConnectionListResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listNextResults retrieves the next set of results, if any.
+func (client ExpressRouteCrossConnectionsClient) listNextResults(ctx context.Context, lastResults ExpressRouteCrossConnectionListResult) (result ExpressRouteCrossConnectionListResult, err error) {
+ req, err := lastResults.expressRouteCrossConnectionListResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "listNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "listNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "listNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListComplete enumerates all values, automatically crossing page boundaries as required.
+func (client ExpressRouteCrossConnectionsClient) ListComplete(ctx context.Context) (result ExpressRouteCrossConnectionListResultIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteCrossConnectionsClient.List")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.List(ctx)
+ return
+}
+
+// ListArpTable gets the currently advertised ARP table associated with the express route cross connection in a
+// resource group.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// crossConnectionName - the name of the ExpressRouteCrossConnection.
+// peeringName - the name of the peering.
+// devicePath - the path of the device.
+func (client ExpressRouteCrossConnectionsClient) ListArpTable(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string, devicePath string) (result ExpressRouteCrossConnectionsListArpTableFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteCrossConnectionsClient.ListArpTable")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.ListArpTablePreparer(ctx, resourceGroupName, crossConnectionName, peeringName, devicePath)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "ListArpTable", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.ListArpTableSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "ListArpTable", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// ListArpTablePreparer prepares the ListArpTable request.
+func (client ExpressRouteCrossConnectionsClient) ListArpTablePreparer(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string, devicePath string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "crossConnectionName": autorest.Encode("path", crossConnectionName),
+ "devicePath": autorest.Encode("path", devicePath),
+ "peeringName": autorest.Encode("path", peeringName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/expressRouteCrossConnections/{crossConnectionName}/peerings/{peeringName}/arpTables/{devicePath}", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListArpTableSender sends the ListArpTable request. The method will close the
+// http.Response Body if it receives an error.
+func (client ExpressRouteCrossConnectionsClient) ListArpTableSender(req *http.Request) (future ExpressRouteCrossConnectionsListArpTableFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// ListArpTableResponder handles the response to the ListArpTable request. The method always
+// closes the http.Response Body.
+func (client ExpressRouteCrossConnectionsClient) ListArpTableResponder(resp *http.Response) (result ExpressRouteCircuitsArpTableListResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// ListByResourceGroup retrieves all the ExpressRouteCrossConnections in a resource group.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+func (client ExpressRouteCrossConnectionsClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result ExpressRouteCrossConnectionListResultPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteCrossConnectionsClient.ListByResourceGroup")
+ defer func() {
+ sc := -1
+ if result.ercclr.Response.Response != nil {
+ sc = result.ercclr.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.listByResourceGroupNextResults
+ req, err := client.ListByResourceGroupPreparer(ctx, resourceGroupName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "ListByResourceGroup", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListByResourceGroupSender(req)
+ if err != nil {
+ result.ercclr.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "ListByResourceGroup", resp, "Failure sending request")
+ return
+ }
+
+ result.ercclr, err = client.ListByResourceGroupResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "ListByResourceGroup", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListByResourceGroupPreparer prepares the ListByResourceGroup request.
+func (client ExpressRouteCrossConnectionsClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/expressRouteCrossConnections", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the
+// http.Response Body if it receives an error.
+func (client ExpressRouteCrossConnectionsClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always
+// closes the http.Response Body.
+func (client ExpressRouteCrossConnectionsClient) ListByResourceGroupResponder(resp *http.Response) (result ExpressRouteCrossConnectionListResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listByResourceGroupNextResults retrieves the next set of results, if any.
+func (client ExpressRouteCrossConnectionsClient) listByResourceGroupNextResults(ctx context.Context, lastResults ExpressRouteCrossConnectionListResult) (result ExpressRouteCrossConnectionListResult, err error) {
+ req, err := lastResults.expressRouteCrossConnectionListResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "listByResourceGroupNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListByResourceGroupSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "listByResourceGroupNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListByResourceGroupResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required.
+func (client ExpressRouteCrossConnectionsClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result ExpressRouteCrossConnectionListResultIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteCrossConnectionsClient.ListByResourceGroup")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.ListByResourceGroup(ctx, resourceGroupName)
+ return
+}
+
+// ListRoutesTable gets the currently advertised routes table associated with the express route cross connection in a
+// resource group.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// crossConnectionName - the name of the ExpressRouteCrossConnection.
+// peeringName - the name of the peering.
+// devicePath - the path of the device.
+func (client ExpressRouteCrossConnectionsClient) ListRoutesTable(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string, devicePath string) (result ExpressRouteCrossConnectionsListRoutesTableFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteCrossConnectionsClient.ListRoutesTable")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.ListRoutesTablePreparer(ctx, resourceGroupName, crossConnectionName, peeringName, devicePath)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "ListRoutesTable", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.ListRoutesTableSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "ListRoutesTable", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// ListRoutesTablePreparer prepares the ListRoutesTable request.
+func (client ExpressRouteCrossConnectionsClient) ListRoutesTablePreparer(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string, devicePath string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "crossConnectionName": autorest.Encode("path", crossConnectionName),
+ "devicePath": autorest.Encode("path", devicePath),
+ "peeringName": autorest.Encode("path", peeringName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/expressRouteCrossConnections/{crossConnectionName}/peerings/{peeringName}/routeTables/{devicePath}", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListRoutesTableSender sends the ListRoutesTable request. The method will close the
+// http.Response Body if it receives an error.
+func (client ExpressRouteCrossConnectionsClient) ListRoutesTableSender(req *http.Request) (future ExpressRouteCrossConnectionsListRoutesTableFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// ListRoutesTableResponder handles the response to the ListRoutesTable request. The method always
+// closes the http.Response Body.
+func (client ExpressRouteCrossConnectionsClient) ListRoutesTableResponder(resp *http.Response) (result ExpressRouteCircuitsRoutesTableListResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// ListRoutesTableSummary gets the route table summary associated with the express route cross connection in a resource
+// group.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// crossConnectionName - the name of the ExpressRouteCrossConnection.
+// peeringName - the name of the peering.
+// devicePath - the path of the device.
+func (client ExpressRouteCrossConnectionsClient) ListRoutesTableSummary(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string, devicePath string) (result ExpressRouteCrossConnectionsListRoutesTableSummaryFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteCrossConnectionsClient.ListRoutesTableSummary")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.ListRoutesTableSummaryPreparer(ctx, resourceGroupName, crossConnectionName, peeringName, devicePath)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "ListRoutesTableSummary", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.ListRoutesTableSummarySender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "ListRoutesTableSummary", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// ListRoutesTableSummaryPreparer prepares the ListRoutesTableSummary request.
+func (client ExpressRouteCrossConnectionsClient) ListRoutesTableSummaryPreparer(ctx context.Context, resourceGroupName string, crossConnectionName string, peeringName string, devicePath string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "crossConnectionName": autorest.Encode("path", crossConnectionName),
+ "devicePath": autorest.Encode("path", devicePath),
+ "peeringName": autorest.Encode("path", peeringName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/expressRouteCrossConnections/{crossConnectionName}/peerings/{peeringName}/routeTablesSummary/{devicePath}", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListRoutesTableSummarySender sends the ListRoutesTableSummary request. The method will close the
+// http.Response Body if it receives an error.
+func (client ExpressRouteCrossConnectionsClient) ListRoutesTableSummarySender(req *http.Request) (future ExpressRouteCrossConnectionsListRoutesTableSummaryFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// ListRoutesTableSummaryResponder handles the response to the ListRoutesTableSummary request. The method always
+// closes the http.Response Body.
+func (client ExpressRouteCrossConnectionsClient) ListRoutesTableSummaryResponder(resp *http.Response) (result ExpressRouteCrossConnectionsRoutesTableSummaryListResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// UpdateTags updates an express route cross connection tags.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// crossConnectionName - the name of the cross connection.
+// crossConnectionParameters - parameters supplied to update express route cross connection tags.
+func (client ExpressRouteCrossConnectionsClient) UpdateTags(ctx context.Context, resourceGroupName string, crossConnectionName string, crossConnectionParameters TagsObject) (result ExpressRouteCrossConnection, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteCrossConnectionsClient.UpdateTags")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.UpdateTagsPreparer(ctx, resourceGroupName, crossConnectionName, crossConnectionParameters)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "UpdateTags", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.UpdateTagsSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "UpdateTags", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.UpdateTagsResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsClient", "UpdateTags", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// UpdateTagsPreparer prepares the UpdateTags request.
+func (client ExpressRouteCrossConnectionsClient) UpdateTagsPreparer(ctx context.Context, resourceGroupName string, crossConnectionName string, crossConnectionParameters TagsObject) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "crossConnectionName": autorest.Encode("path", crossConnectionName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/expressRouteCrossConnections/{crossConnectionName}", pathParameters),
+ autorest.WithJSON(crossConnectionParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// UpdateTagsSender sends the UpdateTags request. The method will close the
+// http.Response Body if it receives an error.
+func (client ExpressRouteCrossConnectionsClient) UpdateTagsSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// UpdateTagsResponder handles the response to the UpdateTags request. The method always
+// closes the http.Response Body.
+func (client ExpressRouteCrossConnectionsClient) UpdateTagsResponder(resp *http.Response) (result ExpressRouteCrossConnection, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
diff --git a/services/network/mgmt/2019-11-01/network/expressroutegateways.go b/services/network/mgmt/2019-11-01/network/expressroutegateways.go
new file mode 100644
index 000000000000..f19dc1250716
--- /dev/null
+++ b/services/network/mgmt/2019-11-01/network/expressroutegateways.go
@@ -0,0 +1,433 @@
+package network
+
+// Copyright (c) Microsoft and contributors. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+ "context"
+ "github.com/Azure/go-autorest/autorest"
+ "github.com/Azure/go-autorest/autorest/azure"
+ "github.com/Azure/go-autorest/autorest/validation"
+ "github.com/Azure/go-autorest/tracing"
+ "net/http"
+)
+
+// ExpressRouteGatewaysClient is the network Client
+type ExpressRouteGatewaysClient struct {
+ BaseClient
+}
+
+// NewExpressRouteGatewaysClient creates an instance of the ExpressRouteGatewaysClient client.
+func NewExpressRouteGatewaysClient(subscriptionID string) ExpressRouteGatewaysClient {
+ return NewExpressRouteGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
+}
+
+// NewExpressRouteGatewaysClientWithBaseURI creates an instance of the ExpressRouteGatewaysClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
+func NewExpressRouteGatewaysClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteGatewaysClient {
+ return ExpressRouteGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
+}
+
+// CreateOrUpdate creates or updates a ExpressRoute gateway in a specified resource group.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// expressRouteGatewayName - the name of the ExpressRoute gateway.
+// putExpressRouteGatewayParameters - parameters required in an ExpressRoute gateway PUT operation.
+func (client ExpressRouteGatewaysClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, expressRouteGatewayName string, putExpressRouteGatewayParameters ExpressRouteGateway) (result ExpressRouteGatewaysCreateOrUpdateFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteGatewaysClient.CreateOrUpdate")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: putExpressRouteGatewayParameters,
+ Constraints: []validation.Constraint{{Target: "putExpressRouteGatewayParameters.ExpressRouteGatewayProperties", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "putExpressRouteGatewayParameters.ExpressRouteGatewayProperties.VirtualHub", Name: validation.Null, Rule: true, Chain: nil}}}}}}); err != nil {
+ return result, validation.NewError("network.ExpressRouteGatewaysClient", "CreateOrUpdate", err.Error())
+ }
+
+ req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, expressRouteGatewayName, putExpressRouteGatewayParameters)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteGatewaysClient", "CreateOrUpdate", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.CreateOrUpdateSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteGatewaysClient", "CreateOrUpdate", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// CreateOrUpdatePreparer prepares the CreateOrUpdate request.
+func (client ExpressRouteGatewaysClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, expressRouteGatewayName string, putExpressRouteGatewayParameters ExpressRouteGateway) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "expressRouteGatewayName": autorest.Encode("path", expressRouteGatewayName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ putExpressRouteGatewayParameters.Etag = nil
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPut(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteGateways/{expressRouteGatewayName}", pathParameters),
+ autorest.WithJSON(putExpressRouteGatewayParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the
+// http.Response Body if it receives an error.
+func (client ExpressRouteGatewaysClient) CreateOrUpdateSender(req *http.Request) (future ExpressRouteGatewaysCreateOrUpdateFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always
+// closes the http.Response Body.
+func (client ExpressRouteGatewaysClient) CreateOrUpdateResponder(resp *http.Response) (result ExpressRouteGateway, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// Delete deletes the specified ExpressRoute gateway in a resource group. An ExpressRoute gateway resource can only be
+// deleted when there are no connection subresources.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// expressRouteGatewayName - the name of the ExpressRoute gateway.
+func (client ExpressRouteGatewaysClient) Delete(ctx context.Context, resourceGroupName string, expressRouteGatewayName string) (result ExpressRouteGatewaysDeleteFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteGatewaysClient.Delete")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.DeletePreparer(ctx, resourceGroupName, expressRouteGatewayName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteGatewaysClient", "Delete", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.DeleteSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteGatewaysClient", "Delete", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// DeletePreparer prepares the Delete request.
+func (client ExpressRouteGatewaysClient) DeletePreparer(ctx context.Context, resourceGroupName string, expressRouteGatewayName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "expressRouteGatewayName": autorest.Encode("path", expressRouteGatewayName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/expressRouteGateways/{expressRouteGatewayName}", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// DeleteSender sends the Delete request. The method will close the
+// http.Response Body if it receives an error.
+func (client ExpressRouteGatewaysClient) DeleteSender(req *http.Request) (future ExpressRouteGatewaysDeleteFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// DeleteResponder handles the response to the Delete request. The method always
+// closes the http.Response Body.
+func (client ExpressRouteGatewaysClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent),
+ autorest.ByClosing())
+ result.Response = resp
+ return
+}
+
+// Get fetches the details of a ExpressRoute gateway in a resource group.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// expressRouteGatewayName - the name of the ExpressRoute gateway.
+func (client ExpressRouteGatewaysClient) Get(ctx context.Context, resourceGroupName string, expressRouteGatewayName string) (result ExpressRouteGateway, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteGatewaysClient.Get")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetPreparer(ctx, resourceGroupName, expressRouteGatewayName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteGatewaysClient", "Get", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteGatewaysClient", "Get", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteGatewaysClient", "Get", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetPreparer prepares the Get request.
+func (client ExpressRouteGatewaysClient) GetPreparer(ctx context.Context, resourceGroupName string, expressRouteGatewayName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "expressRouteGatewayName": autorest.Encode("path", expressRouteGatewayName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/expressRouteGateways/{expressRouteGatewayName}", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetSender sends the Get request. The method will close the
+// http.Response Body if it receives an error.
+func (client ExpressRouteGatewaysClient) GetSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetResponder handles the response to the Get request. The method always
+// closes the http.Response Body.
+func (client ExpressRouteGatewaysClient) GetResponder(resp *http.Response) (result ExpressRouteGateway, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// ListByResourceGroup lists ExpressRoute gateways in a given resource group.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+func (client ExpressRouteGatewaysClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result ExpressRouteGatewayList, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteGatewaysClient.ListByResourceGroup")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.ListByResourceGroupPreparer(ctx, resourceGroupName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteGatewaysClient", "ListByResourceGroup", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListByResourceGroupSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteGatewaysClient", "ListByResourceGroup", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.ListByResourceGroupResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteGatewaysClient", "ListByResourceGroup", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListByResourceGroupPreparer prepares the ListByResourceGroup request.
+func (client ExpressRouteGatewaysClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/expressRouteGateways", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the
+// http.Response Body if it receives an error.
+func (client ExpressRouteGatewaysClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always
+// closes the http.Response Body.
+func (client ExpressRouteGatewaysClient) ListByResourceGroupResponder(resp *http.Response) (result ExpressRouteGatewayList, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// ListBySubscription lists ExpressRoute gateways under a given subscription.
+func (client ExpressRouteGatewaysClient) ListBySubscription(ctx context.Context) (result ExpressRouteGatewayList, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteGatewaysClient.ListBySubscription")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.ListBySubscriptionPreparer(ctx)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteGatewaysClient", "ListBySubscription", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListBySubscriptionSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteGatewaysClient", "ListBySubscription", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.ListBySubscriptionResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteGatewaysClient", "ListBySubscription", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListBySubscriptionPreparer prepares the ListBySubscription request.
+func (client ExpressRouteGatewaysClient) ListBySubscriptionPreparer(ctx context.Context) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/expressRouteGateways", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListBySubscriptionSender sends the ListBySubscription request. The method will close the
+// http.Response Body if it receives an error.
+func (client ExpressRouteGatewaysClient) ListBySubscriptionSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListBySubscriptionResponder handles the response to the ListBySubscription request. The method always
+// closes the http.Response Body.
+func (client ExpressRouteGatewaysClient) ListBySubscriptionResponder(resp *http.Response) (result ExpressRouteGatewayList, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
diff --git a/services/network/mgmt/2019-11-01/network/expressroutelinks.go b/services/network/mgmt/2019-11-01/network/expressroutelinks.go
new file mode 100644
index 000000000000..f191571a2d43
--- /dev/null
+++ b/services/network/mgmt/2019-11-01/network/expressroutelinks.go
@@ -0,0 +1,237 @@
+package network
+
+// Copyright (c) Microsoft and contributors. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+ "context"
+ "github.com/Azure/go-autorest/autorest"
+ "github.com/Azure/go-autorest/autorest/azure"
+ "github.com/Azure/go-autorest/tracing"
+ "net/http"
+)
+
+// ExpressRouteLinksClient is the network Client
+type ExpressRouteLinksClient struct {
+ BaseClient
+}
+
+// NewExpressRouteLinksClient creates an instance of the ExpressRouteLinksClient client.
+func NewExpressRouteLinksClient(subscriptionID string) ExpressRouteLinksClient {
+ return NewExpressRouteLinksClientWithBaseURI(DefaultBaseURI, subscriptionID)
+}
+
+// NewExpressRouteLinksClientWithBaseURI creates an instance of the ExpressRouteLinksClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
+func NewExpressRouteLinksClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteLinksClient {
+ return ExpressRouteLinksClient{NewWithBaseURI(baseURI, subscriptionID)}
+}
+
+// Get retrieves the specified ExpressRouteLink resource.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// expressRoutePortName - the name of the ExpressRoutePort resource.
+// linkName - the name of the ExpressRouteLink resource.
+func (client ExpressRouteLinksClient) Get(ctx context.Context, resourceGroupName string, expressRoutePortName string, linkName string) (result ExpressRouteLink, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteLinksClient.Get")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetPreparer(ctx, resourceGroupName, expressRoutePortName, linkName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteLinksClient", "Get", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteLinksClient", "Get", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteLinksClient", "Get", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetPreparer prepares the Get request.
+func (client ExpressRouteLinksClient) GetPreparer(ctx context.Context, resourceGroupName string, expressRoutePortName string, linkName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "expressRoutePortName": autorest.Encode("path", expressRoutePortName),
+ "linkName": autorest.Encode("path", linkName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/ExpressRoutePorts/{expressRoutePortName}/links/{linkName}", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetSender sends the Get request. The method will close the
+// http.Response Body if it receives an error.
+func (client ExpressRouteLinksClient) GetSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetResponder handles the response to the Get request. The method always
+// closes the http.Response Body.
+func (client ExpressRouteLinksClient) GetResponder(resp *http.Response) (result ExpressRouteLink, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// List retrieve the ExpressRouteLink sub-resources of the specified ExpressRoutePort resource.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// expressRoutePortName - the name of the ExpressRoutePort resource.
+func (client ExpressRouteLinksClient) List(ctx context.Context, resourceGroupName string, expressRoutePortName string) (result ExpressRouteLinkListResultPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteLinksClient.List")
+ defer func() {
+ sc := -1
+ if result.erllr.Response.Response != nil {
+ sc = result.erllr.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.listNextResults
+ req, err := client.ListPreparer(ctx, resourceGroupName, expressRoutePortName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteLinksClient", "List", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.erllr.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteLinksClient", "List", resp, "Failure sending request")
+ return
+ }
+
+ result.erllr, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteLinksClient", "List", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListPreparer prepares the List request.
+func (client ExpressRouteLinksClient) ListPreparer(ctx context.Context, resourceGroupName string, expressRoutePortName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "expressRoutePortName": autorest.Encode("path", expressRoutePortName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/ExpressRoutePorts/{expressRoutePortName}/links", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListSender sends the List request. The method will close the
+// http.Response Body if it receives an error.
+func (client ExpressRouteLinksClient) ListSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListResponder handles the response to the List request. The method always
+// closes the http.Response Body.
+func (client ExpressRouteLinksClient) ListResponder(resp *http.Response) (result ExpressRouteLinkListResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listNextResults retrieves the next set of results, if any.
+func (client ExpressRouteLinksClient) listNextResults(ctx context.Context, lastResults ExpressRouteLinkListResult) (result ExpressRouteLinkListResult, err error) {
+ req, err := lastResults.expressRouteLinkListResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "network.ExpressRouteLinksClient", "listNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "network.ExpressRouteLinksClient", "listNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteLinksClient", "listNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListComplete enumerates all values, automatically crossing page boundaries as required.
+func (client ExpressRouteLinksClient) ListComplete(ctx context.Context, resourceGroupName string, expressRoutePortName string) (result ExpressRouteLinkListResultIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteLinksClient.List")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.List(ctx, resourceGroupName, expressRoutePortName)
+ return
+}
diff --git a/services/network/mgmt/2019-11-01/network/expressrouteports.go b/services/network/mgmt/2019-11-01/network/expressrouteports.go
new file mode 100644
index 000000000000..f2d69a926449
--- /dev/null
+++ b/services/network/mgmt/2019-11-01/network/expressrouteports.go
@@ -0,0 +1,580 @@
+package network
+
+// Copyright (c) Microsoft and contributors. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+ "context"
+ "github.com/Azure/go-autorest/autorest"
+ "github.com/Azure/go-autorest/autorest/azure"
+ "github.com/Azure/go-autorest/tracing"
+ "net/http"
+)
+
+// ExpressRoutePortsClient is the network Client
+type ExpressRoutePortsClient struct {
+ BaseClient
+}
+
+// NewExpressRoutePortsClient creates an instance of the ExpressRoutePortsClient client.
+func NewExpressRoutePortsClient(subscriptionID string) ExpressRoutePortsClient {
+ return NewExpressRoutePortsClientWithBaseURI(DefaultBaseURI, subscriptionID)
+}
+
+// NewExpressRoutePortsClientWithBaseURI creates an instance of the ExpressRoutePortsClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
+func NewExpressRoutePortsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRoutePortsClient {
+ return ExpressRoutePortsClient{NewWithBaseURI(baseURI, subscriptionID)}
+}
+
+// CreateOrUpdate creates or updates the specified ExpressRoutePort resource.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// expressRoutePortName - the name of the ExpressRoutePort resource.
+// parameters - parameters supplied to the create ExpressRoutePort operation.
+func (client ExpressRoutePortsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, expressRoutePortName string, parameters ExpressRoutePort) (result ExpressRoutePortsCreateOrUpdateFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRoutePortsClient.CreateOrUpdate")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, expressRoutePortName, parameters)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "CreateOrUpdate", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.CreateOrUpdateSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "CreateOrUpdate", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// CreateOrUpdatePreparer prepares the CreateOrUpdate request.
+func (client ExpressRoutePortsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, expressRoutePortName string, parameters ExpressRoutePort) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "expressRoutePortName": autorest.Encode("path", expressRoutePortName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ parameters.Etag = nil
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPut(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ExpressRoutePorts/{expressRoutePortName}", pathParameters),
+ autorest.WithJSON(parameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the
+// http.Response Body if it receives an error.
+func (client ExpressRoutePortsClient) CreateOrUpdateSender(req *http.Request) (future ExpressRoutePortsCreateOrUpdateFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always
+// closes the http.Response Body.
+func (client ExpressRoutePortsClient) CreateOrUpdateResponder(resp *http.Response) (result ExpressRoutePort, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// Delete deletes the specified ExpressRoutePort resource.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// expressRoutePortName - the name of the ExpressRoutePort resource.
+func (client ExpressRoutePortsClient) Delete(ctx context.Context, resourceGroupName string, expressRoutePortName string) (result ExpressRoutePortsDeleteFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRoutePortsClient.Delete")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.DeletePreparer(ctx, resourceGroupName, expressRoutePortName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "Delete", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.DeleteSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "Delete", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// DeletePreparer prepares the Delete request.
+func (client ExpressRoutePortsClient) DeletePreparer(ctx context.Context, resourceGroupName string, expressRoutePortName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "expressRoutePortName": autorest.Encode("path", expressRoutePortName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/ExpressRoutePorts/{expressRoutePortName}", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// DeleteSender sends the Delete request. The method will close the
+// http.Response Body if it receives an error.
+func (client ExpressRoutePortsClient) DeleteSender(req *http.Request) (future ExpressRoutePortsDeleteFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// DeleteResponder handles the response to the Delete request. The method always
+// closes the http.Response Body.
+func (client ExpressRoutePortsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent),
+ autorest.ByClosing())
+ result.Response = resp
+ return
+}
+
+// Get retrieves the requested ExpressRoutePort resource.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// expressRoutePortName - the name of ExpressRoutePort.
+func (client ExpressRoutePortsClient) Get(ctx context.Context, resourceGroupName string, expressRoutePortName string) (result ExpressRoutePort, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRoutePortsClient.Get")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetPreparer(ctx, resourceGroupName, expressRoutePortName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "Get", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "Get", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "Get", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetPreparer prepares the Get request.
+func (client ExpressRoutePortsClient) GetPreparer(ctx context.Context, resourceGroupName string, expressRoutePortName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "expressRoutePortName": autorest.Encode("path", expressRoutePortName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/ExpressRoutePorts/{expressRoutePortName}", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetSender sends the Get request. The method will close the
+// http.Response Body if it receives an error.
+func (client ExpressRoutePortsClient) GetSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetResponder handles the response to the Get request. The method always
+// closes the http.Response Body.
+func (client ExpressRoutePortsClient) GetResponder(resp *http.Response) (result ExpressRoutePort, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// List list all the ExpressRoutePort resources in the specified subscription.
+func (client ExpressRoutePortsClient) List(ctx context.Context) (result ExpressRoutePortListResultPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRoutePortsClient.List")
+ defer func() {
+ sc := -1
+ if result.erplr.Response.Response != nil {
+ sc = result.erplr.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.listNextResults
+ req, err := client.ListPreparer(ctx)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "List", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.erplr.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "List", resp, "Failure sending request")
+ return
+ }
+
+ result.erplr, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "List", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListPreparer prepares the List request.
+func (client ExpressRoutePortsClient) ListPreparer(ctx context.Context) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/ExpressRoutePorts", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListSender sends the List request. The method will close the
+// http.Response Body if it receives an error.
+func (client ExpressRoutePortsClient) ListSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListResponder handles the response to the List request. The method always
+// closes the http.Response Body.
+func (client ExpressRoutePortsClient) ListResponder(resp *http.Response) (result ExpressRoutePortListResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listNextResults retrieves the next set of results, if any.
+func (client ExpressRoutePortsClient) listNextResults(ctx context.Context, lastResults ExpressRoutePortListResult) (result ExpressRoutePortListResult, err error) {
+ req, err := lastResults.expressRoutePortListResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "listNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "listNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "listNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListComplete enumerates all values, automatically crossing page boundaries as required.
+func (client ExpressRoutePortsClient) ListComplete(ctx context.Context) (result ExpressRoutePortListResultIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRoutePortsClient.List")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.List(ctx)
+ return
+}
+
+// ListByResourceGroup list all the ExpressRoutePort resources in the specified resource group.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+func (client ExpressRoutePortsClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result ExpressRoutePortListResultPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRoutePortsClient.ListByResourceGroup")
+ defer func() {
+ sc := -1
+ if result.erplr.Response.Response != nil {
+ sc = result.erplr.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.listByResourceGroupNextResults
+ req, err := client.ListByResourceGroupPreparer(ctx, resourceGroupName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "ListByResourceGroup", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListByResourceGroupSender(req)
+ if err != nil {
+ result.erplr.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "ListByResourceGroup", resp, "Failure sending request")
+ return
+ }
+
+ result.erplr, err = client.ListByResourceGroupResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "ListByResourceGroup", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListByResourceGroupPreparer prepares the ListByResourceGroup request.
+func (client ExpressRoutePortsClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/ExpressRoutePorts", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the
+// http.Response Body if it receives an error.
+func (client ExpressRoutePortsClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always
+// closes the http.Response Body.
+func (client ExpressRoutePortsClient) ListByResourceGroupResponder(resp *http.Response) (result ExpressRoutePortListResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listByResourceGroupNextResults retrieves the next set of results, if any.
+func (client ExpressRoutePortsClient) listByResourceGroupNextResults(ctx context.Context, lastResults ExpressRoutePortListResult) (result ExpressRoutePortListResult, err error) {
+ req, err := lastResults.expressRoutePortListResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "listByResourceGroupNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListByResourceGroupSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "listByResourceGroupNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListByResourceGroupResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required.
+func (client ExpressRoutePortsClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result ExpressRoutePortListResultIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRoutePortsClient.ListByResourceGroup")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.ListByResourceGroup(ctx, resourceGroupName)
+ return
+}
+
+// UpdateTags update ExpressRoutePort tags.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// expressRoutePortName - the name of the ExpressRoutePort resource.
+// parameters - parameters supplied to update ExpressRoutePort resource tags.
+func (client ExpressRoutePortsClient) UpdateTags(ctx context.Context, resourceGroupName string, expressRoutePortName string, parameters TagsObject) (result ExpressRoutePort, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRoutePortsClient.UpdateTags")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.UpdateTagsPreparer(ctx, resourceGroupName, expressRoutePortName, parameters)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "UpdateTags", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.UpdateTagsSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "UpdateTags", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.UpdateTagsResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsClient", "UpdateTags", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// UpdateTagsPreparer prepares the UpdateTags request.
+func (client ExpressRoutePortsClient) UpdateTagsPreparer(ctx context.Context, resourceGroupName string, expressRoutePortName string, parameters TagsObject) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "expressRoutePortName": autorest.Encode("path", expressRoutePortName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/ExpressRoutePorts/{expressRoutePortName}", pathParameters),
+ autorest.WithJSON(parameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// UpdateTagsSender sends the UpdateTags request. The method will close the
+// http.Response Body if it receives an error.
+func (client ExpressRoutePortsClient) UpdateTagsSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// UpdateTagsResponder handles the response to the UpdateTags request. The method always
+// closes the http.Response Body.
+func (client ExpressRoutePortsClient) UpdateTagsResponder(resp *http.Response) (result ExpressRoutePort, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
diff --git a/services/network/mgmt/2019-11-01/network/expressrouteportslocations.go b/services/network/mgmt/2019-11-01/network/expressrouteportslocations.go
new file mode 100644
index 000000000000..fc4ec61dbd3c
--- /dev/null
+++ b/services/network/mgmt/2019-11-01/network/expressrouteportslocations.go
@@ -0,0 +1,230 @@
+package network
+
+// Copyright (c) Microsoft and contributors. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+ "context"
+ "github.com/Azure/go-autorest/autorest"
+ "github.com/Azure/go-autorest/autorest/azure"
+ "github.com/Azure/go-autorest/tracing"
+ "net/http"
+)
+
+// ExpressRoutePortsLocationsClient is the network Client
+type ExpressRoutePortsLocationsClient struct {
+ BaseClient
+}
+
+// NewExpressRoutePortsLocationsClient creates an instance of the ExpressRoutePortsLocationsClient client.
+func NewExpressRoutePortsLocationsClient(subscriptionID string) ExpressRoutePortsLocationsClient {
+ return NewExpressRoutePortsLocationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
+}
+
+// NewExpressRoutePortsLocationsClientWithBaseURI creates an instance of the ExpressRoutePortsLocationsClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
+func NewExpressRoutePortsLocationsClientWithBaseURI(baseURI string, subscriptionID string) ExpressRoutePortsLocationsClient {
+ return ExpressRoutePortsLocationsClient{NewWithBaseURI(baseURI, subscriptionID)}
+}
+
+// Get retrieves a single ExpressRoutePort peering location, including the list of available bandwidths available at
+// said peering location.
+// Parameters:
+// locationName - name of the requested ExpressRoutePort peering location.
+func (client ExpressRoutePortsLocationsClient) Get(ctx context.Context, locationName string) (result ExpressRoutePortsLocation, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRoutePortsLocationsClient.Get")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetPreparer(ctx, locationName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsLocationsClient", "Get", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsLocationsClient", "Get", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsLocationsClient", "Get", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetPreparer prepares the Get request.
+func (client ExpressRoutePortsLocationsClient) GetPreparer(ctx context.Context, locationName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "locationName": autorest.Encode("path", locationName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/ExpressRoutePortsLocations/{locationName}", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetSender sends the Get request. The method will close the
+// http.Response Body if it receives an error.
+func (client ExpressRoutePortsLocationsClient) GetSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetResponder handles the response to the Get request. The method always
+// closes the http.Response Body.
+func (client ExpressRoutePortsLocationsClient) GetResponder(resp *http.Response) (result ExpressRoutePortsLocation, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// List retrieves all ExpressRoutePort peering locations. Does not return available bandwidths for each location.
+// Available bandwidths can only be obtained when retrieving a specific peering location.
+func (client ExpressRoutePortsLocationsClient) List(ctx context.Context) (result ExpressRoutePortsLocationListResultPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRoutePortsLocationsClient.List")
+ defer func() {
+ sc := -1
+ if result.erpllr.Response.Response != nil {
+ sc = result.erpllr.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.listNextResults
+ req, err := client.ListPreparer(ctx)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsLocationsClient", "List", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.erpllr.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsLocationsClient", "List", resp, "Failure sending request")
+ return
+ }
+
+ result.erpllr, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsLocationsClient", "List", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListPreparer prepares the List request.
+func (client ExpressRoutePortsLocationsClient) ListPreparer(ctx context.Context) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/ExpressRoutePortsLocations", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListSender sends the List request. The method will close the
+// http.Response Body if it receives an error.
+func (client ExpressRoutePortsLocationsClient) ListSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListResponder handles the response to the List request. The method always
+// closes the http.Response Body.
+func (client ExpressRoutePortsLocationsClient) ListResponder(resp *http.Response) (result ExpressRoutePortsLocationListResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listNextResults retrieves the next set of results, if any.
+func (client ExpressRoutePortsLocationsClient) listNextResults(ctx context.Context, lastResults ExpressRoutePortsLocationListResult) (result ExpressRoutePortsLocationListResult, err error) {
+ req, err := lastResults.expressRoutePortsLocationListResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "network.ExpressRoutePortsLocationsClient", "listNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "network.ExpressRoutePortsLocationsClient", "listNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsLocationsClient", "listNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListComplete enumerates all values, automatically crossing page boundaries as required.
+func (client ExpressRoutePortsLocationsClient) ListComplete(ctx context.Context) (result ExpressRoutePortsLocationListResultIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRoutePortsLocationsClient.List")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.List(ctx)
+ return
+}
diff --git a/services/network/mgmt/2019-11-01/network/expressrouteserviceproviders.go b/services/network/mgmt/2019-11-01/network/expressrouteserviceproviders.go
new file mode 100644
index 000000000000..92939925c0a8
--- /dev/null
+++ b/services/network/mgmt/2019-11-01/network/expressrouteserviceproviders.go
@@ -0,0 +1,153 @@
+package network
+
+// Copyright (c) Microsoft and contributors. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+ "context"
+ "github.com/Azure/go-autorest/autorest"
+ "github.com/Azure/go-autorest/autorest/azure"
+ "github.com/Azure/go-autorest/tracing"
+ "net/http"
+)
+
+// ExpressRouteServiceProvidersClient is the network Client
+type ExpressRouteServiceProvidersClient struct {
+ BaseClient
+}
+
+// NewExpressRouteServiceProvidersClient creates an instance of the ExpressRouteServiceProvidersClient client.
+func NewExpressRouteServiceProvidersClient(subscriptionID string) ExpressRouteServiceProvidersClient {
+ return NewExpressRouteServiceProvidersClientWithBaseURI(DefaultBaseURI, subscriptionID)
+}
+
+// NewExpressRouteServiceProvidersClientWithBaseURI creates an instance of the ExpressRouteServiceProvidersClient
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
+func NewExpressRouteServiceProvidersClientWithBaseURI(baseURI string, subscriptionID string) ExpressRouteServiceProvidersClient {
+ return ExpressRouteServiceProvidersClient{NewWithBaseURI(baseURI, subscriptionID)}
+}
+
+// List gets all the available express route service providers.
+func (client ExpressRouteServiceProvidersClient) List(ctx context.Context) (result ExpressRouteServiceProviderListResultPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteServiceProvidersClient.List")
+ defer func() {
+ sc := -1
+ if result.ersplr.Response.Response != nil {
+ sc = result.ersplr.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.listNextResults
+ req, err := client.ListPreparer(ctx)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteServiceProvidersClient", "List", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.ersplr.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteServiceProvidersClient", "List", resp, "Failure sending request")
+ return
+ }
+
+ result.ersplr, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteServiceProvidersClient", "List", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListPreparer prepares the List request.
+func (client ExpressRouteServiceProvidersClient) ListPreparer(ctx context.Context) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/expressRouteServiceProviders", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListSender sends the List request. The method will close the
+// http.Response Body if it receives an error.
+func (client ExpressRouteServiceProvidersClient) ListSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListResponder handles the response to the List request. The method always
+// closes the http.Response Body.
+func (client ExpressRouteServiceProvidersClient) ListResponder(resp *http.Response) (result ExpressRouteServiceProviderListResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listNextResults retrieves the next set of results, if any.
+func (client ExpressRouteServiceProvidersClient) listNextResults(ctx context.Context, lastResults ExpressRouteServiceProviderListResult) (result ExpressRouteServiceProviderListResult, err error) {
+ req, err := lastResults.expressRouteServiceProviderListResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "network.ExpressRouteServiceProvidersClient", "listNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "network.ExpressRouteServiceProvidersClient", "listNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.ExpressRouteServiceProvidersClient", "listNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListComplete enumerates all values, automatically crossing page boundaries as required.
+func (client ExpressRouteServiceProvidersClient) ListComplete(ctx context.Context) (result ExpressRouteServiceProviderListResultIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ExpressRouteServiceProvidersClient.List")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.List(ctx)
+ return
+}
diff --git a/services/network/mgmt/2019-11-01/network/firewallpolicies.go b/services/network/mgmt/2019-11-01/network/firewallpolicies.go
new file mode 100644
index 000000000000..68d193b72985
--- /dev/null
+++ b/services/network/mgmt/2019-11-01/network/firewallpolicies.go
@@ -0,0 +1,504 @@
+package network
+
+// Copyright (c) Microsoft and contributors. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+ "context"
+ "github.com/Azure/go-autorest/autorest"
+ "github.com/Azure/go-autorest/autorest/azure"
+ "github.com/Azure/go-autorest/tracing"
+ "net/http"
+)
+
+// FirewallPoliciesClient is the network Client
+type FirewallPoliciesClient struct {
+ BaseClient
+}
+
+// NewFirewallPoliciesClient creates an instance of the FirewallPoliciesClient client.
+func NewFirewallPoliciesClient(subscriptionID string) FirewallPoliciesClient {
+ return NewFirewallPoliciesClientWithBaseURI(DefaultBaseURI, subscriptionID)
+}
+
+// NewFirewallPoliciesClientWithBaseURI creates an instance of the FirewallPoliciesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
+func NewFirewallPoliciesClientWithBaseURI(baseURI string, subscriptionID string) FirewallPoliciesClient {
+ return FirewallPoliciesClient{NewWithBaseURI(baseURI, subscriptionID)}
+}
+
+// CreateOrUpdate creates or updates the specified Firewall Policy.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// firewallPolicyName - the name of the Firewall Policy.
+// parameters - parameters supplied to the create or update Firewall Policy operation.
+func (client FirewallPoliciesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, firewallPolicyName string, parameters FirewallPolicy) (result FirewallPoliciesCreateOrUpdateFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/FirewallPoliciesClient.CreateOrUpdate")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, firewallPolicyName, parameters)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.FirewallPoliciesClient", "CreateOrUpdate", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.CreateOrUpdateSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.FirewallPoliciesClient", "CreateOrUpdate", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// CreateOrUpdatePreparer prepares the CreateOrUpdate request.
+func (client FirewallPoliciesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, firewallPolicyName string, parameters FirewallPolicy) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "firewallPolicyName": autorest.Encode("path", firewallPolicyName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ parameters.Etag = nil
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPut(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firewallPolicies/{firewallPolicyName}", pathParameters),
+ autorest.WithJSON(parameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the
+// http.Response Body if it receives an error.
+func (client FirewallPoliciesClient) CreateOrUpdateSender(req *http.Request) (future FirewallPoliciesCreateOrUpdateFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always
+// closes the http.Response Body.
+func (client FirewallPoliciesClient) CreateOrUpdateResponder(resp *http.Response) (result FirewallPolicy, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// Delete deletes the specified Firewall Policy.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// firewallPolicyName - the name of the Firewall Policy.
+func (client FirewallPoliciesClient) Delete(ctx context.Context, resourceGroupName string, firewallPolicyName string) (result FirewallPoliciesDeleteFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/FirewallPoliciesClient.Delete")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.DeletePreparer(ctx, resourceGroupName, firewallPolicyName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.FirewallPoliciesClient", "Delete", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.DeleteSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.FirewallPoliciesClient", "Delete", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// DeletePreparer prepares the Delete request.
+func (client FirewallPoliciesClient) DeletePreparer(ctx context.Context, resourceGroupName string, firewallPolicyName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "firewallPolicyName": autorest.Encode("path", firewallPolicyName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/firewallPolicies/{firewallPolicyName}", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// DeleteSender sends the Delete request. The method will close the
+// http.Response Body if it receives an error.
+func (client FirewallPoliciesClient) DeleteSender(req *http.Request) (future FirewallPoliciesDeleteFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// DeleteResponder handles the response to the Delete request. The method always
+// closes the http.Response Body.
+func (client FirewallPoliciesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent),
+ autorest.ByClosing())
+ result.Response = resp
+ return
+}
+
+// Get gets the specified Firewall Policy.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// firewallPolicyName - the name of the Firewall Policy.
+// expand - expands referenced resources.
+func (client FirewallPoliciesClient) Get(ctx context.Context, resourceGroupName string, firewallPolicyName string, expand string) (result FirewallPolicy, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/FirewallPoliciesClient.Get")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetPreparer(ctx, resourceGroupName, firewallPolicyName, expand)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.FirewallPoliciesClient", "Get", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.FirewallPoliciesClient", "Get", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.FirewallPoliciesClient", "Get", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetPreparer prepares the Get request.
+func (client FirewallPoliciesClient) GetPreparer(ctx context.Context, resourceGroupName string, firewallPolicyName string, expand string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "firewallPolicyName": autorest.Encode("path", firewallPolicyName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+ if len(expand) > 0 {
+ queryParameters["$expand"] = autorest.Encode("query", expand)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firewallPolicies/{firewallPolicyName}", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetSender sends the Get request. The method will close the
+// http.Response Body if it receives an error.
+func (client FirewallPoliciesClient) GetSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetResponder handles the response to the Get request. The method always
+// closes the http.Response Body.
+func (client FirewallPoliciesClient) GetResponder(resp *http.Response) (result FirewallPolicy, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// List lists all Firewall Policies in a resource group.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+func (client FirewallPoliciesClient) List(ctx context.Context, resourceGroupName string) (result FirewallPolicyListResultPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/FirewallPoliciesClient.List")
+ defer func() {
+ sc := -1
+ if result.fplr.Response.Response != nil {
+ sc = result.fplr.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.listNextResults
+ req, err := client.ListPreparer(ctx, resourceGroupName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.FirewallPoliciesClient", "List", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.fplr.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.FirewallPoliciesClient", "List", resp, "Failure sending request")
+ return
+ }
+
+ result.fplr, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.FirewallPoliciesClient", "List", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListPreparer prepares the List request.
+func (client FirewallPoliciesClient) ListPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/firewallPolicies", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListSender sends the List request. The method will close the
+// http.Response Body if it receives an error.
+func (client FirewallPoliciesClient) ListSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListResponder handles the response to the List request. The method always
+// closes the http.Response Body.
+func (client FirewallPoliciesClient) ListResponder(resp *http.Response) (result FirewallPolicyListResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listNextResults retrieves the next set of results, if any.
+func (client FirewallPoliciesClient) listNextResults(ctx context.Context, lastResults FirewallPolicyListResult) (result FirewallPolicyListResult, err error) {
+ req, err := lastResults.firewallPolicyListResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "network.FirewallPoliciesClient", "listNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "network.FirewallPoliciesClient", "listNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.FirewallPoliciesClient", "listNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListComplete enumerates all values, automatically crossing page boundaries as required.
+func (client FirewallPoliciesClient) ListComplete(ctx context.Context, resourceGroupName string) (result FirewallPolicyListResultIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/FirewallPoliciesClient.List")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.List(ctx, resourceGroupName)
+ return
+}
+
+// ListAll gets all the Firewall Policies in a subscription.
+func (client FirewallPoliciesClient) ListAll(ctx context.Context) (result FirewallPolicyListResultPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/FirewallPoliciesClient.ListAll")
+ defer func() {
+ sc := -1
+ if result.fplr.Response.Response != nil {
+ sc = result.fplr.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.listAllNextResults
+ req, err := client.ListAllPreparer(ctx)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.FirewallPoliciesClient", "ListAll", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListAllSender(req)
+ if err != nil {
+ result.fplr.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.FirewallPoliciesClient", "ListAll", resp, "Failure sending request")
+ return
+ }
+
+ result.fplr, err = client.ListAllResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.FirewallPoliciesClient", "ListAll", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListAllPreparer prepares the ListAll request.
+func (client FirewallPoliciesClient) ListAllPreparer(ctx context.Context) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/firewallPolicies", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListAllSender sends the ListAll request. The method will close the
+// http.Response Body if it receives an error.
+func (client FirewallPoliciesClient) ListAllSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListAllResponder handles the response to the ListAll request. The method always
+// closes the http.Response Body.
+func (client FirewallPoliciesClient) ListAllResponder(resp *http.Response) (result FirewallPolicyListResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listAllNextResults retrieves the next set of results, if any.
+func (client FirewallPoliciesClient) listAllNextResults(ctx context.Context, lastResults FirewallPolicyListResult) (result FirewallPolicyListResult, err error) {
+ req, err := lastResults.firewallPolicyListResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "network.FirewallPoliciesClient", "listAllNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListAllSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "network.FirewallPoliciesClient", "listAllNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListAllResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.FirewallPoliciesClient", "listAllNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListAllComplete enumerates all values, automatically crossing page boundaries as required.
+func (client FirewallPoliciesClient) ListAllComplete(ctx context.Context) (result FirewallPolicyListResultIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/FirewallPoliciesClient.ListAll")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.ListAll(ctx)
+ return
+}
diff --git a/services/network/mgmt/2019-11-01/network/firewallpolicyrulegroups.go b/services/network/mgmt/2019-11-01/network/firewallpolicyrulegroups.go
new file mode 100644
index 000000000000..e6f9bdaa57e9
--- /dev/null
+++ b/services/network/mgmt/2019-11-01/network/firewallpolicyrulegroups.go
@@ -0,0 +1,411 @@
+package network
+
+// Copyright (c) Microsoft and contributors. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+ "context"
+ "github.com/Azure/go-autorest/autorest"
+ "github.com/Azure/go-autorest/autorest/azure"
+ "github.com/Azure/go-autorest/autorest/validation"
+ "github.com/Azure/go-autorest/tracing"
+ "net/http"
+)
+
+// FirewallPolicyRuleGroupsClient is the network Client
+type FirewallPolicyRuleGroupsClient struct {
+ BaseClient
+}
+
+// NewFirewallPolicyRuleGroupsClient creates an instance of the FirewallPolicyRuleGroupsClient client.
+func NewFirewallPolicyRuleGroupsClient(subscriptionID string) FirewallPolicyRuleGroupsClient {
+ return NewFirewallPolicyRuleGroupsClientWithBaseURI(DefaultBaseURI, subscriptionID)
+}
+
+// NewFirewallPolicyRuleGroupsClientWithBaseURI creates an instance of the FirewallPolicyRuleGroupsClient client using
+// a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
+func NewFirewallPolicyRuleGroupsClientWithBaseURI(baseURI string, subscriptionID string) FirewallPolicyRuleGroupsClient {
+ return FirewallPolicyRuleGroupsClient{NewWithBaseURI(baseURI, subscriptionID)}
+}
+
+// CreateOrUpdate creates or updates the specified FirewallPolicyRuleGroup.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// firewallPolicyName - the name of the Firewall Policy.
+// ruleGroupName - the name of the FirewallPolicyRuleGroup.
+// parameters - parameters supplied to the create or update FirewallPolicyRuleGroup operation.
+func (client FirewallPolicyRuleGroupsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, firewallPolicyName string, ruleGroupName string, parameters FirewallPolicyRuleGroup) (result FirewallPolicyRuleGroupsCreateOrUpdateFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/FirewallPolicyRuleGroupsClient.CreateOrUpdate")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: parameters,
+ Constraints: []validation.Constraint{{Target: "parameters.FirewallPolicyRuleGroupProperties", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "parameters.FirewallPolicyRuleGroupProperties.Priority", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "parameters.FirewallPolicyRuleGroupProperties.Priority", Name: validation.InclusiveMaximum, Rule: int64(65000), Chain: nil},
+ {Target: "parameters.FirewallPolicyRuleGroupProperties.Priority", Name: validation.InclusiveMinimum, Rule: int64(100), Chain: nil},
+ }},
+ }}}}}); err != nil {
+ return result, validation.NewError("network.FirewallPolicyRuleGroupsClient", "CreateOrUpdate", err.Error())
+ }
+
+ req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, firewallPolicyName, ruleGroupName, parameters)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.FirewallPolicyRuleGroupsClient", "CreateOrUpdate", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.CreateOrUpdateSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.FirewallPolicyRuleGroupsClient", "CreateOrUpdate", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// CreateOrUpdatePreparer prepares the CreateOrUpdate request.
+func (client FirewallPolicyRuleGroupsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, firewallPolicyName string, ruleGroupName string, parameters FirewallPolicyRuleGroup) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "firewallPolicyName": autorest.Encode("path", firewallPolicyName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "ruleGroupName": autorest.Encode("path", ruleGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ parameters.Etag = nil
+ parameters.Type = nil
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPut(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firewallPolicies/{firewallPolicyName}/ruleGroups/{ruleGroupName}", pathParameters),
+ autorest.WithJSON(parameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the
+// http.Response Body if it receives an error.
+func (client FirewallPolicyRuleGroupsClient) CreateOrUpdateSender(req *http.Request) (future FirewallPolicyRuleGroupsCreateOrUpdateFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always
+// closes the http.Response Body.
+func (client FirewallPolicyRuleGroupsClient) CreateOrUpdateResponder(resp *http.Response) (result FirewallPolicyRuleGroup, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// Delete deletes the specified FirewallPolicyRuleGroup.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// firewallPolicyName - the name of the Firewall Policy.
+// ruleGroupName - the name of the FirewallPolicyRuleGroup.
+func (client FirewallPolicyRuleGroupsClient) Delete(ctx context.Context, resourceGroupName string, firewallPolicyName string, ruleGroupName string) (result FirewallPolicyRuleGroupsDeleteFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/FirewallPolicyRuleGroupsClient.Delete")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.DeletePreparer(ctx, resourceGroupName, firewallPolicyName, ruleGroupName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.FirewallPolicyRuleGroupsClient", "Delete", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.DeleteSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.FirewallPolicyRuleGroupsClient", "Delete", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// DeletePreparer prepares the Delete request.
+func (client FirewallPolicyRuleGroupsClient) DeletePreparer(ctx context.Context, resourceGroupName string, firewallPolicyName string, ruleGroupName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "firewallPolicyName": autorest.Encode("path", firewallPolicyName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "ruleGroupName": autorest.Encode("path", ruleGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/firewallPolicies/{firewallPolicyName}/ruleGroups/{ruleGroupName}", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// DeleteSender sends the Delete request. The method will close the
+// http.Response Body if it receives an error.
+func (client FirewallPolicyRuleGroupsClient) DeleteSender(req *http.Request) (future FirewallPolicyRuleGroupsDeleteFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// DeleteResponder handles the response to the Delete request. The method always
+// closes the http.Response Body.
+func (client FirewallPolicyRuleGroupsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent),
+ autorest.ByClosing())
+ result.Response = resp
+ return
+}
+
+// Get gets the specified FirewallPolicyRuleGroup.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// firewallPolicyName - the name of the Firewall Policy.
+// ruleGroupName - the name of the FirewallPolicyRuleGroup.
+func (client FirewallPolicyRuleGroupsClient) Get(ctx context.Context, resourceGroupName string, firewallPolicyName string, ruleGroupName string) (result FirewallPolicyRuleGroup, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/FirewallPolicyRuleGroupsClient.Get")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetPreparer(ctx, resourceGroupName, firewallPolicyName, ruleGroupName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.FirewallPolicyRuleGroupsClient", "Get", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.FirewallPolicyRuleGroupsClient", "Get", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.FirewallPolicyRuleGroupsClient", "Get", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetPreparer prepares the Get request.
+func (client FirewallPolicyRuleGroupsClient) GetPreparer(ctx context.Context, resourceGroupName string, firewallPolicyName string, ruleGroupName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "firewallPolicyName": autorest.Encode("path", firewallPolicyName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "ruleGroupName": autorest.Encode("path", ruleGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/firewallPolicies/{firewallPolicyName}/ruleGroups/{ruleGroupName}", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetSender sends the Get request. The method will close the
+// http.Response Body if it receives an error.
+func (client FirewallPolicyRuleGroupsClient) GetSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetResponder handles the response to the Get request. The method always
+// closes the http.Response Body.
+func (client FirewallPolicyRuleGroupsClient) GetResponder(resp *http.Response) (result FirewallPolicyRuleGroup, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// List lists all FirewallPolicyRuleGroups in a FirewallPolicy resource.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// firewallPolicyName - the name of the Firewall Policy.
+func (client FirewallPolicyRuleGroupsClient) List(ctx context.Context, resourceGroupName string, firewallPolicyName string) (result FirewallPolicyRuleGroupListResultPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/FirewallPolicyRuleGroupsClient.List")
+ defer func() {
+ sc := -1
+ if result.fprglr.Response.Response != nil {
+ sc = result.fprglr.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.listNextResults
+ req, err := client.ListPreparer(ctx, resourceGroupName, firewallPolicyName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.FirewallPolicyRuleGroupsClient", "List", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.fprglr.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.FirewallPolicyRuleGroupsClient", "List", resp, "Failure sending request")
+ return
+ }
+
+ result.fprglr, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.FirewallPolicyRuleGroupsClient", "List", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListPreparer prepares the List request.
+func (client FirewallPolicyRuleGroupsClient) ListPreparer(ctx context.Context, resourceGroupName string, firewallPolicyName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "firewallPolicyName": autorest.Encode("path", firewallPolicyName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/firewallPolicies/{firewallPolicyName}/ruleGroups", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListSender sends the List request. The method will close the
+// http.Response Body if it receives an error.
+func (client FirewallPolicyRuleGroupsClient) ListSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListResponder handles the response to the List request. The method always
+// closes the http.Response Body.
+func (client FirewallPolicyRuleGroupsClient) ListResponder(resp *http.Response) (result FirewallPolicyRuleGroupListResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listNextResults retrieves the next set of results, if any.
+func (client FirewallPolicyRuleGroupsClient) listNextResults(ctx context.Context, lastResults FirewallPolicyRuleGroupListResult) (result FirewallPolicyRuleGroupListResult, err error) {
+ req, err := lastResults.firewallPolicyRuleGroupListResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "network.FirewallPolicyRuleGroupsClient", "listNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "network.FirewallPolicyRuleGroupsClient", "listNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.FirewallPolicyRuleGroupsClient", "listNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListComplete enumerates all values, automatically crossing page boundaries as required.
+func (client FirewallPolicyRuleGroupsClient) ListComplete(ctx context.Context, resourceGroupName string, firewallPolicyName string) (result FirewallPolicyRuleGroupListResultIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/FirewallPolicyRuleGroupsClient.List")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.List(ctx, resourceGroupName, firewallPolicyName)
+ return
+}
diff --git a/services/network/mgmt/2019-11-01/network/flowlogs.go b/services/network/mgmt/2019-11-01/network/flowlogs.go
new file mode 100644
index 000000000000..fb7d92cea84b
--- /dev/null
+++ b/services/network/mgmt/2019-11-01/network/flowlogs.go
@@ -0,0 +1,407 @@
+package network
+
+// Copyright (c) Microsoft and contributors. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+ "context"
+ "github.com/Azure/go-autorest/autorest"
+ "github.com/Azure/go-autorest/autorest/azure"
+ "github.com/Azure/go-autorest/autorest/validation"
+ "github.com/Azure/go-autorest/tracing"
+ "net/http"
+)
+
+// FlowLogsClient is the network Client
+type FlowLogsClient struct {
+ BaseClient
+}
+
+// NewFlowLogsClient creates an instance of the FlowLogsClient client.
+func NewFlowLogsClient(subscriptionID string) FlowLogsClient {
+ return NewFlowLogsClientWithBaseURI(DefaultBaseURI, subscriptionID)
+}
+
+// NewFlowLogsClientWithBaseURI creates an instance of the FlowLogsClient client using a custom endpoint. Use this
+// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
+func NewFlowLogsClientWithBaseURI(baseURI string, subscriptionID string) FlowLogsClient {
+ return FlowLogsClient{NewWithBaseURI(baseURI, subscriptionID)}
+}
+
+// CreateOrUpdate create or update a flow log for the specified network security group.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// networkWatcherName - the name of the network watcher.
+// flowLogName - the name of the flow log.
+// parameters - parameters that define the create or update flow log resource.
+func (client FlowLogsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, networkWatcherName string, flowLogName string, parameters FlowLog) (result FlowLogsCreateOrUpdateFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/FlowLogsClient.CreateOrUpdate")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: parameters,
+ Constraints: []validation.Constraint{{Target: "parameters.FlowLogPropertiesFormat", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "parameters.FlowLogPropertiesFormat.TargetResourceID", Name: validation.Null, Rule: true, Chain: nil},
+ {Target: "parameters.FlowLogPropertiesFormat.StorageID", Name: validation.Null, Rule: true, Chain: nil},
+ }}}}}); err != nil {
+ return result, validation.NewError("network.FlowLogsClient", "CreateOrUpdate", err.Error())
+ }
+
+ req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, networkWatcherName, flowLogName, parameters)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.FlowLogsClient", "CreateOrUpdate", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.CreateOrUpdateSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.FlowLogsClient", "CreateOrUpdate", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// CreateOrUpdatePreparer prepares the CreateOrUpdate request.
+func (client FlowLogsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, networkWatcherName string, flowLogName string, parameters FlowLog) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "flowLogName": autorest.Encode("path", flowLogName),
+ "networkWatcherName": autorest.Encode("path", networkWatcherName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ parameters.Etag = nil
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPut(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/flowLogs/{flowLogName}", pathParameters),
+ autorest.WithJSON(parameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the
+// http.Response Body if it receives an error.
+func (client FlowLogsClient) CreateOrUpdateSender(req *http.Request) (future FlowLogsCreateOrUpdateFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always
+// closes the http.Response Body.
+func (client FlowLogsClient) CreateOrUpdateResponder(resp *http.Response) (result FlowLog, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// Delete deletes the specified flow log resource.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// networkWatcherName - the name of the network watcher.
+// flowLogName - the name of the flow log resource.
+func (client FlowLogsClient) Delete(ctx context.Context, resourceGroupName string, networkWatcherName string, flowLogName string) (result FlowLogsDeleteFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/FlowLogsClient.Delete")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.DeletePreparer(ctx, resourceGroupName, networkWatcherName, flowLogName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.FlowLogsClient", "Delete", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.DeleteSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.FlowLogsClient", "Delete", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// DeletePreparer prepares the Delete request.
+func (client FlowLogsClient) DeletePreparer(ctx context.Context, resourceGroupName string, networkWatcherName string, flowLogName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "flowLogName": autorest.Encode("path", flowLogName),
+ "networkWatcherName": autorest.Encode("path", networkWatcherName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/networkWatchers/{networkWatcherName}/flowLogs/{flowLogName}", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// DeleteSender sends the Delete request. The method will close the
+// http.Response Body if it receives an error.
+func (client FlowLogsClient) DeleteSender(req *http.Request) (future FlowLogsDeleteFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// DeleteResponder handles the response to the Delete request. The method always
+// closes the http.Response Body.
+func (client FlowLogsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent),
+ autorest.ByClosing())
+ result.Response = resp
+ return
+}
+
+// Get gets a flow log resource by name.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// networkWatcherName - the name of the network watcher.
+// flowLogName - the name of the flow log resource.
+func (client FlowLogsClient) Get(ctx context.Context, resourceGroupName string, networkWatcherName string, flowLogName string) (result FlowLog, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/FlowLogsClient.Get")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetPreparer(ctx, resourceGroupName, networkWatcherName, flowLogName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.FlowLogsClient", "Get", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.FlowLogsClient", "Get", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.FlowLogsClient", "Get", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetPreparer prepares the Get request.
+func (client FlowLogsClient) GetPreparer(ctx context.Context, resourceGroupName string, networkWatcherName string, flowLogName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "flowLogName": autorest.Encode("path", flowLogName),
+ "networkWatcherName": autorest.Encode("path", networkWatcherName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/networkWatchers/{networkWatcherName}/flowLogs/{flowLogName}", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetSender sends the Get request. The method will close the
+// http.Response Body if it receives an error.
+func (client FlowLogsClient) GetSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetResponder handles the response to the Get request. The method always
+// closes the http.Response Body.
+func (client FlowLogsClient) GetResponder(resp *http.Response) (result FlowLog, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// List lists all flow log resources for the specified Network Watcher.
+// Parameters:
+// resourceGroupName - the name of the resource group containing Network Watcher.
+// networkWatcherName - the name of the Network Watcher resource.
+func (client FlowLogsClient) List(ctx context.Context, resourceGroupName string, networkWatcherName string) (result FlowLogListResultPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/FlowLogsClient.List")
+ defer func() {
+ sc := -1
+ if result.fllr.Response.Response != nil {
+ sc = result.fllr.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.listNextResults
+ req, err := client.ListPreparer(ctx, resourceGroupName, networkWatcherName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.FlowLogsClient", "List", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.fllr.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.FlowLogsClient", "List", resp, "Failure sending request")
+ return
+ }
+
+ result.fllr, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.FlowLogsClient", "List", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListPreparer prepares the List request.
+func (client FlowLogsClient) ListPreparer(ctx context.Context, resourceGroupName string, networkWatcherName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "networkWatcherName": autorest.Encode("path", networkWatcherName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/networkWatchers/{networkWatcherName}/flowLogs", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListSender sends the List request. The method will close the
+// http.Response Body if it receives an error.
+func (client FlowLogsClient) ListSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListResponder handles the response to the List request. The method always
+// closes the http.Response Body.
+func (client FlowLogsClient) ListResponder(resp *http.Response) (result FlowLogListResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listNextResults retrieves the next set of results, if any.
+func (client FlowLogsClient) listNextResults(ctx context.Context, lastResults FlowLogListResult) (result FlowLogListResult, err error) {
+ req, err := lastResults.flowLogListResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "network.FlowLogsClient", "listNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "network.FlowLogsClient", "listNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.FlowLogsClient", "listNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListComplete enumerates all values, automatically crossing page boundaries as required.
+func (client FlowLogsClient) ListComplete(ctx context.Context, resourceGroupName string, networkWatcherName string) (result FlowLogListResultIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/FlowLogsClient.List")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.List(ctx, resourceGroupName, networkWatcherName)
+ return
+}
diff --git a/services/network/mgmt/2019-11-01/network/hubvirtualnetworkconnections.go b/services/network/mgmt/2019-11-01/network/hubvirtualnetworkconnections.go
new file mode 100644
index 000000000000..f3ba69939e02
--- /dev/null
+++ b/services/network/mgmt/2019-11-01/network/hubvirtualnetworkconnections.go
@@ -0,0 +1,237 @@
+package network
+
+// Copyright (c) Microsoft and contributors. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+ "context"
+ "github.com/Azure/go-autorest/autorest"
+ "github.com/Azure/go-autorest/autorest/azure"
+ "github.com/Azure/go-autorest/tracing"
+ "net/http"
+)
+
+// HubVirtualNetworkConnectionsClient is the network Client
+type HubVirtualNetworkConnectionsClient struct {
+ BaseClient
+}
+
+// NewHubVirtualNetworkConnectionsClient creates an instance of the HubVirtualNetworkConnectionsClient client.
+func NewHubVirtualNetworkConnectionsClient(subscriptionID string) HubVirtualNetworkConnectionsClient {
+ return NewHubVirtualNetworkConnectionsClientWithBaseURI(DefaultBaseURI, subscriptionID)
+}
+
+// NewHubVirtualNetworkConnectionsClientWithBaseURI creates an instance of the HubVirtualNetworkConnectionsClient
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
+func NewHubVirtualNetworkConnectionsClientWithBaseURI(baseURI string, subscriptionID string) HubVirtualNetworkConnectionsClient {
+ return HubVirtualNetworkConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)}
+}
+
+// Get retrieves the details of a HubVirtualNetworkConnection.
+// Parameters:
+// resourceGroupName - the resource group name of the VirtualHub.
+// virtualHubName - the name of the VirtualHub.
+// connectionName - the name of the vpn connection.
+func (client HubVirtualNetworkConnectionsClient) Get(ctx context.Context, resourceGroupName string, virtualHubName string, connectionName string) (result HubVirtualNetworkConnection, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/HubVirtualNetworkConnectionsClient.Get")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetPreparer(ctx, resourceGroupName, virtualHubName, connectionName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.HubVirtualNetworkConnectionsClient", "Get", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.HubVirtualNetworkConnectionsClient", "Get", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.HubVirtualNetworkConnectionsClient", "Get", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetPreparer prepares the Get request.
+func (client HubVirtualNetworkConnectionsClient) GetPreparer(ctx context.Context, resourceGroupName string, virtualHubName string, connectionName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "connectionName": autorest.Encode("path", connectionName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ "virtualHubName": autorest.Encode("path", virtualHubName),
+ }
+
+ const APIVersion = "2019-11-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.Network/virtualHubs/{virtualHubName}/hubVirtualNetworkConnections/{connectionName}", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetSender sends the Get request. The method will close the
+// http.Response Body if it receives an error.
+func (client HubVirtualNetworkConnectionsClient) GetSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetResponder handles the response to the Get request. The method always
+// closes the http.Response Body.
+func (client HubVirtualNetworkConnectionsClient) GetResponder(resp *http.Response) (result HubVirtualNetworkConnection, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// List retrieves the details of all HubVirtualNetworkConnections.
+// Parameters:
+// resourceGroupName - the resource group name of the VirtualHub.
+// virtualHubName - the name of the VirtualHub.
+func (client HubVirtualNetworkConnectionsClient) List(ctx context.Context, resourceGroupName string, virtualHubName string) (result ListHubVirtualNetworkConnectionsResultPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/HubVirtualNetworkConnectionsClient.List")
+ defer func() {
+ sc := -1
+ if result.lhvncr.Response.Response != nil {
+ sc = result.lhvncr.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.listNextResults
+ req, err := client.ListPreparer(ctx, resourceGroupName, virtualHubName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.HubVirtualNetworkConnectionsClient", "List", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.lhvncr.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.HubVirtualNetworkConnectionsClient", "List", resp, "Failure sending request")
+ return
+ }
+
+ result.lhvncr, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.HubVirtualNetworkConnectionsClient", "List", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListPreparer prepares the List request.
+func (client HubVirtualNetworkConnectionsClient) ListPreparer(ctx context.Context, resourceGroupName string, virtualHubName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ "virtualHubName": autorest.Encode("path", virtualHubName),
+ }
+
+ const APIVersion = "2019-11-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.Network/virtualHubs/{virtualHubName}/hubVirtualNetworkConnections", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListSender sends the List request. The method will close the
+// http.Response Body if it receives an error.
+func (client HubVirtualNetworkConnectionsClient) ListSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListResponder handles the response to the List request. The method always
+// closes the http.Response Body.
+func (client HubVirtualNetworkConnectionsClient) ListResponder(resp *http.Response) (result ListHubVirtualNetworkConnectionsResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listNextResults retrieves the next set of results, if any.
+func (client HubVirtualNetworkConnectionsClient) listNextResults(ctx context.Context, lastResults ListHubVirtualNetworkConnectionsResult) (result ListHubVirtualNetworkConnectionsResult, err error) {
+ req, err := lastResults.listHubVirtualNetworkConnectionsResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "network.HubVirtualNetworkConnectionsClient", "listNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "network.HubVirtualNetworkConnectionsClient", "listNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.HubVirtualNetworkConnectionsClient", "listNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListComplete enumerates all values, automatically crossing page boundaries as required.
+func (client HubVirtualNetworkConnectionsClient) ListComplete(ctx context.Context, resourceGroupName string, virtualHubName string) (result ListHubVirtualNetworkConnectionsResultIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/HubVirtualNetworkConnectionsClient.List")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.List(ctx, resourceGroupName, virtualHubName)
+ return
+}
diff --git a/services/network/mgmt/2019-11-01/network/inboundnatrules.go b/services/network/mgmt/2019-11-01/network/inboundnatrules.go
new file mode 100644
index 000000000000..52cacaab4df6
--- /dev/null
+++ b/services/network/mgmt/2019-11-01/network/inboundnatrules.go
@@ -0,0 +1,422 @@
+package network
+
+// Copyright (c) Microsoft and contributors. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+ "context"
+ "github.com/Azure/go-autorest/autorest"
+ "github.com/Azure/go-autorest/autorest/azure"
+ "github.com/Azure/go-autorest/autorest/validation"
+ "github.com/Azure/go-autorest/tracing"
+ "net/http"
+)
+
+// InboundNatRulesClient is the network Client
+type InboundNatRulesClient struct {
+ BaseClient
+}
+
+// NewInboundNatRulesClient creates an instance of the InboundNatRulesClient client.
+func NewInboundNatRulesClient(subscriptionID string) InboundNatRulesClient {
+ return NewInboundNatRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
+}
+
+// NewInboundNatRulesClientWithBaseURI creates an instance of the InboundNatRulesClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
+func NewInboundNatRulesClientWithBaseURI(baseURI string, subscriptionID string) InboundNatRulesClient {
+ return InboundNatRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
+}
+
+// CreateOrUpdate creates or updates a load balancer inbound nat rule.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// loadBalancerName - the name of the load balancer.
+// inboundNatRuleName - the name of the inbound nat rule.
+// inboundNatRuleParameters - parameters supplied to the create or update inbound nat rule operation.
+func (client InboundNatRulesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, loadBalancerName string, inboundNatRuleName string, inboundNatRuleParameters InboundNatRule) (result InboundNatRulesCreateOrUpdateFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/InboundNatRulesClient.CreateOrUpdate")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: inboundNatRuleParameters,
+ Constraints: []validation.Constraint{{Target: "inboundNatRuleParameters.InboundNatRulePropertiesFormat", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "inboundNatRuleParameters.InboundNatRulePropertiesFormat.BackendIPConfiguration", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "inboundNatRuleParameters.InboundNatRulePropertiesFormat.BackendIPConfiguration.InterfaceIPConfigurationPropertiesFormat", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "inboundNatRuleParameters.InboundNatRulePropertiesFormat.BackendIPConfiguration.InterfaceIPConfigurationPropertiesFormat.PublicIPAddress", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "inboundNatRuleParameters.InboundNatRulePropertiesFormat.BackendIPConfiguration.InterfaceIPConfigurationPropertiesFormat.PublicIPAddress.PublicIPAddressPropertiesFormat", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "inboundNatRuleParameters.InboundNatRulePropertiesFormat.BackendIPConfiguration.InterfaceIPConfigurationPropertiesFormat.PublicIPAddress.PublicIPAddressPropertiesFormat.IPConfiguration", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "inboundNatRuleParameters.InboundNatRulePropertiesFormat.BackendIPConfiguration.InterfaceIPConfigurationPropertiesFormat.PublicIPAddress.PublicIPAddressPropertiesFormat.IPConfiguration.IPConfigurationPropertiesFormat", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "inboundNatRuleParameters.InboundNatRulePropertiesFormat.BackendIPConfiguration.InterfaceIPConfigurationPropertiesFormat.PublicIPAddress.PublicIPAddressPropertiesFormat.IPConfiguration.IPConfigurationPropertiesFormat.PublicIPAddress", Name: validation.Null, Rule: false, Chain: nil}}},
+ }},
+ }},
+ }},
+ }},
+ }},
+ }}}}}); err != nil {
+ return result, validation.NewError("network.InboundNatRulesClient", "CreateOrUpdate", err.Error())
+ }
+
+ req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, loadBalancerName, inboundNatRuleName, inboundNatRuleParameters)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "CreateOrUpdate", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.CreateOrUpdateSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "CreateOrUpdate", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// CreateOrUpdatePreparer prepares the CreateOrUpdate request.
+func (client InboundNatRulesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, loadBalancerName string, inboundNatRuleName string, inboundNatRuleParameters InboundNatRule) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "inboundNatRuleName": autorest.Encode("path", inboundNatRuleName),
+ "loadBalancerName": autorest.Encode("path", loadBalancerName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ inboundNatRuleParameters.Etag = nil
+ inboundNatRuleParameters.Type = nil
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPut(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/inboundNatRules/{inboundNatRuleName}", pathParameters),
+ autorest.WithJSON(inboundNatRuleParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the
+// http.Response Body if it receives an error.
+func (client InboundNatRulesClient) CreateOrUpdateSender(req *http.Request) (future InboundNatRulesCreateOrUpdateFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always
+// closes the http.Response Body.
+func (client InboundNatRulesClient) CreateOrUpdateResponder(resp *http.Response) (result InboundNatRule, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// Delete deletes the specified load balancer inbound nat rule.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// loadBalancerName - the name of the load balancer.
+// inboundNatRuleName - the name of the inbound nat rule.
+func (client InboundNatRulesClient) Delete(ctx context.Context, resourceGroupName string, loadBalancerName string, inboundNatRuleName string) (result InboundNatRulesDeleteFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/InboundNatRulesClient.Delete")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.DeletePreparer(ctx, resourceGroupName, loadBalancerName, inboundNatRuleName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "Delete", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.DeleteSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "Delete", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// DeletePreparer prepares the Delete request.
+func (client InboundNatRulesClient) DeletePreparer(ctx context.Context, resourceGroupName string, loadBalancerName string, inboundNatRuleName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "inboundNatRuleName": autorest.Encode("path", inboundNatRuleName),
+ "loadBalancerName": autorest.Encode("path", loadBalancerName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/loadBalancers/{loadBalancerName}/inboundNatRules/{inboundNatRuleName}", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// DeleteSender sends the Delete request. The method will close the
+// http.Response Body if it receives an error.
+func (client InboundNatRulesClient) DeleteSender(req *http.Request) (future InboundNatRulesDeleteFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// DeleteResponder handles the response to the Delete request. The method always
+// closes the http.Response Body.
+func (client InboundNatRulesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent),
+ autorest.ByClosing())
+ result.Response = resp
+ return
+}
+
+// Get gets the specified load balancer inbound nat rule.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// loadBalancerName - the name of the load balancer.
+// inboundNatRuleName - the name of the inbound nat rule.
+// expand - expands referenced resources.
+func (client InboundNatRulesClient) Get(ctx context.Context, resourceGroupName string, loadBalancerName string, inboundNatRuleName string, expand string) (result InboundNatRule, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/InboundNatRulesClient.Get")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetPreparer(ctx, resourceGroupName, loadBalancerName, inboundNatRuleName, expand)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "Get", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "Get", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "Get", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetPreparer prepares the Get request.
+func (client InboundNatRulesClient) GetPreparer(ctx context.Context, resourceGroupName string, loadBalancerName string, inboundNatRuleName string, expand string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "inboundNatRuleName": autorest.Encode("path", inboundNatRuleName),
+ "loadBalancerName": autorest.Encode("path", loadBalancerName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+ if len(expand) > 0 {
+ queryParameters["$expand"] = autorest.Encode("query", expand)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/inboundNatRules/{inboundNatRuleName}", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetSender sends the Get request. The method will close the
+// http.Response Body if it receives an error.
+func (client InboundNatRulesClient) GetSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetResponder handles the response to the Get request. The method always
+// closes the http.Response Body.
+func (client InboundNatRulesClient) GetResponder(resp *http.Response) (result InboundNatRule, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// List gets all the inbound nat rules in a load balancer.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// loadBalancerName - the name of the load balancer.
+func (client InboundNatRulesClient) List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result InboundNatRuleListResultPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/InboundNatRulesClient.List")
+ defer func() {
+ sc := -1
+ if result.inrlr.Response.Response != nil {
+ sc = result.inrlr.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.listNextResults
+ req, err := client.ListPreparer(ctx, resourceGroupName, loadBalancerName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "List", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.inrlr.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "List", resp, "Failure sending request")
+ return
+ }
+
+ result.inrlr, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "List", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListPreparer prepares the List request.
+func (client InboundNatRulesClient) ListPreparer(ctx context.Context, resourceGroupName string, loadBalancerName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "loadBalancerName": autorest.Encode("path", loadBalancerName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/loadBalancers/{loadBalancerName}/inboundNatRules", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListSender sends the List request. The method will close the
+// http.Response Body if it receives an error.
+func (client InboundNatRulesClient) ListSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListResponder handles the response to the List request. The method always
+// closes the http.Response Body.
+func (client InboundNatRulesClient) ListResponder(resp *http.Response) (result InboundNatRuleListResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listNextResults retrieves the next set of results, if any.
+func (client InboundNatRulesClient) listNextResults(ctx context.Context, lastResults InboundNatRuleListResult) (result InboundNatRuleListResult, err error) {
+ req, err := lastResults.inboundNatRuleListResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "listNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "listNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.InboundNatRulesClient", "listNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListComplete enumerates all values, automatically crossing page boundaries as required.
+func (client InboundNatRulesClient) ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result InboundNatRuleListResultIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/InboundNatRulesClient.List")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.List(ctx, resourceGroupName, loadBalancerName)
+ return
+}
diff --git a/services/network/mgmt/2019-11-01/network/interfaceipconfigurations.go b/services/network/mgmt/2019-11-01/network/interfaceipconfigurations.go
new file mode 100644
index 000000000000..fe97f824d940
--- /dev/null
+++ b/services/network/mgmt/2019-11-01/network/interfaceipconfigurations.go
@@ -0,0 +1,237 @@
+package network
+
+// Copyright (c) Microsoft and contributors. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+ "context"
+ "github.com/Azure/go-autorest/autorest"
+ "github.com/Azure/go-autorest/autorest/azure"
+ "github.com/Azure/go-autorest/tracing"
+ "net/http"
+)
+
+// InterfaceIPConfigurationsClient is the network Client
+type InterfaceIPConfigurationsClient struct {
+ BaseClient
+}
+
+// NewInterfaceIPConfigurationsClient creates an instance of the InterfaceIPConfigurationsClient client.
+func NewInterfaceIPConfigurationsClient(subscriptionID string) InterfaceIPConfigurationsClient {
+ return NewInterfaceIPConfigurationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
+}
+
+// NewInterfaceIPConfigurationsClientWithBaseURI creates an instance of the InterfaceIPConfigurationsClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
+func NewInterfaceIPConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) InterfaceIPConfigurationsClient {
+ return InterfaceIPConfigurationsClient{NewWithBaseURI(baseURI, subscriptionID)}
+}
+
+// Get gets the specified network interface ip configuration.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// networkInterfaceName - the name of the network interface.
+// IPConfigurationName - the name of the ip configuration name.
+func (client InterfaceIPConfigurationsClient) Get(ctx context.Context, resourceGroupName string, networkInterfaceName string, IPConfigurationName string) (result InterfaceIPConfiguration, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/InterfaceIPConfigurationsClient.Get")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetPreparer(ctx, resourceGroupName, networkInterfaceName, IPConfigurationName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.InterfaceIPConfigurationsClient", "Get", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.InterfaceIPConfigurationsClient", "Get", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.InterfaceIPConfigurationsClient", "Get", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetPreparer prepares the Get request.
+func (client InterfaceIPConfigurationsClient) GetPreparer(ctx context.Context, resourceGroupName string, networkInterfaceName string, IPConfigurationName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "ipConfigurationName": autorest.Encode("path", IPConfigurationName),
+ "networkInterfaceName": autorest.Encode("path", networkInterfaceName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/networkInterfaces/{networkInterfaceName}/ipConfigurations/{ipConfigurationName}", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetSender sends the Get request. The method will close the
+// http.Response Body if it receives an error.
+func (client InterfaceIPConfigurationsClient) GetSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetResponder handles the response to the Get request. The method always
+// closes the http.Response Body.
+func (client InterfaceIPConfigurationsClient) GetResponder(resp *http.Response) (result InterfaceIPConfiguration, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// List get all ip configurations in a network interface.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// networkInterfaceName - the name of the network interface.
+func (client InterfaceIPConfigurationsClient) List(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result InterfaceIPConfigurationListResultPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/InterfaceIPConfigurationsClient.List")
+ defer func() {
+ sc := -1
+ if result.iiclr.Response.Response != nil {
+ sc = result.iiclr.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.listNextResults
+ req, err := client.ListPreparer(ctx, resourceGroupName, networkInterfaceName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.InterfaceIPConfigurationsClient", "List", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.iiclr.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.InterfaceIPConfigurationsClient", "List", resp, "Failure sending request")
+ return
+ }
+
+ result.iiclr, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.InterfaceIPConfigurationsClient", "List", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListPreparer prepares the List request.
+func (client InterfaceIPConfigurationsClient) ListPreparer(ctx context.Context, resourceGroupName string, networkInterfaceName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "networkInterfaceName": autorest.Encode("path", networkInterfaceName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/networkInterfaces/{networkInterfaceName}/ipConfigurations", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListSender sends the List request. The method will close the
+// http.Response Body if it receives an error.
+func (client InterfaceIPConfigurationsClient) ListSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListResponder handles the response to the List request. The method always
+// closes the http.Response Body.
+func (client InterfaceIPConfigurationsClient) ListResponder(resp *http.Response) (result InterfaceIPConfigurationListResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listNextResults retrieves the next set of results, if any.
+func (client InterfaceIPConfigurationsClient) listNextResults(ctx context.Context, lastResults InterfaceIPConfigurationListResult) (result InterfaceIPConfigurationListResult, err error) {
+ req, err := lastResults.interfaceIPConfigurationListResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "network.InterfaceIPConfigurationsClient", "listNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "network.InterfaceIPConfigurationsClient", "listNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.InterfaceIPConfigurationsClient", "listNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListComplete enumerates all values, automatically crossing page boundaries as required.
+func (client InterfaceIPConfigurationsClient) ListComplete(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result InterfaceIPConfigurationListResultIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/InterfaceIPConfigurationsClient.List")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.List(ctx, resourceGroupName, networkInterfaceName)
+ return
+}
diff --git a/services/network/mgmt/2019-11-01/network/interfaceloadbalancers.go b/services/network/mgmt/2019-11-01/network/interfaceloadbalancers.go
new file mode 100644
index 000000000000..15a7e729a460
--- /dev/null
+++ b/services/network/mgmt/2019-11-01/network/interfaceloadbalancers.go
@@ -0,0 +1,158 @@
+package network
+
+// Copyright (c) Microsoft and contributors. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+ "context"
+ "github.com/Azure/go-autorest/autorest"
+ "github.com/Azure/go-autorest/autorest/azure"
+ "github.com/Azure/go-autorest/tracing"
+ "net/http"
+)
+
+// InterfaceLoadBalancersClient is the network Client
+type InterfaceLoadBalancersClient struct {
+ BaseClient
+}
+
+// NewInterfaceLoadBalancersClient creates an instance of the InterfaceLoadBalancersClient client.
+func NewInterfaceLoadBalancersClient(subscriptionID string) InterfaceLoadBalancersClient {
+ return NewInterfaceLoadBalancersClientWithBaseURI(DefaultBaseURI, subscriptionID)
+}
+
+// NewInterfaceLoadBalancersClientWithBaseURI creates an instance of the InterfaceLoadBalancersClient client using a
+// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds,
+// Azure stack).
+func NewInterfaceLoadBalancersClientWithBaseURI(baseURI string, subscriptionID string) InterfaceLoadBalancersClient {
+ return InterfaceLoadBalancersClient{NewWithBaseURI(baseURI, subscriptionID)}
+}
+
+// List list all load balancers in a network interface.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// networkInterfaceName - the name of the network interface.
+func (client InterfaceLoadBalancersClient) List(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result InterfaceLoadBalancerListResultPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/InterfaceLoadBalancersClient.List")
+ defer func() {
+ sc := -1
+ if result.ilblr.Response.Response != nil {
+ sc = result.ilblr.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.listNextResults
+ req, err := client.ListPreparer(ctx, resourceGroupName, networkInterfaceName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.InterfaceLoadBalancersClient", "List", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.ilblr.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.InterfaceLoadBalancersClient", "List", resp, "Failure sending request")
+ return
+ }
+
+ result.ilblr, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.InterfaceLoadBalancersClient", "List", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListPreparer prepares the List request.
+func (client InterfaceLoadBalancersClient) ListPreparer(ctx context.Context, resourceGroupName string, networkInterfaceName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "networkInterfaceName": autorest.Encode("path", networkInterfaceName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/networkInterfaces/{networkInterfaceName}/loadBalancers", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListSender sends the List request. The method will close the
+// http.Response Body if it receives an error.
+func (client InterfaceLoadBalancersClient) ListSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListResponder handles the response to the List request. The method always
+// closes the http.Response Body.
+func (client InterfaceLoadBalancersClient) ListResponder(resp *http.Response) (result InterfaceLoadBalancerListResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listNextResults retrieves the next set of results, if any.
+func (client InterfaceLoadBalancersClient) listNextResults(ctx context.Context, lastResults InterfaceLoadBalancerListResult) (result InterfaceLoadBalancerListResult, err error) {
+ req, err := lastResults.interfaceLoadBalancerListResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "network.InterfaceLoadBalancersClient", "listNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "network.InterfaceLoadBalancersClient", "listNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.InterfaceLoadBalancersClient", "listNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListComplete enumerates all values, automatically crossing page boundaries as required.
+func (client InterfaceLoadBalancersClient) ListComplete(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result InterfaceLoadBalancerListResultIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/InterfaceLoadBalancersClient.List")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.List(ctx, resourceGroupName, networkInterfaceName)
+ return
+}
diff --git a/services/network/mgmt/2019-11-01/network/interfacesgroup.go b/services/network/mgmt/2019-11-01/network/interfacesgroup.go
new file mode 100644
index 000000000000..c776406144c1
--- /dev/null
+++ b/services/network/mgmt/2019-11-01/network/interfacesgroup.go
@@ -0,0 +1,1267 @@
+package network
+
+// Copyright (c) Microsoft and contributors. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+ "context"
+ "github.com/Azure/go-autorest/autorest"
+ "github.com/Azure/go-autorest/autorest/azure"
+ "github.com/Azure/go-autorest/tracing"
+ "net/http"
+)
+
+// InterfacesClient is the network Client
+type InterfacesClient struct {
+ BaseClient
+}
+
+// NewInterfacesClient creates an instance of the InterfacesClient client.
+func NewInterfacesClient(subscriptionID string) InterfacesClient {
+ return NewInterfacesClientWithBaseURI(DefaultBaseURI, subscriptionID)
+}
+
+// NewInterfacesClientWithBaseURI creates an instance of the InterfacesClient client using a custom endpoint. Use this
+// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
+func NewInterfacesClientWithBaseURI(baseURI string, subscriptionID string) InterfacesClient {
+ return InterfacesClient{NewWithBaseURI(baseURI, subscriptionID)}
+}
+
+// CreateOrUpdate creates or updates a network interface.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// networkInterfaceName - the name of the network interface.
+// parameters - parameters supplied to the create or update network interface operation.
+func (client InterfacesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, networkInterfaceName string, parameters Interface) (result InterfacesCreateOrUpdateFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/InterfacesClient.CreateOrUpdate")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, networkInterfaceName, parameters)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.InterfacesClient", "CreateOrUpdate", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.CreateOrUpdateSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.InterfacesClient", "CreateOrUpdate", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// CreateOrUpdatePreparer prepares the CreateOrUpdate request.
+func (client InterfacesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, networkInterfaceName string, parameters Interface) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "networkInterfaceName": autorest.Encode("path", networkInterfaceName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ parameters.Etag = nil
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPut(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}", pathParameters),
+ autorest.WithJSON(parameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the
+// http.Response Body if it receives an error.
+func (client InterfacesClient) CreateOrUpdateSender(req *http.Request) (future InterfacesCreateOrUpdateFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always
+// closes the http.Response Body.
+func (client InterfacesClient) CreateOrUpdateResponder(resp *http.Response) (result Interface, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// Delete deletes the specified network interface.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// networkInterfaceName - the name of the network interface.
+func (client InterfacesClient) Delete(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result InterfacesDeleteFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/InterfacesClient.Delete")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.DeletePreparer(ctx, resourceGroupName, networkInterfaceName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.InterfacesClient", "Delete", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.DeleteSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.InterfacesClient", "Delete", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// DeletePreparer prepares the Delete request.
+func (client InterfacesClient) DeletePreparer(ctx context.Context, resourceGroupName string, networkInterfaceName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "networkInterfaceName": autorest.Encode("path", networkInterfaceName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/networkInterfaces/{networkInterfaceName}", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// DeleteSender sends the Delete request. The method will close the
+// http.Response Body if it receives an error.
+func (client InterfacesClient) DeleteSender(req *http.Request) (future InterfacesDeleteFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// DeleteResponder handles the response to the Delete request. The method always
+// closes the http.Response Body.
+func (client InterfacesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent),
+ autorest.ByClosing())
+ result.Response = resp
+ return
+}
+
+// Get gets information about the specified network interface.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// networkInterfaceName - the name of the network interface.
+// expand - expands referenced resources.
+func (client InterfacesClient) Get(ctx context.Context, resourceGroupName string, networkInterfaceName string, expand string) (result Interface, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/InterfacesClient.Get")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetPreparer(ctx, resourceGroupName, networkInterfaceName, expand)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.InterfacesClient", "Get", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.InterfacesClient", "Get", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.InterfacesClient", "Get", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetPreparer prepares the Get request.
+func (client InterfacesClient) GetPreparer(ctx context.Context, resourceGroupName string, networkInterfaceName string, expand string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "networkInterfaceName": autorest.Encode("path", networkInterfaceName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+ if len(expand) > 0 {
+ queryParameters["$expand"] = autorest.Encode("query", expand)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetSender sends the Get request. The method will close the
+// http.Response Body if it receives an error.
+func (client InterfacesClient) GetSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetResponder handles the response to the Get request. The method always
+// closes the http.Response Body.
+func (client InterfacesClient) GetResponder(resp *http.Response) (result Interface, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// GetEffectiveRouteTable gets all route tables applied to a network interface.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// networkInterfaceName - the name of the network interface.
+func (client InterfacesClient) GetEffectiveRouteTable(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result InterfacesGetEffectiveRouteTableFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/InterfacesClient.GetEffectiveRouteTable")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetEffectiveRouteTablePreparer(ctx, resourceGroupName, networkInterfaceName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.InterfacesClient", "GetEffectiveRouteTable", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.GetEffectiveRouteTableSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.InterfacesClient", "GetEffectiveRouteTable", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// GetEffectiveRouteTablePreparer prepares the GetEffectiveRouteTable request.
+func (client InterfacesClient) GetEffectiveRouteTablePreparer(ctx context.Context, resourceGroupName string, networkInterfaceName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "networkInterfaceName": autorest.Encode("path", networkInterfaceName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/networkInterfaces/{networkInterfaceName}/effectiveRouteTable", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetEffectiveRouteTableSender sends the GetEffectiveRouteTable request. The method will close the
+// http.Response Body if it receives an error.
+func (client InterfacesClient) GetEffectiveRouteTableSender(req *http.Request) (future InterfacesGetEffectiveRouteTableFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// GetEffectiveRouteTableResponder handles the response to the GetEffectiveRouteTable request. The method always
+// closes the http.Response Body.
+func (client InterfacesClient) GetEffectiveRouteTableResponder(resp *http.Response) (result EffectiveRouteListResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// GetVirtualMachineScaleSetIPConfiguration get the specified network interface ip configuration in a virtual machine
+// scale set.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// virtualMachineScaleSetName - the name of the virtual machine scale set.
+// virtualmachineIndex - the virtual machine index.
+// networkInterfaceName - the name of the network interface.
+// IPConfigurationName - the name of the ip configuration.
+// expand - expands referenced resources.
+func (client InterfacesClient) GetVirtualMachineScaleSetIPConfiguration(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, IPConfigurationName string, expand string) (result InterfaceIPConfiguration, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/InterfacesClient.GetVirtualMachineScaleSetIPConfiguration")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetVirtualMachineScaleSetIPConfigurationPreparer(ctx, resourceGroupName, virtualMachineScaleSetName, virtualmachineIndex, networkInterfaceName, IPConfigurationName, expand)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.InterfacesClient", "GetVirtualMachineScaleSetIPConfiguration", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetVirtualMachineScaleSetIPConfigurationSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.InterfacesClient", "GetVirtualMachineScaleSetIPConfiguration", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetVirtualMachineScaleSetIPConfigurationResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.InterfacesClient", "GetVirtualMachineScaleSetIPConfiguration", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetVirtualMachineScaleSetIPConfigurationPreparer prepares the GetVirtualMachineScaleSetIPConfiguration request.
+func (client InterfacesClient) GetVirtualMachineScaleSetIPConfigurationPreparer(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, IPConfigurationName string, expand string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "ipConfigurationName": autorest.Encode("path", IPConfigurationName),
+ "networkInterfaceName": autorest.Encode("path", networkInterfaceName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ "virtualmachineIndex": autorest.Encode("path", virtualmachineIndex),
+ "virtualMachineScaleSetName": autorest.Encode("path", virtualMachineScaleSetName),
+ }
+
+ const APIVersion = "2018-10-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+ if len(expand) > 0 {
+ queryParameters["$expand"] = autorest.Encode("query", expand)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines/{virtualmachineIndex}/networkInterfaces/{networkInterfaceName}/ipConfigurations/{ipConfigurationName}", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetVirtualMachineScaleSetIPConfigurationSender sends the GetVirtualMachineScaleSetIPConfiguration request. The method will close the
+// http.Response Body if it receives an error.
+func (client InterfacesClient) GetVirtualMachineScaleSetIPConfigurationSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetVirtualMachineScaleSetIPConfigurationResponder handles the response to the GetVirtualMachineScaleSetIPConfiguration request. The method always
+// closes the http.Response Body.
+func (client InterfacesClient) GetVirtualMachineScaleSetIPConfigurationResponder(resp *http.Response) (result InterfaceIPConfiguration, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// GetVirtualMachineScaleSetNetworkInterface get the specified network interface in a virtual machine scale set.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// virtualMachineScaleSetName - the name of the virtual machine scale set.
+// virtualmachineIndex - the virtual machine index.
+// networkInterfaceName - the name of the network interface.
+// expand - expands referenced resources.
+func (client InterfacesClient) GetVirtualMachineScaleSetNetworkInterface(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, expand string) (result Interface, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/InterfacesClient.GetVirtualMachineScaleSetNetworkInterface")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetVirtualMachineScaleSetNetworkInterfacePreparer(ctx, resourceGroupName, virtualMachineScaleSetName, virtualmachineIndex, networkInterfaceName, expand)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.InterfacesClient", "GetVirtualMachineScaleSetNetworkInterface", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetVirtualMachineScaleSetNetworkInterfaceSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.InterfacesClient", "GetVirtualMachineScaleSetNetworkInterface", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetVirtualMachineScaleSetNetworkInterfaceResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.InterfacesClient", "GetVirtualMachineScaleSetNetworkInterface", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetVirtualMachineScaleSetNetworkInterfacePreparer prepares the GetVirtualMachineScaleSetNetworkInterface request.
+func (client InterfacesClient) GetVirtualMachineScaleSetNetworkInterfacePreparer(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, expand string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "networkInterfaceName": autorest.Encode("path", networkInterfaceName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ "virtualmachineIndex": autorest.Encode("path", virtualmachineIndex),
+ "virtualMachineScaleSetName": autorest.Encode("path", virtualMachineScaleSetName),
+ }
+
+ const APIVersion = "2018-10-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+ if len(expand) > 0 {
+ queryParameters["$expand"] = autorest.Encode("query", expand)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines/{virtualmachineIndex}/networkInterfaces/{networkInterfaceName}", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetVirtualMachineScaleSetNetworkInterfaceSender sends the GetVirtualMachineScaleSetNetworkInterface request. The method will close the
+// http.Response Body if it receives an error.
+func (client InterfacesClient) GetVirtualMachineScaleSetNetworkInterfaceSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetVirtualMachineScaleSetNetworkInterfaceResponder handles the response to the GetVirtualMachineScaleSetNetworkInterface request. The method always
+// closes the http.Response Body.
+func (client InterfacesClient) GetVirtualMachineScaleSetNetworkInterfaceResponder(resp *http.Response) (result Interface, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// List gets all network interfaces in a resource group.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+func (client InterfacesClient) List(ctx context.Context, resourceGroupName string) (result InterfaceListResultPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/InterfacesClient.List")
+ defer func() {
+ sc := -1
+ if result.ilr.Response.Response != nil {
+ sc = result.ilr.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.listNextResults
+ req, err := client.ListPreparer(ctx, resourceGroupName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.InterfacesClient", "List", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.ilr.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.InterfacesClient", "List", resp, "Failure sending request")
+ return
+ }
+
+ result.ilr, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.InterfacesClient", "List", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListPreparer prepares the List request.
+func (client InterfacesClient) ListPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/networkInterfaces", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListSender sends the List request. The method will close the
+// http.Response Body if it receives an error.
+func (client InterfacesClient) ListSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListResponder handles the response to the List request. The method always
+// closes the http.Response Body.
+func (client InterfacesClient) ListResponder(resp *http.Response) (result InterfaceListResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listNextResults retrieves the next set of results, if any.
+func (client InterfacesClient) listNextResults(ctx context.Context, lastResults InterfaceListResult) (result InterfaceListResult, err error) {
+ req, err := lastResults.interfaceListResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "network.InterfacesClient", "listNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "network.InterfacesClient", "listNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListComplete enumerates all values, automatically crossing page boundaries as required.
+func (client InterfacesClient) ListComplete(ctx context.Context, resourceGroupName string) (result InterfaceListResultIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/InterfacesClient.List")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.List(ctx, resourceGroupName)
+ return
+}
+
+// ListAll gets all network interfaces in a subscription.
+func (client InterfacesClient) ListAll(ctx context.Context) (result InterfaceListResultPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/InterfacesClient.ListAll")
+ defer func() {
+ sc := -1
+ if result.ilr.Response.Response != nil {
+ sc = result.ilr.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.listAllNextResults
+ req, err := client.ListAllPreparer(ctx)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListAll", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListAllSender(req)
+ if err != nil {
+ result.ilr.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListAll", resp, "Failure sending request")
+ return
+ }
+
+ result.ilr, err = client.ListAllResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListAll", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListAllPreparer prepares the ListAll request.
+func (client InterfacesClient) ListAllPreparer(ctx context.Context) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/networkInterfaces", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListAllSender sends the ListAll request. The method will close the
+// http.Response Body if it receives an error.
+func (client InterfacesClient) ListAllSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListAllResponder handles the response to the ListAll request. The method always
+// closes the http.Response Body.
+func (client InterfacesClient) ListAllResponder(resp *http.Response) (result InterfaceListResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listAllNextResults retrieves the next set of results, if any.
+func (client InterfacesClient) listAllNextResults(ctx context.Context, lastResults InterfaceListResult) (result InterfaceListResult, err error) {
+ req, err := lastResults.interfaceListResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "network.InterfacesClient", "listAllNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListAllSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "network.InterfacesClient", "listAllNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListAllResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listAllNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListAllComplete enumerates all values, automatically crossing page boundaries as required.
+func (client InterfacesClient) ListAllComplete(ctx context.Context) (result InterfaceListResultIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/InterfacesClient.ListAll")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.ListAll(ctx)
+ return
+}
+
+// ListEffectiveNetworkSecurityGroups gets all network security groups applied to a network interface.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// networkInterfaceName - the name of the network interface.
+func (client InterfacesClient) ListEffectiveNetworkSecurityGroups(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result InterfacesListEffectiveNetworkSecurityGroupsFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/InterfacesClient.ListEffectiveNetworkSecurityGroups")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.ListEffectiveNetworkSecurityGroupsPreparer(ctx, resourceGroupName, networkInterfaceName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListEffectiveNetworkSecurityGroups", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.ListEffectiveNetworkSecurityGroupsSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListEffectiveNetworkSecurityGroups", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// ListEffectiveNetworkSecurityGroupsPreparer prepares the ListEffectiveNetworkSecurityGroups request.
+func (client InterfacesClient) ListEffectiveNetworkSecurityGroupsPreparer(ctx context.Context, resourceGroupName string, networkInterfaceName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "networkInterfaceName": autorest.Encode("path", networkInterfaceName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/networkInterfaces/{networkInterfaceName}/effectiveNetworkSecurityGroups", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListEffectiveNetworkSecurityGroupsSender sends the ListEffectiveNetworkSecurityGroups request. The method will close the
+// http.Response Body if it receives an error.
+func (client InterfacesClient) ListEffectiveNetworkSecurityGroupsSender(req *http.Request) (future InterfacesListEffectiveNetworkSecurityGroupsFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// ListEffectiveNetworkSecurityGroupsResponder handles the response to the ListEffectiveNetworkSecurityGroups request. The method always
+// closes the http.Response Body.
+func (client InterfacesClient) ListEffectiveNetworkSecurityGroupsResponder(resp *http.Response) (result EffectiveNetworkSecurityGroupListResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// ListVirtualMachineScaleSetIPConfigurations get the specified network interface ip configuration in a virtual machine
+// scale set.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// virtualMachineScaleSetName - the name of the virtual machine scale set.
+// virtualmachineIndex - the virtual machine index.
+// networkInterfaceName - the name of the network interface.
+// expand - expands referenced resources.
+func (client InterfacesClient) ListVirtualMachineScaleSetIPConfigurations(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, expand string) (result InterfaceIPConfigurationListResultPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/InterfacesClient.ListVirtualMachineScaleSetIPConfigurations")
+ defer func() {
+ sc := -1
+ if result.iiclr.Response.Response != nil {
+ sc = result.iiclr.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.listVirtualMachineScaleSetIPConfigurationsNextResults
+ req, err := client.ListVirtualMachineScaleSetIPConfigurationsPreparer(ctx, resourceGroupName, virtualMachineScaleSetName, virtualmachineIndex, networkInterfaceName, expand)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetIPConfigurations", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListVirtualMachineScaleSetIPConfigurationsSender(req)
+ if err != nil {
+ result.iiclr.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetIPConfigurations", resp, "Failure sending request")
+ return
+ }
+
+ result.iiclr, err = client.ListVirtualMachineScaleSetIPConfigurationsResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetIPConfigurations", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListVirtualMachineScaleSetIPConfigurationsPreparer prepares the ListVirtualMachineScaleSetIPConfigurations request.
+func (client InterfacesClient) ListVirtualMachineScaleSetIPConfigurationsPreparer(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, expand string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "networkInterfaceName": autorest.Encode("path", networkInterfaceName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ "virtualmachineIndex": autorest.Encode("path", virtualmachineIndex),
+ "virtualMachineScaleSetName": autorest.Encode("path", virtualMachineScaleSetName),
+ }
+
+ const APIVersion = "2018-10-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+ if len(expand) > 0 {
+ queryParameters["$expand"] = autorest.Encode("query", expand)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines/{virtualmachineIndex}/networkInterfaces/{networkInterfaceName}/ipConfigurations", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListVirtualMachineScaleSetIPConfigurationsSender sends the ListVirtualMachineScaleSetIPConfigurations request. The method will close the
+// http.Response Body if it receives an error.
+func (client InterfacesClient) ListVirtualMachineScaleSetIPConfigurationsSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListVirtualMachineScaleSetIPConfigurationsResponder handles the response to the ListVirtualMachineScaleSetIPConfigurations request. The method always
+// closes the http.Response Body.
+func (client InterfacesClient) ListVirtualMachineScaleSetIPConfigurationsResponder(resp *http.Response) (result InterfaceIPConfigurationListResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listVirtualMachineScaleSetIPConfigurationsNextResults retrieves the next set of results, if any.
+func (client InterfacesClient) listVirtualMachineScaleSetIPConfigurationsNextResults(ctx context.Context, lastResults InterfaceIPConfigurationListResult) (result InterfaceIPConfigurationListResult, err error) {
+ req, err := lastResults.interfaceIPConfigurationListResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetIPConfigurationsNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListVirtualMachineScaleSetIPConfigurationsSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetIPConfigurationsNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListVirtualMachineScaleSetIPConfigurationsResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetIPConfigurationsNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListVirtualMachineScaleSetIPConfigurationsComplete enumerates all values, automatically crossing page boundaries as required.
+func (client InterfacesClient) ListVirtualMachineScaleSetIPConfigurationsComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string, expand string) (result InterfaceIPConfigurationListResultIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/InterfacesClient.ListVirtualMachineScaleSetIPConfigurations")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.ListVirtualMachineScaleSetIPConfigurations(ctx, resourceGroupName, virtualMachineScaleSetName, virtualmachineIndex, networkInterfaceName, expand)
+ return
+}
+
+// ListVirtualMachineScaleSetNetworkInterfaces gets all network interfaces in a virtual machine scale set.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// virtualMachineScaleSetName - the name of the virtual machine scale set.
+func (client InterfacesClient) ListVirtualMachineScaleSetNetworkInterfaces(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result InterfaceListResultPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/InterfacesClient.ListVirtualMachineScaleSetNetworkInterfaces")
+ defer func() {
+ sc := -1
+ if result.ilr.Response.Response != nil {
+ sc = result.ilr.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.listVirtualMachineScaleSetNetworkInterfacesNextResults
+ req, err := client.ListVirtualMachineScaleSetNetworkInterfacesPreparer(ctx, resourceGroupName, virtualMachineScaleSetName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetNetworkInterfaces", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListVirtualMachineScaleSetNetworkInterfacesSender(req)
+ if err != nil {
+ result.ilr.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetNetworkInterfaces", resp, "Failure sending request")
+ return
+ }
+
+ result.ilr, err = client.ListVirtualMachineScaleSetNetworkInterfacesResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetNetworkInterfaces", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListVirtualMachineScaleSetNetworkInterfacesPreparer prepares the ListVirtualMachineScaleSetNetworkInterfaces request.
+func (client InterfacesClient) ListVirtualMachineScaleSetNetworkInterfacesPreparer(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ "virtualMachineScaleSetName": autorest.Encode("path", virtualMachineScaleSetName),
+ }
+
+ const APIVersion = "2018-10-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.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/networkInterfaces", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListVirtualMachineScaleSetNetworkInterfacesSender sends the ListVirtualMachineScaleSetNetworkInterfaces request. The method will close the
+// http.Response Body if it receives an error.
+func (client InterfacesClient) ListVirtualMachineScaleSetNetworkInterfacesSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListVirtualMachineScaleSetNetworkInterfacesResponder handles the response to the ListVirtualMachineScaleSetNetworkInterfaces request. The method always
+// closes the http.Response Body.
+func (client InterfacesClient) ListVirtualMachineScaleSetNetworkInterfacesResponder(resp *http.Response) (result InterfaceListResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listVirtualMachineScaleSetNetworkInterfacesNextResults retrieves the next set of results, if any.
+func (client InterfacesClient) listVirtualMachineScaleSetNetworkInterfacesNextResults(ctx context.Context, lastResults InterfaceListResult) (result InterfaceListResult, err error) {
+ req, err := lastResults.interfaceListResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetNetworkInterfacesNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListVirtualMachineScaleSetNetworkInterfacesSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetNetworkInterfacesNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListVirtualMachineScaleSetNetworkInterfacesResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetNetworkInterfacesNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListVirtualMachineScaleSetNetworkInterfacesComplete enumerates all values, automatically crossing page boundaries as required.
+func (client InterfacesClient) ListVirtualMachineScaleSetNetworkInterfacesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string) (result InterfaceListResultIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/InterfacesClient.ListVirtualMachineScaleSetNetworkInterfaces")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.ListVirtualMachineScaleSetNetworkInterfaces(ctx, resourceGroupName, virtualMachineScaleSetName)
+ return
+}
+
+// ListVirtualMachineScaleSetVMNetworkInterfaces gets information about all network interfaces in a virtual machine in
+// a virtual machine scale set.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// virtualMachineScaleSetName - the name of the virtual machine scale set.
+// virtualmachineIndex - the virtual machine index.
+func (client InterfacesClient) ListVirtualMachineScaleSetVMNetworkInterfaces(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string) (result InterfaceListResultPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/InterfacesClient.ListVirtualMachineScaleSetVMNetworkInterfaces")
+ defer func() {
+ sc := -1
+ if result.ilr.Response.Response != nil {
+ sc = result.ilr.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.listVirtualMachineScaleSetVMNetworkInterfacesNextResults
+ req, err := client.ListVirtualMachineScaleSetVMNetworkInterfacesPreparer(ctx, resourceGroupName, virtualMachineScaleSetName, virtualmachineIndex)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetVMNetworkInterfaces", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListVirtualMachineScaleSetVMNetworkInterfacesSender(req)
+ if err != nil {
+ result.ilr.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetVMNetworkInterfaces", resp, "Failure sending request")
+ return
+ }
+
+ result.ilr, err = client.ListVirtualMachineScaleSetVMNetworkInterfacesResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.InterfacesClient", "ListVirtualMachineScaleSetVMNetworkInterfaces", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListVirtualMachineScaleSetVMNetworkInterfacesPreparer prepares the ListVirtualMachineScaleSetVMNetworkInterfaces request.
+func (client InterfacesClient) ListVirtualMachineScaleSetVMNetworkInterfacesPreparer(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ "virtualmachineIndex": autorest.Encode("path", virtualmachineIndex),
+ "virtualMachineScaleSetName": autorest.Encode("path", virtualMachineScaleSetName),
+ }
+
+ const APIVersion = "2018-10-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.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines/{virtualmachineIndex}/networkInterfaces", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListVirtualMachineScaleSetVMNetworkInterfacesSender sends the ListVirtualMachineScaleSetVMNetworkInterfaces request. The method will close the
+// http.Response Body if it receives an error.
+func (client InterfacesClient) ListVirtualMachineScaleSetVMNetworkInterfacesSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListVirtualMachineScaleSetVMNetworkInterfacesResponder handles the response to the ListVirtualMachineScaleSetVMNetworkInterfaces request. The method always
+// closes the http.Response Body.
+func (client InterfacesClient) ListVirtualMachineScaleSetVMNetworkInterfacesResponder(resp *http.Response) (result InterfaceListResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listVirtualMachineScaleSetVMNetworkInterfacesNextResults retrieves the next set of results, if any.
+func (client InterfacesClient) listVirtualMachineScaleSetVMNetworkInterfacesNextResults(ctx context.Context, lastResults InterfaceListResult) (result InterfaceListResult, err error) {
+ req, err := lastResults.interfaceListResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetVMNetworkInterfacesNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListVirtualMachineScaleSetVMNetworkInterfacesSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetVMNetworkInterfacesNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListVirtualMachineScaleSetVMNetworkInterfacesResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.InterfacesClient", "listVirtualMachineScaleSetVMNetworkInterfacesNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListVirtualMachineScaleSetVMNetworkInterfacesComplete enumerates all values, automatically crossing page boundaries as required.
+func (client InterfacesClient) ListVirtualMachineScaleSetVMNetworkInterfacesComplete(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, virtualmachineIndex string) (result InterfaceListResultIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/InterfacesClient.ListVirtualMachineScaleSetVMNetworkInterfaces")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.ListVirtualMachineScaleSetVMNetworkInterfaces(ctx, resourceGroupName, virtualMachineScaleSetName, virtualmachineIndex)
+ return
+}
+
+// UpdateTags updates a network interface tags.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// networkInterfaceName - the name of the network interface.
+// parameters - parameters supplied to update network interface tags.
+func (client InterfacesClient) UpdateTags(ctx context.Context, resourceGroupName string, networkInterfaceName string, parameters TagsObject) (result Interface, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/InterfacesClient.UpdateTags")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.UpdateTagsPreparer(ctx, resourceGroupName, networkInterfaceName, parameters)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.InterfacesClient", "UpdateTags", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.UpdateTagsSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.InterfacesClient", "UpdateTags", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.UpdateTagsResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.InterfacesClient", "UpdateTags", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// UpdateTagsPreparer prepares the UpdateTags request.
+func (client InterfacesClient) UpdateTagsPreparer(ctx context.Context, resourceGroupName string, networkInterfaceName string, parameters TagsObject) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "networkInterfaceName": autorest.Encode("path", networkInterfaceName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/networkInterfaces/{networkInterfaceName}", pathParameters),
+ autorest.WithJSON(parameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// UpdateTagsSender sends the UpdateTags request. The method will close the
+// http.Response Body if it receives an error.
+func (client InterfacesClient) UpdateTagsSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// UpdateTagsResponder handles the response to the UpdateTags request. The method always
+// closes the http.Response Body.
+func (client InterfacesClient) UpdateTagsResponder(resp *http.Response) (result Interface, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
diff --git a/services/network/mgmt/2019-11-01/network/interfacetapconfigurations.go b/services/network/mgmt/2019-11-01/network/interfacetapconfigurations.go
new file mode 100644
index 000000000000..49c43eff4b10
--- /dev/null
+++ b/services/network/mgmt/2019-11-01/network/interfacetapconfigurations.go
@@ -0,0 +1,435 @@
+package network
+
+// Copyright (c) Microsoft and contributors. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+ "context"
+ "github.com/Azure/go-autorest/autorest"
+ "github.com/Azure/go-autorest/autorest/azure"
+ "github.com/Azure/go-autorest/autorest/validation"
+ "github.com/Azure/go-autorest/tracing"
+ "net/http"
+)
+
+// InterfaceTapConfigurationsClient is the network Client
+type InterfaceTapConfigurationsClient struct {
+ BaseClient
+}
+
+// NewInterfaceTapConfigurationsClient creates an instance of the InterfaceTapConfigurationsClient client.
+func NewInterfaceTapConfigurationsClient(subscriptionID string) InterfaceTapConfigurationsClient {
+ return NewInterfaceTapConfigurationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
+}
+
+// NewInterfaceTapConfigurationsClientWithBaseURI creates an instance of the InterfaceTapConfigurationsClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
+func NewInterfaceTapConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) InterfaceTapConfigurationsClient {
+ return InterfaceTapConfigurationsClient{NewWithBaseURI(baseURI, subscriptionID)}
+}
+
+// CreateOrUpdate creates or updates a Tap configuration in the specified NetworkInterface.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// networkInterfaceName - the name of the network interface.
+// tapConfigurationName - the name of the tap configuration.
+// tapConfigurationParameters - parameters supplied to the create or update tap configuration operation.
+func (client InterfaceTapConfigurationsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, networkInterfaceName string, tapConfigurationName string, tapConfigurationParameters InterfaceTapConfiguration) (result InterfaceTapConfigurationsCreateOrUpdateFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/InterfaceTapConfigurationsClient.CreateOrUpdate")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: tapConfigurationParameters,
+ Constraints: []validation.Constraint{{Target: "tapConfigurationParameters.InterfaceTapConfigurationPropertiesFormat", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "tapConfigurationParameters.InterfaceTapConfigurationPropertiesFormat.VirtualNetworkTap", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "tapConfigurationParameters.InterfaceTapConfigurationPropertiesFormat.VirtualNetworkTap.VirtualNetworkTapPropertiesFormat", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "tapConfigurationParameters.InterfaceTapConfigurationPropertiesFormat.VirtualNetworkTap.VirtualNetworkTapPropertiesFormat.DestinationNetworkInterfaceIPConfiguration", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "tapConfigurationParameters.InterfaceTapConfigurationPropertiesFormat.VirtualNetworkTap.VirtualNetworkTapPropertiesFormat.DestinationNetworkInterfaceIPConfiguration.InterfaceIPConfigurationPropertiesFormat", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "tapConfigurationParameters.InterfaceTapConfigurationPropertiesFormat.VirtualNetworkTap.VirtualNetworkTapPropertiesFormat.DestinationNetworkInterfaceIPConfiguration.InterfaceIPConfigurationPropertiesFormat.PublicIPAddress", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "tapConfigurationParameters.InterfaceTapConfigurationPropertiesFormat.VirtualNetworkTap.VirtualNetworkTapPropertiesFormat.DestinationNetworkInterfaceIPConfiguration.InterfaceIPConfigurationPropertiesFormat.PublicIPAddress.PublicIPAddressPropertiesFormat", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "tapConfigurationParameters.InterfaceTapConfigurationPropertiesFormat.VirtualNetworkTap.VirtualNetworkTapPropertiesFormat.DestinationNetworkInterfaceIPConfiguration.InterfaceIPConfigurationPropertiesFormat.PublicIPAddress.PublicIPAddressPropertiesFormat.IPConfiguration", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "tapConfigurationParameters.InterfaceTapConfigurationPropertiesFormat.VirtualNetworkTap.VirtualNetworkTapPropertiesFormat.DestinationNetworkInterfaceIPConfiguration.InterfaceIPConfigurationPropertiesFormat.PublicIPAddress.PublicIPAddressPropertiesFormat.IPConfiguration.IPConfigurationPropertiesFormat", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "tapConfigurationParameters.InterfaceTapConfigurationPropertiesFormat.VirtualNetworkTap.VirtualNetworkTapPropertiesFormat.DestinationNetworkInterfaceIPConfiguration.InterfaceIPConfigurationPropertiesFormat.PublicIPAddress.PublicIPAddressPropertiesFormat.IPConfiguration.IPConfigurationPropertiesFormat.PublicIPAddress", Name: validation.Null, Rule: false, Chain: nil}}},
+ }},
+ }},
+ }},
+ }},
+ }},
+ {Target: "tapConfigurationParameters.InterfaceTapConfigurationPropertiesFormat.VirtualNetworkTap.VirtualNetworkTapPropertiesFormat.DestinationLoadBalancerFrontEndIPConfiguration", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "tapConfigurationParameters.InterfaceTapConfigurationPropertiesFormat.VirtualNetworkTap.VirtualNetworkTapPropertiesFormat.DestinationLoadBalancerFrontEndIPConfiguration.FrontendIPConfigurationPropertiesFormat", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "tapConfigurationParameters.InterfaceTapConfigurationPropertiesFormat.VirtualNetworkTap.VirtualNetworkTapPropertiesFormat.DestinationLoadBalancerFrontEndIPConfiguration.FrontendIPConfigurationPropertiesFormat.PublicIPAddress", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "tapConfigurationParameters.InterfaceTapConfigurationPropertiesFormat.VirtualNetworkTap.VirtualNetworkTapPropertiesFormat.DestinationLoadBalancerFrontEndIPConfiguration.FrontendIPConfigurationPropertiesFormat.PublicIPAddress.PublicIPAddressPropertiesFormat", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "tapConfigurationParameters.InterfaceTapConfigurationPropertiesFormat.VirtualNetworkTap.VirtualNetworkTapPropertiesFormat.DestinationLoadBalancerFrontEndIPConfiguration.FrontendIPConfigurationPropertiesFormat.PublicIPAddress.PublicIPAddressPropertiesFormat.IPConfiguration", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "tapConfigurationParameters.InterfaceTapConfigurationPropertiesFormat.VirtualNetworkTap.VirtualNetworkTapPropertiesFormat.DestinationLoadBalancerFrontEndIPConfiguration.FrontendIPConfigurationPropertiesFormat.PublicIPAddress.PublicIPAddressPropertiesFormat.IPConfiguration.IPConfigurationPropertiesFormat", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "tapConfigurationParameters.InterfaceTapConfigurationPropertiesFormat.VirtualNetworkTap.VirtualNetworkTapPropertiesFormat.DestinationLoadBalancerFrontEndIPConfiguration.FrontendIPConfigurationPropertiesFormat.PublicIPAddress.PublicIPAddressPropertiesFormat.IPConfiguration.IPConfigurationPropertiesFormat.PublicIPAddress", Name: validation.Null, Rule: false, Chain: nil}}},
+ }},
+ }},
+ }},
+ }},
+ }},
+ }},
+ }},
+ }}}}}); err != nil {
+ return result, validation.NewError("network.InterfaceTapConfigurationsClient", "CreateOrUpdate", err.Error())
+ }
+
+ req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, networkInterfaceName, tapConfigurationName, tapConfigurationParameters)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.InterfaceTapConfigurationsClient", "CreateOrUpdate", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.CreateOrUpdateSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.InterfaceTapConfigurationsClient", "CreateOrUpdate", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// CreateOrUpdatePreparer prepares the CreateOrUpdate request.
+func (client InterfaceTapConfigurationsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, networkInterfaceName string, tapConfigurationName string, tapConfigurationParameters InterfaceTapConfiguration) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "networkInterfaceName": autorest.Encode("path", networkInterfaceName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ "tapConfigurationName": autorest.Encode("path", tapConfigurationName),
+ }
+
+ const APIVersion = "2019-11-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ tapConfigurationParameters.Etag = nil
+ tapConfigurationParameters.Type = nil
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPut(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}/tapConfigurations/{tapConfigurationName}", pathParameters),
+ autorest.WithJSON(tapConfigurationParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the
+// http.Response Body if it receives an error.
+func (client InterfaceTapConfigurationsClient) CreateOrUpdateSender(req *http.Request) (future InterfaceTapConfigurationsCreateOrUpdateFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always
+// closes the http.Response Body.
+func (client InterfaceTapConfigurationsClient) CreateOrUpdateResponder(resp *http.Response) (result InterfaceTapConfiguration, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// Delete deletes the specified tap configuration from the NetworkInterface.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// networkInterfaceName - the name of the network interface.
+// tapConfigurationName - the name of the tap configuration.
+func (client InterfaceTapConfigurationsClient) Delete(ctx context.Context, resourceGroupName string, networkInterfaceName string, tapConfigurationName string) (result InterfaceTapConfigurationsDeleteFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/InterfaceTapConfigurationsClient.Delete")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.DeletePreparer(ctx, resourceGroupName, networkInterfaceName, tapConfigurationName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.InterfaceTapConfigurationsClient", "Delete", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.DeleteSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.InterfaceTapConfigurationsClient", "Delete", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// DeletePreparer prepares the Delete request.
+func (client InterfaceTapConfigurationsClient) DeletePreparer(ctx context.Context, resourceGroupName string, networkInterfaceName string, tapConfigurationName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "networkInterfaceName": autorest.Encode("path", networkInterfaceName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ "tapConfigurationName": autorest.Encode("path", tapConfigurationName),
+ }
+
+ const APIVersion = "2019-11-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.Network/networkInterfaces/{networkInterfaceName}/tapConfigurations/{tapConfigurationName}", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// DeleteSender sends the Delete request. The method will close the
+// http.Response Body if it receives an error.
+func (client InterfaceTapConfigurationsClient) DeleteSender(req *http.Request) (future InterfaceTapConfigurationsDeleteFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// DeleteResponder handles the response to the Delete request. The method always
+// closes the http.Response Body.
+func (client InterfaceTapConfigurationsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent),
+ autorest.ByClosing())
+ result.Response = resp
+ return
+}
+
+// Get get the specified tap configuration on a network interface.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// networkInterfaceName - the name of the network interface.
+// tapConfigurationName - the name of the tap configuration.
+func (client InterfaceTapConfigurationsClient) Get(ctx context.Context, resourceGroupName string, networkInterfaceName string, tapConfigurationName string) (result InterfaceTapConfiguration, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/InterfaceTapConfigurationsClient.Get")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetPreparer(ctx, resourceGroupName, networkInterfaceName, tapConfigurationName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.InterfaceTapConfigurationsClient", "Get", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.InterfaceTapConfigurationsClient", "Get", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.InterfaceTapConfigurationsClient", "Get", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetPreparer prepares the Get request.
+func (client InterfaceTapConfigurationsClient) GetPreparer(ctx context.Context, resourceGroupName string, networkInterfaceName string, tapConfigurationName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "networkInterfaceName": autorest.Encode("path", networkInterfaceName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ "tapConfigurationName": autorest.Encode("path", tapConfigurationName),
+ }
+
+ const APIVersion = "2019-11-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.Network/networkInterfaces/{networkInterfaceName}/tapConfigurations/{tapConfigurationName}", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetSender sends the Get request. The method will close the
+// http.Response Body if it receives an error.
+func (client InterfaceTapConfigurationsClient) GetSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetResponder handles the response to the Get request. The method always
+// closes the http.Response Body.
+func (client InterfaceTapConfigurationsClient) GetResponder(resp *http.Response) (result InterfaceTapConfiguration, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// List get all Tap configurations in a network interface.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// networkInterfaceName - the name of the network interface.
+func (client InterfaceTapConfigurationsClient) List(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result InterfaceTapConfigurationListResultPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/InterfaceTapConfigurationsClient.List")
+ defer func() {
+ sc := -1
+ if result.itclr.Response.Response != nil {
+ sc = result.itclr.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.listNextResults
+ req, err := client.ListPreparer(ctx, resourceGroupName, networkInterfaceName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.InterfaceTapConfigurationsClient", "List", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.itclr.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.InterfaceTapConfigurationsClient", "List", resp, "Failure sending request")
+ return
+ }
+
+ result.itclr, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.InterfaceTapConfigurationsClient", "List", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListPreparer prepares the List request.
+func (client InterfaceTapConfigurationsClient) ListPreparer(ctx context.Context, resourceGroupName string, networkInterfaceName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "networkInterfaceName": autorest.Encode("path", networkInterfaceName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/networkInterfaces/{networkInterfaceName}/tapConfigurations", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListSender sends the List request. The method will close the
+// http.Response Body if it receives an error.
+func (client InterfaceTapConfigurationsClient) ListSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListResponder handles the response to the List request. The method always
+// closes the http.Response Body.
+func (client InterfaceTapConfigurationsClient) ListResponder(resp *http.Response) (result InterfaceTapConfigurationListResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listNextResults retrieves the next set of results, if any.
+func (client InterfaceTapConfigurationsClient) listNextResults(ctx context.Context, lastResults InterfaceTapConfigurationListResult) (result InterfaceTapConfigurationListResult, err error) {
+ req, err := lastResults.interfaceTapConfigurationListResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "network.InterfaceTapConfigurationsClient", "listNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "network.InterfaceTapConfigurationsClient", "listNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.InterfaceTapConfigurationsClient", "listNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListComplete enumerates all values, automatically crossing page boundaries as required.
+func (client InterfaceTapConfigurationsClient) ListComplete(ctx context.Context, resourceGroupName string, networkInterfaceName string) (result InterfaceTapConfigurationListResultIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/InterfaceTapConfigurationsClient.List")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.List(ctx, resourceGroupName, networkInterfaceName)
+ return
+}
diff --git a/services/network/mgmt/2019-11-01/network/ipgroups.go b/services/network/mgmt/2019-11-01/network/ipgroups.go
new file mode 100644
index 000000000000..898d7bc6cf7f
--- /dev/null
+++ b/services/network/mgmt/2019-11-01/network/ipgroups.go
@@ -0,0 +1,584 @@
+package network
+
+// Copyright (c) Microsoft and contributors. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+ "context"
+ "github.com/Azure/go-autorest/autorest"
+ "github.com/Azure/go-autorest/autorest/azure"
+ "github.com/Azure/go-autorest/tracing"
+ "net/http"
+)
+
+// IPGroupsClient is the network Client
+type IPGroupsClient struct {
+ BaseClient
+}
+
+// NewIPGroupsClient creates an instance of the IPGroupsClient client.
+func NewIPGroupsClient(subscriptionID string) IPGroupsClient {
+ return NewIPGroupsClientWithBaseURI(DefaultBaseURI, subscriptionID)
+}
+
+// NewIPGroupsClientWithBaseURI creates an instance of the IPGroupsClient client using a custom endpoint. Use this
+// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
+func NewIPGroupsClientWithBaseURI(baseURI string, subscriptionID string) IPGroupsClient {
+ return IPGroupsClient{NewWithBaseURI(baseURI, subscriptionID)}
+}
+
+// CreateOrUpdate creates or updates an ipGroups in a specified resource group.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// IPGroupsName - the name of the ipGroups.
+// parameters - parameters supplied to the create or update IpGroups operation.
+func (client IPGroupsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, IPGroupsName string, parameters IPGroup) (result IPGroupsCreateOrUpdateFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/IPGroupsClient.CreateOrUpdate")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, IPGroupsName, parameters)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.IPGroupsClient", "CreateOrUpdate", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.CreateOrUpdateSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.IPGroupsClient", "CreateOrUpdate", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// CreateOrUpdatePreparer prepares the CreateOrUpdate request.
+func (client IPGroupsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, IPGroupsName string, parameters IPGroup) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "ipGroupsName": autorest.Encode("path", IPGroupsName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ parameters.Etag = nil
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPut(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ipGroups/{ipGroupsName}", pathParameters),
+ autorest.WithJSON(parameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the
+// http.Response Body if it receives an error.
+func (client IPGroupsClient) CreateOrUpdateSender(req *http.Request) (future IPGroupsCreateOrUpdateFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always
+// closes the http.Response Body.
+func (client IPGroupsClient) CreateOrUpdateResponder(resp *http.Response) (result IPGroup, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// Delete deletes the specified ipGroups.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// IPGroupsName - the name of the ipGroups.
+func (client IPGroupsClient) Delete(ctx context.Context, resourceGroupName string, IPGroupsName string) (result IPGroupsDeleteFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/IPGroupsClient.Delete")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.DeletePreparer(ctx, resourceGroupName, IPGroupsName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.IPGroupsClient", "Delete", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.DeleteSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.IPGroupsClient", "Delete", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// DeletePreparer prepares the Delete request.
+func (client IPGroupsClient) DeletePreparer(ctx context.Context, resourceGroupName string, IPGroupsName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "ipGroupsName": autorest.Encode("path", IPGroupsName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/ipGroups/{ipGroupsName}", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// DeleteSender sends the Delete request. The method will close the
+// http.Response Body if it receives an error.
+func (client IPGroupsClient) DeleteSender(req *http.Request) (future IPGroupsDeleteFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// DeleteResponder handles the response to the Delete request. The method always
+// closes the http.Response Body.
+func (client IPGroupsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent),
+ autorest.ByClosing())
+ result.Response = resp
+ return
+}
+
+// Get gets the specified ipGroups.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// IPGroupsName - the name of the ipGroups.
+// expand - expands resourceIds (of Firewalls/Network Security Groups etc.) back referenced by the IpGroups
+// resource.
+func (client IPGroupsClient) Get(ctx context.Context, resourceGroupName string, IPGroupsName string, expand string) (result IPGroup, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/IPGroupsClient.Get")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetPreparer(ctx, resourceGroupName, IPGroupsName, expand)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.IPGroupsClient", "Get", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.IPGroupsClient", "Get", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.IPGroupsClient", "Get", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetPreparer prepares the Get request.
+func (client IPGroupsClient) GetPreparer(ctx context.Context, resourceGroupName string, IPGroupsName string, expand string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "ipGroupsName": autorest.Encode("path", IPGroupsName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+ if len(expand) > 0 {
+ queryParameters["$expand"] = autorest.Encode("query", expand)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ipGroups/{ipGroupsName}", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetSender sends the Get request. The method will close the
+// http.Response Body if it receives an error.
+func (client IPGroupsClient) GetSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetResponder handles the response to the Get request. The method always
+// closes the http.Response Body.
+func (client IPGroupsClient) GetResponder(resp *http.Response) (result IPGroup, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// List gets all IpGroups in a subscription.
+func (client IPGroupsClient) List(ctx context.Context) (result IPGroupListResultPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/IPGroupsClient.List")
+ defer func() {
+ sc := -1
+ if result.iglr.Response.Response != nil {
+ sc = result.iglr.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.listNextResults
+ req, err := client.ListPreparer(ctx)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.IPGroupsClient", "List", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.iglr.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.IPGroupsClient", "List", resp, "Failure sending request")
+ return
+ }
+
+ result.iglr, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.IPGroupsClient", "List", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListPreparer prepares the List request.
+func (client IPGroupsClient) ListPreparer(ctx context.Context) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/ipGroups", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListSender sends the List request. The method will close the
+// http.Response Body if it receives an error.
+func (client IPGroupsClient) ListSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListResponder handles the response to the List request. The method always
+// closes the http.Response Body.
+func (client IPGroupsClient) ListResponder(resp *http.Response) (result IPGroupListResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listNextResults retrieves the next set of results, if any.
+func (client IPGroupsClient) listNextResults(ctx context.Context, lastResults IPGroupListResult) (result IPGroupListResult, err error) {
+ req, err := lastResults.iPGroupListResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "network.IPGroupsClient", "listNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "network.IPGroupsClient", "listNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.IPGroupsClient", "listNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListComplete enumerates all values, automatically crossing page boundaries as required.
+func (client IPGroupsClient) ListComplete(ctx context.Context) (result IPGroupListResultIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/IPGroupsClient.List")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.List(ctx)
+ return
+}
+
+// ListByResourceGroup gets all IpGroups in a resource group.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+func (client IPGroupsClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result IPGroupListResultPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/IPGroupsClient.ListByResourceGroup")
+ defer func() {
+ sc := -1
+ if result.iglr.Response.Response != nil {
+ sc = result.iglr.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.listByResourceGroupNextResults
+ req, err := client.ListByResourceGroupPreparer(ctx, resourceGroupName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.IPGroupsClient", "ListByResourceGroup", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListByResourceGroupSender(req)
+ if err != nil {
+ result.iglr.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.IPGroupsClient", "ListByResourceGroup", resp, "Failure sending request")
+ return
+ }
+
+ result.iglr, err = client.ListByResourceGroupResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.IPGroupsClient", "ListByResourceGroup", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListByResourceGroupPreparer prepares the ListByResourceGroup request.
+func (client IPGroupsClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/ipGroups", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the
+// http.Response Body if it receives an error.
+func (client IPGroupsClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always
+// closes the http.Response Body.
+func (client IPGroupsClient) ListByResourceGroupResponder(resp *http.Response) (result IPGroupListResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listByResourceGroupNextResults retrieves the next set of results, if any.
+func (client IPGroupsClient) listByResourceGroupNextResults(ctx context.Context, lastResults IPGroupListResult) (result IPGroupListResult, err error) {
+ req, err := lastResults.iPGroupListResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "network.IPGroupsClient", "listByResourceGroupNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListByResourceGroupSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "network.IPGroupsClient", "listByResourceGroupNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListByResourceGroupResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.IPGroupsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required.
+func (client IPGroupsClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result IPGroupListResultIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/IPGroupsClient.ListByResourceGroup")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.ListByResourceGroup(ctx, resourceGroupName)
+ return
+}
+
+// UpdateGroups updates tags of an IpGroups resource.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// IPGroupsName - the name of the ipGroups.
+// parameters - parameters supplied to the update ipGroups operation.
+func (client IPGroupsClient) UpdateGroups(ctx context.Context, resourceGroupName string, IPGroupsName string, parameters TagsObject) (result IPGroup, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/IPGroupsClient.UpdateGroups")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.UpdateGroupsPreparer(ctx, resourceGroupName, IPGroupsName, parameters)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.IPGroupsClient", "UpdateGroups", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.UpdateGroupsSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.IPGroupsClient", "UpdateGroups", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.UpdateGroupsResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.IPGroupsClient", "UpdateGroups", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// UpdateGroupsPreparer prepares the UpdateGroups request.
+func (client IPGroupsClient) UpdateGroupsPreparer(ctx context.Context, resourceGroupName string, IPGroupsName string, parameters TagsObject) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "ipGroupsName": autorest.Encode("path", IPGroupsName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/ipGroups/{ipGroupsName}", pathParameters),
+ autorest.WithJSON(parameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// UpdateGroupsSender sends the UpdateGroups request. The method will close the
+// http.Response Body if it receives an error.
+func (client IPGroupsClient) UpdateGroupsSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// UpdateGroupsResponder handles the response to the UpdateGroups request. The method always
+// closes the http.Response Body.
+func (client IPGroupsClient) UpdateGroupsResponder(resp *http.Response) (result IPGroup, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
diff --git a/services/network/mgmt/2019-11-01/network/loadbalancerbackendaddresspools.go b/services/network/mgmt/2019-11-01/network/loadbalancerbackendaddresspools.go
new file mode 100644
index 000000000000..3b25ab4da8ca
--- /dev/null
+++ b/services/network/mgmt/2019-11-01/network/loadbalancerbackendaddresspools.go
@@ -0,0 +1,237 @@
+package network
+
+// Copyright (c) Microsoft and contributors. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+ "context"
+ "github.com/Azure/go-autorest/autorest"
+ "github.com/Azure/go-autorest/autorest/azure"
+ "github.com/Azure/go-autorest/tracing"
+ "net/http"
+)
+
+// LoadBalancerBackendAddressPoolsClient is the network Client
+type LoadBalancerBackendAddressPoolsClient struct {
+ BaseClient
+}
+
+// NewLoadBalancerBackendAddressPoolsClient creates an instance of the LoadBalancerBackendAddressPoolsClient client.
+func NewLoadBalancerBackendAddressPoolsClient(subscriptionID string) LoadBalancerBackendAddressPoolsClient {
+ return NewLoadBalancerBackendAddressPoolsClientWithBaseURI(DefaultBaseURI, subscriptionID)
+}
+
+// NewLoadBalancerBackendAddressPoolsClientWithBaseURI creates an instance of the LoadBalancerBackendAddressPoolsClient
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
+func NewLoadBalancerBackendAddressPoolsClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerBackendAddressPoolsClient {
+ return LoadBalancerBackendAddressPoolsClient{NewWithBaseURI(baseURI, subscriptionID)}
+}
+
+// Get gets load balancer backend address pool.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// loadBalancerName - the name of the load balancer.
+// backendAddressPoolName - the name of the backend address pool.
+func (client LoadBalancerBackendAddressPoolsClient) Get(ctx context.Context, resourceGroupName string, loadBalancerName string, backendAddressPoolName string) (result BackendAddressPool, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/LoadBalancerBackendAddressPoolsClient.Get")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetPreparer(ctx, resourceGroupName, loadBalancerName, backendAddressPoolName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.LoadBalancerBackendAddressPoolsClient", "Get", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.LoadBalancerBackendAddressPoolsClient", "Get", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.LoadBalancerBackendAddressPoolsClient", "Get", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetPreparer prepares the Get request.
+func (client LoadBalancerBackendAddressPoolsClient) GetPreparer(ctx context.Context, resourceGroupName string, loadBalancerName string, backendAddressPoolName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "backendAddressPoolName": autorest.Encode("path", backendAddressPoolName),
+ "loadBalancerName": autorest.Encode("path", loadBalancerName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/loadBalancers/{loadBalancerName}/backendAddressPools/{backendAddressPoolName}", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetSender sends the Get request. The method will close the
+// http.Response Body if it receives an error.
+func (client LoadBalancerBackendAddressPoolsClient) GetSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetResponder handles the response to the Get request. The method always
+// closes the http.Response Body.
+func (client LoadBalancerBackendAddressPoolsClient) GetResponder(resp *http.Response) (result BackendAddressPool, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// List gets all the load balancer backed address pools.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// loadBalancerName - the name of the load balancer.
+func (client LoadBalancerBackendAddressPoolsClient) List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result LoadBalancerBackendAddressPoolListResultPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/LoadBalancerBackendAddressPoolsClient.List")
+ defer func() {
+ sc := -1
+ if result.lbbaplr.Response.Response != nil {
+ sc = result.lbbaplr.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.listNextResults
+ req, err := client.ListPreparer(ctx, resourceGroupName, loadBalancerName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.LoadBalancerBackendAddressPoolsClient", "List", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.lbbaplr.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.LoadBalancerBackendAddressPoolsClient", "List", resp, "Failure sending request")
+ return
+ }
+
+ result.lbbaplr, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.LoadBalancerBackendAddressPoolsClient", "List", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListPreparer prepares the List request.
+func (client LoadBalancerBackendAddressPoolsClient) ListPreparer(ctx context.Context, resourceGroupName string, loadBalancerName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "loadBalancerName": autorest.Encode("path", loadBalancerName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/loadBalancers/{loadBalancerName}/backendAddressPools", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListSender sends the List request. The method will close the
+// http.Response Body if it receives an error.
+func (client LoadBalancerBackendAddressPoolsClient) ListSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListResponder handles the response to the List request. The method always
+// closes the http.Response Body.
+func (client LoadBalancerBackendAddressPoolsClient) ListResponder(resp *http.Response) (result LoadBalancerBackendAddressPoolListResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listNextResults retrieves the next set of results, if any.
+func (client LoadBalancerBackendAddressPoolsClient) listNextResults(ctx context.Context, lastResults LoadBalancerBackendAddressPoolListResult) (result LoadBalancerBackendAddressPoolListResult, err error) {
+ req, err := lastResults.loadBalancerBackendAddressPoolListResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "network.LoadBalancerBackendAddressPoolsClient", "listNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "network.LoadBalancerBackendAddressPoolsClient", "listNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.LoadBalancerBackendAddressPoolsClient", "listNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListComplete enumerates all values, automatically crossing page boundaries as required.
+func (client LoadBalancerBackendAddressPoolsClient) ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result LoadBalancerBackendAddressPoolListResultIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/LoadBalancerBackendAddressPoolsClient.List")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.List(ctx, resourceGroupName, loadBalancerName)
+ return
+}
diff --git a/services/network/mgmt/2019-11-01/network/loadbalancerfrontendipconfigurations.go b/services/network/mgmt/2019-11-01/network/loadbalancerfrontendipconfigurations.go
new file mode 100644
index 000000000000..691ed2caeb2c
--- /dev/null
+++ b/services/network/mgmt/2019-11-01/network/loadbalancerfrontendipconfigurations.go
@@ -0,0 +1,238 @@
+package network
+
+// Copyright (c) Microsoft and contributors. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+ "context"
+ "github.com/Azure/go-autorest/autorest"
+ "github.com/Azure/go-autorest/autorest/azure"
+ "github.com/Azure/go-autorest/tracing"
+ "net/http"
+)
+
+// LoadBalancerFrontendIPConfigurationsClient is the network Client
+type LoadBalancerFrontendIPConfigurationsClient struct {
+ BaseClient
+}
+
+// NewLoadBalancerFrontendIPConfigurationsClient creates an instance of the LoadBalancerFrontendIPConfigurationsClient
+// client.
+func NewLoadBalancerFrontendIPConfigurationsClient(subscriptionID string) LoadBalancerFrontendIPConfigurationsClient {
+ return NewLoadBalancerFrontendIPConfigurationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
+}
+
+// NewLoadBalancerFrontendIPConfigurationsClientWithBaseURI creates an instance of the
+// LoadBalancerFrontendIPConfigurationsClient client using a custom endpoint. Use this when interacting with an Azure
+// cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
+func NewLoadBalancerFrontendIPConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerFrontendIPConfigurationsClient {
+ return LoadBalancerFrontendIPConfigurationsClient{NewWithBaseURI(baseURI, subscriptionID)}
+}
+
+// Get gets load balancer frontend IP configuration.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// loadBalancerName - the name of the load balancer.
+// frontendIPConfigurationName - the name of the frontend IP configuration.
+func (client LoadBalancerFrontendIPConfigurationsClient) Get(ctx context.Context, resourceGroupName string, loadBalancerName string, frontendIPConfigurationName string) (result FrontendIPConfiguration, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/LoadBalancerFrontendIPConfigurationsClient.Get")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetPreparer(ctx, resourceGroupName, loadBalancerName, frontendIPConfigurationName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.LoadBalancerFrontendIPConfigurationsClient", "Get", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.LoadBalancerFrontendIPConfigurationsClient", "Get", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.LoadBalancerFrontendIPConfigurationsClient", "Get", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetPreparer prepares the Get request.
+func (client LoadBalancerFrontendIPConfigurationsClient) GetPreparer(ctx context.Context, resourceGroupName string, loadBalancerName string, frontendIPConfigurationName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "frontendIPConfigurationName": autorest.Encode("path", frontendIPConfigurationName),
+ "loadBalancerName": autorest.Encode("path", loadBalancerName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/loadBalancers/{loadBalancerName}/frontendIPConfigurations/{frontendIPConfigurationName}", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetSender sends the Get request. The method will close the
+// http.Response Body if it receives an error.
+func (client LoadBalancerFrontendIPConfigurationsClient) GetSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetResponder handles the response to the Get request. The method always
+// closes the http.Response Body.
+func (client LoadBalancerFrontendIPConfigurationsClient) GetResponder(resp *http.Response) (result FrontendIPConfiguration, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// List gets all the load balancer frontend IP configurations.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// loadBalancerName - the name of the load balancer.
+func (client LoadBalancerFrontendIPConfigurationsClient) List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result LoadBalancerFrontendIPConfigurationListResultPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/LoadBalancerFrontendIPConfigurationsClient.List")
+ defer func() {
+ sc := -1
+ if result.lbficlr.Response.Response != nil {
+ sc = result.lbficlr.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.listNextResults
+ req, err := client.ListPreparer(ctx, resourceGroupName, loadBalancerName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.LoadBalancerFrontendIPConfigurationsClient", "List", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.lbficlr.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.LoadBalancerFrontendIPConfigurationsClient", "List", resp, "Failure sending request")
+ return
+ }
+
+ result.lbficlr, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.LoadBalancerFrontendIPConfigurationsClient", "List", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListPreparer prepares the List request.
+func (client LoadBalancerFrontendIPConfigurationsClient) ListPreparer(ctx context.Context, resourceGroupName string, loadBalancerName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "loadBalancerName": autorest.Encode("path", loadBalancerName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/loadBalancers/{loadBalancerName}/frontendIPConfigurations", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListSender sends the List request. The method will close the
+// http.Response Body if it receives an error.
+func (client LoadBalancerFrontendIPConfigurationsClient) ListSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListResponder handles the response to the List request. The method always
+// closes the http.Response Body.
+func (client LoadBalancerFrontendIPConfigurationsClient) ListResponder(resp *http.Response) (result LoadBalancerFrontendIPConfigurationListResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listNextResults retrieves the next set of results, if any.
+func (client LoadBalancerFrontendIPConfigurationsClient) listNextResults(ctx context.Context, lastResults LoadBalancerFrontendIPConfigurationListResult) (result LoadBalancerFrontendIPConfigurationListResult, err error) {
+ req, err := lastResults.loadBalancerFrontendIPConfigurationListResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "network.LoadBalancerFrontendIPConfigurationsClient", "listNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "network.LoadBalancerFrontendIPConfigurationsClient", "listNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.LoadBalancerFrontendIPConfigurationsClient", "listNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListComplete enumerates all values, automatically crossing page boundaries as required.
+func (client LoadBalancerFrontendIPConfigurationsClient) ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result LoadBalancerFrontendIPConfigurationListResultIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/LoadBalancerFrontendIPConfigurationsClient.List")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.List(ctx, resourceGroupName, loadBalancerName)
+ return
+}
diff --git a/services/network/mgmt/2019-11-01/network/loadbalancerloadbalancingrules.go b/services/network/mgmt/2019-11-01/network/loadbalancerloadbalancingrules.go
new file mode 100644
index 000000000000..4c6296fd9252
--- /dev/null
+++ b/services/network/mgmt/2019-11-01/network/loadbalancerloadbalancingrules.go
@@ -0,0 +1,237 @@
+package network
+
+// Copyright (c) Microsoft and contributors. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+ "context"
+ "github.com/Azure/go-autorest/autorest"
+ "github.com/Azure/go-autorest/autorest/azure"
+ "github.com/Azure/go-autorest/tracing"
+ "net/http"
+)
+
+// LoadBalancerLoadBalancingRulesClient is the network Client
+type LoadBalancerLoadBalancingRulesClient struct {
+ BaseClient
+}
+
+// NewLoadBalancerLoadBalancingRulesClient creates an instance of the LoadBalancerLoadBalancingRulesClient client.
+func NewLoadBalancerLoadBalancingRulesClient(subscriptionID string) LoadBalancerLoadBalancingRulesClient {
+ return NewLoadBalancerLoadBalancingRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
+}
+
+// NewLoadBalancerLoadBalancingRulesClientWithBaseURI creates an instance of the LoadBalancerLoadBalancingRulesClient
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
+func NewLoadBalancerLoadBalancingRulesClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerLoadBalancingRulesClient {
+ return LoadBalancerLoadBalancingRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
+}
+
+// Get gets the specified load balancer load balancing rule.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// loadBalancerName - the name of the load balancer.
+// loadBalancingRuleName - the name of the load balancing rule.
+func (client LoadBalancerLoadBalancingRulesClient) Get(ctx context.Context, resourceGroupName string, loadBalancerName string, loadBalancingRuleName string) (result LoadBalancingRule, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/LoadBalancerLoadBalancingRulesClient.Get")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetPreparer(ctx, resourceGroupName, loadBalancerName, loadBalancingRuleName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.LoadBalancerLoadBalancingRulesClient", "Get", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.LoadBalancerLoadBalancingRulesClient", "Get", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.LoadBalancerLoadBalancingRulesClient", "Get", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetPreparer prepares the Get request.
+func (client LoadBalancerLoadBalancingRulesClient) GetPreparer(ctx context.Context, resourceGroupName string, loadBalancerName string, loadBalancingRuleName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "loadBalancerName": autorest.Encode("path", loadBalancerName),
+ "loadBalancingRuleName": autorest.Encode("path", loadBalancingRuleName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/loadBalancers/{loadBalancerName}/loadBalancingRules/{loadBalancingRuleName}", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetSender sends the Get request. The method will close the
+// http.Response Body if it receives an error.
+func (client LoadBalancerLoadBalancingRulesClient) GetSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetResponder handles the response to the Get request. The method always
+// closes the http.Response Body.
+func (client LoadBalancerLoadBalancingRulesClient) GetResponder(resp *http.Response) (result LoadBalancingRule, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// List gets all the load balancing rules in a load balancer.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// loadBalancerName - the name of the load balancer.
+func (client LoadBalancerLoadBalancingRulesClient) List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result LoadBalancerLoadBalancingRuleListResultPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/LoadBalancerLoadBalancingRulesClient.List")
+ defer func() {
+ sc := -1
+ if result.lblbrlr.Response.Response != nil {
+ sc = result.lblbrlr.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.listNextResults
+ req, err := client.ListPreparer(ctx, resourceGroupName, loadBalancerName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.LoadBalancerLoadBalancingRulesClient", "List", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.lblbrlr.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.LoadBalancerLoadBalancingRulesClient", "List", resp, "Failure sending request")
+ return
+ }
+
+ result.lblbrlr, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.LoadBalancerLoadBalancingRulesClient", "List", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListPreparer prepares the List request.
+func (client LoadBalancerLoadBalancingRulesClient) ListPreparer(ctx context.Context, resourceGroupName string, loadBalancerName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "loadBalancerName": autorest.Encode("path", loadBalancerName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/loadBalancers/{loadBalancerName}/loadBalancingRules", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListSender sends the List request. The method will close the
+// http.Response Body if it receives an error.
+func (client LoadBalancerLoadBalancingRulesClient) ListSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListResponder handles the response to the List request. The method always
+// closes the http.Response Body.
+func (client LoadBalancerLoadBalancingRulesClient) ListResponder(resp *http.Response) (result LoadBalancerLoadBalancingRuleListResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listNextResults retrieves the next set of results, if any.
+func (client LoadBalancerLoadBalancingRulesClient) listNextResults(ctx context.Context, lastResults LoadBalancerLoadBalancingRuleListResult) (result LoadBalancerLoadBalancingRuleListResult, err error) {
+ req, err := lastResults.loadBalancerLoadBalancingRuleListResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "network.LoadBalancerLoadBalancingRulesClient", "listNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "network.LoadBalancerLoadBalancingRulesClient", "listNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.LoadBalancerLoadBalancingRulesClient", "listNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListComplete enumerates all values, automatically crossing page boundaries as required.
+func (client LoadBalancerLoadBalancingRulesClient) ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result LoadBalancerLoadBalancingRuleListResultIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/LoadBalancerLoadBalancingRulesClient.List")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.List(ctx, resourceGroupName, loadBalancerName)
+ return
+}
diff --git a/services/network/mgmt/2019-11-01/network/loadbalancernetworkinterfaces.go b/services/network/mgmt/2019-11-01/network/loadbalancernetworkinterfaces.go
new file mode 100644
index 000000000000..dc41b988d968
--- /dev/null
+++ b/services/network/mgmt/2019-11-01/network/loadbalancernetworkinterfaces.go
@@ -0,0 +1,158 @@
+package network
+
+// Copyright (c) Microsoft and contributors. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+ "context"
+ "github.com/Azure/go-autorest/autorest"
+ "github.com/Azure/go-autorest/autorest/azure"
+ "github.com/Azure/go-autorest/tracing"
+ "net/http"
+)
+
+// LoadBalancerNetworkInterfacesClient is the network Client
+type LoadBalancerNetworkInterfacesClient struct {
+ BaseClient
+}
+
+// NewLoadBalancerNetworkInterfacesClient creates an instance of the LoadBalancerNetworkInterfacesClient client.
+func NewLoadBalancerNetworkInterfacesClient(subscriptionID string) LoadBalancerNetworkInterfacesClient {
+ return NewLoadBalancerNetworkInterfacesClientWithBaseURI(DefaultBaseURI, subscriptionID)
+}
+
+// NewLoadBalancerNetworkInterfacesClientWithBaseURI creates an instance of the LoadBalancerNetworkInterfacesClient
+// client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI
+// (sovereign clouds, Azure stack).
+func NewLoadBalancerNetworkInterfacesClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerNetworkInterfacesClient {
+ return LoadBalancerNetworkInterfacesClient{NewWithBaseURI(baseURI, subscriptionID)}
+}
+
+// List gets associated load balancer network interfaces.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// loadBalancerName - the name of the load balancer.
+func (client LoadBalancerNetworkInterfacesClient) List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result InterfaceListResultPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/LoadBalancerNetworkInterfacesClient.List")
+ defer func() {
+ sc := -1
+ if result.ilr.Response.Response != nil {
+ sc = result.ilr.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.listNextResults
+ req, err := client.ListPreparer(ctx, resourceGroupName, loadBalancerName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.LoadBalancerNetworkInterfacesClient", "List", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.ilr.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.LoadBalancerNetworkInterfacesClient", "List", resp, "Failure sending request")
+ return
+ }
+
+ result.ilr, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.LoadBalancerNetworkInterfacesClient", "List", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListPreparer prepares the List request.
+func (client LoadBalancerNetworkInterfacesClient) ListPreparer(ctx context.Context, resourceGroupName string, loadBalancerName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "loadBalancerName": autorest.Encode("path", loadBalancerName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/loadBalancers/{loadBalancerName}/networkInterfaces", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListSender sends the List request. The method will close the
+// http.Response Body if it receives an error.
+func (client LoadBalancerNetworkInterfacesClient) ListSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListResponder handles the response to the List request. The method always
+// closes the http.Response Body.
+func (client LoadBalancerNetworkInterfacesClient) ListResponder(resp *http.Response) (result InterfaceListResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listNextResults retrieves the next set of results, if any.
+func (client LoadBalancerNetworkInterfacesClient) listNextResults(ctx context.Context, lastResults InterfaceListResult) (result InterfaceListResult, err error) {
+ req, err := lastResults.interfaceListResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "network.LoadBalancerNetworkInterfacesClient", "listNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "network.LoadBalancerNetworkInterfacesClient", "listNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.LoadBalancerNetworkInterfacesClient", "listNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListComplete enumerates all values, automatically crossing page boundaries as required.
+func (client LoadBalancerNetworkInterfacesClient) ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result InterfaceListResultIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/LoadBalancerNetworkInterfacesClient.List")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.List(ctx, resourceGroupName, loadBalancerName)
+ return
+}
diff --git a/services/network/mgmt/2019-11-01/network/loadbalanceroutboundrules.go b/services/network/mgmt/2019-11-01/network/loadbalanceroutboundrules.go
new file mode 100644
index 000000000000..1c9549c63003
--- /dev/null
+++ b/services/network/mgmt/2019-11-01/network/loadbalanceroutboundrules.go
@@ -0,0 +1,237 @@
+package network
+
+// Copyright (c) Microsoft and contributors. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+ "context"
+ "github.com/Azure/go-autorest/autorest"
+ "github.com/Azure/go-autorest/autorest/azure"
+ "github.com/Azure/go-autorest/tracing"
+ "net/http"
+)
+
+// LoadBalancerOutboundRulesClient is the network Client
+type LoadBalancerOutboundRulesClient struct {
+ BaseClient
+}
+
+// NewLoadBalancerOutboundRulesClient creates an instance of the LoadBalancerOutboundRulesClient client.
+func NewLoadBalancerOutboundRulesClient(subscriptionID string) LoadBalancerOutboundRulesClient {
+ return NewLoadBalancerOutboundRulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
+}
+
+// NewLoadBalancerOutboundRulesClientWithBaseURI creates an instance of the LoadBalancerOutboundRulesClient client
+// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign
+// clouds, Azure stack).
+func NewLoadBalancerOutboundRulesClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerOutboundRulesClient {
+ return LoadBalancerOutboundRulesClient{NewWithBaseURI(baseURI, subscriptionID)}
+}
+
+// Get gets the specified load balancer outbound rule.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// loadBalancerName - the name of the load balancer.
+// outboundRuleName - the name of the outbound rule.
+func (client LoadBalancerOutboundRulesClient) Get(ctx context.Context, resourceGroupName string, loadBalancerName string, outboundRuleName string) (result OutboundRule, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/LoadBalancerOutboundRulesClient.Get")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetPreparer(ctx, resourceGroupName, loadBalancerName, outboundRuleName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.LoadBalancerOutboundRulesClient", "Get", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.LoadBalancerOutboundRulesClient", "Get", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.LoadBalancerOutboundRulesClient", "Get", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetPreparer prepares the Get request.
+func (client LoadBalancerOutboundRulesClient) GetPreparer(ctx context.Context, resourceGroupName string, loadBalancerName string, outboundRuleName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "loadBalancerName": autorest.Encode("path", loadBalancerName),
+ "outboundRuleName": autorest.Encode("path", outboundRuleName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/loadBalancers/{loadBalancerName}/outboundRules/{outboundRuleName}", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetSender sends the Get request. The method will close the
+// http.Response Body if it receives an error.
+func (client LoadBalancerOutboundRulesClient) GetSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetResponder handles the response to the Get request. The method always
+// closes the http.Response Body.
+func (client LoadBalancerOutboundRulesClient) GetResponder(resp *http.Response) (result OutboundRule, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// List gets all the outbound rules in a load balancer.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// loadBalancerName - the name of the load balancer.
+func (client LoadBalancerOutboundRulesClient) List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result LoadBalancerOutboundRuleListResultPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/LoadBalancerOutboundRulesClient.List")
+ defer func() {
+ sc := -1
+ if result.lborlr.Response.Response != nil {
+ sc = result.lborlr.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.listNextResults
+ req, err := client.ListPreparer(ctx, resourceGroupName, loadBalancerName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.LoadBalancerOutboundRulesClient", "List", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.lborlr.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.LoadBalancerOutboundRulesClient", "List", resp, "Failure sending request")
+ return
+ }
+
+ result.lborlr, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.LoadBalancerOutboundRulesClient", "List", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListPreparer prepares the List request.
+func (client LoadBalancerOutboundRulesClient) ListPreparer(ctx context.Context, resourceGroupName string, loadBalancerName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "loadBalancerName": autorest.Encode("path", loadBalancerName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/loadBalancers/{loadBalancerName}/outboundRules", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListSender sends the List request. The method will close the
+// http.Response Body if it receives an error.
+func (client LoadBalancerOutboundRulesClient) ListSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListResponder handles the response to the List request. The method always
+// closes the http.Response Body.
+func (client LoadBalancerOutboundRulesClient) ListResponder(resp *http.Response) (result LoadBalancerOutboundRuleListResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listNextResults retrieves the next set of results, if any.
+func (client LoadBalancerOutboundRulesClient) listNextResults(ctx context.Context, lastResults LoadBalancerOutboundRuleListResult) (result LoadBalancerOutboundRuleListResult, err error) {
+ req, err := lastResults.loadBalancerOutboundRuleListResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "network.LoadBalancerOutboundRulesClient", "listNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "network.LoadBalancerOutboundRulesClient", "listNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.LoadBalancerOutboundRulesClient", "listNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListComplete enumerates all values, automatically crossing page boundaries as required.
+func (client LoadBalancerOutboundRulesClient) ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result LoadBalancerOutboundRuleListResultIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/LoadBalancerOutboundRulesClient.List")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.List(ctx, resourceGroupName, loadBalancerName)
+ return
+}
diff --git a/services/network/mgmt/2019-11-01/network/loadbalancerprobes.go b/services/network/mgmt/2019-11-01/network/loadbalancerprobes.go
new file mode 100644
index 000000000000..357061c0723f
--- /dev/null
+++ b/services/network/mgmt/2019-11-01/network/loadbalancerprobes.go
@@ -0,0 +1,237 @@
+package network
+
+// Copyright (c) Microsoft and contributors. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+ "context"
+ "github.com/Azure/go-autorest/autorest"
+ "github.com/Azure/go-autorest/autorest/azure"
+ "github.com/Azure/go-autorest/tracing"
+ "net/http"
+)
+
+// LoadBalancerProbesClient is the network Client
+type LoadBalancerProbesClient struct {
+ BaseClient
+}
+
+// NewLoadBalancerProbesClient creates an instance of the LoadBalancerProbesClient client.
+func NewLoadBalancerProbesClient(subscriptionID string) LoadBalancerProbesClient {
+ return NewLoadBalancerProbesClientWithBaseURI(DefaultBaseURI, subscriptionID)
+}
+
+// NewLoadBalancerProbesClientWithBaseURI creates an instance of the LoadBalancerProbesClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
+func NewLoadBalancerProbesClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancerProbesClient {
+ return LoadBalancerProbesClient{NewWithBaseURI(baseURI, subscriptionID)}
+}
+
+// Get gets load balancer probe.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// loadBalancerName - the name of the load balancer.
+// probeName - the name of the probe.
+func (client LoadBalancerProbesClient) Get(ctx context.Context, resourceGroupName string, loadBalancerName string, probeName string) (result Probe, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/LoadBalancerProbesClient.Get")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetPreparer(ctx, resourceGroupName, loadBalancerName, probeName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.LoadBalancerProbesClient", "Get", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.LoadBalancerProbesClient", "Get", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.LoadBalancerProbesClient", "Get", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetPreparer prepares the Get request.
+func (client LoadBalancerProbesClient) GetPreparer(ctx context.Context, resourceGroupName string, loadBalancerName string, probeName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "loadBalancerName": autorest.Encode("path", loadBalancerName),
+ "probeName": autorest.Encode("path", probeName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/loadBalancers/{loadBalancerName}/probes/{probeName}", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetSender sends the Get request. The method will close the
+// http.Response Body if it receives an error.
+func (client LoadBalancerProbesClient) GetSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetResponder handles the response to the Get request. The method always
+// closes the http.Response Body.
+func (client LoadBalancerProbesClient) GetResponder(resp *http.Response) (result Probe, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// List gets all the load balancer probes.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// loadBalancerName - the name of the load balancer.
+func (client LoadBalancerProbesClient) List(ctx context.Context, resourceGroupName string, loadBalancerName string) (result LoadBalancerProbeListResultPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/LoadBalancerProbesClient.List")
+ defer func() {
+ sc := -1
+ if result.lbplr.Response.Response != nil {
+ sc = result.lbplr.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.listNextResults
+ req, err := client.ListPreparer(ctx, resourceGroupName, loadBalancerName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.LoadBalancerProbesClient", "List", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.lbplr.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.LoadBalancerProbesClient", "List", resp, "Failure sending request")
+ return
+ }
+
+ result.lbplr, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.LoadBalancerProbesClient", "List", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListPreparer prepares the List request.
+func (client LoadBalancerProbesClient) ListPreparer(ctx context.Context, resourceGroupName string, loadBalancerName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "loadBalancerName": autorest.Encode("path", loadBalancerName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/loadBalancers/{loadBalancerName}/probes", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListSender sends the List request. The method will close the
+// http.Response Body if it receives an error.
+func (client LoadBalancerProbesClient) ListSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListResponder handles the response to the List request. The method always
+// closes the http.Response Body.
+func (client LoadBalancerProbesClient) ListResponder(resp *http.Response) (result LoadBalancerProbeListResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listNextResults retrieves the next set of results, if any.
+func (client LoadBalancerProbesClient) listNextResults(ctx context.Context, lastResults LoadBalancerProbeListResult) (result LoadBalancerProbeListResult, err error) {
+ req, err := lastResults.loadBalancerProbeListResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "network.LoadBalancerProbesClient", "listNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "network.LoadBalancerProbesClient", "listNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.LoadBalancerProbesClient", "listNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListComplete enumerates all values, automatically crossing page boundaries as required.
+func (client LoadBalancerProbesClient) ListComplete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result LoadBalancerProbeListResultIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/LoadBalancerProbesClient.List")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.List(ctx, resourceGroupName, loadBalancerName)
+ return
+}
diff --git a/services/network/mgmt/2019-11-01/network/loadbalancers.go b/services/network/mgmt/2019-11-01/network/loadbalancers.go
new file mode 100644
index 000000000000..5680e48495df
--- /dev/null
+++ b/services/network/mgmt/2019-11-01/network/loadbalancers.go
@@ -0,0 +1,583 @@
+package network
+
+// Copyright (c) Microsoft and contributors. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+ "context"
+ "github.com/Azure/go-autorest/autorest"
+ "github.com/Azure/go-autorest/autorest/azure"
+ "github.com/Azure/go-autorest/tracing"
+ "net/http"
+)
+
+// LoadBalancersClient is the network Client
+type LoadBalancersClient struct {
+ BaseClient
+}
+
+// NewLoadBalancersClient creates an instance of the LoadBalancersClient client.
+func NewLoadBalancersClient(subscriptionID string) LoadBalancersClient {
+ return NewLoadBalancersClientWithBaseURI(DefaultBaseURI, subscriptionID)
+}
+
+// NewLoadBalancersClientWithBaseURI creates an instance of the LoadBalancersClient client using a custom endpoint.
+// Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
+func NewLoadBalancersClientWithBaseURI(baseURI string, subscriptionID string) LoadBalancersClient {
+ return LoadBalancersClient{NewWithBaseURI(baseURI, subscriptionID)}
+}
+
+// CreateOrUpdate creates or updates a load balancer.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// loadBalancerName - the name of the load balancer.
+// parameters - parameters supplied to the create or update load balancer operation.
+func (client LoadBalancersClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, loadBalancerName string, parameters LoadBalancer) (result LoadBalancersCreateOrUpdateFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/LoadBalancersClient.CreateOrUpdate")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, loadBalancerName, parameters)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "CreateOrUpdate", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.CreateOrUpdateSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "CreateOrUpdate", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// CreateOrUpdatePreparer prepares the CreateOrUpdate request.
+func (client LoadBalancersClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, loadBalancerName string, parameters LoadBalancer) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "loadBalancerName": autorest.Encode("path", loadBalancerName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ parameters.Etag = nil
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPut(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}", pathParameters),
+ autorest.WithJSON(parameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the
+// http.Response Body if it receives an error.
+func (client LoadBalancersClient) CreateOrUpdateSender(req *http.Request) (future LoadBalancersCreateOrUpdateFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always
+// closes the http.Response Body.
+func (client LoadBalancersClient) CreateOrUpdateResponder(resp *http.Response) (result LoadBalancer, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// Delete deletes the specified load balancer.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// loadBalancerName - the name of the load balancer.
+func (client LoadBalancersClient) Delete(ctx context.Context, resourceGroupName string, loadBalancerName string) (result LoadBalancersDeleteFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/LoadBalancersClient.Delete")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.DeletePreparer(ctx, resourceGroupName, loadBalancerName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "Delete", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.DeleteSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "Delete", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// DeletePreparer prepares the Delete request.
+func (client LoadBalancersClient) DeletePreparer(ctx context.Context, resourceGroupName string, loadBalancerName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "loadBalancerName": autorest.Encode("path", loadBalancerName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/loadBalancers/{loadBalancerName}", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// DeleteSender sends the Delete request. The method will close the
+// http.Response Body if it receives an error.
+func (client LoadBalancersClient) DeleteSender(req *http.Request) (future LoadBalancersDeleteFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// DeleteResponder handles the response to the Delete request. The method always
+// closes the http.Response Body.
+func (client LoadBalancersClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent),
+ autorest.ByClosing())
+ result.Response = resp
+ return
+}
+
+// Get gets the specified load balancer.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// loadBalancerName - the name of the load balancer.
+// expand - expands referenced resources.
+func (client LoadBalancersClient) Get(ctx context.Context, resourceGroupName string, loadBalancerName string, expand string) (result LoadBalancer, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/LoadBalancersClient.Get")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetPreparer(ctx, resourceGroupName, loadBalancerName, expand)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "Get", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "Get", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "Get", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetPreparer prepares the Get request.
+func (client LoadBalancersClient) GetPreparer(ctx context.Context, resourceGroupName string, loadBalancerName string, expand string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "loadBalancerName": autorest.Encode("path", loadBalancerName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+ if len(expand) > 0 {
+ queryParameters["$expand"] = autorest.Encode("query", expand)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetSender sends the Get request. The method will close the
+// http.Response Body if it receives an error.
+func (client LoadBalancersClient) GetSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetResponder handles the response to the Get request. The method always
+// closes the http.Response Body.
+func (client LoadBalancersClient) GetResponder(resp *http.Response) (result LoadBalancer, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// List gets all the load balancers in a resource group.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+func (client LoadBalancersClient) List(ctx context.Context, resourceGroupName string) (result LoadBalancerListResultPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/LoadBalancersClient.List")
+ defer func() {
+ sc := -1
+ if result.lblr.Response.Response != nil {
+ sc = result.lblr.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.listNextResults
+ req, err := client.ListPreparer(ctx, resourceGroupName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "List", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.lblr.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "List", resp, "Failure sending request")
+ return
+ }
+
+ result.lblr, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "List", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListPreparer prepares the List request.
+func (client LoadBalancersClient) ListPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/loadBalancers", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListSender sends the List request. The method will close the
+// http.Response Body if it receives an error.
+func (client LoadBalancersClient) ListSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListResponder handles the response to the List request. The method always
+// closes the http.Response Body.
+func (client LoadBalancersClient) ListResponder(resp *http.Response) (result LoadBalancerListResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listNextResults retrieves the next set of results, if any.
+func (client LoadBalancersClient) listNextResults(ctx context.Context, lastResults LoadBalancerListResult) (result LoadBalancerListResult, err error) {
+ req, err := lastResults.loadBalancerListResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "network.LoadBalancersClient", "listNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "network.LoadBalancersClient", "listNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "listNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListComplete enumerates all values, automatically crossing page boundaries as required.
+func (client LoadBalancersClient) ListComplete(ctx context.Context, resourceGroupName string) (result LoadBalancerListResultIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/LoadBalancersClient.List")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.List(ctx, resourceGroupName)
+ return
+}
+
+// ListAll gets all the load balancers in a subscription.
+func (client LoadBalancersClient) ListAll(ctx context.Context) (result LoadBalancerListResultPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/LoadBalancersClient.ListAll")
+ defer func() {
+ sc := -1
+ if result.lblr.Response.Response != nil {
+ sc = result.lblr.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.listAllNextResults
+ req, err := client.ListAllPreparer(ctx)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "ListAll", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListAllSender(req)
+ if err != nil {
+ result.lblr.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "ListAll", resp, "Failure sending request")
+ return
+ }
+
+ result.lblr, err = client.ListAllResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "ListAll", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListAllPreparer prepares the ListAll request.
+func (client LoadBalancersClient) ListAllPreparer(ctx context.Context) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/loadBalancers", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListAllSender sends the ListAll request. The method will close the
+// http.Response Body if it receives an error.
+func (client LoadBalancersClient) ListAllSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListAllResponder handles the response to the ListAll request. The method always
+// closes the http.Response Body.
+func (client LoadBalancersClient) ListAllResponder(resp *http.Response) (result LoadBalancerListResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listAllNextResults retrieves the next set of results, if any.
+func (client LoadBalancersClient) listAllNextResults(ctx context.Context, lastResults LoadBalancerListResult) (result LoadBalancerListResult, err error) {
+ req, err := lastResults.loadBalancerListResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "network.LoadBalancersClient", "listAllNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListAllSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "network.LoadBalancersClient", "listAllNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListAllResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "listAllNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListAllComplete enumerates all values, automatically crossing page boundaries as required.
+func (client LoadBalancersClient) ListAllComplete(ctx context.Context) (result LoadBalancerListResultIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/LoadBalancersClient.ListAll")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.ListAll(ctx)
+ return
+}
+
+// UpdateTags updates a load balancer tags.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// loadBalancerName - the name of the load balancer.
+// parameters - parameters supplied to update load balancer tags.
+func (client LoadBalancersClient) UpdateTags(ctx context.Context, resourceGroupName string, loadBalancerName string, parameters TagsObject) (result LoadBalancer, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/LoadBalancersClient.UpdateTags")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.UpdateTagsPreparer(ctx, resourceGroupName, loadBalancerName, parameters)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "UpdateTags", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.UpdateTagsSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "UpdateTags", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.UpdateTagsResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "UpdateTags", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// UpdateTagsPreparer prepares the UpdateTags request.
+func (client LoadBalancersClient) UpdateTagsPreparer(ctx context.Context, resourceGroupName string, loadBalancerName string, parameters TagsObject) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "loadBalancerName": autorest.Encode("path", loadBalancerName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/loadBalancers/{loadBalancerName}", pathParameters),
+ autorest.WithJSON(parameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// UpdateTagsSender sends the UpdateTags request. The method will close the
+// http.Response Body if it receives an error.
+func (client LoadBalancersClient) UpdateTagsSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// UpdateTagsResponder handles the response to the UpdateTags request. The method always
+// closes the http.Response Body.
+func (client LoadBalancersClient) UpdateTagsResponder(resp *http.Response) (result LoadBalancer, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
diff --git a/services/network/mgmt/2019-11-01/network/localnetworkgateways.go b/services/network/mgmt/2019-11-01/network/localnetworkgateways.go
new file mode 100644
index 000000000000..dce67d0c50d2
--- /dev/null
+++ b/services/network/mgmt/2019-11-01/network/localnetworkgateways.go
@@ -0,0 +1,497 @@
+package network
+
+// Copyright (c) Microsoft and contributors. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+ "context"
+ "github.com/Azure/go-autorest/autorest"
+ "github.com/Azure/go-autorest/autorest/azure"
+ "github.com/Azure/go-autorest/autorest/validation"
+ "github.com/Azure/go-autorest/tracing"
+ "net/http"
+)
+
+// LocalNetworkGatewaysClient is the network Client
+type LocalNetworkGatewaysClient struct {
+ BaseClient
+}
+
+// NewLocalNetworkGatewaysClient creates an instance of the LocalNetworkGatewaysClient client.
+func NewLocalNetworkGatewaysClient(subscriptionID string) LocalNetworkGatewaysClient {
+ return NewLocalNetworkGatewaysClientWithBaseURI(DefaultBaseURI, subscriptionID)
+}
+
+// NewLocalNetworkGatewaysClientWithBaseURI creates an instance of the LocalNetworkGatewaysClient client using a custom
+// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure
+// stack).
+func NewLocalNetworkGatewaysClientWithBaseURI(baseURI string, subscriptionID string) LocalNetworkGatewaysClient {
+ return LocalNetworkGatewaysClient{NewWithBaseURI(baseURI, subscriptionID)}
+}
+
+// CreateOrUpdate creates or updates a local network gateway in the specified resource group.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// localNetworkGatewayName - the name of the local network gateway.
+// parameters - parameters supplied to the create or update local network gateway operation.
+func (client LocalNetworkGatewaysClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, localNetworkGatewayName string, parameters LocalNetworkGateway) (result LocalNetworkGatewaysCreateOrUpdateFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/LocalNetworkGatewaysClient.CreateOrUpdate")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: localNetworkGatewayName,
+ Constraints: []validation.Constraint{{Target: "localNetworkGatewayName", Name: validation.MinLength, Rule: 1, Chain: nil}}},
+ {TargetValue: parameters,
+ Constraints: []validation.Constraint{{Target: "parameters.LocalNetworkGatewayPropertiesFormat", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("network.LocalNetworkGatewaysClient", "CreateOrUpdate", err.Error())
+ }
+
+ req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, localNetworkGatewayName, parameters)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "CreateOrUpdate", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.CreateOrUpdateSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "CreateOrUpdate", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// CreateOrUpdatePreparer prepares the CreateOrUpdate request.
+func (client LocalNetworkGatewaysClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, localNetworkGatewayName string, parameters LocalNetworkGateway) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "localNetworkGatewayName": autorest.Encode("path", localNetworkGatewayName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ parameters.Etag = nil
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPut(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/localNetworkGateways/{localNetworkGatewayName}", pathParameters),
+ autorest.WithJSON(parameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the
+// http.Response Body if it receives an error.
+func (client LocalNetworkGatewaysClient) CreateOrUpdateSender(req *http.Request) (future LocalNetworkGatewaysCreateOrUpdateFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always
+// closes the http.Response Body.
+func (client LocalNetworkGatewaysClient) CreateOrUpdateResponder(resp *http.Response) (result LocalNetworkGateway, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// Delete deletes the specified local network gateway.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// localNetworkGatewayName - the name of the local network gateway.
+func (client LocalNetworkGatewaysClient) Delete(ctx context.Context, resourceGroupName string, localNetworkGatewayName string) (result LocalNetworkGatewaysDeleteFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/LocalNetworkGatewaysClient.Delete")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: localNetworkGatewayName,
+ Constraints: []validation.Constraint{{Target: "localNetworkGatewayName", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("network.LocalNetworkGatewaysClient", "Delete", err.Error())
+ }
+
+ req, err := client.DeletePreparer(ctx, resourceGroupName, localNetworkGatewayName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "Delete", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.DeleteSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "Delete", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// DeletePreparer prepares the Delete request.
+func (client LocalNetworkGatewaysClient) DeletePreparer(ctx context.Context, resourceGroupName string, localNetworkGatewayName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "localNetworkGatewayName": autorest.Encode("path", localNetworkGatewayName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/localNetworkGateways/{localNetworkGatewayName}", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// DeleteSender sends the Delete request. The method will close the
+// http.Response Body if it receives an error.
+func (client LocalNetworkGatewaysClient) DeleteSender(req *http.Request) (future LocalNetworkGatewaysDeleteFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// DeleteResponder handles the response to the Delete request. The method always
+// closes the http.Response Body.
+func (client LocalNetworkGatewaysClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent),
+ autorest.ByClosing())
+ result.Response = resp
+ return
+}
+
+// Get gets the specified local network gateway in a resource group.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// localNetworkGatewayName - the name of the local network gateway.
+func (client LocalNetworkGatewaysClient) Get(ctx context.Context, resourceGroupName string, localNetworkGatewayName string) (result LocalNetworkGateway, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/LocalNetworkGatewaysClient.Get")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: localNetworkGatewayName,
+ Constraints: []validation.Constraint{{Target: "localNetworkGatewayName", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("network.LocalNetworkGatewaysClient", "Get", err.Error())
+ }
+
+ req, err := client.GetPreparer(ctx, resourceGroupName, localNetworkGatewayName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "Get", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "Get", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "Get", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetPreparer prepares the Get request.
+func (client LocalNetworkGatewaysClient) GetPreparer(ctx context.Context, resourceGroupName string, localNetworkGatewayName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "localNetworkGatewayName": autorest.Encode("path", localNetworkGatewayName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/localNetworkGateways/{localNetworkGatewayName}", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetSender sends the Get request. The method will close the
+// http.Response Body if it receives an error.
+func (client LocalNetworkGatewaysClient) GetSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetResponder handles the response to the Get request. The method always
+// closes the http.Response Body.
+func (client LocalNetworkGatewaysClient) GetResponder(resp *http.Response) (result LocalNetworkGateway, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// List gets all the local network gateways in a resource group.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+func (client LocalNetworkGatewaysClient) List(ctx context.Context, resourceGroupName string) (result LocalNetworkGatewayListResultPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/LocalNetworkGatewaysClient.List")
+ defer func() {
+ sc := -1
+ if result.lnglr.Response.Response != nil {
+ sc = result.lnglr.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.listNextResults
+ req, err := client.ListPreparer(ctx, resourceGroupName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "List", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.lnglr.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "List", resp, "Failure sending request")
+ return
+ }
+
+ result.lnglr, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "List", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListPreparer prepares the List request.
+func (client LocalNetworkGatewaysClient) ListPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/localNetworkGateways", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListSender sends the List request. The method will close the
+// http.Response Body if it receives an error.
+func (client LocalNetworkGatewaysClient) ListSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListResponder handles the response to the List request. The method always
+// closes the http.Response Body.
+func (client LocalNetworkGatewaysClient) ListResponder(resp *http.Response) (result LocalNetworkGatewayListResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listNextResults retrieves the next set of results, if any.
+func (client LocalNetworkGatewaysClient) listNextResults(ctx context.Context, lastResults LocalNetworkGatewayListResult) (result LocalNetworkGatewayListResult, err error) {
+ req, err := lastResults.localNetworkGatewayListResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "listNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "listNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "listNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListComplete enumerates all values, automatically crossing page boundaries as required.
+func (client LocalNetworkGatewaysClient) ListComplete(ctx context.Context, resourceGroupName string) (result LocalNetworkGatewayListResultIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/LocalNetworkGatewaysClient.List")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.List(ctx, resourceGroupName)
+ return
+}
+
+// UpdateTags updates a local network gateway tags.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// localNetworkGatewayName - the name of the local network gateway.
+// parameters - parameters supplied to update local network gateway tags.
+func (client LocalNetworkGatewaysClient) UpdateTags(ctx context.Context, resourceGroupName string, localNetworkGatewayName string, parameters TagsObject) (result LocalNetworkGateway, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/LocalNetworkGatewaysClient.UpdateTags")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: localNetworkGatewayName,
+ Constraints: []validation.Constraint{{Target: "localNetworkGatewayName", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("network.LocalNetworkGatewaysClient", "UpdateTags", err.Error())
+ }
+
+ req, err := client.UpdateTagsPreparer(ctx, resourceGroupName, localNetworkGatewayName, parameters)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "UpdateTags", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.UpdateTagsSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "UpdateTags", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.UpdateTagsResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysClient", "UpdateTags", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// UpdateTagsPreparer prepares the UpdateTags request.
+func (client LocalNetworkGatewaysClient) UpdateTagsPreparer(ctx context.Context, resourceGroupName string, localNetworkGatewayName string, parameters TagsObject) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "localNetworkGatewayName": autorest.Encode("path", localNetworkGatewayName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.Network/localNetworkGateways/{localNetworkGatewayName}", pathParameters),
+ autorest.WithJSON(parameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// UpdateTagsSender sends the UpdateTags request. The method will close the
+// http.Response Body if it receives an error.
+func (client LocalNetworkGatewaysClient) UpdateTagsSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// UpdateTagsResponder handles the response to the UpdateTags request. The method always
+// closes the http.Response Body.
+func (client LocalNetworkGatewaysClient) UpdateTagsResponder(resp *http.Response) (result LocalNetworkGateway, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
diff --git a/services/network/mgmt/2019-11-01/network/models.go b/services/network/mgmt/2019-11-01/network/models.go
new file mode 100644
index 000000000000..773168eb13b6
--- /dev/null
+++ b/services/network/mgmt/2019-11-01/network/models.go
@@ -0,0 +1,36207 @@
+package network
+
+// Copyright (c) Microsoft and contributors. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+ "context"
+ "encoding/json"
+ "github.com/Azure/go-autorest/autorest"
+ "github.com/Azure/go-autorest/autorest/azure"
+ "github.com/Azure/go-autorest/autorest/date"
+ "github.com/Azure/go-autorest/autorest/to"
+ "github.com/Azure/go-autorest/tracing"
+ "net/http"
+)
+
+// The package's fully qualified name.
+const fqdn = "github.com/Azure/azure-sdk-for-go/services/network/mgmt/2019-11-01/network"
+
+// Access enumerates the values for access.
+type Access string
+
+const (
+ // Allow ...
+ Allow Access = "Allow"
+ // Deny ...
+ Deny Access = "Deny"
+)
+
+// PossibleAccessValues returns an array of possible values for the Access const type.
+func PossibleAccessValues() []Access {
+ return []Access{Allow, Deny}
+}
+
+// ApplicationGatewayBackendHealthServerHealth enumerates the values for application gateway backend health
+// server health.
+type ApplicationGatewayBackendHealthServerHealth string
+
+const (
+ // Down ...
+ Down ApplicationGatewayBackendHealthServerHealth = "Down"
+ // Draining ...
+ Draining ApplicationGatewayBackendHealthServerHealth = "Draining"
+ // Partial ...
+ Partial ApplicationGatewayBackendHealthServerHealth = "Partial"
+ // Unknown ...
+ Unknown ApplicationGatewayBackendHealthServerHealth = "Unknown"
+ // Up ...
+ Up ApplicationGatewayBackendHealthServerHealth = "Up"
+)
+
+// PossibleApplicationGatewayBackendHealthServerHealthValues returns an array of possible values for the ApplicationGatewayBackendHealthServerHealth const type.
+func PossibleApplicationGatewayBackendHealthServerHealthValues() []ApplicationGatewayBackendHealthServerHealth {
+ return []ApplicationGatewayBackendHealthServerHealth{Down, Draining, Partial, Unknown, Up}
+}
+
+// ApplicationGatewayCookieBasedAffinity enumerates the values for application gateway cookie based affinity.
+type ApplicationGatewayCookieBasedAffinity string
+
+const (
+ // Disabled ...
+ Disabled ApplicationGatewayCookieBasedAffinity = "Disabled"
+ // Enabled ...
+ Enabled ApplicationGatewayCookieBasedAffinity = "Enabled"
+)
+
+// PossibleApplicationGatewayCookieBasedAffinityValues returns an array of possible values for the ApplicationGatewayCookieBasedAffinity const type.
+func PossibleApplicationGatewayCookieBasedAffinityValues() []ApplicationGatewayCookieBasedAffinity {
+ return []ApplicationGatewayCookieBasedAffinity{Disabled, Enabled}
+}
+
+// ApplicationGatewayCustomErrorStatusCode enumerates the values for application gateway custom error status
+// code.
+type ApplicationGatewayCustomErrorStatusCode string
+
+const (
+ // HTTPStatus403 ...
+ HTTPStatus403 ApplicationGatewayCustomErrorStatusCode = "HttpStatus403"
+ // HTTPStatus502 ...
+ HTTPStatus502 ApplicationGatewayCustomErrorStatusCode = "HttpStatus502"
+)
+
+// PossibleApplicationGatewayCustomErrorStatusCodeValues returns an array of possible values for the ApplicationGatewayCustomErrorStatusCode const type.
+func PossibleApplicationGatewayCustomErrorStatusCodeValues() []ApplicationGatewayCustomErrorStatusCode {
+ return []ApplicationGatewayCustomErrorStatusCode{HTTPStatus403, HTTPStatus502}
+}
+
+// ApplicationGatewayFirewallMode enumerates the values for application gateway firewall mode.
+type ApplicationGatewayFirewallMode string
+
+const (
+ // Detection ...
+ Detection ApplicationGatewayFirewallMode = "Detection"
+ // Prevention ...
+ Prevention ApplicationGatewayFirewallMode = "Prevention"
+)
+
+// PossibleApplicationGatewayFirewallModeValues returns an array of possible values for the ApplicationGatewayFirewallMode const type.
+func PossibleApplicationGatewayFirewallModeValues() []ApplicationGatewayFirewallMode {
+ return []ApplicationGatewayFirewallMode{Detection, Prevention}
+}
+
+// ApplicationGatewayOperationalState enumerates the values for application gateway operational state.
+type ApplicationGatewayOperationalState string
+
+const (
+ // Running ...
+ Running ApplicationGatewayOperationalState = "Running"
+ // Starting ...
+ Starting ApplicationGatewayOperationalState = "Starting"
+ // Stopped ...
+ Stopped ApplicationGatewayOperationalState = "Stopped"
+ // Stopping ...
+ Stopping ApplicationGatewayOperationalState = "Stopping"
+)
+
+// PossibleApplicationGatewayOperationalStateValues returns an array of possible values for the ApplicationGatewayOperationalState const type.
+func PossibleApplicationGatewayOperationalStateValues() []ApplicationGatewayOperationalState {
+ return []ApplicationGatewayOperationalState{Running, Starting, Stopped, Stopping}
+}
+
+// ApplicationGatewayProtocol enumerates the values for application gateway protocol.
+type ApplicationGatewayProtocol string
+
+const (
+ // HTTP ...
+ HTTP ApplicationGatewayProtocol = "Http"
+ // HTTPS ...
+ HTTPS ApplicationGatewayProtocol = "Https"
+)
+
+// PossibleApplicationGatewayProtocolValues returns an array of possible values for the ApplicationGatewayProtocol const type.
+func PossibleApplicationGatewayProtocolValues() []ApplicationGatewayProtocol {
+ return []ApplicationGatewayProtocol{HTTP, HTTPS}
+}
+
+// ApplicationGatewayRedirectType enumerates the values for application gateway redirect type.
+type ApplicationGatewayRedirectType string
+
+const (
+ // Found ...
+ Found ApplicationGatewayRedirectType = "Found"
+ // Permanent ...
+ Permanent ApplicationGatewayRedirectType = "Permanent"
+ // SeeOther ...
+ SeeOther ApplicationGatewayRedirectType = "SeeOther"
+ // Temporary ...
+ Temporary ApplicationGatewayRedirectType = "Temporary"
+)
+
+// PossibleApplicationGatewayRedirectTypeValues returns an array of possible values for the ApplicationGatewayRedirectType const type.
+func PossibleApplicationGatewayRedirectTypeValues() []ApplicationGatewayRedirectType {
+ return []ApplicationGatewayRedirectType{Found, Permanent, SeeOther, Temporary}
+}
+
+// ApplicationGatewayRequestRoutingRuleType enumerates the values for application gateway request routing rule
+// type.
+type ApplicationGatewayRequestRoutingRuleType string
+
+const (
+ // Basic ...
+ Basic ApplicationGatewayRequestRoutingRuleType = "Basic"
+ // PathBasedRouting ...
+ PathBasedRouting ApplicationGatewayRequestRoutingRuleType = "PathBasedRouting"
+)
+
+// PossibleApplicationGatewayRequestRoutingRuleTypeValues returns an array of possible values for the ApplicationGatewayRequestRoutingRuleType const type.
+func PossibleApplicationGatewayRequestRoutingRuleTypeValues() []ApplicationGatewayRequestRoutingRuleType {
+ return []ApplicationGatewayRequestRoutingRuleType{Basic, PathBasedRouting}
+}
+
+// ApplicationGatewaySkuName enumerates the values for application gateway sku name.
+type ApplicationGatewaySkuName string
+
+const (
+ // StandardLarge ...
+ StandardLarge ApplicationGatewaySkuName = "Standard_Large"
+ // StandardMedium ...
+ StandardMedium ApplicationGatewaySkuName = "Standard_Medium"
+ // StandardSmall ...
+ StandardSmall ApplicationGatewaySkuName = "Standard_Small"
+ // StandardV2 ...
+ StandardV2 ApplicationGatewaySkuName = "Standard_v2"
+ // WAFLarge ...
+ WAFLarge ApplicationGatewaySkuName = "WAF_Large"
+ // WAFMedium ...
+ WAFMedium ApplicationGatewaySkuName = "WAF_Medium"
+ // WAFV2 ...
+ WAFV2 ApplicationGatewaySkuName = "WAF_v2"
+)
+
+// PossibleApplicationGatewaySkuNameValues returns an array of possible values for the ApplicationGatewaySkuName const type.
+func PossibleApplicationGatewaySkuNameValues() []ApplicationGatewaySkuName {
+ return []ApplicationGatewaySkuName{StandardLarge, StandardMedium, StandardSmall, StandardV2, WAFLarge, WAFMedium, WAFV2}
+}
+
+// ApplicationGatewaySslCipherSuite enumerates the values for application gateway ssl cipher suite.
+type ApplicationGatewaySslCipherSuite string
+
+const (
+ // TLSDHEDSSWITH3DESEDECBCSHA ...
+ TLSDHEDSSWITH3DESEDECBCSHA ApplicationGatewaySslCipherSuite = "TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA"
+ // TLSDHEDSSWITHAES128CBCSHA ...
+ TLSDHEDSSWITHAES128CBCSHA ApplicationGatewaySslCipherSuite = "TLS_DHE_DSS_WITH_AES_128_CBC_SHA"
+ // TLSDHEDSSWITHAES128CBCSHA256 ...
+ TLSDHEDSSWITHAES128CBCSHA256 ApplicationGatewaySslCipherSuite = "TLS_DHE_DSS_WITH_AES_128_CBC_SHA256"
+ // TLSDHEDSSWITHAES256CBCSHA ...
+ TLSDHEDSSWITHAES256CBCSHA ApplicationGatewaySslCipherSuite = "TLS_DHE_DSS_WITH_AES_256_CBC_SHA"
+ // TLSDHEDSSWITHAES256CBCSHA256 ...
+ TLSDHEDSSWITHAES256CBCSHA256 ApplicationGatewaySslCipherSuite = "TLS_DHE_DSS_WITH_AES_256_CBC_SHA256"
+ // TLSDHERSAWITHAES128CBCSHA ...
+ TLSDHERSAWITHAES128CBCSHA ApplicationGatewaySslCipherSuite = "TLS_DHE_RSA_WITH_AES_128_CBC_SHA"
+ // TLSDHERSAWITHAES128GCMSHA256 ...
+ TLSDHERSAWITHAES128GCMSHA256 ApplicationGatewaySslCipherSuite = "TLS_DHE_RSA_WITH_AES_128_GCM_SHA256"
+ // TLSDHERSAWITHAES256CBCSHA ...
+ TLSDHERSAWITHAES256CBCSHA ApplicationGatewaySslCipherSuite = "TLS_DHE_RSA_WITH_AES_256_CBC_SHA"
+ // TLSDHERSAWITHAES256GCMSHA384 ...
+ TLSDHERSAWITHAES256GCMSHA384 ApplicationGatewaySslCipherSuite = "TLS_DHE_RSA_WITH_AES_256_GCM_SHA384"
+ // TLSECDHEECDSAWITHAES128CBCSHA ...
+ TLSECDHEECDSAWITHAES128CBCSHA ApplicationGatewaySslCipherSuite = "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA"
+ // TLSECDHEECDSAWITHAES128CBCSHA256 ...
+ TLSECDHEECDSAWITHAES128CBCSHA256 ApplicationGatewaySslCipherSuite = "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256"
+ // TLSECDHEECDSAWITHAES128GCMSHA256 ...
+ TLSECDHEECDSAWITHAES128GCMSHA256 ApplicationGatewaySslCipherSuite = "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256"
+ // TLSECDHEECDSAWITHAES256CBCSHA ...
+ TLSECDHEECDSAWITHAES256CBCSHA ApplicationGatewaySslCipherSuite = "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA"
+ // TLSECDHEECDSAWITHAES256CBCSHA384 ...
+ TLSECDHEECDSAWITHAES256CBCSHA384 ApplicationGatewaySslCipherSuite = "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384"
+ // TLSECDHEECDSAWITHAES256GCMSHA384 ...
+ TLSECDHEECDSAWITHAES256GCMSHA384 ApplicationGatewaySslCipherSuite = "TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384"
+ // TLSECDHERSAWITHAES128CBCSHA ...
+ TLSECDHERSAWITHAES128CBCSHA ApplicationGatewaySslCipherSuite = "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA"
+ // TLSECDHERSAWITHAES128CBCSHA256 ...
+ TLSECDHERSAWITHAES128CBCSHA256 ApplicationGatewaySslCipherSuite = "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256"
+ // TLSECDHERSAWITHAES128GCMSHA256 ...
+ TLSECDHERSAWITHAES128GCMSHA256 ApplicationGatewaySslCipherSuite = "TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256"
+ // TLSECDHERSAWITHAES256CBCSHA ...
+ TLSECDHERSAWITHAES256CBCSHA ApplicationGatewaySslCipherSuite = "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA"
+ // TLSECDHERSAWITHAES256CBCSHA384 ...
+ TLSECDHERSAWITHAES256CBCSHA384 ApplicationGatewaySslCipherSuite = "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384"
+ // TLSECDHERSAWITHAES256GCMSHA384 ...
+ TLSECDHERSAWITHAES256GCMSHA384 ApplicationGatewaySslCipherSuite = "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384"
+ // TLSRSAWITH3DESEDECBCSHA ...
+ TLSRSAWITH3DESEDECBCSHA ApplicationGatewaySslCipherSuite = "TLS_RSA_WITH_3DES_EDE_CBC_SHA"
+ // TLSRSAWITHAES128CBCSHA ...
+ TLSRSAWITHAES128CBCSHA ApplicationGatewaySslCipherSuite = "TLS_RSA_WITH_AES_128_CBC_SHA"
+ // TLSRSAWITHAES128CBCSHA256 ...
+ TLSRSAWITHAES128CBCSHA256 ApplicationGatewaySslCipherSuite = "TLS_RSA_WITH_AES_128_CBC_SHA256"
+ // TLSRSAWITHAES128GCMSHA256 ...
+ TLSRSAWITHAES128GCMSHA256 ApplicationGatewaySslCipherSuite = "TLS_RSA_WITH_AES_128_GCM_SHA256"
+ // TLSRSAWITHAES256CBCSHA ...
+ TLSRSAWITHAES256CBCSHA ApplicationGatewaySslCipherSuite = "TLS_RSA_WITH_AES_256_CBC_SHA"
+ // TLSRSAWITHAES256CBCSHA256 ...
+ TLSRSAWITHAES256CBCSHA256 ApplicationGatewaySslCipherSuite = "TLS_RSA_WITH_AES_256_CBC_SHA256"
+ // TLSRSAWITHAES256GCMSHA384 ...
+ TLSRSAWITHAES256GCMSHA384 ApplicationGatewaySslCipherSuite = "TLS_RSA_WITH_AES_256_GCM_SHA384"
+)
+
+// PossibleApplicationGatewaySslCipherSuiteValues returns an array of possible values for the ApplicationGatewaySslCipherSuite const type.
+func PossibleApplicationGatewaySslCipherSuiteValues() []ApplicationGatewaySslCipherSuite {
+ return []ApplicationGatewaySslCipherSuite{TLSDHEDSSWITH3DESEDECBCSHA, TLSDHEDSSWITHAES128CBCSHA, TLSDHEDSSWITHAES128CBCSHA256, TLSDHEDSSWITHAES256CBCSHA, TLSDHEDSSWITHAES256CBCSHA256, TLSDHERSAWITHAES128CBCSHA, TLSDHERSAWITHAES128GCMSHA256, TLSDHERSAWITHAES256CBCSHA, TLSDHERSAWITHAES256GCMSHA384, TLSECDHEECDSAWITHAES128CBCSHA, TLSECDHEECDSAWITHAES128CBCSHA256, TLSECDHEECDSAWITHAES128GCMSHA256, TLSECDHEECDSAWITHAES256CBCSHA, TLSECDHEECDSAWITHAES256CBCSHA384, TLSECDHEECDSAWITHAES256GCMSHA384, TLSECDHERSAWITHAES128CBCSHA, TLSECDHERSAWITHAES128CBCSHA256, TLSECDHERSAWITHAES128GCMSHA256, TLSECDHERSAWITHAES256CBCSHA, TLSECDHERSAWITHAES256CBCSHA384, TLSECDHERSAWITHAES256GCMSHA384, TLSRSAWITH3DESEDECBCSHA, TLSRSAWITHAES128CBCSHA, TLSRSAWITHAES128CBCSHA256, TLSRSAWITHAES128GCMSHA256, TLSRSAWITHAES256CBCSHA, TLSRSAWITHAES256CBCSHA256, TLSRSAWITHAES256GCMSHA384}
+}
+
+// ApplicationGatewaySslPolicyName enumerates the values for application gateway ssl policy name.
+type ApplicationGatewaySslPolicyName string
+
+const (
+ // AppGwSslPolicy20150501 ...
+ AppGwSslPolicy20150501 ApplicationGatewaySslPolicyName = "AppGwSslPolicy20150501"
+ // AppGwSslPolicy20170401 ...
+ AppGwSslPolicy20170401 ApplicationGatewaySslPolicyName = "AppGwSslPolicy20170401"
+ // AppGwSslPolicy20170401S ...
+ AppGwSslPolicy20170401S ApplicationGatewaySslPolicyName = "AppGwSslPolicy20170401S"
+)
+
+// PossibleApplicationGatewaySslPolicyNameValues returns an array of possible values for the ApplicationGatewaySslPolicyName const type.
+func PossibleApplicationGatewaySslPolicyNameValues() []ApplicationGatewaySslPolicyName {
+ return []ApplicationGatewaySslPolicyName{AppGwSslPolicy20150501, AppGwSslPolicy20170401, AppGwSslPolicy20170401S}
+}
+
+// ApplicationGatewaySslPolicyType enumerates the values for application gateway ssl policy type.
+type ApplicationGatewaySslPolicyType string
+
+const (
+ // Custom ...
+ Custom ApplicationGatewaySslPolicyType = "Custom"
+ // Predefined ...
+ Predefined ApplicationGatewaySslPolicyType = "Predefined"
+)
+
+// PossibleApplicationGatewaySslPolicyTypeValues returns an array of possible values for the ApplicationGatewaySslPolicyType const type.
+func PossibleApplicationGatewaySslPolicyTypeValues() []ApplicationGatewaySslPolicyType {
+ return []ApplicationGatewaySslPolicyType{Custom, Predefined}
+}
+
+// ApplicationGatewaySslProtocol enumerates the values for application gateway ssl protocol.
+type ApplicationGatewaySslProtocol string
+
+const (
+ // TLSv10 ...
+ TLSv10 ApplicationGatewaySslProtocol = "TLSv1_0"
+ // TLSv11 ...
+ TLSv11 ApplicationGatewaySslProtocol = "TLSv1_1"
+ // TLSv12 ...
+ TLSv12 ApplicationGatewaySslProtocol = "TLSv1_2"
+)
+
+// PossibleApplicationGatewaySslProtocolValues returns an array of possible values for the ApplicationGatewaySslProtocol const type.
+func PossibleApplicationGatewaySslProtocolValues() []ApplicationGatewaySslProtocol {
+ return []ApplicationGatewaySslProtocol{TLSv10, TLSv11, TLSv12}
+}
+
+// ApplicationGatewayTier enumerates the values for application gateway tier.
+type ApplicationGatewayTier string
+
+const (
+ // ApplicationGatewayTierStandard ...
+ ApplicationGatewayTierStandard ApplicationGatewayTier = "Standard"
+ // ApplicationGatewayTierStandardV2 ...
+ ApplicationGatewayTierStandardV2 ApplicationGatewayTier = "Standard_v2"
+ // ApplicationGatewayTierWAF ...
+ ApplicationGatewayTierWAF ApplicationGatewayTier = "WAF"
+ // ApplicationGatewayTierWAFV2 ...
+ ApplicationGatewayTierWAFV2 ApplicationGatewayTier = "WAF_v2"
+)
+
+// PossibleApplicationGatewayTierValues returns an array of possible values for the ApplicationGatewayTier const type.
+func PossibleApplicationGatewayTierValues() []ApplicationGatewayTier {
+ return []ApplicationGatewayTier{ApplicationGatewayTierStandard, ApplicationGatewayTierStandardV2, ApplicationGatewayTierWAF, ApplicationGatewayTierWAFV2}
+}
+
+// AssociationType enumerates the values for association type.
+type AssociationType string
+
+const (
+ // Associated ...
+ Associated AssociationType = "Associated"
+ // Contains ...
+ Contains AssociationType = "Contains"
+)
+
+// PossibleAssociationTypeValues returns an array of possible values for the AssociationType const type.
+func PossibleAssociationTypeValues() []AssociationType {
+ return []AssociationType{Associated, Contains}
+}
+
+// AuthenticationMethod enumerates the values for authentication method.
+type AuthenticationMethod string
+
+const (
+ // EAPMSCHAPv2 ...
+ EAPMSCHAPv2 AuthenticationMethod = "EAPMSCHAPv2"
+ // EAPTLS ...
+ EAPTLS AuthenticationMethod = "EAPTLS"
+)
+
+// PossibleAuthenticationMethodValues returns an array of possible values for the AuthenticationMethod const type.
+func PossibleAuthenticationMethodValues() []AuthenticationMethod {
+ return []AuthenticationMethod{EAPMSCHAPv2, EAPTLS}
+}
+
+// AuthorizationUseStatus enumerates the values for authorization use status.
+type AuthorizationUseStatus string
+
+const (
+ // Available ...
+ Available AuthorizationUseStatus = "Available"
+ // InUse ...
+ InUse AuthorizationUseStatus = "InUse"
+)
+
+// PossibleAuthorizationUseStatusValues returns an array of possible values for the AuthorizationUseStatus const type.
+func PossibleAuthorizationUseStatusValues() []AuthorizationUseStatus {
+ return []AuthorizationUseStatus{Available, InUse}
+}
+
+// AzureFirewallApplicationRuleProtocolType enumerates the values for azure firewall application rule protocol
+// type.
+type AzureFirewallApplicationRuleProtocolType string
+
+const (
+ // AzureFirewallApplicationRuleProtocolTypeHTTP ...
+ AzureFirewallApplicationRuleProtocolTypeHTTP AzureFirewallApplicationRuleProtocolType = "Http"
+ // AzureFirewallApplicationRuleProtocolTypeHTTPS ...
+ AzureFirewallApplicationRuleProtocolTypeHTTPS AzureFirewallApplicationRuleProtocolType = "Https"
+ // AzureFirewallApplicationRuleProtocolTypeMssql ...
+ AzureFirewallApplicationRuleProtocolTypeMssql AzureFirewallApplicationRuleProtocolType = "Mssql"
+)
+
+// PossibleAzureFirewallApplicationRuleProtocolTypeValues returns an array of possible values for the AzureFirewallApplicationRuleProtocolType const type.
+func PossibleAzureFirewallApplicationRuleProtocolTypeValues() []AzureFirewallApplicationRuleProtocolType {
+ return []AzureFirewallApplicationRuleProtocolType{AzureFirewallApplicationRuleProtocolTypeHTTP, AzureFirewallApplicationRuleProtocolTypeHTTPS, AzureFirewallApplicationRuleProtocolTypeMssql}
+}
+
+// AzureFirewallNatRCActionType enumerates the values for azure firewall nat rc action type.
+type AzureFirewallNatRCActionType string
+
+const (
+ // Dnat ...
+ Dnat AzureFirewallNatRCActionType = "Dnat"
+ // Snat ...
+ Snat AzureFirewallNatRCActionType = "Snat"
+)
+
+// PossibleAzureFirewallNatRCActionTypeValues returns an array of possible values for the AzureFirewallNatRCActionType const type.
+func PossibleAzureFirewallNatRCActionTypeValues() []AzureFirewallNatRCActionType {
+ return []AzureFirewallNatRCActionType{Dnat, Snat}
+}
+
+// AzureFirewallNetworkRuleProtocol enumerates the values for azure firewall network rule protocol.
+type AzureFirewallNetworkRuleProtocol string
+
+const (
+ // Any ...
+ Any AzureFirewallNetworkRuleProtocol = "Any"
+ // ICMP ...
+ ICMP AzureFirewallNetworkRuleProtocol = "ICMP"
+ // TCP ...
+ TCP AzureFirewallNetworkRuleProtocol = "TCP"
+ // UDP ...
+ UDP AzureFirewallNetworkRuleProtocol = "UDP"
+)
+
+// PossibleAzureFirewallNetworkRuleProtocolValues returns an array of possible values for the AzureFirewallNetworkRuleProtocol const type.
+func PossibleAzureFirewallNetworkRuleProtocolValues() []AzureFirewallNetworkRuleProtocol {
+ return []AzureFirewallNetworkRuleProtocol{Any, ICMP, TCP, UDP}
+}
+
+// AzureFirewallRCActionType enumerates the values for azure firewall rc action type.
+type AzureFirewallRCActionType string
+
+const (
+ // AzureFirewallRCActionTypeAllow ...
+ AzureFirewallRCActionTypeAllow AzureFirewallRCActionType = "Allow"
+ // AzureFirewallRCActionTypeDeny ...
+ AzureFirewallRCActionTypeDeny AzureFirewallRCActionType = "Deny"
+)
+
+// PossibleAzureFirewallRCActionTypeValues returns an array of possible values for the AzureFirewallRCActionType const type.
+func PossibleAzureFirewallRCActionTypeValues() []AzureFirewallRCActionType {
+ return []AzureFirewallRCActionType{AzureFirewallRCActionTypeAllow, AzureFirewallRCActionTypeDeny}
+}
+
+// AzureFirewallSkuName enumerates the values for azure firewall sku name.
+type AzureFirewallSkuName string
+
+const (
+ // AZFWHub ...
+ AZFWHub AzureFirewallSkuName = "AZFW_Hub"
+ // AZFWVNet ...
+ AZFWVNet AzureFirewallSkuName = "AZFW_VNet"
+)
+
+// PossibleAzureFirewallSkuNameValues returns an array of possible values for the AzureFirewallSkuName const type.
+func PossibleAzureFirewallSkuNameValues() []AzureFirewallSkuName {
+ return []AzureFirewallSkuName{AZFWHub, AZFWVNet}
+}
+
+// AzureFirewallSkuTier enumerates the values for azure firewall sku tier.
+type AzureFirewallSkuTier string
+
+const (
+ // Standard ...
+ Standard AzureFirewallSkuTier = "Standard"
+)
+
+// PossibleAzureFirewallSkuTierValues returns an array of possible values for the AzureFirewallSkuTier const type.
+func PossibleAzureFirewallSkuTierValues() []AzureFirewallSkuTier {
+ return []AzureFirewallSkuTier{Standard}
+}
+
+// AzureFirewallThreatIntelMode enumerates the values for azure firewall threat intel mode.
+type AzureFirewallThreatIntelMode string
+
+const (
+ // AzureFirewallThreatIntelModeAlert ...
+ AzureFirewallThreatIntelModeAlert AzureFirewallThreatIntelMode = "Alert"
+ // AzureFirewallThreatIntelModeDeny ...
+ AzureFirewallThreatIntelModeDeny AzureFirewallThreatIntelMode = "Deny"
+ // AzureFirewallThreatIntelModeOff ...
+ AzureFirewallThreatIntelModeOff AzureFirewallThreatIntelMode = "Off"
+)
+
+// PossibleAzureFirewallThreatIntelModeValues returns an array of possible values for the AzureFirewallThreatIntelMode const type.
+func PossibleAzureFirewallThreatIntelModeValues() []AzureFirewallThreatIntelMode {
+ return []AzureFirewallThreatIntelMode{AzureFirewallThreatIntelModeAlert, AzureFirewallThreatIntelModeDeny, AzureFirewallThreatIntelModeOff}
+}
+
+// BastionConnectProtocol enumerates the values for bastion connect protocol.
+type BastionConnectProtocol string
+
+const (
+ // RDP ...
+ RDP BastionConnectProtocol = "RDP"
+ // SSH ...
+ SSH BastionConnectProtocol = "SSH"
+)
+
+// PossibleBastionConnectProtocolValues returns an array of possible values for the BastionConnectProtocol const type.
+func PossibleBastionConnectProtocolValues() []BastionConnectProtocol {
+ return []BastionConnectProtocol{RDP, SSH}
+}
+
+// BgpPeerState enumerates the values for bgp peer state.
+type BgpPeerState string
+
+const (
+ // BgpPeerStateConnected ...
+ BgpPeerStateConnected BgpPeerState = "Connected"
+ // BgpPeerStateConnecting ...
+ BgpPeerStateConnecting BgpPeerState = "Connecting"
+ // BgpPeerStateIdle ...
+ BgpPeerStateIdle BgpPeerState = "Idle"
+ // BgpPeerStateStopped ...
+ BgpPeerStateStopped BgpPeerState = "Stopped"
+ // BgpPeerStateUnknown ...
+ BgpPeerStateUnknown BgpPeerState = "Unknown"
+)
+
+// PossibleBgpPeerStateValues returns an array of possible values for the BgpPeerState const type.
+func PossibleBgpPeerStateValues() []BgpPeerState {
+ return []BgpPeerState{BgpPeerStateConnected, BgpPeerStateConnecting, BgpPeerStateIdle, BgpPeerStateStopped, BgpPeerStateUnknown}
+}
+
+// CircuitConnectionStatus enumerates the values for circuit connection status.
+type CircuitConnectionStatus string
+
+const (
+ // Connected ...
+ Connected CircuitConnectionStatus = "Connected"
+ // Connecting ...
+ Connecting CircuitConnectionStatus = "Connecting"
+ // Disconnected ...
+ Disconnected CircuitConnectionStatus = "Disconnected"
+)
+
+// PossibleCircuitConnectionStatusValues returns an array of possible values for the CircuitConnectionStatus const type.
+func PossibleCircuitConnectionStatusValues() []CircuitConnectionStatus {
+ return []CircuitConnectionStatus{Connected, Connecting, Disconnected}
+}
+
+// ConnectionMonitorEndpointFilterItemType enumerates the values for connection monitor endpoint filter item
+// type.
+type ConnectionMonitorEndpointFilterItemType string
+
+const (
+ // AgentAddress ...
+ AgentAddress ConnectionMonitorEndpointFilterItemType = "AgentAddress"
+)
+
+// PossibleConnectionMonitorEndpointFilterItemTypeValues returns an array of possible values for the ConnectionMonitorEndpointFilterItemType const type.
+func PossibleConnectionMonitorEndpointFilterItemTypeValues() []ConnectionMonitorEndpointFilterItemType {
+ return []ConnectionMonitorEndpointFilterItemType{AgentAddress}
+}
+
+// ConnectionMonitorEndpointFilterType enumerates the values for connection monitor endpoint filter type.
+type ConnectionMonitorEndpointFilterType string
+
+const (
+ // Include ...
+ Include ConnectionMonitorEndpointFilterType = "Include"
+)
+
+// PossibleConnectionMonitorEndpointFilterTypeValues returns an array of possible values for the ConnectionMonitorEndpointFilterType const type.
+func PossibleConnectionMonitorEndpointFilterTypeValues() []ConnectionMonitorEndpointFilterType {
+ return []ConnectionMonitorEndpointFilterType{Include}
+}
+
+// ConnectionMonitorSourceStatus enumerates the values for connection monitor source status.
+type ConnectionMonitorSourceStatus string
+
+const (
+ // ConnectionMonitorSourceStatusActive ...
+ ConnectionMonitorSourceStatusActive ConnectionMonitorSourceStatus = "Active"
+ // ConnectionMonitorSourceStatusInactive ...
+ ConnectionMonitorSourceStatusInactive ConnectionMonitorSourceStatus = "Inactive"
+ // ConnectionMonitorSourceStatusUnknown ...
+ ConnectionMonitorSourceStatusUnknown ConnectionMonitorSourceStatus = "Unknown"
+)
+
+// PossibleConnectionMonitorSourceStatusValues returns an array of possible values for the ConnectionMonitorSourceStatus const type.
+func PossibleConnectionMonitorSourceStatusValues() []ConnectionMonitorSourceStatus {
+ return []ConnectionMonitorSourceStatus{ConnectionMonitorSourceStatusActive, ConnectionMonitorSourceStatusInactive, ConnectionMonitorSourceStatusUnknown}
+}
+
+// ConnectionMonitorTestConfigurationProtocol enumerates the values for connection monitor test configuration
+// protocol.
+type ConnectionMonitorTestConfigurationProtocol string
+
+const (
+ // ConnectionMonitorTestConfigurationProtocolHTTP ...
+ ConnectionMonitorTestConfigurationProtocolHTTP ConnectionMonitorTestConfigurationProtocol = "Http"
+ // ConnectionMonitorTestConfigurationProtocolIcmp ...
+ ConnectionMonitorTestConfigurationProtocolIcmp ConnectionMonitorTestConfigurationProtocol = "Icmp"
+ // ConnectionMonitorTestConfigurationProtocolTCP ...
+ ConnectionMonitorTestConfigurationProtocolTCP ConnectionMonitorTestConfigurationProtocol = "Tcp"
+)
+
+// PossibleConnectionMonitorTestConfigurationProtocolValues returns an array of possible values for the ConnectionMonitorTestConfigurationProtocol const type.
+func PossibleConnectionMonitorTestConfigurationProtocolValues() []ConnectionMonitorTestConfigurationProtocol {
+ return []ConnectionMonitorTestConfigurationProtocol{ConnectionMonitorTestConfigurationProtocolHTTP, ConnectionMonitorTestConfigurationProtocolIcmp, ConnectionMonitorTestConfigurationProtocolTCP}
+}
+
+// ConnectionMonitorType enumerates the values for connection monitor type.
+type ConnectionMonitorType string
+
+const (
+ // MultiEndpoint ...
+ MultiEndpoint ConnectionMonitorType = "MultiEndpoint"
+ // SingleSourceDestination ...
+ SingleSourceDestination ConnectionMonitorType = "SingleSourceDestination"
+)
+
+// PossibleConnectionMonitorTypeValues returns an array of possible values for the ConnectionMonitorType const type.
+func PossibleConnectionMonitorTypeValues() []ConnectionMonitorType {
+ return []ConnectionMonitorType{MultiEndpoint, SingleSourceDestination}
+}
+
+// ConnectionState enumerates the values for connection state.
+type ConnectionState string
+
+const (
+ // ConnectionStateReachable ...
+ ConnectionStateReachable ConnectionState = "Reachable"
+ // ConnectionStateUnknown ...
+ ConnectionStateUnknown ConnectionState = "Unknown"
+ // ConnectionStateUnreachable ...
+ ConnectionStateUnreachable ConnectionState = "Unreachable"
+)
+
+// PossibleConnectionStateValues returns an array of possible values for the ConnectionState const type.
+func PossibleConnectionStateValues() []ConnectionState {
+ return []ConnectionState{ConnectionStateReachable, ConnectionStateUnknown, ConnectionStateUnreachable}
+}
+
+// ConnectionStatus enumerates the values for connection status.
+type ConnectionStatus string
+
+const (
+ // ConnectionStatusConnected ...
+ ConnectionStatusConnected ConnectionStatus = "Connected"
+ // ConnectionStatusDegraded ...
+ ConnectionStatusDegraded ConnectionStatus = "Degraded"
+ // ConnectionStatusDisconnected ...
+ ConnectionStatusDisconnected ConnectionStatus = "Disconnected"
+ // ConnectionStatusUnknown ...
+ ConnectionStatusUnknown ConnectionStatus = "Unknown"
+)
+
+// PossibleConnectionStatusValues returns an array of possible values for the ConnectionStatus const type.
+func PossibleConnectionStatusValues() []ConnectionStatus {
+ return []ConnectionStatus{ConnectionStatusConnected, ConnectionStatusDegraded, ConnectionStatusDisconnected, ConnectionStatusUnknown}
+}
+
+// DdosCustomPolicyProtocol enumerates the values for ddos custom policy protocol.
+type DdosCustomPolicyProtocol string
+
+const (
+ // DdosCustomPolicyProtocolSyn ...
+ DdosCustomPolicyProtocolSyn DdosCustomPolicyProtocol = "Syn"
+ // DdosCustomPolicyProtocolTCP ...
+ DdosCustomPolicyProtocolTCP DdosCustomPolicyProtocol = "Tcp"
+ // DdosCustomPolicyProtocolUDP ...
+ DdosCustomPolicyProtocolUDP DdosCustomPolicyProtocol = "Udp"
+)
+
+// PossibleDdosCustomPolicyProtocolValues returns an array of possible values for the DdosCustomPolicyProtocol const type.
+func PossibleDdosCustomPolicyProtocolValues() []DdosCustomPolicyProtocol {
+ return []DdosCustomPolicyProtocol{DdosCustomPolicyProtocolSyn, DdosCustomPolicyProtocolTCP, DdosCustomPolicyProtocolUDP}
+}
+
+// DdosCustomPolicyTriggerSensitivityOverride enumerates the values for ddos custom policy trigger sensitivity
+// override.
+type DdosCustomPolicyTriggerSensitivityOverride string
+
+const (
+ // Default ...
+ Default DdosCustomPolicyTriggerSensitivityOverride = "Default"
+ // High ...
+ High DdosCustomPolicyTriggerSensitivityOverride = "High"
+ // Low ...
+ Low DdosCustomPolicyTriggerSensitivityOverride = "Low"
+ // Relaxed ...
+ Relaxed DdosCustomPolicyTriggerSensitivityOverride = "Relaxed"
+)
+
+// PossibleDdosCustomPolicyTriggerSensitivityOverrideValues returns an array of possible values for the DdosCustomPolicyTriggerSensitivityOverride const type.
+func PossibleDdosCustomPolicyTriggerSensitivityOverrideValues() []DdosCustomPolicyTriggerSensitivityOverride {
+ return []DdosCustomPolicyTriggerSensitivityOverride{Default, High, Low, Relaxed}
+}
+
+// DdosSettingsProtectionCoverage enumerates the values for ddos settings protection coverage.
+type DdosSettingsProtectionCoverage string
+
+const (
+ // DdosSettingsProtectionCoverageBasic ...
+ DdosSettingsProtectionCoverageBasic DdosSettingsProtectionCoverage = "Basic"
+ // DdosSettingsProtectionCoverageStandard ...
+ DdosSettingsProtectionCoverageStandard DdosSettingsProtectionCoverage = "Standard"
+)
+
+// PossibleDdosSettingsProtectionCoverageValues returns an array of possible values for the DdosSettingsProtectionCoverage const type.
+func PossibleDdosSettingsProtectionCoverageValues() []DdosSettingsProtectionCoverage {
+ return []DdosSettingsProtectionCoverage{DdosSettingsProtectionCoverageBasic, DdosSettingsProtectionCoverageStandard}
+}
+
+// DhGroup enumerates the values for dh group.
+type DhGroup string
+
+const (
+ // DHGroup1 ...
+ DHGroup1 DhGroup = "DHGroup1"
+ // DHGroup14 ...
+ DHGroup14 DhGroup = "DHGroup14"
+ // DHGroup2 ...
+ DHGroup2 DhGroup = "DHGroup2"
+ // DHGroup2048 ...
+ DHGroup2048 DhGroup = "DHGroup2048"
+ // DHGroup24 ...
+ DHGroup24 DhGroup = "DHGroup24"
+ // ECP256 ...
+ ECP256 DhGroup = "ECP256"
+ // ECP384 ...
+ ECP384 DhGroup = "ECP384"
+ // None ...
+ None DhGroup = "None"
+)
+
+// PossibleDhGroupValues returns an array of possible values for the DhGroup const type.
+func PossibleDhGroupValues() []DhGroup {
+ return []DhGroup{DHGroup1, DHGroup14, DHGroup2, DHGroup2048, DHGroup24, ECP256, ECP384, None}
+}
+
+// Direction enumerates the values for direction.
+type Direction string
+
+const (
+ // Inbound ...
+ Inbound Direction = "Inbound"
+ // Outbound ...
+ Outbound Direction = "Outbound"
+)
+
+// PossibleDirectionValues returns an array of possible values for the Direction const type.
+func PossibleDirectionValues() []Direction {
+ return []Direction{Inbound, Outbound}
+}
+
+// EffectiveRouteSource enumerates the values for effective route source.
+type EffectiveRouteSource string
+
+const (
+ // EffectiveRouteSourceDefault ...
+ EffectiveRouteSourceDefault EffectiveRouteSource = "Default"
+ // EffectiveRouteSourceUnknown ...
+ EffectiveRouteSourceUnknown EffectiveRouteSource = "Unknown"
+ // EffectiveRouteSourceUser ...
+ EffectiveRouteSourceUser EffectiveRouteSource = "User"
+ // EffectiveRouteSourceVirtualNetworkGateway ...
+ EffectiveRouteSourceVirtualNetworkGateway EffectiveRouteSource = "VirtualNetworkGateway"
+)
+
+// PossibleEffectiveRouteSourceValues returns an array of possible values for the EffectiveRouteSource const type.
+func PossibleEffectiveRouteSourceValues() []EffectiveRouteSource {
+ return []EffectiveRouteSource{EffectiveRouteSourceDefault, EffectiveRouteSourceUnknown, EffectiveRouteSourceUser, EffectiveRouteSourceVirtualNetworkGateway}
+}
+
+// EffectiveRouteState enumerates the values for effective route state.
+type EffectiveRouteState string
+
+const (
+ // Active ...
+ Active EffectiveRouteState = "Active"
+ // Invalid ...
+ Invalid EffectiveRouteState = "Invalid"
+)
+
+// PossibleEffectiveRouteStateValues returns an array of possible values for the EffectiveRouteState const type.
+func PossibleEffectiveRouteStateValues() []EffectiveRouteState {
+ return []EffectiveRouteState{Active, Invalid}
+}
+
+// EffectiveSecurityRuleProtocol enumerates the values for effective security rule protocol.
+type EffectiveSecurityRuleProtocol string
+
+const (
+ // EffectiveSecurityRuleProtocolAll ...
+ EffectiveSecurityRuleProtocolAll EffectiveSecurityRuleProtocol = "All"
+ // EffectiveSecurityRuleProtocolTCP ...
+ EffectiveSecurityRuleProtocolTCP EffectiveSecurityRuleProtocol = "Tcp"
+ // EffectiveSecurityRuleProtocolUDP ...
+ EffectiveSecurityRuleProtocolUDP EffectiveSecurityRuleProtocol = "Udp"
+)
+
+// PossibleEffectiveSecurityRuleProtocolValues returns an array of possible values for the EffectiveSecurityRuleProtocol const type.
+func PossibleEffectiveSecurityRuleProtocolValues() []EffectiveSecurityRuleProtocol {
+ return []EffectiveSecurityRuleProtocol{EffectiveSecurityRuleProtocolAll, EffectiveSecurityRuleProtocolTCP, EffectiveSecurityRuleProtocolUDP}
+}
+
+// EvaluationState enumerates the values for evaluation state.
+type EvaluationState string
+
+const (
+ // Completed ...
+ Completed EvaluationState = "Completed"
+ // InProgress ...
+ InProgress EvaluationState = "InProgress"
+ // NotStarted ...
+ NotStarted EvaluationState = "NotStarted"
+)
+
+// PossibleEvaluationStateValues returns an array of possible values for the EvaluationState const type.
+func PossibleEvaluationStateValues() []EvaluationState {
+ return []EvaluationState{Completed, InProgress, NotStarted}
+}
+
+// ExpressRouteCircuitPeeringAdvertisedPublicPrefixState enumerates the values for express route circuit
+// peering advertised public prefix state.
+type ExpressRouteCircuitPeeringAdvertisedPublicPrefixState string
+
+const (
+ // Configured ...
+ Configured ExpressRouteCircuitPeeringAdvertisedPublicPrefixState = "Configured"
+ // Configuring ...
+ Configuring ExpressRouteCircuitPeeringAdvertisedPublicPrefixState = "Configuring"
+ // NotConfigured ...
+ NotConfigured ExpressRouteCircuitPeeringAdvertisedPublicPrefixState = "NotConfigured"
+ // ValidationNeeded ...
+ ValidationNeeded ExpressRouteCircuitPeeringAdvertisedPublicPrefixState = "ValidationNeeded"
+)
+
+// PossibleExpressRouteCircuitPeeringAdvertisedPublicPrefixStateValues returns an array of possible values for the ExpressRouteCircuitPeeringAdvertisedPublicPrefixState const type.
+func PossibleExpressRouteCircuitPeeringAdvertisedPublicPrefixStateValues() []ExpressRouteCircuitPeeringAdvertisedPublicPrefixState {
+ return []ExpressRouteCircuitPeeringAdvertisedPublicPrefixState{Configured, Configuring, NotConfigured, ValidationNeeded}
+}
+
+// ExpressRouteCircuitPeeringState enumerates the values for express route circuit peering state.
+type ExpressRouteCircuitPeeringState string
+
+const (
+ // ExpressRouteCircuitPeeringStateDisabled ...
+ ExpressRouteCircuitPeeringStateDisabled ExpressRouteCircuitPeeringState = "Disabled"
+ // ExpressRouteCircuitPeeringStateEnabled ...
+ ExpressRouteCircuitPeeringStateEnabled ExpressRouteCircuitPeeringState = "Enabled"
+)
+
+// PossibleExpressRouteCircuitPeeringStateValues returns an array of possible values for the ExpressRouteCircuitPeeringState const type.
+func PossibleExpressRouteCircuitPeeringStateValues() []ExpressRouteCircuitPeeringState {
+ return []ExpressRouteCircuitPeeringState{ExpressRouteCircuitPeeringStateDisabled, ExpressRouteCircuitPeeringStateEnabled}
+}
+
+// ExpressRouteCircuitSkuFamily enumerates the values for express route circuit sku family.
+type ExpressRouteCircuitSkuFamily string
+
+const (
+ // MeteredData ...
+ MeteredData ExpressRouteCircuitSkuFamily = "MeteredData"
+ // UnlimitedData ...
+ UnlimitedData ExpressRouteCircuitSkuFamily = "UnlimitedData"
+)
+
+// PossibleExpressRouteCircuitSkuFamilyValues returns an array of possible values for the ExpressRouteCircuitSkuFamily const type.
+func PossibleExpressRouteCircuitSkuFamilyValues() []ExpressRouteCircuitSkuFamily {
+ return []ExpressRouteCircuitSkuFamily{MeteredData, UnlimitedData}
+}
+
+// ExpressRouteCircuitSkuTier enumerates the values for express route circuit sku tier.
+type ExpressRouteCircuitSkuTier string
+
+const (
+ // ExpressRouteCircuitSkuTierBasic ...
+ ExpressRouteCircuitSkuTierBasic ExpressRouteCircuitSkuTier = "Basic"
+ // ExpressRouteCircuitSkuTierLocal ...
+ ExpressRouteCircuitSkuTierLocal ExpressRouteCircuitSkuTier = "Local"
+ // ExpressRouteCircuitSkuTierPremium ...
+ ExpressRouteCircuitSkuTierPremium ExpressRouteCircuitSkuTier = "Premium"
+ // ExpressRouteCircuitSkuTierStandard ...
+ ExpressRouteCircuitSkuTierStandard ExpressRouteCircuitSkuTier = "Standard"
+)
+
+// PossibleExpressRouteCircuitSkuTierValues returns an array of possible values for the ExpressRouteCircuitSkuTier const type.
+func PossibleExpressRouteCircuitSkuTierValues() []ExpressRouteCircuitSkuTier {
+ return []ExpressRouteCircuitSkuTier{ExpressRouteCircuitSkuTierBasic, ExpressRouteCircuitSkuTierLocal, ExpressRouteCircuitSkuTierPremium, ExpressRouteCircuitSkuTierStandard}
+}
+
+// ExpressRouteLinkAdminState enumerates the values for express route link admin state.
+type ExpressRouteLinkAdminState string
+
+const (
+ // ExpressRouteLinkAdminStateDisabled ...
+ ExpressRouteLinkAdminStateDisabled ExpressRouteLinkAdminState = "Disabled"
+ // ExpressRouteLinkAdminStateEnabled ...
+ ExpressRouteLinkAdminStateEnabled ExpressRouteLinkAdminState = "Enabled"
+)
+
+// PossibleExpressRouteLinkAdminStateValues returns an array of possible values for the ExpressRouteLinkAdminState const type.
+func PossibleExpressRouteLinkAdminStateValues() []ExpressRouteLinkAdminState {
+ return []ExpressRouteLinkAdminState{ExpressRouteLinkAdminStateDisabled, ExpressRouteLinkAdminStateEnabled}
+}
+
+// ExpressRouteLinkConnectorType enumerates the values for express route link connector type.
+type ExpressRouteLinkConnectorType string
+
+const (
+ // LC ...
+ LC ExpressRouteLinkConnectorType = "LC"
+ // SC ...
+ SC ExpressRouteLinkConnectorType = "SC"
+)
+
+// PossibleExpressRouteLinkConnectorTypeValues returns an array of possible values for the ExpressRouteLinkConnectorType const type.
+func PossibleExpressRouteLinkConnectorTypeValues() []ExpressRouteLinkConnectorType {
+ return []ExpressRouteLinkConnectorType{LC, SC}
+}
+
+// ExpressRouteLinkMacSecCipher enumerates the values for express route link mac sec cipher.
+type ExpressRouteLinkMacSecCipher string
+
+const (
+ // GcmAes128 ...
+ GcmAes128 ExpressRouteLinkMacSecCipher = "gcm-aes-128"
+ // GcmAes256 ...
+ GcmAes256 ExpressRouteLinkMacSecCipher = "gcm-aes-256"
+)
+
+// PossibleExpressRouteLinkMacSecCipherValues returns an array of possible values for the ExpressRouteLinkMacSecCipher const type.
+func PossibleExpressRouteLinkMacSecCipherValues() []ExpressRouteLinkMacSecCipher {
+ return []ExpressRouteLinkMacSecCipher{GcmAes128, GcmAes256}
+}
+
+// ExpressRoutePeeringState enumerates the values for express route peering state.
+type ExpressRoutePeeringState string
+
+const (
+ // ExpressRoutePeeringStateDisabled ...
+ ExpressRoutePeeringStateDisabled ExpressRoutePeeringState = "Disabled"
+ // ExpressRoutePeeringStateEnabled ...
+ ExpressRoutePeeringStateEnabled ExpressRoutePeeringState = "Enabled"
+)
+
+// PossibleExpressRoutePeeringStateValues returns an array of possible values for the ExpressRoutePeeringState const type.
+func PossibleExpressRoutePeeringStateValues() []ExpressRoutePeeringState {
+ return []ExpressRoutePeeringState{ExpressRoutePeeringStateDisabled, ExpressRoutePeeringStateEnabled}
+}
+
+// ExpressRoutePeeringType enumerates the values for express route peering type.
+type ExpressRoutePeeringType string
+
+const (
+ // AzurePrivatePeering ...
+ AzurePrivatePeering ExpressRoutePeeringType = "AzurePrivatePeering"
+ // AzurePublicPeering ...
+ AzurePublicPeering ExpressRoutePeeringType = "AzurePublicPeering"
+ // MicrosoftPeering ...
+ MicrosoftPeering ExpressRoutePeeringType = "MicrosoftPeering"
+)
+
+// PossibleExpressRoutePeeringTypeValues returns an array of possible values for the ExpressRoutePeeringType const type.
+func PossibleExpressRoutePeeringTypeValues() []ExpressRoutePeeringType {
+ return []ExpressRoutePeeringType{AzurePrivatePeering, AzurePublicPeering, MicrosoftPeering}
+}
+
+// ExpressRoutePortsEncapsulation enumerates the values for express route ports encapsulation.
+type ExpressRoutePortsEncapsulation string
+
+const (
+ // Dot1Q ...
+ Dot1Q ExpressRoutePortsEncapsulation = "Dot1Q"
+ // QinQ ...
+ QinQ ExpressRoutePortsEncapsulation = "QinQ"
+)
+
+// PossibleExpressRoutePortsEncapsulationValues returns an array of possible values for the ExpressRoutePortsEncapsulation const type.
+func PossibleExpressRoutePortsEncapsulationValues() []ExpressRoutePortsEncapsulation {
+ return []ExpressRoutePortsEncapsulation{Dot1Q, QinQ}
+}
+
+// FirewallPolicyFilterRuleActionType enumerates the values for firewall policy filter rule action type.
+type FirewallPolicyFilterRuleActionType string
+
+const (
+ // FirewallPolicyFilterRuleActionTypeAllow ...
+ FirewallPolicyFilterRuleActionTypeAllow FirewallPolicyFilterRuleActionType = "Allow"
+ // FirewallPolicyFilterRuleActionTypeDeny ...
+ FirewallPolicyFilterRuleActionTypeDeny FirewallPolicyFilterRuleActionType = "Deny"
+)
+
+// PossibleFirewallPolicyFilterRuleActionTypeValues returns an array of possible values for the FirewallPolicyFilterRuleActionType const type.
+func PossibleFirewallPolicyFilterRuleActionTypeValues() []FirewallPolicyFilterRuleActionType {
+ return []FirewallPolicyFilterRuleActionType{FirewallPolicyFilterRuleActionTypeAllow, FirewallPolicyFilterRuleActionTypeDeny}
+}
+
+// FirewallPolicyNatRuleActionType enumerates the values for firewall policy nat rule action type.
+type FirewallPolicyNatRuleActionType string
+
+const (
+ // DNAT ...
+ DNAT FirewallPolicyNatRuleActionType = "DNAT"
+)
+
+// PossibleFirewallPolicyNatRuleActionTypeValues returns an array of possible values for the FirewallPolicyNatRuleActionType const type.
+func PossibleFirewallPolicyNatRuleActionTypeValues() []FirewallPolicyNatRuleActionType {
+ return []FirewallPolicyNatRuleActionType{DNAT}
+}
+
+// FirewallPolicyRuleConditionApplicationProtocolType enumerates the values for firewall policy rule condition
+// application protocol type.
+type FirewallPolicyRuleConditionApplicationProtocolType string
+
+const (
+ // FirewallPolicyRuleConditionApplicationProtocolTypeHTTP ...
+ FirewallPolicyRuleConditionApplicationProtocolTypeHTTP FirewallPolicyRuleConditionApplicationProtocolType = "Http"
+ // FirewallPolicyRuleConditionApplicationProtocolTypeHTTPS ...
+ FirewallPolicyRuleConditionApplicationProtocolTypeHTTPS FirewallPolicyRuleConditionApplicationProtocolType = "Https"
+)
+
+// PossibleFirewallPolicyRuleConditionApplicationProtocolTypeValues returns an array of possible values for the FirewallPolicyRuleConditionApplicationProtocolType const type.
+func PossibleFirewallPolicyRuleConditionApplicationProtocolTypeValues() []FirewallPolicyRuleConditionApplicationProtocolType {
+ return []FirewallPolicyRuleConditionApplicationProtocolType{FirewallPolicyRuleConditionApplicationProtocolTypeHTTP, FirewallPolicyRuleConditionApplicationProtocolTypeHTTPS}
+}
+
+// FirewallPolicyRuleConditionNetworkProtocol enumerates the values for firewall policy rule condition network
+// protocol.
+type FirewallPolicyRuleConditionNetworkProtocol string
+
+const (
+ // FirewallPolicyRuleConditionNetworkProtocolAny ...
+ FirewallPolicyRuleConditionNetworkProtocolAny FirewallPolicyRuleConditionNetworkProtocol = "Any"
+ // FirewallPolicyRuleConditionNetworkProtocolICMP ...
+ FirewallPolicyRuleConditionNetworkProtocolICMP FirewallPolicyRuleConditionNetworkProtocol = "ICMP"
+ // FirewallPolicyRuleConditionNetworkProtocolTCP ...
+ FirewallPolicyRuleConditionNetworkProtocolTCP FirewallPolicyRuleConditionNetworkProtocol = "TCP"
+ // FirewallPolicyRuleConditionNetworkProtocolUDP ...
+ FirewallPolicyRuleConditionNetworkProtocolUDP FirewallPolicyRuleConditionNetworkProtocol = "UDP"
+)
+
+// PossibleFirewallPolicyRuleConditionNetworkProtocolValues returns an array of possible values for the FirewallPolicyRuleConditionNetworkProtocol const type.
+func PossibleFirewallPolicyRuleConditionNetworkProtocolValues() []FirewallPolicyRuleConditionNetworkProtocol {
+ return []FirewallPolicyRuleConditionNetworkProtocol{FirewallPolicyRuleConditionNetworkProtocolAny, FirewallPolicyRuleConditionNetworkProtocolICMP, FirewallPolicyRuleConditionNetworkProtocolTCP, FirewallPolicyRuleConditionNetworkProtocolUDP}
+}
+
+// FlowLogFormatType enumerates the values for flow log format type.
+type FlowLogFormatType string
+
+const (
+ // JSON ...
+ JSON FlowLogFormatType = "JSON"
+)
+
+// PossibleFlowLogFormatTypeValues returns an array of possible values for the FlowLogFormatType const type.
+func PossibleFlowLogFormatTypeValues() []FlowLogFormatType {
+ return []FlowLogFormatType{JSON}
+}
+
+// HTTPConfigurationMethod enumerates the values for http configuration method.
+type HTTPConfigurationMethod string
+
+const (
+ // Get ...
+ Get HTTPConfigurationMethod = "Get"
+ // Post ...
+ Post HTTPConfigurationMethod = "Post"
+)
+
+// PossibleHTTPConfigurationMethodValues returns an array of possible values for the HTTPConfigurationMethod const type.
+func PossibleHTTPConfigurationMethodValues() []HTTPConfigurationMethod {
+ return []HTTPConfigurationMethod{Get, Post}
+}
+
+// HTTPMethod enumerates the values for http method.
+type HTTPMethod string
+
+const (
+ // HTTPMethodGet ...
+ HTTPMethodGet HTTPMethod = "Get"
+)
+
+// PossibleHTTPMethodValues returns an array of possible values for the HTTPMethod const type.
+func PossibleHTTPMethodValues() []HTTPMethod {
+ return []HTTPMethod{HTTPMethodGet}
+}
+
+// HubVirtualNetworkConnectionStatus enumerates the values for hub virtual network connection status.
+type HubVirtualNetworkConnectionStatus string
+
+const (
+ // HubVirtualNetworkConnectionStatusConnected ...
+ HubVirtualNetworkConnectionStatusConnected HubVirtualNetworkConnectionStatus = "Connected"
+ // HubVirtualNetworkConnectionStatusConnecting ...
+ HubVirtualNetworkConnectionStatusConnecting HubVirtualNetworkConnectionStatus = "Connecting"
+ // HubVirtualNetworkConnectionStatusNotConnected ...
+ HubVirtualNetworkConnectionStatusNotConnected HubVirtualNetworkConnectionStatus = "NotConnected"
+ // HubVirtualNetworkConnectionStatusUnknown ...
+ HubVirtualNetworkConnectionStatusUnknown HubVirtualNetworkConnectionStatus = "Unknown"
+)
+
+// PossibleHubVirtualNetworkConnectionStatusValues returns an array of possible values for the HubVirtualNetworkConnectionStatus const type.
+func PossibleHubVirtualNetworkConnectionStatusValues() []HubVirtualNetworkConnectionStatus {
+ return []HubVirtualNetworkConnectionStatus{HubVirtualNetworkConnectionStatusConnected, HubVirtualNetworkConnectionStatusConnecting, HubVirtualNetworkConnectionStatusNotConnected, HubVirtualNetworkConnectionStatusUnknown}
+}
+
+// IkeEncryption enumerates the values for ike encryption.
+type IkeEncryption string
+
+const (
+ // AES128 ...
+ AES128 IkeEncryption = "AES128"
+ // AES192 ...
+ AES192 IkeEncryption = "AES192"
+ // AES256 ...
+ AES256 IkeEncryption = "AES256"
+ // DES ...
+ DES IkeEncryption = "DES"
+ // DES3 ...
+ DES3 IkeEncryption = "DES3"
+ // GCMAES128 ...
+ GCMAES128 IkeEncryption = "GCMAES128"
+ // GCMAES256 ...
+ GCMAES256 IkeEncryption = "GCMAES256"
+)
+
+// PossibleIkeEncryptionValues returns an array of possible values for the IkeEncryption const type.
+func PossibleIkeEncryptionValues() []IkeEncryption {
+ return []IkeEncryption{AES128, AES192, AES256, DES, DES3, GCMAES128, GCMAES256}
+}
+
+// IkeIntegrity enumerates the values for ike integrity.
+type IkeIntegrity string
+
+const (
+ // IkeIntegrityGCMAES128 ...
+ IkeIntegrityGCMAES128 IkeIntegrity = "GCMAES128"
+ // IkeIntegrityGCMAES256 ...
+ IkeIntegrityGCMAES256 IkeIntegrity = "GCMAES256"
+ // IkeIntegrityMD5 ...
+ IkeIntegrityMD5 IkeIntegrity = "MD5"
+ // IkeIntegritySHA1 ...
+ IkeIntegritySHA1 IkeIntegrity = "SHA1"
+ // IkeIntegritySHA256 ...
+ IkeIntegritySHA256 IkeIntegrity = "SHA256"
+ // IkeIntegritySHA384 ...
+ IkeIntegritySHA384 IkeIntegrity = "SHA384"
+)
+
+// PossibleIkeIntegrityValues returns an array of possible values for the IkeIntegrity const type.
+func PossibleIkeIntegrityValues() []IkeIntegrity {
+ return []IkeIntegrity{IkeIntegrityGCMAES128, IkeIntegrityGCMAES256, IkeIntegrityMD5, IkeIntegritySHA1, IkeIntegritySHA256, IkeIntegritySHA384}
+}
+
+// IPAllocationMethod enumerates the values for ip allocation method.
+type IPAllocationMethod string
+
+const (
+ // Dynamic ...
+ Dynamic IPAllocationMethod = "Dynamic"
+ // Static ...
+ Static IPAllocationMethod = "Static"
+)
+
+// PossibleIPAllocationMethodValues returns an array of possible values for the IPAllocationMethod const type.
+func PossibleIPAllocationMethodValues() []IPAllocationMethod {
+ return []IPAllocationMethod{Dynamic, Static}
+}
+
+// IPFlowProtocol enumerates the values for ip flow protocol.
+type IPFlowProtocol string
+
+const (
+ // IPFlowProtocolTCP ...
+ IPFlowProtocolTCP IPFlowProtocol = "TCP"
+ // IPFlowProtocolUDP ...
+ IPFlowProtocolUDP IPFlowProtocol = "UDP"
+)
+
+// PossibleIPFlowProtocolValues returns an array of possible values for the IPFlowProtocol const type.
+func PossibleIPFlowProtocolValues() []IPFlowProtocol {
+ return []IPFlowProtocol{IPFlowProtocolTCP, IPFlowProtocolUDP}
+}
+
+// IpsecEncryption enumerates the values for ipsec encryption.
+type IpsecEncryption string
+
+const (
+ // IpsecEncryptionAES128 ...
+ IpsecEncryptionAES128 IpsecEncryption = "AES128"
+ // IpsecEncryptionAES192 ...
+ IpsecEncryptionAES192 IpsecEncryption = "AES192"
+ // IpsecEncryptionAES256 ...
+ IpsecEncryptionAES256 IpsecEncryption = "AES256"
+ // IpsecEncryptionDES ...
+ IpsecEncryptionDES IpsecEncryption = "DES"
+ // IpsecEncryptionDES3 ...
+ IpsecEncryptionDES3 IpsecEncryption = "DES3"
+ // IpsecEncryptionGCMAES128 ...
+ IpsecEncryptionGCMAES128 IpsecEncryption = "GCMAES128"
+ // IpsecEncryptionGCMAES192 ...
+ IpsecEncryptionGCMAES192 IpsecEncryption = "GCMAES192"
+ // IpsecEncryptionGCMAES256 ...
+ IpsecEncryptionGCMAES256 IpsecEncryption = "GCMAES256"
+ // IpsecEncryptionNone ...
+ IpsecEncryptionNone IpsecEncryption = "None"
+)
+
+// PossibleIpsecEncryptionValues returns an array of possible values for the IpsecEncryption const type.
+func PossibleIpsecEncryptionValues() []IpsecEncryption {
+ return []IpsecEncryption{IpsecEncryptionAES128, IpsecEncryptionAES192, IpsecEncryptionAES256, IpsecEncryptionDES, IpsecEncryptionDES3, IpsecEncryptionGCMAES128, IpsecEncryptionGCMAES192, IpsecEncryptionGCMAES256, IpsecEncryptionNone}
+}
+
+// IpsecIntegrity enumerates the values for ipsec integrity.
+type IpsecIntegrity string
+
+const (
+ // IpsecIntegrityGCMAES128 ...
+ IpsecIntegrityGCMAES128 IpsecIntegrity = "GCMAES128"
+ // IpsecIntegrityGCMAES192 ...
+ IpsecIntegrityGCMAES192 IpsecIntegrity = "GCMAES192"
+ // IpsecIntegrityGCMAES256 ...
+ IpsecIntegrityGCMAES256 IpsecIntegrity = "GCMAES256"
+ // IpsecIntegrityMD5 ...
+ IpsecIntegrityMD5 IpsecIntegrity = "MD5"
+ // IpsecIntegritySHA1 ...
+ IpsecIntegritySHA1 IpsecIntegrity = "SHA1"
+ // IpsecIntegritySHA256 ...
+ IpsecIntegritySHA256 IpsecIntegrity = "SHA256"
+)
+
+// PossibleIpsecIntegrityValues returns an array of possible values for the IpsecIntegrity const type.
+func PossibleIpsecIntegrityValues() []IpsecIntegrity {
+ return []IpsecIntegrity{IpsecIntegrityGCMAES128, IpsecIntegrityGCMAES192, IpsecIntegrityGCMAES256, IpsecIntegrityMD5, IpsecIntegritySHA1, IpsecIntegritySHA256}
+}
+
+// IPVersion enumerates the values for ip version.
+type IPVersion string
+
+const (
+ // IPv4 ...
+ IPv4 IPVersion = "IPv4"
+ // IPv6 ...
+ IPv6 IPVersion = "IPv6"
+)
+
+// PossibleIPVersionValues returns an array of possible values for the IPVersion const type.
+func PossibleIPVersionValues() []IPVersion {
+ return []IPVersion{IPv4, IPv6}
+}
+
+// IssueType enumerates the values for issue type.
+type IssueType string
+
+const (
+ // IssueTypeAgentStopped ...
+ IssueTypeAgentStopped IssueType = "AgentStopped"
+ // IssueTypeDNSResolution ...
+ IssueTypeDNSResolution IssueType = "DnsResolution"
+ // IssueTypeGuestFirewall ...
+ IssueTypeGuestFirewall IssueType = "GuestFirewall"
+ // IssueTypeNetworkSecurityRule ...
+ IssueTypeNetworkSecurityRule IssueType = "NetworkSecurityRule"
+ // IssueTypePlatform ...
+ IssueTypePlatform IssueType = "Platform"
+ // IssueTypePortThrottled ...
+ IssueTypePortThrottled IssueType = "PortThrottled"
+ // IssueTypeSocketBind ...
+ IssueTypeSocketBind IssueType = "SocketBind"
+ // IssueTypeUnknown ...
+ IssueTypeUnknown IssueType = "Unknown"
+ // IssueTypeUserDefinedRoute ...
+ IssueTypeUserDefinedRoute IssueType = "UserDefinedRoute"
+)
+
+// PossibleIssueTypeValues returns an array of possible values for the IssueType const type.
+func PossibleIssueTypeValues() []IssueType {
+ return []IssueType{IssueTypeAgentStopped, IssueTypeDNSResolution, IssueTypeGuestFirewall, IssueTypeNetworkSecurityRule, IssueTypePlatform, IssueTypePortThrottled, IssueTypeSocketBind, IssueTypeUnknown, IssueTypeUserDefinedRoute}
+}
+
+// LoadBalancerOutboundRuleProtocol enumerates the values for load balancer outbound rule protocol.
+type LoadBalancerOutboundRuleProtocol string
+
+const (
+ // LoadBalancerOutboundRuleProtocolAll ...
+ LoadBalancerOutboundRuleProtocolAll LoadBalancerOutboundRuleProtocol = "All"
+ // LoadBalancerOutboundRuleProtocolTCP ...
+ LoadBalancerOutboundRuleProtocolTCP LoadBalancerOutboundRuleProtocol = "Tcp"
+ // LoadBalancerOutboundRuleProtocolUDP ...
+ LoadBalancerOutboundRuleProtocolUDP LoadBalancerOutboundRuleProtocol = "Udp"
+)
+
+// PossibleLoadBalancerOutboundRuleProtocolValues returns an array of possible values for the LoadBalancerOutboundRuleProtocol const type.
+func PossibleLoadBalancerOutboundRuleProtocolValues() []LoadBalancerOutboundRuleProtocol {
+ return []LoadBalancerOutboundRuleProtocol{LoadBalancerOutboundRuleProtocolAll, LoadBalancerOutboundRuleProtocolTCP, LoadBalancerOutboundRuleProtocolUDP}
+}
+
+// LoadBalancerSkuName enumerates the values for load balancer sku name.
+type LoadBalancerSkuName string
+
+const (
+ // LoadBalancerSkuNameBasic ...
+ LoadBalancerSkuNameBasic LoadBalancerSkuName = "Basic"
+ // LoadBalancerSkuNameStandard ...
+ LoadBalancerSkuNameStandard LoadBalancerSkuName = "Standard"
+)
+
+// PossibleLoadBalancerSkuNameValues returns an array of possible values for the LoadBalancerSkuName const type.
+func PossibleLoadBalancerSkuNameValues() []LoadBalancerSkuName {
+ return []LoadBalancerSkuName{LoadBalancerSkuNameBasic, LoadBalancerSkuNameStandard}
+}
+
+// LoadDistribution enumerates the values for load distribution.
+type LoadDistribution string
+
+const (
+ // LoadDistributionDefault ...
+ LoadDistributionDefault LoadDistribution = "Default"
+ // LoadDistributionSourceIP ...
+ LoadDistributionSourceIP LoadDistribution = "SourceIP"
+ // LoadDistributionSourceIPProtocol ...
+ LoadDistributionSourceIPProtocol LoadDistribution = "SourceIPProtocol"
+)
+
+// PossibleLoadDistributionValues returns an array of possible values for the LoadDistribution const type.
+func PossibleLoadDistributionValues() []LoadDistribution {
+ return []LoadDistribution{LoadDistributionDefault, LoadDistributionSourceIP, LoadDistributionSourceIPProtocol}
+}
+
+// ManagedRuleEnabledState enumerates the values for managed rule enabled state.
+type ManagedRuleEnabledState string
+
+const (
+ // ManagedRuleEnabledStateDisabled ...
+ ManagedRuleEnabledStateDisabled ManagedRuleEnabledState = "Disabled"
+)
+
+// PossibleManagedRuleEnabledStateValues returns an array of possible values for the ManagedRuleEnabledState const type.
+func PossibleManagedRuleEnabledStateValues() []ManagedRuleEnabledState {
+ return []ManagedRuleEnabledState{ManagedRuleEnabledStateDisabled}
+}
+
+// NatGatewaySkuName enumerates the values for nat gateway sku name.
+type NatGatewaySkuName string
+
+const (
+ // NatGatewaySkuNameStandard ...
+ NatGatewaySkuNameStandard NatGatewaySkuName = "Standard"
+)
+
+// PossibleNatGatewaySkuNameValues returns an array of possible values for the NatGatewaySkuName const type.
+func PossibleNatGatewaySkuNameValues() []NatGatewaySkuName {
+ return []NatGatewaySkuName{NatGatewaySkuNameStandard}
+}
+
+// NextHopType enumerates the values for next hop type.
+type NextHopType string
+
+const (
+ // NextHopTypeHyperNetGateway ...
+ NextHopTypeHyperNetGateway NextHopType = "HyperNetGateway"
+ // NextHopTypeInternet ...
+ NextHopTypeInternet NextHopType = "Internet"
+ // NextHopTypeNone ...
+ NextHopTypeNone NextHopType = "None"
+ // NextHopTypeVirtualAppliance ...
+ NextHopTypeVirtualAppliance NextHopType = "VirtualAppliance"
+ // NextHopTypeVirtualNetworkGateway ...
+ NextHopTypeVirtualNetworkGateway NextHopType = "VirtualNetworkGateway"
+ // NextHopTypeVnetLocal ...
+ NextHopTypeVnetLocal NextHopType = "VnetLocal"
+)
+
+// PossibleNextHopTypeValues returns an array of possible values for the NextHopType const type.
+func PossibleNextHopTypeValues() []NextHopType {
+ return []NextHopType{NextHopTypeHyperNetGateway, NextHopTypeInternet, NextHopTypeNone, NextHopTypeVirtualAppliance, NextHopTypeVirtualNetworkGateway, NextHopTypeVnetLocal}
+}
+
+// OfficeTrafficCategory enumerates the values for office traffic category.
+type OfficeTrafficCategory string
+
+const (
+ // OfficeTrafficCategoryAll ...
+ OfficeTrafficCategoryAll OfficeTrafficCategory = "All"
+ // OfficeTrafficCategoryNone ...
+ OfficeTrafficCategoryNone OfficeTrafficCategory = "None"
+ // OfficeTrafficCategoryOptimize ...
+ OfficeTrafficCategoryOptimize OfficeTrafficCategory = "Optimize"
+ // OfficeTrafficCategoryOptimizeAndAllow ...
+ OfficeTrafficCategoryOptimizeAndAllow OfficeTrafficCategory = "OptimizeAndAllow"
+)
+
+// PossibleOfficeTrafficCategoryValues returns an array of possible values for the OfficeTrafficCategory const type.
+func PossibleOfficeTrafficCategoryValues() []OfficeTrafficCategory {
+ return []OfficeTrafficCategory{OfficeTrafficCategoryAll, OfficeTrafficCategoryNone, OfficeTrafficCategoryOptimize, OfficeTrafficCategoryOptimizeAndAllow}
+}
+
+// OperationStatus enumerates the values for operation status.
+type OperationStatus string
+
+const (
+ // OperationStatusFailed ...
+ OperationStatusFailed OperationStatus = "Failed"
+ // OperationStatusInProgress ...
+ OperationStatusInProgress OperationStatus = "InProgress"
+ // OperationStatusSucceeded ...
+ OperationStatusSucceeded OperationStatus = "Succeeded"
+)
+
+// PossibleOperationStatusValues returns an array of possible values for the OperationStatus const type.
+func PossibleOperationStatusValues() []OperationStatus {
+ return []OperationStatus{OperationStatusFailed, OperationStatusInProgress, OperationStatusSucceeded}
+}
+
+// Origin enumerates the values for origin.
+type Origin string
+
+const (
+ // OriginInbound ...
+ OriginInbound Origin = "Inbound"
+ // OriginLocal ...
+ OriginLocal Origin = "Local"
+ // OriginOutbound ...
+ OriginOutbound Origin = "Outbound"
+)
+
+// PossibleOriginValues returns an array of possible values for the Origin const type.
+func PossibleOriginValues() []Origin {
+ return []Origin{OriginInbound, OriginLocal, OriginOutbound}
+}
+
+// OutputType enumerates the values for output type.
+type OutputType string
+
+const (
+ // Workspace ...
+ Workspace OutputType = "Workspace"
+)
+
+// PossibleOutputTypeValues returns an array of possible values for the OutputType const type.
+func PossibleOutputTypeValues() []OutputType {
+ return []OutputType{Workspace}
+}
+
+// OwaspCrsExclusionEntryMatchVariable enumerates the values for owasp crs exclusion entry match variable.
+type OwaspCrsExclusionEntryMatchVariable string
+
+const (
+ // RequestArgNames ...
+ RequestArgNames OwaspCrsExclusionEntryMatchVariable = "RequestArgNames"
+ // RequestCookieNames ...
+ RequestCookieNames OwaspCrsExclusionEntryMatchVariable = "RequestCookieNames"
+ // RequestHeaderNames ...
+ RequestHeaderNames OwaspCrsExclusionEntryMatchVariable = "RequestHeaderNames"
+)
+
+// PossibleOwaspCrsExclusionEntryMatchVariableValues returns an array of possible values for the OwaspCrsExclusionEntryMatchVariable const type.
+func PossibleOwaspCrsExclusionEntryMatchVariableValues() []OwaspCrsExclusionEntryMatchVariable {
+ return []OwaspCrsExclusionEntryMatchVariable{RequestArgNames, RequestCookieNames, RequestHeaderNames}
+}
+
+// OwaspCrsExclusionEntrySelectorMatchOperator enumerates the values for owasp crs exclusion entry selector
+// match operator.
+type OwaspCrsExclusionEntrySelectorMatchOperator string
+
+const (
+ // OwaspCrsExclusionEntrySelectorMatchOperatorContains ...
+ OwaspCrsExclusionEntrySelectorMatchOperatorContains OwaspCrsExclusionEntrySelectorMatchOperator = "Contains"
+ // OwaspCrsExclusionEntrySelectorMatchOperatorEndsWith ...
+ OwaspCrsExclusionEntrySelectorMatchOperatorEndsWith OwaspCrsExclusionEntrySelectorMatchOperator = "EndsWith"
+ // OwaspCrsExclusionEntrySelectorMatchOperatorEquals ...
+ OwaspCrsExclusionEntrySelectorMatchOperatorEquals OwaspCrsExclusionEntrySelectorMatchOperator = "Equals"
+ // OwaspCrsExclusionEntrySelectorMatchOperatorEqualsAny ...
+ OwaspCrsExclusionEntrySelectorMatchOperatorEqualsAny OwaspCrsExclusionEntrySelectorMatchOperator = "EqualsAny"
+ // OwaspCrsExclusionEntrySelectorMatchOperatorStartsWith ...
+ OwaspCrsExclusionEntrySelectorMatchOperatorStartsWith OwaspCrsExclusionEntrySelectorMatchOperator = "StartsWith"
+)
+
+// PossibleOwaspCrsExclusionEntrySelectorMatchOperatorValues returns an array of possible values for the OwaspCrsExclusionEntrySelectorMatchOperator const type.
+func PossibleOwaspCrsExclusionEntrySelectorMatchOperatorValues() []OwaspCrsExclusionEntrySelectorMatchOperator {
+ return []OwaspCrsExclusionEntrySelectorMatchOperator{OwaspCrsExclusionEntrySelectorMatchOperatorContains, OwaspCrsExclusionEntrySelectorMatchOperatorEndsWith, OwaspCrsExclusionEntrySelectorMatchOperatorEquals, OwaspCrsExclusionEntrySelectorMatchOperatorEqualsAny, OwaspCrsExclusionEntrySelectorMatchOperatorStartsWith}
+}
+
+// PcError enumerates the values for pc error.
+type PcError string
+
+const (
+ // AgentStopped ...
+ AgentStopped PcError = "AgentStopped"
+ // CaptureFailed ...
+ CaptureFailed PcError = "CaptureFailed"
+ // InternalError ...
+ InternalError PcError = "InternalError"
+ // LocalFileFailed ...
+ LocalFileFailed PcError = "LocalFileFailed"
+ // StorageFailed ...
+ StorageFailed PcError = "StorageFailed"
+)
+
+// PossiblePcErrorValues returns an array of possible values for the PcError const type.
+func PossiblePcErrorValues() []PcError {
+ return []PcError{AgentStopped, CaptureFailed, InternalError, LocalFileFailed, StorageFailed}
+}
+
+// PcProtocol enumerates the values for pc protocol.
+type PcProtocol string
+
+const (
+ // PcProtocolAny ...
+ PcProtocolAny PcProtocol = "Any"
+ // PcProtocolTCP ...
+ PcProtocolTCP PcProtocol = "TCP"
+ // PcProtocolUDP ...
+ PcProtocolUDP PcProtocol = "UDP"
+)
+
+// PossiblePcProtocolValues returns an array of possible values for the PcProtocol const type.
+func PossiblePcProtocolValues() []PcProtocol {
+ return []PcProtocol{PcProtocolAny, PcProtocolTCP, PcProtocolUDP}
+}
+
+// PcStatus enumerates the values for pc status.
+type PcStatus string
+
+const (
+ // PcStatusError ...
+ PcStatusError PcStatus = "Error"
+ // PcStatusNotStarted ...
+ PcStatusNotStarted PcStatus = "NotStarted"
+ // PcStatusRunning ...
+ PcStatusRunning PcStatus = "Running"
+ // PcStatusStopped ...
+ PcStatusStopped PcStatus = "Stopped"
+ // PcStatusUnknown ...
+ PcStatusUnknown PcStatus = "Unknown"
+)
+
+// PossiblePcStatusValues returns an array of possible values for the PcStatus const type.
+func PossiblePcStatusValues() []PcStatus {
+ return []PcStatus{PcStatusError, PcStatusNotStarted, PcStatusRunning, PcStatusStopped, PcStatusUnknown}
+}
+
+// PfsGroup enumerates the values for pfs group.
+type PfsGroup string
+
+const (
+ // PfsGroupECP256 ...
+ PfsGroupECP256 PfsGroup = "ECP256"
+ // PfsGroupECP384 ...
+ PfsGroupECP384 PfsGroup = "ECP384"
+ // PfsGroupNone ...
+ PfsGroupNone PfsGroup = "None"
+ // PfsGroupPFS1 ...
+ PfsGroupPFS1 PfsGroup = "PFS1"
+ // PfsGroupPFS14 ...
+ PfsGroupPFS14 PfsGroup = "PFS14"
+ // PfsGroupPFS2 ...
+ PfsGroupPFS2 PfsGroup = "PFS2"
+ // PfsGroupPFS2048 ...
+ PfsGroupPFS2048 PfsGroup = "PFS2048"
+ // PfsGroupPFS24 ...
+ PfsGroupPFS24 PfsGroup = "PFS24"
+ // PfsGroupPFSMM ...
+ PfsGroupPFSMM PfsGroup = "PFSMM"
+)
+
+// PossiblePfsGroupValues returns an array of possible values for the PfsGroup const type.
+func PossiblePfsGroupValues() []PfsGroup {
+ return []PfsGroup{PfsGroupECP256, PfsGroupECP384, PfsGroupNone, PfsGroupPFS1, PfsGroupPFS14, PfsGroupPFS2, PfsGroupPFS2048, PfsGroupPFS24, PfsGroupPFSMM}
+}
+
+// PreferredIPVersion enumerates the values for preferred ip version.
+type PreferredIPVersion string
+
+const (
+ // PreferredIPVersionIPv4 ...
+ PreferredIPVersionIPv4 PreferredIPVersion = "IPv4"
+ // PreferredIPVersionIPv6 ...
+ PreferredIPVersionIPv6 PreferredIPVersion = "IPv6"
+)
+
+// PossiblePreferredIPVersionValues returns an array of possible values for the PreferredIPVersion const type.
+func PossiblePreferredIPVersionValues() []PreferredIPVersion {
+ return []PreferredIPVersion{PreferredIPVersionIPv4, PreferredIPVersionIPv6}
+}
+
+// ProbeProtocol enumerates the values for probe protocol.
+type ProbeProtocol string
+
+const (
+ // ProbeProtocolHTTP ...
+ ProbeProtocolHTTP ProbeProtocol = "Http"
+ // ProbeProtocolHTTPS ...
+ ProbeProtocolHTTPS ProbeProtocol = "Https"
+ // ProbeProtocolTCP ...
+ ProbeProtocolTCP ProbeProtocol = "Tcp"
+)
+
+// PossibleProbeProtocolValues returns an array of possible values for the ProbeProtocol const type.
+func PossibleProbeProtocolValues() []ProbeProtocol {
+ return []ProbeProtocol{ProbeProtocolHTTP, ProbeProtocolHTTPS, ProbeProtocolTCP}
+}
+
+// ProcessorArchitecture enumerates the values for processor architecture.
+type ProcessorArchitecture string
+
+const (
+ // Amd64 ...
+ Amd64 ProcessorArchitecture = "Amd64"
+ // X86 ...
+ X86 ProcessorArchitecture = "X86"
+)
+
+// PossibleProcessorArchitectureValues returns an array of possible values for the ProcessorArchitecture const type.
+func PossibleProcessorArchitectureValues() []ProcessorArchitecture {
+ return []ProcessorArchitecture{Amd64, X86}
+}
+
+// Protocol enumerates the values for protocol.
+type Protocol string
+
+const (
+ // ProtocolHTTP ...
+ ProtocolHTTP Protocol = "Http"
+ // ProtocolHTTPS ...
+ ProtocolHTTPS Protocol = "Https"
+ // ProtocolIcmp ...
+ ProtocolIcmp Protocol = "Icmp"
+ // ProtocolTCP ...
+ ProtocolTCP Protocol = "Tcp"
+)
+
+// PossibleProtocolValues returns an array of possible values for the Protocol const type.
+func PossibleProtocolValues() []Protocol {
+ return []Protocol{ProtocolHTTP, ProtocolHTTPS, ProtocolIcmp, ProtocolTCP}
+}
+
+// ProvisioningState enumerates the values for provisioning state.
+type ProvisioningState string
+
+const (
+ // Deleting ...
+ Deleting ProvisioningState = "Deleting"
+ // Failed ...
+ Failed ProvisioningState = "Failed"
+ // Succeeded ...
+ Succeeded ProvisioningState = "Succeeded"
+ // Updating ...
+ Updating ProvisioningState = "Updating"
+)
+
+// PossibleProvisioningStateValues returns an array of possible values for the ProvisioningState const type.
+func PossibleProvisioningStateValues() []ProvisioningState {
+ return []ProvisioningState{Deleting, Failed, Succeeded, Updating}
+}
+
+// PublicIPAddressSkuName enumerates the values for public ip address sku name.
+type PublicIPAddressSkuName string
+
+const (
+ // PublicIPAddressSkuNameBasic ...
+ PublicIPAddressSkuNameBasic PublicIPAddressSkuName = "Basic"
+ // PublicIPAddressSkuNameStandard ...
+ PublicIPAddressSkuNameStandard PublicIPAddressSkuName = "Standard"
+)
+
+// PossiblePublicIPAddressSkuNameValues returns an array of possible values for the PublicIPAddressSkuName const type.
+func PossiblePublicIPAddressSkuNameValues() []PublicIPAddressSkuName {
+ return []PublicIPAddressSkuName{PublicIPAddressSkuNameBasic, PublicIPAddressSkuNameStandard}
+}
+
+// PublicIPPrefixSkuName enumerates the values for public ip prefix sku name.
+type PublicIPPrefixSkuName string
+
+const (
+ // PublicIPPrefixSkuNameStandard ...
+ PublicIPPrefixSkuNameStandard PublicIPPrefixSkuName = "Standard"
+)
+
+// PossiblePublicIPPrefixSkuNameValues returns an array of possible values for the PublicIPPrefixSkuName const type.
+func PossiblePublicIPPrefixSkuNameValues() []PublicIPPrefixSkuName {
+ return []PublicIPPrefixSkuName{PublicIPPrefixSkuNameStandard}
+}
+
+// ResourceIdentityType enumerates the values for resource identity type.
+type ResourceIdentityType string
+
+const (
+ // ResourceIdentityTypeNone ...
+ ResourceIdentityTypeNone ResourceIdentityType = "None"
+ // ResourceIdentityTypeSystemAssigned ...
+ ResourceIdentityTypeSystemAssigned ResourceIdentityType = "SystemAssigned"
+ // ResourceIdentityTypeSystemAssignedUserAssigned ...
+ ResourceIdentityTypeSystemAssignedUserAssigned ResourceIdentityType = "SystemAssigned, UserAssigned"
+ // ResourceIdentityTypeUserAssigned ...
+ ResourceIdentityTypeUserAssigned ResourceIdentityType = "UserAssigned"
+)
+
+// PossibleResourceIdentityTypeValues returns an array of possible values for the ResourceIdentityType const type.
+func PossibleResourceIdentityTypeValues() []ResourceIdentityType {
+ return []ResourceIdentityType{ResourceIdentityTypeNone, ResourceIdentityTypeSystemAssigned, ResourceIdentityTypeSystemAssignedUserAssigned, ResourceIdentityTypeUserAssigned}
+}
+
+// RouteNextHopType enumerates the values for route next hop type.
+type RouteNextHopType string
+
+const (
+ // RouteNextHopTypeInternet ...
+ RouteNextHopTypeInternet RouteNextHopType = "Internet"
+ // RouteNextHopTypeNone ...
+ RouteNextHopTypeNone RouteNextHopType = "None"
+ // RouteNextHopTypeVirtualAppliance ...
+ RouteNextHopTypeVirtualAppliance RouteNextHopType = "VirtualAppliance"
+ // RouteNextHopTypeVirtualNetworkGateway ...
+ RouteNextHopTypeVirtualNetworkGateway RouteNextHopType = "VirtualNetworkGateway"
+ // RouteNextHopTypeVnetLocal ...
+ RouteNextHopTypeVnetLocal RouteNextHopType = "VnetLocal"
+)
+
+// PossibleRouteNextHopTypeValues returns an array of possible values for the RouteNextHopType const type.
+func PossibleRouteNextHopTypeValues() []RouteNextHopType {
+ return []RouteNextHopType{RouteNextHopTypeInternet, RouteNextHopTypeNone, RouteNextHopTypeVirtualAppliance, RouteNextHopTypeVirtualNetworkGateway, RouteNextHopTypeVnetLocal}
+}
+
+// RuleConditionType enumerates the values for rule condition type.
+type RuleConditionType string
+
+const (
+ // RuleConditionTypeApplicationRuleCondition ...
+ RuleConditionTypeApplicationRuleCondition RuleConditionType = "ApplicationRuleCondition"
+ // RuleConditionTypeFirewallPolicyRuleCondition ...
+ RuleConditionTypeFirewallPolicyRuleCondition RuleConditionType = "FirewallPolicyRuleCondition"
+ // RuleConditionTypeNetworkRuleCondition ...
+ RuleConditionTypeNetworkRuleCondition RuleConditionType = "NetworkRuleCondition"
+)
+
+// PossibleRuleConditionTypeValues returns an array of possible values for the RuleConditionType const type.
+func PossibleRuleConditionTypeValues() []RuleConditionType {
+ return []RuleConditionType{RuleConditionTypeApplicationRuleCondition, RuleConditionTypeFirewallPolicyRuleCondition, RuleConditionTypeNetworkRuleCondition}
+}
+
+// RuleType enumerates the values for rule type.
+type RuleType string
+
+const (
+ // RuleTypeFirewallPolicyFilterRule ...
+ RuleTypeFirewallPolicyFilterRule RuleType = "FirewallPolicyFilterRule"
+ // RuleTypeFirewallPolicyNatRule ...
+ RuleTypeFirewallPolicyNatRule RuleType = "FirewallPolicyNatRule"
+ // RuleTypeFirewallPolicyRule ...
+ RuleTypeFirewallPolicyRule RuleType = "FirewallPolicyRule"
+)
+
+// PossibleRuleTypeValues returns an array of possible values for the RuleType const type.
+func PossibleRuleTypeValues() []RuleType {
+ return []RuleType{RuleTypeFirewallPolicyFilterRule, RuleTypeFirewallPolicyNatRule, RuleTypeFirewallPolicyRule}
+}
+
+// SecurityRuleAccess enumerates the values for security rule access.
+type SecurityRuleAccess string
+
+const (
+ // SecurityRuleAccessAllow ...
+ SecurityRuleAccessAllow SecurityRuleAccess = "Allow"
+ // SecurityRuleAccessDeny ...
+ SecurityRuleAccessDeny SecurityRuleAccess = "Deny"
+)
+
+// PossibleSecurityRuleAccessValues returns an array of possible values for the SecurityRuleAccess const type.
+func PossibleSecurityRuleAccessValues() []SecurityRuleAccess {
+ return []SecurityRuleAccess{SecurityRuleAccessAllow, SecurityRuleAccessDeny}
+}
+
+// SecurityRuleDirection enumerates the values for security rule direction.
+type SecurityRuleDirection string
+
+const (
+ // SecurityRuleDirectionInbound ...
+ SecurityRuleDirectionInbound SecurityRuleDirection = "Inbound"
+ // SecurityRuleDirectionOutbound ...
+ SecurityRuleDirectionOutbound SecurityRuleDirection = "Outbound"
+)
+
+// PossibleSecurityRuleDirectionValues returns an array of possible values for the SecurityRuleDirection const type.
+func PossibleSecurityRuleDirectionValues() []SecurityRuleDirection {
+ return []SecurityRuleDirection{SecurityRuleDirectionInbound, SecurityRuleDirectionOutbound}
+}
+
+// SecurityRuleProtocol enumerates the values for security rule protocol.
+type SecurityRuleProtocol string
+
+const (
+ // SecurityRuleProtocolAh ...
+ SecurityRuleProtocolAh SecurityRuleProtocol = "Ah"
+ // SecurityRuleProtocolAsterisk ...
+ SecurityRuleProtocolAsterisk SecurityRuleProtocol = "*"
+ // SecurityRuleProtocolEsp ...
+ SecurityRuleProtocolEsp SecurityRuleProtocol = "Esp"
+ // SecurityRuleProtocolIcmp ...
+ SecurityRuleProtocolIcmp SecurityRuleProtocol = "Icmp"
+ // SecurityRuleProtocolTCP ...
+ SecurityRuleProtocolTCP SecurityRuleProtocol = "Tcp"
+ // SecurityRuleProtocolUDP ...
+ SecurityRuleProtocolUDP SecurityRuleProtocol = "Udp"
+)
+
+// PossibleSecurityRuleProtocolValues returns an array of possible values for the SecurityRuleProtocol const type.
+func PossibleSecurityRuleProtocolValues() []SecurityRuleProtocol {
+ return []SecurityRuleProtocol{SecurityRuleProtocolAh, SecurityRuleProtocolAsterisk, SecurityRuleProtocolEsp, SecurityRuleProtocolIcmp, SecurityRuleProtocolTCP, SecurityRuleProtocolUDP}
+}
+
+// ServiceProviderProvisioningState enumerates the values for service provider provisioning state.
+type ServiceProviderProvisioningState string
+
+const (
+ // Deprovisioning ...
+ Deprovisioning ServiceProviderProvisioningState = "Deprovisioning"
+ // NotProvisioned ...
+ NotProvisioned ServiceProviderProvisioningState = "NotProvisioned"
+ // Provisioned ...
+ Provisioned ServiceProviderProvisioningState = "Provisioned"
+ // Provisioning ...
+ Provisioning ServiceProviderProvisioningState = "Provisioning"
+)
+
+// PossibleServiceProviderProvisioningStateValues returns an array of possible values for the ServiceProviderProvisioningState const type.
+func PossibleServiceProviderProvisioningStateValues() []ServiceProviderProvisioningState {
+ return []ServiceProviderProvisioningState{Deprovisioning, NotProvisioned, Provisioned, Provisioning}
+}
+
+// Severity enumerates the values for severity.
+type Severity string
+
+const (
+ // SeverityError ...
+ SeverityError Severity = "Error"
+ // SeverityWarning ...
+ SeverityWarning Severity = "Warning"
+)
+
+// PossibleSeverityValues returns an array of possible values for the Severity const type.
+func PossibleSeverityValues() []Severity {
+ return []Severity{SeverityError, SeverityWarning}
+}
+
+// TransportProtocol enumerates the values for transport protocol.
+type TransportProtocol string
+
+const (
+ // TransportProtocolAll ...
+ TransportProtocolAll TransportProtocol = "All"
+ // TransportProtocolTCP ...
+ TransportProtocolTCP TransportProtocol = "Tcp"
+ // TransportProtocolUDP ...
+ TransportProtocolUDP TransportProtocol = "Udp"
+)
+
+// PossibleTransportProtocolValues returns an array of possible values for the TransportProtocol const type.
+func PossibleTransportProtocolValues() []TransportProtocol {
+ return []TransportProtocol{TransportProtocolAll, TransportProtocolTCP, TransportProtocolUDP}
+}
+
+// TunnelConnectionStatus enumerates the values for tunnel connection status.
+type TunnelConnectionStatus string
+
+const (
+ // TunnelConnectionStatusConnected ...
+ TunnelConnectionStatusConnected TunnelConnectionStatus = "Connected"
+ // TunnelConnectionStatusConnecting ...
+ TunnelConnectionStatusConnecting TunnelConnectionStatus = "Connecting"
+ // TunnelConnectionStatusNotConnected ...
+ TunnelConnectionStatusNotConnected TunnelConnectionStatus = "NotConnected"
+ // TunnelConnectionStatusUnknown ...
+ TunnelConnectionStatusUnknown TunnelConnectionStatus = "Unknown"
+)
+
+// PossibleTunnelConnectionStatusValues returns an array of possible values for the TunnelConnectionStatus const type.
+func PossibleTunnelConnectionStatusValues() []TunnelConnectionStatus {
+ return []TunnelConnectionStatus{TunnelConnectionStatusConnected, TunnelConnectionStatusConnecting, TunnelConnectionStatusNotConnected, TunnelConnectionStatusUnknown}
+}
+
+// VerbosityLevel enumerates the values for verbosity level.
+type VerbosityLevel string
+
+const (
+ // Full ...
+ Full VerbosityLevel = "Full"
+ // Minimum ...
+ Minimum VerbosityLevel = "Minimum"
+ // Normal ...
+ Normal VerbosityLevel = "Normal"
+)
+
+// PossibleVerbosityLevelValues returns an array of possible values for the VerbosityLevel const type.
+func PossibleVerbosityLevelValues() []VerbosityLevel {
+ return []VerbosityLevel{Full, Minimum, Normal}
+}
+
+// VirtualNetworkGatewayConnectionProtocol enumerates the values for virtual network gateway connection
+// protocol.
+type VirtualNetworkGatewayConnectionProtocol string
+
+const (
+ // IKEv1 ...
+ IKEv1 VirtualNetworkGatewayConnectionProtocol = "IKEv1"
+ // IKEv2 ...
+ IKEv2 VirtualNetworkGatewayConnectionProtocol = "IKEv2"
+)
+
+// PossibleVirtualNetworkGatewayConnectionProtocolValues returns an array of possible values for the VirtualNetworkGatewayConnectionProtocol const type.
+func PossibleVirtualNetworkGatewayConnectionProtocolValues() []VirtualNetworkGatewayConnectionProtocol {
+ return []VirtualNetworkGatewayConnectionProtocol{IKEv1, IKEv2}
+}
+
+// VirtualNetworkGatewayConnectionStatus enumerates the values for virtual network gateway connection status.
+type VirtualNetworkGatewayConnectionStatus string
+
+const (
+ // VirtualNetworkGatewayConnectionStatusConnected ...
+ VirtualNetworkGatewayConnectionStatusConnected VirtualNetworkGatewayConnectionStatus = "Connected"
+ // VirtualNetworkGatewayConnectionStatusConnecting ...
+ VirtualNetworkGatewayConnectionStatusConnecting VirtualNetworkGatewayConnectionStatus = "Connecting"
+ // VirtualNetworkGatewayConnectionStatusNotConnected ...
+ VirtualNetworkGatewayConnectionStatusNotConnected VirtualNetworkGatewayConnectionStatus = "NotConnected"
+ // VirtualNetworkGatewayConnectionStatusUnknown ...
+ VirtualNetworkGatewayConnectionStatusUnknown VirtualNetworkGatewayConnectionStatus = "Unknown"
+)
+
+// PossibleVirtualNetworkGatewayConnectionStatusValues returns an array of possible values for the VirtualNetworkGatewayConnectionStatus const type.
+func PossibleVirtualNetworkGatewayConnectionStatusValues() []VirtualNetworkGatewayConnectionStatus {
+ return []VirtualNetworkGatewayConnectionStatus{VirtualNetworkGatewayConnectionStatusConnected, VirtualNetworkGatewayConnectionStatusConnecting, VirtualNetworkGatewayConnectionStatusNotConnected, VirtualNetworkGatewayConnectionStatusUnknown}
+}
+
+// VirtualNetworkGatewayConnectionType enumerates the values for virtual network gateway connection type.
+type VirtualNetworkGatewayConnectionType string
+
+const (
+ // ExpressRoute ...
+ ExpressRoute VirtualNetworkGatewayConnectionType = "ExpressRoute"
+ // IPsec ...
+ IPsec VirtualNetworkGatewayConnectionType = "IPsec"
+ // Vnet2Vnet ...
+ Vnet2Vnet VirtualNetworkGatewayConnectionType = "Vnet2Vnet"
+ // VPNClient ...
+ VPNClient VirtualNetworkGatewayConnectionType = "VPNClient"
+)
+
+// PossibleVirtualNetworkGatewayConnectionTypeValues returns an array of possible values for the VirtualNetworkGatewayConnectionType const type.
+func PossibleVirtualNetworkGatewayConnectionTypeValues() []VirtualNetworkGatewayConnectionType {
+ return []VirtualNetworkGatewayConnectionType{ExpressRoute, IPsec, Vnet2Vnet, VPNClient}
+}
+
+// VirtualNetworkGatewaySkuName enumerates the values for virtual network gateway sku name.
+type VirtualNetworkGatewaySkuName string
+
+const (
+ // VirtualNetworkGatewaySkuNameBasic ...
+ VirtualNetworkGatewaySkuNameBasic VirtualNetworkGatewaySkuName = "Basic"
+ // VirtualNetworkGatewaySkuNameErGw1AZ ...
+ VirtualNetworkGatewaySkuNameErGw1AZ VirtualNetworkGatewaySkuName = "ErGw1AZ"
+ // VirtualNetworkGatewaySkuNameErGw2AZ ...
+ VirtualNetworkGatewaySkuNameErGw2AZ VirtualNetworkGatewaySkuName = "ErGw2AZ"
+ // VirtualNetworkGatewaySkuNameErGw3AZ ...
+ VirtualNetworkGatewaySkuNameErGw3AZ VirtualNetworkGatewaySkuName = "ErGw3AZ"
+ // VirtualNetworkGatewaySkuNameHighPerformance ...
+ VirtualNetworkGatewaySkuNameHighPerformance VirtualNetworkGatewaySkuName = "HighPerformance"
+ // VirtualNetworkGatewaySkuNameStandard ...
+ VirtualNetworkGatewaySkuNameStandard VirtualNetworkGatewaySkuName = "Standard"
+ // VirtualNetworkGatewaySkuNameUltraPerformance ...
+ VirtualNetworkGatewaySkuNameUltraPerformance VirtualNetworkGatewaySkuName = "UltraPerformance"
+ // VirtualNetworkGatewaySkuNameVpnGw1 ...
+ VirtualNetworkGatewaySkuNameVpnGw1 VirtualNetworkGatewaySkuName = "VpnGw1"
+ // VirtualNetworkGatewaySkuNameVpnGw1AZ ...
+ VirtualNetworkGatewaySkuNameVpnGw1AZ VirtualNetworkGatewaySkuName = "VpnGw1AZ"
+ // VirtualNetworkGatewaySkuNameVpnGw2 ...
+ VirtualNetworkGatewaySkuNameVpnGw2 VirtualNetworkGatewaySkuName = "VpnGw2"
+ // VirtualNetworkGatewaySkuNameVpnGw2AZ ...
+ VirtualNetworkGatewaySkuNameVpnGw2AZ VirtualNetworkGatewaySkuName = "VpnGw2AZ"
+ // VirtualNetworkGatewaySkuNameVpnGw3 ...
+ VirtualNetworkGatewaySkuNameVpnGw3 VirtualNetworkGatewaySkuName = "VpnGw3"
+ // VirtualNetworkGatewaySkuNameVpnGw3AZ ...
+ VirtualNetworkGatewaySkuNameVpnGw3AZ VirtualNetworkGatewaySkuName = "VpnGw3AZ"
+ // VirtualNetworkGatewaySkuNameVpnGw4 ...
+ VirtualNetworkGatewaySkuNameVpnGw4 VirtualNetworkGatewaySkuName = "VpnGw4"
+ // VirtualNetworkGatewaySkuNameVpnGw4AZ ...
+ VirtualNetworkGatewaySkuNameVpnGw4AZ VirtualNetworkGatewaySkuName = "VpnGw4AZ"
+ // VirtualNetworkGatewaySkuNameVpnGw5 ...
+ VirtualNetworkGatewaySkuNameVpnGw5 VirtualNetworkGatewaySkuName = "VpnGw5"
+ // VirtualNetworkGatewaySkuNameVpnGw5AZ ...
+ VirtualNetworkGatewaySkuNameVpnGw5AZ VirtualNetworkGatewaySkuName = "VpnGw5AZ"
+)
+
+// PossibleVirtualNetworkGatewaySkuNameValues returns an array of possible values for the VirtualNetworkGatewaySkuName const type.
+func PossibleVirtualNetworkGatewaySkuNameValues() []VirtualNetworkGatewaySkuName {
+ return []VirtualNetworkGatewaySkuName{VirtualNetworkGatewaySkuNameBasic, VirtualNetworkGatewaySkuNameErGw1AZ, VirtualNetworkGatewaySkuNameErGw2AZ, VirtualNetworkGatewaySkuNameErGw3AZ, VirtualNetworkGatewaySkuNameHighPerformance, VirtualNetworkGatewaySkuNameStandard, VirtualNetworkGatewaySkuNameUltraPerformance, VirtualNetworkGatewaySkuNameVpnGw1, VirtualNetworkGatewaySkuNameVpnGw1AZ, VirtualNetworkGatewaySkuNameVpnGw2, VirtualNetworkGatewaySkuNameVpnGw2AZ, VirtualNetworkGatewaySkuNameVpnGw3, VirtualNetworkGatewaySkuNameVpnGw3AZ, VirtualNetworkGatewaySkuNameVpnGw4, VirtualNetworkGatewaySkuNameVpnGw4AZ, VirtualNetworkGatewaySkuNameVpnGw5, VirtualNetworkGatewaySkuNameVpnGw5AZ}
+}
+
+// VirtualNetworkGatewaySkuTier enumerates the values for virtual network gateway sku tier.
+type VirtualNetworkGatewaySkuTier string
+
+const (
+ // VirtualNetworkGatewaySkuTierBasic ...
+ VirtualNetworkGatewaySkuTierBasic VirtualNetworkGatewaySkuTier = "Basic"
+ // VirtualNetworkGatewaySkuTierErGw1AZ ...
+ VirtualNetworkGatewaySkuTierErGw1AZ VirtualNetworkGatewaySkuTier = "ErGw1AZ"
+ // VirtualNetworkGatewaySkuTierErGw2AZ ...
+ VirtualNetworkGatewaySkuTierErGw2AZ VirtualNetworkGatewaySkuTier = "ErGw2AZ"
+ // VirtualNetworkGatewaySkuTierErGw3AZ ...
+ VirtualNetworkGatewaySkuTierErGw3AZ VirtualNetworkGatewaySkuTier = "ErGw3AZ"
+ // VirtualNetworkGatewaySkuTierHighPerformance ...
+ VirtualNetworkGatewaySkuTierHighPerformance VirtualNetworkGatewaySkuTier = "HighPerformance"
+ // VirtualNetworkGatewaySkuTierStandard ...
+ VirtualNetworkGatewaySkuTierStandard VirtualNetworkGatewaySkuTier = "Standard"
+ // VirtualNetworkGatewaySkuTierUltraPerformance ...
+ VirtualNetworkGatewaySkuTierUltraPerformance VirtualNetworkGatewaySkuTier = "UltraPerformance"
+ // VirtualNetworkGatewaySkuTierVpnGw1 ...
+ VirtualNetworkGatewaySkuTierVpnGw1 VirtualNetworkGatewaySkuTier = "VpnGw1"
+ // VirtualNetworkGatewaySkuTierVpnGw1AZ ...
+ VirtualNetworkGatewaySkuTierVpnGw1AZ VirtualNetworkGatewaySkuTier = "VpnGw1AZ"
+ // VirtualNetworkGatewaySkuTierVpnGw2 ...
+ VirtualNetworkGatewaySkuTierVpnGw2 VirtualNetworkGatewaySkuTier = "VpnGw2"
+ // VirtualNetworkGatewaySkuTierVpnGw2AZ ...
+ VirtualNetworkGatewaySkuTierVpnGw2AZ VirtualNetworkGatewaySkuTier = "VpnGw2AZ"
+ // VirtualNetworkGatewaySkuTierVpnGw3 ...
+ VirtualNetworkGatewaySkuTierVpnGw3 VirtualNetworkGatewaySkuTier = "VpnGw3"
+ // VirtualNetworkGatewaySkuTierVpnGw3AZ ...
+ VirtualNetworkGatewaySkuTierVpnGw3AZ VirtualNetworkGatewaySkuTier = "VpnGw3AZ"
+ // VirtualNetworkGatewaySkuTierVpnGw4 ...
+ VirtualNetworkGatewaySkuTierVpnGw4 VirtualNetworkGatewaySkuTier = "VpnGw4"
+ // VirtualNetworkGatewaySkuTierVpnGw4AZ ...
+ VirtualNetworkGatewaySkuTierVpnGw4AZ VirtualNetworkGatewaySkuTier = "VpnGw4AZ"
+ // VirtualNetworkGatewaySkuTierVpnGw5 ...
+ VirtualNetworkGatewaySkuTierVpnGw5 VirtualNetworkGatewaySkuTier = "VpnGw5"
+ // VirtualNetworkGatewaySkuTierVpnGw5AZ ...
+ VirtualNetworkGatewaySkuTierVpnGw5AZ VirtualNetworkGatewaySkuTier = "VpnGw5AZ"
+)
+
+// PossibleVirtualNetworkGatewaySkuTierValues returns an array of possible values for the VirtualNetworkGatewaySkuTier const type.
+func PossibleVirtualNetworkGatewaySkuTierValues() []VirtualNetworkGatewaySkuTier {
+ return []VirtualNetworkGatewaySkuTier{VirtualNetworkGatewaySkuTierBasic, VirtualNetworkGatewaySkuTierErGw1AZ, VirtualNetworkGatewaySkuTierErGw2AZ, VirtualNetworkGatewaySkuTierErGw3AZ, VirtualNetworkGatewaySkuTierHighPerformance, VirtualNetworkGatewaySkuTierStandard, VirtualNetworkGatewaySkuTierUltraPerformance, VirtualNetworkGatewaySkuTierVpnGw1, VirtualNetworkGatewaySkuTierVpnGw1AZ, VirtualNetworkGatewaySkuTierVpnGw2, VirtualNetworkGatewaySkuTierVpnGw2AZ, VirtualNetworkGatewaySkuTierVpnGw3, VirtualNetworkGatewaySkuTierVpnGw3AZ, VirtualNetworkGatewaySkuTierVpnGw4, VirtualNetworkGatewaySkuTierVpnGw4AZ, VirtualNetworkGatewaySkuTierVpnGw5, VirtualNetworkGatewaySkuTierVpnGw5AZ}
+}
+
+// VirtualNetworkGatewayType enumerates the values for virtual network gateway type.
+type VirtualNetworkGatewayType string
+
+const (
+ // VirtualNetworkGatewayTypeExpressRoute ...
+ VirtualNetworkGatewayTypeExpressRoute VirtualNetworkGatewayType = "ExpressRoute"
+ // VirtualNetworkGatewayTypeVpn ...
+ VirtualNetworkGatewayTypeVpn VirtualNetworkGatewayType = "Vpn"
+)
+
+// PossibleVirtualNetworkGatewayTypeValues returns an array of possible values for the VirtualNetworkGatewayType const type.
+func PossibleVirtualNetworkGatewayTypeValues() []VirtualNetworkGatewayType {
+ return []VirtualNetworkGatewayType{VirtualNetworkGatewayTypeExpressRoute, VirtualNetworkGatewayTypeVpn}
+}
+
+// VirtualNetworkPeeringState enumerates the values for virtual network peering state.
+type VirtualNetworkPeeringState string
+
+const (
+ // VirtualNetworkPeeringStateConnected ...
+ VirtualNetworkPeeringStateConnected VirtualNetworkPeeringState = "Connected"
+ // VirtualNetworkPeeringStateDisconnected ...
+ VirtualNetworkPeeringStateDisconnected VirtualNetworkPeeringState = "Disconnected"
+ // VirtualNetworkPeeringStateInitiated ...
+ VirtualNetworkPeeringStateInitiated VirtualNetworkPeeringState = "Initiated"
+)
+
+// PossibleVirtualNetworkPeeringStateValues returns an array of possible values for the VirtualNetworkPeeringState const type.
+func PossibleVirtualNetworkPeeringStateValues() []VirtualNetworkPeeringState {
+ return []VirtualNetworkPeeringState{VirtualNetworkPeeringStateConnected, VirtualNetworkPeeringStateDisconnected, VirtualNetworkPeeringStateInitiated}
+}
+
+// VirtualWanSecurityProviderType enumerates the values for virtual wan security provider type.
+type VirtualWanSecurityProviderType string
+
+const (
+ // External ...
+ External VirtualWanSecurityProviderType = "External"
+ // Native ...
+ Native VirtualWanSecurityProviderType = "Native"
+)
+
+// PossibleVirtualWanSecurityProviderTypeValues returns an array of possible values for the VirtualWanSecurityProviderType const type.
+func PossibleVirtualWanSecurityProviderTypeValues() []VirtualWanSecurityProviderType {
+ return []VirtualWanSecurityProviderType{External, Native}
+}
+
+// VpnAuthenticationType enumerates the values for vpn authentication type.
+type VpnAuthenticationType string
+
+const (
+ // AAD ...
+ AAD VpnAuthenticationType = "AAD"
+ // Certificate ...
+ Certificate VpnAuthenticationType = "Certificate"
+ // Radius ...
+ Radius VpnAuthenticationType = "Radius"
+)
+
+// PossibleVpnAuthenticationTypeValues returns an array of possible values for the VpnAuthenticationType const type.
+func PossibleVpnAuthenticationTypeValues() []VpnAuthenticationType {
+ return []VpnAuthenticationType{AAD, Certificate, Radius}
+}
+
+// VpnClientProtocol enumerates the values for vpn client protocol.
+type VpnClientProtocol string
+
+const (
+ // IkeV2 ...
+ IkeV2 VpnClientProtocol = "IkeV2"
+ // OpenVPN ...
+ OpenVPN VpnClientProtocol = "OpenVPN"
+ // SSTP ...
+ SSTP VpnClientProtocol = "SSTP"
+)
+
+// PossibleVpnClientProtocolValues returns an array of possible values for the VpnClientProtocol const type.
+func PossibleVpnClientProtocolValues() []VpnClientProtocol {
+ return []VpnClientProtocol{IkeV2, OpenVPN, SSTP}
+}
+
+// VpnConnectionStatus enumerates the values for vpn connection status.
+type VpnConnectionStatus string
+
+const (
+ // VpnConnectionStatusConnected ...
+ VpnConnectionStatusConnected VpnConnectionStatus = "Connected"
+ // VpnConnectionStatusConnecting ...
+ VpnConnectionStatusConnecting VpnConnectionStatus = "Connecting"
+ // VpnConnectionStatusNotConnected ...
+ VpnConnectionStatusNotConnected VpnConnectionStatus = "NotConnected"
+ // VpnConnectionStatusUnknown ...
+ VpnConnectionStatusUnknown VpnConnectionStatus = "Unknown"
+)
+
+// PossibleVpnConnectionStatusValues returns an array of possible values for the VpnConnectionStatus const type.
+func PossibleVpnConnectionStatusValues() []VpnConnectionStatus {
+ return []VpnConnectionStatus{VpnConnectionStatusConnected, VpnConnectionStatusConnecting, VpnConnectionStatusNotConnected, VpnConnectionStatusUnknown}
+}
+
+// VpnGatewayGeneration enumerates the values for vpn gateway generation.
+type VpnGatewayGeneration string
+
+const (
+ // VpnGatewayGenerationGeneration1 ...
+ VpnGatewayGenerationGeneration1 VpnGatewayGeneration = "Generation1"
+ // VpnGatewayGenerationGeneration2 ...
+ VpnGatewayGenerationGeneration2 VpnGatewayGeneration = "Generation2"
+ // VpnGatewayGenerationNone ...
+ VpnGatewayGenerationNone VpnGatewayGeneration = "None"
+)
+
+// PossibleVpnGatewayGenerationValues returns an array of possible values for the VpnGatewayGeneration const type.
+func PossibleVpnGatewayGenerationValues() []VpnGatewayGeneration {
+ return []VpnGatewayGeneration{VpnGatewayGenerationGeneration1, VpnGatewayGenerationGeneration2, VpnGatewayGenerationNone}
+}
+
+// VpnGatewayTunnelingProtocol enumerates the values for vpn gateway tunneling protocol.
+type VpnGatewayTunnelingProtocol string
+
+const (
+ // VpnGatewayTunnelingProtocolIkeV2 ...
+ VpnGatewayTunnelingProtocolIkeV2 VpnGatewayTunnelingProtocol = "IkeV2"
+ // VpnGatewayTunnelingProtocolOpenVPN ...
+ VpnGatewayTunnelingProtocolOpenVPN VpnGatewayTunnelingProtocol = "OpenVPN"
+)
+
+// PossibleVpnGatewayTunnelingProtocolValues returns an array of possible values for the VpnGatewayTunnelingProtocol const type.
+func PossibleVpnGatewayTunnelingProtocolValues() []VpnGatewayTunnelingProtocol {
+ return []VpnGatewayTunnelingProtocol{VpnGatewayTunnelingProtocolIkeV2, VpnGatewayTunnelingProtocolOpenVPN}
+}
+
+// VpnType enumerates the values for vpn type.
+type VpnType string
+
+const (
+ // PolicyBased ...
+ PolicyBased VpnType = "PolicyBased"
+ // RouteBased ...
+ RouteBased VpnType = "RouteBased"
+)
+
+// PossibleVpnTypeValues returns an array of possible values for the VpnType const type.
+func PossibleVpnTypeValues() []VpnType {
+ return []VpnType{PolicyBased, RouteBased}
+}
+
+// WebApplicationFirewallAction enumerates the values for web application firewall action.
+type WebApplicationFirewallAction string
+
+const (
+ // WebApplicationFirewallActionAllow ...
+ WebApplicationFirewallActionAllow WebApplicationFirewallAction = "Allow"
+ // WebApplicationFirewallActionBlock ...
+ WebApplicationFirewallActionBlock WebApplicationFirewallAction = "Block"
+ // WebApplicationFirewallActionLog ...
+ WebApplicationFirewallActionLog WebApplicationFirewallAction = "Log"
+)
+
+// PossibleWebApplicationFirewallActionValues returns an array of possible values for the WebApplicationFirewallAction const type.
+func PossibleWebApplicationFirewallActionValues() []WebApplicationFirewallAction {
+ return []WebApplicationFirewallAction{WebApplicationFirewallActionAllow, WebApplicationFirewallActionBlock, WebApplicationFirewallActionLog}
+}
+
+// WebApplicationFirewallEnabledState enumerates the values for web application firewall enabled state.
+type WebApplicationFirewallEnabledState string
+
+const (
+ // WebApplicationFirewallEnabledStateDisabled ...
+ WebApplicationFirewallEnabledStateDisabled WebApplicationFirewallEnabledState = "Disabled"
+ // WebApplicationFirewallEnabledStateEnabled ...
+ WebApplicationFirewallEnabledStateEnabled WebApplicationFirewallEnabledState = "Enabled"
+)
+
+// PossibleWebApplicationFirewallEnabledStateValues returns an array of possible values for the WebApplicationFirewallEnabledState const type.
+func PossibleWebApplicationFirewallEnabledStateValues() []WebApplicationFirewallEnabledState {
+ return []WebApplicationFirewallEnabledState{WebApplicationFirewallEnabledStateDisabled, WebApplicationFirewallEnabledStateEnabled}
+}
+
+// WebApplicationFirewallMatchVariable enumerates the values for web application firewall match variable.
+type WebApplicationFirewallMatchVariable string
+
+const (
+ // PostArgs ...
+ PostArgs WebApplicationFirewallMatchVariable = "PostArgs"
+ // QueryString ...
+ QueryString WebApplicationFirewallMatchVariable = "QueryString"
+ // RemoteAddr ...
+ RemoteAddr WebApplicationFirewallMatchVariable = "RemoteAddr"
+ // RequestBody ...
+ RequestBody WebApplicationFirewallMatchVariable = "RequestBody"
+ // RequestCookies ...
+ RequestCookies WebApplicationFirewallMatchVariable = "RequestCookies"
+ // RequestHeaders ...
+ RequestHeaders WebApplicationFirewallMatchVariable = "RequestHeaders"
+ // RequestMethod ...
+ RequestMethod WebApplicationFirewallMatchVariable = "RequestMethod"
+ // RequestURI ...
+ RequestURI WebApplicationFirewallMatchVariable = "RequestUri"
+)
+
+// PossibleWebApplicationFirewallMatchVariableValues returns an array of possible values for the WebApplicationFirewallMatchVariable const type.
+func PossibleWebApplicationFirewallMatchVariableValues() []WebApplicationFirewallMatchVariable {
+ return []WebApplicationFirewallMatchVariable{PostArgs, QueryString, RemoteAddr, RequestBody, RequestCookies, RequestHeaders, RequestMethod, RequestURI}
+}
+
+// WebApplicationFirewallMode enumerates the values for web application firewall mode.
+type WebApplicationFirewallMode string
+
+const (
+ // WebApplicationFirewallModeDetection ...
+ WebApplicationFirewallModeDetection WebApplicationFirewallMode = "Detection"
+ // WebApplicationFirewallModePrevention ...
+ WebApplicationFirewallModePrevention WebApplicationFirewallMode = "Prevention"
+)
+
+// PossibleWebApplicationFirewallModeValues returns an array of possible values for the WebApplicationFirewallMode const type.
+func PossibleWebApplicationFirewallModeValues() []WebApplicationFirewallMode {
+ return []WebApplicationFirewallMode{WebApplicationFirewallModeDetection, WebApplicationFirewallModePrevention}
+}
+
+// WebApplicationFirewallOperator enumerates the values for web application firewall operator.
+type WebApplicationFirewallOperator string
+
+const (
+ // WebApplicationFirewallOperatorBeginsWith ...
+ WebApplicationFirewallOperatorBeginsWith WebApplicationFirewallOperator = "BeginsWith"
+ // WebApplicationFirewallOperatorContains ...
+ WebApplicationFirewallOperatorContains WebApplicationFirewallOperator = "Contains"
+ // WebApplicationFirewallOperatorEndsWith ...
+ WebApplicationFirewallOperatorEndsWith WebApplicationFirewallOperator = "EndsWith"
+ // WebApplicationFirewallOperatorEqual ...
+ WebApplicationFirewallOperatorEqual WebApplicationFirewallOperator = "Equal"
+ // WebApplicationFirewallOperatorGeoMatch ...
+ WebApplicationFirewallOperatorGeoMatch WebApplicationFirewallOperator = "GeoMatch"
+ // WebApplicationFirewallOperatorGreaterThan ...
+ WebApplicationFirewallOperatorGreaterThan WebApplicationFirewallOperator = "GreaterThan"
+ // WebApplicationFirewallOperatorGreaterThanOrEqual ...
+ WebApplicationFirewallOperatorGreaterThanOrEqual WebApplicationFirewallOperator = "GreaterThanOrEqual"
+ // WebApplicationFirewallOperatorIPMatch ...
+ WebApplicationFirewallOperatorIPMatch WebApplicationFirewallOperator = "IPMatch"
+ // WebApplicationFirewallOperatorLessThan ...
+ WebApplicationFirewallOperatorLessThan WebApplicationFirewallOperator = "LessThan"
+ // WebApplicationFirewallOperatorLessThanOrEqual ...
+ WebApplicationFirewallOperatorLessThanOrEqual WebApplicationFirewallOperator = "LessThanOrEqual"
+ // WebApplicationFirewallOperatorRegex ...
+ WebApplicationFirewallOperatorRegex WebApplicationFirewallOperator = "Regex"
+)
+
+// PossibleWebApplicationFirewallOperatorValues returns an array of possible values for the WebApplicationFirewallOperator const type.
+func PossibleWebApplicationFirewallOperatorValues() []WebApplicationFirewallOperator {
+ return []WebApplicationFirewallOperator{WebApplicationFirewallOperatorBeginsWith, WebApplicationFirewallOperatorContains, WebApplicationFirewallOperatorEndsWith, WebApplicationFirewallOperatorEqual, WebApplicationFirewallOperatorGeoMatch, WebApplicationFirewallOperatorGreaterThan, WebApplicationFirewallOperatorGreaterThanOrEqual, WebApplicationFirewallOperatorIPMatch, WebApplicationFirewallOperatorLessThan, WebApplicationFirewallOperatorLessThanOrEqual, WebApplicationFirewallOperatorRegex}
+}
+
+// WebApplicationFirewallPolicyResourceState enumerates the values for web application firewall policy resource
+// state.
+type WebApplicationFirewallPolicyResourceState string
+
+const (
+ // WebApplicationFirewallPolicyResourceStateCreating ...
+ WebApplicationFirewallPolicyResourceStateCreating WebApplicationFirewallPolicyResourceState = "Creating"
+ // WebApplicationFirewallPolicyResourceStateDeleting ...
+ WebApplicationFirewallPolicyResourceStateDeleting WebApplicationFirewallPolicyResourceState = "Deleting"
+ // WebApplicationFirewallPolicyResourceStateDisabled ...
+ WebApplicationFirewallPolicyResourceStateDisabled WebApplicationFirewallPolicyResourceState = "Disabled"
+ // WebApplicationFirewallPolicyResourceStateDisabling ...
+ WebApplicationFirewallPolicyResourceStateDisabling WebApplicationFirewallPolicyResourceState = "Disabling"
+ // WebApplicationFirewallPolicyResourceStateEnabled ...
+ WebApplicationFirewallPolicyResourceStateEnabled WebApplicationFirewallPolicyResourceState = "Enabled"
+ // WebApplicationFirewallPolicyResourceStateEnabling ...
+ WebApplicationFirewallPolicyResourceStateEnabling WebApplicationFirewallPolicyResourceState = "Enabling"
+)
+
+// PossibleWebApplicationFirewallPolicyResourceStateValues returns an array of possible values for the WebApplicationFirewallPolicyResourceState const type.
+func PossibleWebApplicationFirewallPolicyResourceStateValues() []WebApplicationFirewallPolicyResourceState {
+ return []WebApplicationFirewallPolicyResourceState{WebApplicationFirewallPolicyResourceStateCreating, WebApplicationFirewallPolicyResourceStateDeleting, WebApplicationFirewallPolicyResourceStateDisabled, WebApplicationFirewallPolicyResourceStateDisabling, WebApplicationFirewallPolicyResourceStateEnabled, WebApplicationFirewallPolicyResourceStateEnabling}
+}
+
+// WebApplicationFirewallRuleType enumerates the values for web application firewall rule type.
+type WebApplicationFirewallRuleType string
+
+const (
+ // WebApplicationFirewallRuleTypeInvalid ...
+ WebApplicationFirewallRuleTypeInvalid WebApplicationFirewallRuleType = "Invalid"
+ // WebApplicationFirewallRuleTypeMatchRule ...
+ WebApplicationFirewallRuleTypeMatchRule WebApplicationFirewallRuleType = "MatchRule"
+)
+
+// PossibleWebApplicationFirewallRuleTypeValues returns an array of possible values for the WebApplicationFirewallRuleType const type.
+func PossibleWebApplicationFirewallRuleTypeValues() []WebApplicationFirewallRuleType {
+ return []WebApplicationFirewallRuleType{WebApplicationFirewallRuleTypeInvalid, WebApplicationFirewallRuleTypeMatchRule}
+}
+
+// WebApplicationFirewallTransform enumerates the values for web application firewall transform.
+type WebApplicationFirewallTransform string
+
+const (
+ // HTMLEntityDecode ...
+ HTMLEntityDecode WebApplicationFirewallTransform = "HtmlEntityDecode"
+ // Lowercase ...
+ Lowercase WebApplicationFirewallTransform = "Lowercase"
+ // RemoveNulls ...
+ RemoveNulls WebApplicationFirewallTransform = "RemoveNulls"
+ // Trim ...
+ Trim WebApplicationFirewallTransform = "Trim"
+ // URLDecode ...
+ URLDecode WebApplicationFirewallTransform = "UrlDecode"
+ // URLEncode ...
+ URLEncode WebApplicationFirewallTransform = "UrlEncode"
+)
+
+// PossibleWebApplicationFirewallTransformValues returns an array of possible values for the WebApplicationFirewallTransform const type.
+func PossibleWebApplicationFirewallTransformValues() []WebApplicationFirewallTransform {
+ return []WebApplicationFirewallTransform{HTMLEntityDecode, Lowercase, RemoveNulls, Trim, URLDecode, URLEncode}
+}
+
+// AadAuthenticationParameters AAD Vpn authentication type related parameters.
+type AadAuthenticationParameters struct {
+ // AadTenant - AAD Vpn authentication parameter AAD tenant.
+ AadTenant *string `json:"aadTenant,omitempty"`
+ // AadAudience - AAD Vpn authentication parameter AAD audience.
+ AadAudience *string `json:"aadAudience,omitempty"`
+ // AadIssuer - AAD Vpn authentication parameter AAD issuer.
+ AadIssuer *string `json:"aadIssuer,omitempty"`
+}
+
+// AddressSpace addressSpace contains an array of IP address ranges that can be used by subnets of the
+// virtual network.
+type AddressSpace struct {
+ // AddressPrefixes - A list of address blocks reserved for this virtual network in CIDR notation.
+ AddressPrefixes *[]string `json:"addressPrefixes,omitempty"`
+}
+
+// ApplicationGateway application gateway resource.
+type ApplicationGateway struct {
+ autorest.Response `json:"-"`
+ // ApplicationGatewayPropertiesFormat - Properties of the application gateway.
+ *ApplicationGatewayPropertiesFormat `json:"properties,omitempty"`
+ // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated.
+ Etag *string `json:"etag,omitempty"`
+ // Zones - A list of availability zones denoting where the resource needs to come from.
+ Zones *[]string `json:"zones,omitempty"`
+ // Identity - The identity of the application gateway, if configured.
+ Identity *ManagedServiceIdentity `json:"identity,omitempty"`
+ // ID - Resource ID.
+ ID *string `json:"id,omitempty"`
+ // Name - READ-ONLY; Resource name.
+ Name *string `json:"name,omitempty"`
+ // Type - READ-ONLY; Resource type.
+ Type *string `json:"type,omitempty"`
+ // Location - Resource location.
+ Location *string `json:"location,omitempty"`
+ // Tags - Resource tags.
+ Tags map[string]*string `json:"tags"`
+}
+
+// MarshalJSON is the custom marshaler for ApplicationGateway.
+func (ag ApplicationGateway) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ if ag.ApplicationGatewayPropertiesFormat != nil {
+ objectMap["properties"] = ag.ApplicationGatewayPropertiesFormat
+ }
+ if ag.Zones != nil {
+ objectMap["zones"] = ag.Zones
+ }
+ if ag.Identity != nil {
+ objectMap["identity"] = ag.Identity
+ }
+ if ag.ID != nil {
+ objectMap["id"] = ag.ID
+ }
+ if ag.Location != nil {
+ objectMap["location"] = ag.Location
+ }
+ if ag.Tags != nil {
+ objectMap["tags"] = ag.Tags
+ }
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON is the custom unmarshaler for ApplicationGateway struct.
+func (ag *ApplicationGateway) 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 applicationGatewayPropertiesFormat ApplicationGatewayPropertiesFormat
+ err = json.Unmarshal(*v, &applicationGatewayPropertiesFormat)
+ if err != nil {
+ return err
+ }
+ ag.ApplicationGatewayPropertiesFormat = &applicationGatewayPropertiesFormat
+ }
+ case "etag":
+ if v != nil {
+ var etag string
+ err = json.Unmarshal(*v, &etag)
+ if err != nil {
+ return err
+ }
+ ag.Etag = &etag
+ }
+ case "zones":
+ if v != nil {
+ var zones []string
+ err = json.Unmarshal(*v, &zones)
+ if err != nil {
+ return err
+ }
+ ag.Zones = &zones
+ }
+ case "identity":
+ if v != nil {
+ var identity ManagedServiceIdentity
+ err = json.Unmarshal(*v, &identity)
+ if err != nil {
+ return err
+ }
+ ag.Identity = &identity
+ }
+ case "id":
+ if v != nil {
+ var ID string
+ err = json.Unmarshal(*v, &ID)
+ if err != nil {
+ return err
+ }
+ ag.ID = &ID
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ ag.Name = &name
+ }
+ case "type":
+ if v != nil {
+ var typeVar string
+ err = json.Unmarshal(*v, &typeVar)
+ if err != nil {
+ return err
+ }
+ ag.Type = &typeVar
+ }
+ case "location":
+ if v != nil {
+ var location string
+ err = json.Unmarshal(*v, &location)
+ if err != nil {
+ return err
+ }
+ ag.Location = &location
+ }
+ case "tags":
+ if v != nil {
+ var tags map[string]*string
+ err = json.Unmarshal(*v, &tags)
+ if err != nil {
+ return err
+ }
+ ag.Tags = tags
+ }
+ }
+ }
+
+ return nil
+}
+
+// ApplicationGatewayAuthenticationCertificate authentication certificates of an application gateway.
+type ApplicationGatewayAuthenticationCertificate struct {
+ // ApplicationGatewayAuthenticationCertificatePropertiesFormat - Properties of the application gateway authentication certificate.
+ *ApplicationGatewayAuthenticationCertificatePropertiesFormat `json:"properties,omitempty"`
+ // Name - Name of the authentication certificate that is unique within an Application Gateway.
+ Name *string `json:"name,omitempty"`
+ // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated.
+ Etag *string `json:"etag,omitempty"`
+ // Type - READ-ONLY; Type of the resource.
+ Type *string `json:"type,omitempty"`
+ // ID - Resource ID.
+ ID *string `json:"id,omitempty"`
+}
+
+// MarshalJSON is the custom marshaler for ApplicationGatewayAuthenticationCertificate.
+func (agac ApplicationGatewayAuthenticationCertificate) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ if agac.ApplicationGatewayAuthenticationCertificatePropertiesFormat != nil {
+ objectMap["properties"] = agac.ApplicationGatewayAuthenticationCertificatePropertiesFormat
+ }
+ if agac.Name != nil {
+ objectMap["name"] = agac.Name
+ }
+ if agac.ID != nil {
+ objectMap["id"] = agac.ID
+ }
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON is the custom unmarshaler for ApplicationGatewayAuthenticationCertificate struct.
+func (agac *ApplicationGatewayAuthenticationCertificate) 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 applicationGatewayAuthenticationCertificatePropertiesFormat ApplicationGatewayAuthenticationCertificatePropertiesFormat
+ err = json.Unmarshal(*v, &applicationGatewayAuthenticationCertificatePropertiesFormat)
+ if err != nil {
+ return err
+ }
+ agac.ApplicationGatewayAuthenticationCertificatePropertiesFormat = &applicationGatewayAuthenticationCertificatePropertiesFormat
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ agac.Name = &name
+ }
+ case "etag":
+ if v != nil {
+ var etag string
+ err = json.Unmarshal(*v, &etag)
+ if err != nil {
+ return err
+ }
+ agac.Etag = &etag
+ }
+ case "type":
+ if v != nil {
+ var typeVar string
+ err = json.Unmarshal(*v, &typeVar)
+ if err != nil {
+ return err
+ }
+ agac.Type = &typeVar
+ }
+ case "id":
+ if v != nil {
+ var ID string
+ err = json.Unmarshal(*v, &ID)
+ if err != nil {
+ return err
+ }
+ agac.ID = &ID
+ }
+ }
+ }
+
+ return nil
+}
+
+// ApplicationGatewayAuthenticationCertificatePropertiesFormat authentication certificates properties of an
+// application gateway.
+type ApplicationGatewayAuthenticationCertificatePropertiesFormat struct {
+ // Data - Certificate public data.
+ Data *string `json:"data,omitempty"`
+ // ProvisioningState - READ-ONLY; The provisioning state of the authentication certificate resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'
+ ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
+}
+
+// ApplicationGatewayAutoscaleConfiguration application Gateway autoscale configuration.
+type ApplicationGatewayAutoscaleConfiguration struct {
+ // MinCapacity - Lower bound on number of Application Gateway capacity.
+ MinCapacity *int32 `json:"minCapacity,omitempty"`
+ // MaxCapacity - Upper bound on number of Application Gateway capacity.
+ MaxCapacity *int32 `json:"maxCapacity,omitempty"`
+}
+
+// ApplicationGatewayAvailableSslOptions response for ApplicationGatewayAvailableSslOptions API service
+// call.
+type ApplicationGatewayAvailableSslOptions struct {
+ autorest.Response `json:"-"`
+ // ApplicationGatewayAvailableSslOptionsPropertiesFormat - Properties of the application gateway available SSL options.
+ *ApplicationGatewayAvailableSslOptionsPropertiesFormat `json:"properties,omitempty"`
+ // ID - Resource ID.
+ ID *string `json:"id,omitempty"`
+ // Name - READ-ONLY; Resource name.
+ Name *string `json:"name,omitempty"`
+ // Type - READ-ONLY; Resource type.
+ Type *string `json:"type,omitempty"`
+ // Location - Resource location.
+ Location *string `json:"location,omitempty"`
+ // Tags - Resource tags.
+ Tags map[string]*string `json:"tags"`
+}
+
+// MarshalJSON is the custom marshaler for ApplicationGatewayAvailableSslOptions.
+func (agaso ApplicationGatewayAvailableSslOptions) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ if agaso.ApplicationGatewayAvailableSslOptionsPropertiesFormat != nil {
+ objectMap["properties"] = agaso.ApplicationGatewayAvailableSslOptionsPropertiesFormat
+ }
+ if agaso.ID != nil {
+ objectMap["id"] = agaso.ID
+ }
+ if agaso.Location != nil {
+ objectMap["location"] = agaso.Location
+ }
+ if agaso.Tags != nil {
+ objectMap["tags"] = agaso.Tags
+ }
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON is the custom unmarshaler for ApplicationGatewayAvailableSslOptions struct.
+func (agaso *ApplicationGatewayAvailableSslOptions) 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 applicationGatewayAvailableSslOptionsPropertiesFormat ApplicationGatewayAvailableSslOptionsPropertiesFormat
+ err = json.Unmarshal(*v, &applicationGatewayAvailableSslOptionsPropertiesFormat)
+ if err != nil {
+ return err
+ }
+ agaso.ApplicationGatewayAvailableSslOptionsPropertiesFormat = &applicationGatewayAvailableSslOptionsPropertiesFormat
+ }
+ case "id":
+ if v != nil {
+ var ID string
+ err = json.Unmarshal(*v, &ID)
+ if err != nil {
+ return err
+ }
+ agaso.ID = &ID
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ agaso.Name = &name
+ }
+ case "type":
+ if v != nil {
+ var typeVar string
+ err = json.Unmarshal(*v, &typeVar)
+ if err != nil {
+ return err
+ }
+ agaso.Type = &typeVar
+ }
+ case "location":
+ if v != nil {
+ var location string
+ err = json.Unmarshal(*v, &location)
+ if err != nil {
+ return err
+ }
+ agaso.Location = &location
+ }
+ case "tags":
+ if v != nil {
+ var tags map[string]*string
+ err = json.Unmarshal(*v, &tags)
+ if err != nil {
+ return err
+ }
+ agaso.Tags = tags
+ }
+ }
+ }
+
+ return nil
+}
+
+// ApplicationGatewayAvailableSslOptionsPropertiesFormat properties of
+// ApplicationGatewayAvailableSslOptions.
+type ApplicationGatewayAvailableSslOptionsPropertiesFormat struct {
+ // PredefinedPolicies - List of available Ssl predefined policy.
+ PredefinedPolicies *[]SubResource `json:"predefinedPolicies,omitempty"`
+ // DefaultPolicy - Name of the Ssl predefined policy applied by default to application gateway. Possible values include: 'AppGwSslPolicy20150501', 'AppGwSslPolicy20170401', 'AppGwSslPolicy20170401S'
+ DefaultPolicy ApplicationGatewaySslPolicyName `json:"defaultPolicy,omitempty"`
+ // AvailableCipherSuites - List of available Ssl cipher suites.
+ AvailableCipherSuites *[]ApplicationGatewaySslCipherSuite `json:"availableCipherSuites,omitempty"`
+ // AvailableProtocols - List of available Ssl protocols.
+ AvailableProtocols *[]ApplicationGatewaySslProtocol `json:"availableProtocols,omitempty"`
+}
+
+// ApplicationGatewayAvailableSslPredefinedPolicies response for ApplicationGatewayAvailableSslOptions API
+// service call.
+type ApplicationGatewayAvailableSslPredefinedPolicies struct {
+ autorest.Response `json:"-"`
+ // Value - List of available Ssl predefined policy.
+ Value *[]ApplicationGatewaySslPredefinedPolicy `json:"value,omitempty"`
+ // NextLink - URL to get the next set of results.
+ NextLink *string `json:"nextLink,omitempty"`
+}
+
+// ApplicationGatewayAvailableSslPredefinedPoliciesIterator provides access to a complete listing of
+// ApplicationGatewaySslPredefinedPolicy values.
+type ApplicationGatewayAvailableSslPredefinedPoliciesIterator struct {
+ i int
+ page ApplicationGatewayAvailableSslPredefinedPoliciesPage
+}
+
+// NextWithContext 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 *ApplicationGatewayAvailableSslPredefinedPoliciesIterator) NextWithContext(ctx context.Context) (err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ApplicationGatewayAvailableSslPredefinedPoliciesIterator.NextWithContext")
+ defer func() {
+ sc := -1
+ if iter.Response().Response.Response != nil {
+ sc = iter.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ iter.i++
+ if iter.i < len(iter.page.Values()) {
+ return nil
+ }
+ err = iter.page.NextWithContext(ctx)
+ if err != nil {
+ iter.i--
+ return err
+ }
+ iter.i = 0
+ return nil
+}
+
+// Next advances to the next value. If there was an error making
+// the request the iterator does not advance and the error is returned.
+// Deprecated: Use NextWithContext() instead.
+func (iter *ApplicationGatewayAvailableSslPredefinedPoliciesIterator) Next() error {
+ return iter.NextWithContext(context.Background())
+}
+
+// NotDone returns true if the enumeration should be started or is not yet complete.
+func (iter ApplicationGatewayAvailableSslPredefinedPoliciesIterator) 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 ApplicationGatewayAvailableSslPredefinedPoliciesIterator) Response() ApplicationGatewayAvailableSslPredefinedPolicies {
+ 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 ApplicationGatewayAvailableSslPredefinedPoliciesIterator) Value() ApplicationGatewaySslPredefinedPolicy {
+ if !iter.page.NotDone() {
+ return ApplicationGatewaySslPredefinedPolicy{}
+ }
+ return iter.page.Values()[iter.i]
+}
+
+// Creates a new instance of the ApplicationGatewayAvailableSslPredefinedPoliciesIterator type.
+func NewApplicationGatewayAvailableSslPredefinedPoliciesIterator(page ApplicationGatewayAvailableSslPredefinedPoliciesPage) ApplicationGatewayAvailableSslPredefinedPoliciesIterator {
+ return ApplicationGatewayAvailableSslPredefinedPoliciesIterator{page: page}
+}
+
+// IsEmpty returns true if the ListResult contains no values.
+func (agaspp ApplicationGatewayAvailableSslPredefinedPolicies) IsEmpty() bool {
+ return agaspp.Value == nil || len(*agaspp.Value) == 0
+}
+
+// applicationGatewayAvailableSslPredefinedPoliciesPreparer prepares a request to retrieve the next set of results.
+// It returns nil if no more results exist.
+func (agaspp ApplicationGatewayAvailableSslPredefinedPolicies) applicationGatewayAvailableSslPredefinedPoliciesPreparer(ctx context.Context) (*http.Request, error) {
+ if agaspp.NextLink == nil || len(to.String(agaspp.NextLink)) < 1 {
+ return nil, nil
+ }
+ return autorest.Prepare((&http.Request{}).WithContext(ctx),
+ autorest.AsJSON(),
+ autorest.AsGet(),
+ autorest.WithBaseURL(to.String(agaspp.NextLink)))
+}
+
+// ApplicationGatewayAvailableSslPredefinedPoliciesPage contains a page of
+// ApplicationGatewaySslPredefinedPolicy values.
+type ApplicationGatewayAvailableSslPredefinedPoliciesPage struct {
+ fn func(context.Context, ApplicationGatewayAvailableSslPredefinedPolicies) (ApplicationGatewayAvailableSslPredefinedPolicies, error)
+ agaspp ApplicationGatewayAvailableSslPredefinedPolicies
+}
+
+// NextWithContext 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 *ApplicationGatewayAvailableSslPredefinedPoliciesPage) NextWithContext(ctx context.Context) (err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ApplicationGatewayAvailableSslPredefinedPoliciesPage.NextWithContext")
+ defer func() {
+ sc := -1
+ if page.Response().Response.Response != nil {
+ sc = page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ next, err := page.fn(ctx, page.agaspp)
+ if err != nil {
+ return err
+ }
+ page.agaspp = next
+ return nil
+}
+
+// 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.
+// Deprecated: Use NextWithContext() instead.
+func (page *ApplicationGatewayAvailableSslPredefinedPoliciesPage) Next() error {
+ return page.NextWithContext(context.Background())
+}
+
+// NotDone returns true if the page enumeration should be started or is not yet complete.
+func (page ApplicationGatewayAvailableSslPredefinedPoliciesPage) NotDone() bool {
+ return !page.agaspp.IsEmpty()
+}
+
+// Response returns the raw server response from the last page request.
+func (page ApplicationGatewayAvailableSslPredefinedPoliciesPage) Response() ApplicationGatewayAvailableSslPredefinedPolicies {
+ return page.agaspp
+}
+
+// Values returns the slice of values for the current page or nil if there are no values.
+func (page ApplicationGatewayAvailableSslPredefinedPoliciesPage) Values() []ApplicationGatewaySslPredefinedPolicy {
+ if page.agaspp.IsEmpty() {
+ return nil
+ }
+ return *page.agaspp.Value
+}
+
+// Creates a new instance of the ApplicationGatewayAvailableSslPredefinedPoliciesPage type.
+func NewApplicationGatewayAvailableSslPredefinedPoliciesPage(getNextPage func(context.Context, ApplicationGatewayAvailableSslPredefinedPolicies) (ApplicationGatewayAvailableSslPredefinedPolicies, error)) ApplicationGatewayAvailableSslPredefinedPoliciesPage {
+ return ApplicationGatewayAvailableSslPredefinedPoliciesPage{fn: getNextPage}
+}
+
+// ApplicationGatewayAvailableWafRuleSetsResult response for ApplicationGatewayAvailableWafRuleSets API
+// service call.
+type ApplicationGatewayAvailableWafRuleSetsResult struct {
+ autorest.Response `json:"-"`
+ // Value - The list of application gateway rule sets.
+ Value *[]ApplicationGatewayFirewallRuleSet `json:"value,omitempty"`
+}
+
+// ApplicationGatewayBackendAddress backend address of an application gateway.
+type ApplicationGatewayBackendAddress struct {
+ // Fqdn - Fully qualified domain name (FQDN).
+ Fqdn *string `json:"fqdn,omitempty"`
+ // IPAddress - IP address.
+ IPAddress *string `json:"ipAddress,omitempty"`
+}
+
+// ApplicationGatewayBackendAddressPool backend Address Pool of an application gateway.
+type ApplicationGatewayBackendAddressPool struct {
+ // ApplicationGatewayBackendAddressPoolPropertiesFormat - Properties of the application gateway backend address pool.
+ *ApplicationGatewayBackendAddressPoolPropertiesFormat `json:"properties,omitempty"`
+ // Name - Name of the backend address pool that is unique within an Application Gateway.
+ Name *string `json:"name,omitempty"`
+ // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated.
+ Etag *string `json:"etag,omitempty"`
+ // Type - READ-ONLY; Type of the resource.
+ Type *string `json:"type,omitempty"`
+ // ID - Resource ID.
+ ID *string `json:"id,omitempty"`
+}
+
+// MarshalJSON is the custom marshaler for ApplicationGatewayBackendAddressPool.
+func (agbap ApplicationGatewayBackendAddressPool) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ if agbap.ApplicationGatewayBackendAddressPoolPropertiesFormat != nil {
+ objectMap["properties"] = agbap.ApplicationGatewayBackendAddressPoolPropertiesFormat
+ }
+ if agbap.Name != nil {
+ objectMap["name"] = agbap.Name
+ }
+ if agbap.ID != nil {
+ objectMap["id"] = agbap.ID
+ }
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON is the custom unmarshaler for ApplicationGatewayBackendAddressPool struct.
+func (agbap *ApplicationGatewayBackendAddressPool) 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 applicationGatewayBackendAddressPoolPropertiesFormat ApplicationGatewayBackendAddressPoolPropertiesFormat
+ err = json.Unmarshal(*v, &applicationGatewayBackendAddressPoolPropertiesFormat)
+ if err != nil {
+ return err
+ }
+ agbap.ApplicationGatewayBackendAddressPoolPropertiesFormat = &applicationGatewayBackendAddressPoolPropertiesFormat
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ agbap.Name = &name
+ }
+ case "etag":
+ if v != nil {
+ var etag string
+ err = json.Unmarshal(*v, &etag)
+ if err != nil {
+ return err
+ }
+ agbap.Etag = &etag
+ }
+ case "type":
+ if v != nil {
+ var typeVar string
+ err = json.Unmarshal(*v, &typeVar)
+ if err != nil {
+ return err
+ }
+ agbap.Type = &typeVar
+ }
+ case "id":
+ if v != nil {
+ var ID string
+ err = json.Unmarshal(*v, &ID)
+ if err != nil {
+ return err
+ }
+ agbap.ID = &ID
+ }
+ }
+ }
+
+ return nil
+}
+
+// ApplicationGatewayBackendAddressPoolPropertiesFormat properties of Backend Address Pool of an
+// application gateway.
+type ApplicationGatewayBackendAddressPoolPropertiesFormat struct {
+ // BackendIPConfigurations - READ-ONLY; Collection of references to IPs defined in network interfaces.
+ BackendIPConfigurations *[]InterfaceIPConfiguration `json:"backendIPConfigurations,omitempty"`
+ // BackendAddresses - Backend addresses.
+ BackendAddresses *[]ApplicationGatewayBackendAddress `json:"backendAddresses,omitempty"`
+ // ProvisioningState - READ-ONLY; The provisioning state of the backend address pool resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'
+ ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
+}
+
+// ApplicationGatewayBackendHealth response for ApplicationGatewayBackendHealth API service call.
+type ApplicationGatewayBackendHealth struct {
+ autorest.Response `json:"-"`
+ // BackendAddressPools - A list of ApplicationGatewayBackendHealthPool resources.
+ BackendAddressPools *[]ApplicationGatewayBackendHealthPool `json:"backendAddressPools,omitempty"`
+}
+
+// ApplicationGatewayBackendHealthHTTPSettings application gateway BackendHealthHttp settings.
+type ApplicationGatewayBackendHealthHTTPSettings struct {
+ // BackendHTTPSettings - Reference to an ApplicationGatewayBackendHttpSettings resource.
+ BackendHTTPSettings *ApplicationGatewayBackendHTTPSettings `json:"backendHttpSettings,omitempty"`
+ // Servers - List of ApplicationGatewayBackendHealthServer resources.
+ Servers *[]ApplicationGatewayBackendHealthServer `json:"servers,omitempty"`
+}
+
+// ApplicationGatewayBackendHealthOnDemand result of on demand test probe.
+type ApplicationGatewayBackendHealthOnDemand struct {
+ autorest.Response `json:"-"`
+ // BackendAddressPool - Reference to an ApplicationGatewayBackendAddressPool resource.
+ BackendAddressPool *ApplicationGatewayBackendAddressPool `json:"backendAddressPool,omitempty"`
+ // BackendHealthHTTPSettings - Application gateway BackendHealthHttp settings.
+ BackendHealthHTTPSettings *ApplicationGatewayBackendHealthHTTPSettings `json:"backendHealthHttpSettings,omitempty"`
+}
+
+// ApplicationGatewayBackendHealthPool application gateway BackendHealth pool.
+type ApplicationGatewayBackendHealthPool struct {
+ // BackendAddressPool - Reference to an ApplicationGatewayBackendAddressPool resource.
+ BackendAddressPool *ApplicationGatewayBackendAddressPool `json:"backendAddressPool,omitempty"`
+ // BackendHTTPSettingsCollection - List of ApplicationGatewayBackendHealthHttpSettings resources.
+ BackendHTTPSettingsCollection *[]ApplicationGatewayBackendHealthHTTPSettings `json:"backendHttpSettingsCollection,omitempty"`
+}
+
+// ApplicationGatewayBackendHealthServer application gateway backendhealth http settings.
+type ApplicationGatewayBackendHealthServer struct {
+ // Address - IP address or FQDN of backend server.
+ Address *string `json:"address,omitempty"`
+ // IPConfiguration - Reference to IP configuration of backend server.
+ IPConfiguration *InterfaceIPConfiguration `json:"ipConfiguration,omitempty"`
+ // Health - Health of backend server. Possible values include: 'Unknown', 'Up', 'Down', 'Partial', 'Draining'
+ Health ApplicationGatewayBackendHealthServerHealth `json:"health,omitempty"`
+ // HealthProbeLog - Health Probe Log.
+ HealthProbeLog *string `json:"healthProbeLog,omitempty"`
+}
+
+// ApplicationGatewayBackendHTTPSettings backend address pool settings of an application gateway.
+type ApplicationGatewayBackendHTTPSettings struct {
+ // ApplicationGatewayBackendHTTPSettingsPropertiesFormat - Properties of the application gateway backend HTTP settings.
+ *ApplicationGatewayBackendHTTPSettingsPropertiesFormat `json:"properties,omitempty"`
+ // Name - Name of the backend http settings that is unique within an Application Gateway.
+ Name *string `json:"name,omitempty"`
+ // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated.
+ Etag *string `json:"etag,omitempty"`
+ // Type - READ-ONLY; Type of the resource.
+ Type *string `json:"type,omitempty"`
+ // ID - Resource ID.
+ ID *string `json:"id,omitempty"`
+}
+
+// MarshalJSON is the custom marshaler for ApplicationGatewayBackendHTTPSettings.
+func (agbhs ApplicationGatewayBackendHTTPSettings) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ if agbhs.ApplicationGatewayBackendHTTPSettingsPropertiesFormat != nil {
+ objectMap["properties"] = agbhs.ApplicationGatewayBackendHTTPSettingsPropertiesFormat
+ }
+ if agbhs.Name != nil {
+ objectMap["name"] = agbhs.Name
+ }
+ if agbhs.ID != nil {
+ objectMap["id"] = agbhs.ID
+ }
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON is the custom unmarshaler for ApplicationGatewayBackendHTTPSettings struct.
+func (agbhs *ApplicationGatewayBackendHTTPSettings) 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 applicationGatewayBackendHTTPSettingsPropertiesFormat ApplicationGatewayBackendHTTPSettingsPropertiesFormat
+ err = json.Unmarshal(*v, &applicationGatewayBackendHTTPSettingsPropertiesFormat)
+ if err != nil {
+ return err
+ }
+ agbhs.ApplicationGatewayBackendHTTPSettingsPropertiesFormat = &applicationGatewayBackendHTTPSettingsPropertiesFormat
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ agbhs.Name = &name
+ }
+ case "etag":
+ if v != nil {
+ var etag string
+ err = json.Unmarshal(*v, &etag)
+ if err != nil {
+ return err
+ }
+ agbhs.Etag = &etag
+ }
+ case "type":
+ if v != nil {
+ var typeVar string
+ err = json.Unmarshal(*v, &typeVar)
+ if err != nil {
+ return err
+ }
+ agbhs.Type = &typeVar
+ }
+ case "id":
+ if v != nil {
+ var ID string
+ err = json.Unmarshal(*v, &ID)
+ if err != nil {
+ return err
+ }
+ agbhs.ID = &ID
+ }
+ }
+ }
+
+ return nil
+}
+
+// ApplicationGatewayBackendHTTPSettingsPropertiesFormat properties of Backend address pool settings of an
+// application gateway.
+type ApplicationGatewayBackendHTTPSettingsPropertiesFormat struct {
+ // Port - The destination port on the backend.
+ Port *int32 `json:"port,omitempty"`
+ // Protocol - The protocol used to communicate with the backend. Possible values include: 'HTTP', 'HTTPS'
+ Protocol ApplicationGatewayProtocol `json:"protocol,omitempty"`
+ // CookieBasedAffinity - Cookie based affinity. Possible values include: 'Enabled', 'Disabled'
+ CookieBasedAffinity ApplicationGatewayCookieBasedAffinity `json:"cookieBasedAffinity,omitempty"`
+ // RequestTimeout - Request timeout in seconds. Application Gateway will fail the request if response is not received within RequestTimeout. Acceptable values are from 1 second to 86400 seconds.
+ RequestTimeout *int32 `json:"requestTimeout,omitempty"`
+ // Probe - Probe resource of an application gateway.
+ Probe *SubResource `json:"probe,omitempty"`
+ // AuthenticationCertificates - Array of references to application gateway authentication certificates.
+ AuthenticationCertificates *[]SubResource `json:"authenticationCertificates,omitempty"`
+ // TrustedRootCertificates - Array of references to application gateway trusted root certificates.
+ TrustedRootCertificates *[]SubResource `json:"trustedRootCertificates,omitempty"`
+ // ConnectionDraining - Connection draining of the backend http settings resource.
+ ConnectionDraining *ApplicationGatewayConnectionDraining `json:"connectionDraining,omitempty"`
+ // HostName - Host header to be sent to the backend servers.
+ HostName *string `json:"hostName,omitempty"`
+ // PickHostNameFromBackendAddress - Whether to pick host header should be picked from the host name of the backend server. Default value is false.
+ PickHostNameFromBackendAddress *bool `json:"pickHostNameFromBackendAddress,omitempty"`
+ // AffinityCookieName - Cookie name to use for the affinity cookie.
+ AffinityCookieName *string `json:"affinityCookieName,omitempty"`
+ // ProbeEnabled - Whether the probe is enabled. Default value is false.
+ ProbeEnabled *bool `json:"probeEnabled,omitempty"`
+ // Path - Path which should be used as a prefix for all HTTP requests. Null means no path will be prefixed. Default value is null.
+ Path *string `json:"path,omitempty"`
+ // ProvisioningState - READ-ONLY; The provisioning state of the backend HTTP settings resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'
+ ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
+}
+
+// ApplicationGatewayConnectionDraining connection draining allows open connections to a backend server to
+// be active for a specified time after the backend server got removed from the configuration.
+type ApplicationGatewayConnectionDraining struct {
+ // Enabled - Whether connection draining is enabled or not.
+ Enabled *bool `json:"enabled,omitempty"`
+ // DrainTimeoutInSec - The number of seconds connection draining is active. Acceptable values are from 1 second to 3600 seconds.
+ DrainTimeoutInSec *int32 `json:"drainTimeoutInSec,omitempty"`
+}
+
+// ApplicationGatewayCustomError customer error of an application gateway.
+type ApplicationGatewayCustomError struct {
+ // StatusCode - Status code of the application gateway customer error. Possible values include: 'HTTPStatus403', 'HTTPStatus502'
+ StatusCode ApplicationGatewayCustomErrorStatusCode `json:"statusCode,omitempty"`
+ // CustomErrorPageURL - Error page URL of the application gateway customer error.
+ CustomErrorPageURL *string `json:"customErrorPageUrl,omitempty"`
+}
+
+// ApplicationGatewayFirewallDisabledRuleGroup allows to disable rules within a rule group or an entire
+// rule group.
+type ApplicationGatewayFirewallDisabledRuleGroup struct {
+ // RuleGroupName - The name of the rule group that will be disabled.
+ RuleGroupName *string `json:"ruleGroupName,omitempty"`
+ // Rules - The list of rules that will be disabled. If null, all rules of the rule group will be disabled.
+ Rules *[]int32 `json:"rules,omitempty"`
+}
+
+// ApplicationGatewayFirewallExclusion allow to exclude some variable satisfy the condition for the WAF
+// check.
+type ApplicationGatewayFirewallExclusion struct {
+ // MatchVariable - The variable to be excluded.
+ MatchVariable *string `json:"matchVariable,omitempty"`
+ // SelectorMatchOperator - When matchVariable is a collection, operate on the selector to specify which elements in the collection this exclusion applies to.
+ SelectorMatchOperator *string `json:"selectorMatchOperator,omitempty"`
+ // Selector - When matchVariable is a collection, operator used to specify which elements in the collection this exclusion applies to.
+ Selector *string `json:"selector,omitempty"`
+}
+
+// ApplicationGatewayFirewallRule a web application firewall rule.
+type ApplicationGatewayFirewallRule struct {
+ // RuleID - The identifier of the web application firewall rule.
+ RuleID *int32 `json:"ruleId,omitempty"`
+ // Description - The description of the web application firewall rule.
+ Description *string `json:"description,omitempty"`
+}
+
+// ApplicationGatewayFirewallRuleGroup a web application firewall rule group.
+type ApplicationGatewayFirewallRuleGroup struct {
+ // RuleGroupName - The name of the web application firewall rule group.
+ RuleGroupName *string `json:"ruleGroupName,omitempty"`
+ // Description - The description of the web application firewall rule group.
+ Description *string `json:"description,omitempty"`
+ // Rules - The rules of the web application firewall rule group.
+ Rules *[]ApplicationGatewayFirewallRule `json:"rules,omitempty"`
+}
+
+// ApplicationGatewayFirewallRuleSet a web application firewall rule set.
+type ApplicationGatewayFirewallRuleSet struct {
+ // ApplicationGatewayFirewallRuleSetPropertiesFormat - Properties of the application gateway firewall rule set.
+ *ApplicationGatewayFirewallRuleSetPropertiesFormat `json:"properties,omitempty"`
+ // ID - Resource ID.
+ ID *string `json:"id,omitempty"`
+ // Name - READ-ONLY; Resource name.
+ Name *string `json:"name,omitempty"`
+ // Type - READ-ONLY; Resource type.
+ Type *string `json:"type,omitempty"`
+ // Location - Resource location.
+ Location *string `json:"location,omitempty"`
+ // Tags - Resource tags.
+ Tags map[string]*string `json:"tags"`
+}
+
+// MarshalJSON is the custom marshaler for ApplicationGatewayFirewallRuleSet.
+func (agfrs ApplicationGatewayFirewallRuleSet) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ if agfrs.ApplicationGatewayFirewallRuleSetPropertiesFormat != nil {
+ objectMap["properties"] = agfrs.ApplicationGatewayFirewallRuleSetPropertiesFormat
+ }
+ if agfrs.ID != nil {
+ objectMap["id"] = agfrs.ID
+ }
+ if agfrs.Location != nil {
+ objectMap["location"] = agfrs.Location
+ }
+ if agfrs.Tags != nil {
+ objectMap["tags"] = agfrs.Tags
+ }
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON is the custom unmarshaler for ApplicationGatewayFirewallRuleSet struct.
+func (agfrs *ApplicationGatewayFirewallRuleSet) 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 applicationGatewayFirewallRuleSetPropertiesFormat ApplicationGatewayFirewallRuleSetPropertiesFormat
+ err = json.Unmarshal(*v, &applicationGatewayFirewallRuleSetPropertiesFormat)
+ if err != nil {
+ return err
+ }
+ agfrs.ApplicationGatewayFirewallRuleSetPropertiesFormat = &applicationGatewayFirewallRuleSetPropertiesFormat
+ }
+ case "id":
+ if v != nil {
+ var ID string
+ err = json.Unmarshal(*v, &ID)
+ if err != nil {
+ return err
+ }
+ agfrs.ID = &ID
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ agfrs.Name = &name
+ }
+ case "type":
+ if v != nil {
+ var typeVar string
+ err = json.Unmarshal(*v, &typeVar)
+ if err != nil {
+ return err
+ }
+ agfrs.Type = &typeVar
+ }
+ case "location":
+ if v != nil {
+ var location string
+ err = json.Unmarshal(*v, &location)
+ if err != nil {
+ return err
+ }
+ agfrs.Location = &location
+ }
+ case "tags":
+ if v != nil {
+ var tags map[string]*string
+ err = json.Unmarshal(*v, &tags)
+ if err != nil {
+ return err
+ }
+ agfrs.Tags = tags
+ }
+ }
+ }
+
+ return nil
+}
+
+// ApplicationGatewayFirewallRuleSetPropertiesFormat properties of the web application firewall rule set.
+type ApplicationGatewayFirewallRuleSetPropertiesFormat struct {
+ // ProvisioningState - READ-ONLY; The provisioning state of the web application firewall rule set. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'
+ ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
+ // RuleSetType - The type of the web application firewall rule set.
+ RuleSetType *string `json:"ruleSetType,omitempty"`
+ // RuleSetVersion - The version of the web application firewall rule set type.
+ RuleSetVersion *string `json:"ruleSetVersion,omitempty"`
+ // RuleGroups - The rule groups of the web application firewall rule set.
+ RuleGroups *[]ApplicationGatewayFirewallRuleGroup `json:"ruleGroups,omitempty"`
+}
+
+// ApplicationGatewayFrontendIPConfiguration frontend IP configuration of an application gateway.
+type ApplicationGatewayFrontendIPConfiguration struct {
+ // ApplicationGatewayFrontendIPConfigurationPropertiesFormat - Properties of the application gateway frontend IP configuration.
+ *ApplicationGatewayFrontendIPConfigurationPropertiesFormat `json:"properties,omitempty"`
+ // Name - Name of the frontend IP configuration that is unique within an Application Gateway.
+ Name *string `json:"name,omitempty"`
+ // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated.
+ Etag *string `json:"etag,omitempty"`
+ // Type - READ-ONLY; Type of the resource.
+ Type *string `json:"type,omitempty"`
+ // ID - Resource ID.
+ ID *string `json:"id,omitempty"`
+}
+
+// MarshalJSON is the custom marshaler for ApplicationGatewayFrontendIPConfiguration.
+func (agfic ApplicationGatewayFrontendIPConfiguration) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ if agfic.ApplicationGatewayFrontendIPConfigurationPropertiesFormat != nil {
+ objectMap["properties"] = agfic.ApplicationGatewayFrontendIPConfigurationPropertiesFormat
+ }
+ if agfic.Name != nil {
+ objectMap["name"] = agfic.Name
+ }
+ if agfic.ID != nil {
+ objectMap["id"] = agfic.ID
+ }
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON is the custom unmarshaler for ApplicationGatewayFrontendIPConfiguration struct.
+func (agfic *ApplicationGatewayFrontendIPConfiguration) 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 applicationGatewayFrontendIPConfigurationPropertiesFormat ApplicationGatewayFrontendIPConfigurationPropertiesFormat
+ err = json.Unmarshal(*v, &applicationGatewayFrontendIPConfigurationPropertiesFormat)
+ if err != nil {
+ return err
+ }
+ agfic.ApplicationGatewayFrontendIPConfigurationPropertiesFormat = &applicationGatewayFrontendIPConfigurationPropertiesFormat
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ agfic.Name = &name
+ }
+ case "etag":
+ if v != nil {
+ var etag string
+ err = json.Unmarshal(*v, &etag)
+ if err != nil {
+ return err
+ }
+ agfic.Etag = &etag
+ }
+ case "type":
+ if v != nil {
+ var typeVar string
+ err = json.Unmarshal(*v, &typeVar)
+ if err != nil {
+ return err
+ }
+ agfic.Type = &typeVar
+ }
+ case "id":
+ if v != nil {
+ var ID string
+ err = json.Unmarshal(*v, &ID)
+ if err != nil {
+ return err
+ }
+ agfic.ID = &ID
+ }
+ }
+ }
+
+ return nil
+}
+
+// ApplicationGatewayFrontendIPConfigurationPropertiesFormat properties of Frontend IP configuration of an
+// application gateway.
+type ApplicationGatewayFrontendIPConfigurationPropertiesFormat struct {
+ // PrivateIPAddress - PrivateIPAddress of the network interface IP Configuration.
+ PrivateIPAddress *string `json:"privateIPAddress,omitempty"`
+ // PrivateIPAllocationMethod - The private IP address allocation method. Possible values include: 'Static', 'Dynamic'
+ PrivateIPAllocationMethod IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"`
+ // Subnet - Reference to the subnet resource.
+ Subnet *SubResource `json:"subnet,omitempty"`
+ // PublicIPAddress - Reference to the PublicIP resource.
+ PublicIPAddress *SubResource `json:"publicIPAddress,omitempty"`
+ // ProvisioningState - READ-ONLY; The provisioning state of the frontend IP configuration resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'
+ ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
+}
+
+// ApplicationGatewayFrontendPort frontend port of an application gateway.
+type ApplicationGatewayFrontendPort struct {
+ // ApplicationGatewayFrontendPortPropertiesFormat - Properties of the application gateway frontend port.
+ *ApplicationGatewayFrontendPortPropertiesFormat `json:"properties,omitempty"`
+ // Name - Name of the frontend port that is unique within an Application Gateway.
+ Name *string `json:"name,omitempty"`
+ // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated.
+ Etag *string `json:"etag,omitempty"`
+ // Type - READ-ONLY; Type of the resource.
+ Type *string `json:"type,omitempty"`
+ // ID - Resource ID.
+ ID *string `json:"id,omitempty"`
+}
+
+// MarshalJSON is the custom marshaler for ApplicationGatewayFrontendPort.
+func (agfp ApplicationGatewayFrontendPort) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ if agfp.ApplicationGatewayFrontendPortPropertiesFormat != nil {
+ objectMap["properties"] = agfp.ApplicationGatewayFrontendPortPropertiesFormat
+ }
+ if agfp.Name != nil {
+ objectMap["name"] = agfp.Name
+ }
+ if agfp.ID != nil {
+ objectMap["id"] = agfp.ID
+ }
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON is the custom unmarshaler for ApplicationGatewayFrontendPort struct.
+func (agfp *ApplicationGatewayFrontendPort) 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 applicationGatewayFrontendPortPropertiesFormat ApplicationGatewayFrontendPortPropertiesFormat
+ err = json.Unmarshal(*v, &applicationGatewayFrontendPortPropertiesFormat)
+ if err != nil {
+ return err
+ }
+ agfp.ApplicationGatewayFrontendPortPropertiesFormat = &applicationGatewayFrontendPortPropertiesFormat
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ agfp.Name = &name
+ }
+ case "etag":
+ if v != nil {
+ var etag string
+ err = json.Unmarshal(*v, &etag)
+ if err != nil {
+ return err
+ }
+ agfp.Etag = &etag
+ }
+ case "type":
+ if v != nil {
+ var typeVar string
+ err = json.Unmarshal(*v, &typeVar)
+ if err != nil {
+ return err
+ }
+ agfp.Type = &typeVar
+ }
+ case "id":
+ if v != nil {
+ var ID string
+ err = json.Unmarshal(*v, &ID)
+ if err != nil {
+ return err
+ }
+ agfp.ID = &ID
+ }
+ }
+ }
+
+ return nil
+}
+
+// ApplicationGatewayFrontendPortPropertiesFormat properties of Frontend port of an application gateway.
+type ApplicationGatewayFrontendPortPropertiesFormat struct {
+ // Port - Frontend port.
+ Port *int32 `json:"port,omitempty"`
+ // ProvisioningState - READ-ONLY; The provisioning state of the frontend port resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'
+ ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
+}
+
+// ApplicationGatewayHeaderConfiguration header configuration of the Actions set in Application Gateway.
+type ApplicationGatewayHeaderConfiguration struct {
+ // HeaderName - Header name of the header configuration.
+ HeaderName *string `json:"headerName,omitempty"`
+ // HeaderValue - Header value of the header configuration.
+ HeaderValue *string `json:"headerValue,omitempty"`
+}
+
+// ApplicationGatewayHTTPListener http listener of an application gateway.
+type ApplicationGatewayHTTPListener struct {
+ // ApplicationGatewayHTTPListenerPropertiesFormat - Properties of the application gateway HTTP listener.
+ *ApplicationGatewayHTTPListenerPropertiesFormat `json:"properties,omitempty"`
+ // Name - Name of the HTTP listener that is unique within an Application Gateway.
+ Name *string `json:"name,omitempty"`
+ // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated.
+ Etag *string `json:"etag,omitempty"`
+ // Type - READ-ONLY; Type of the resource.
+ Type *string `json:"type,omitempty"`
+ // ID - Resource ID.
+ ID *string `json:"id,omitempty"`
+}
+
+// MarshalJSON is the custom marshaler for ApplicationGatewayHTTPListener.
+func (aghl ApplicationGatewayHTTPListener) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ if aghl.ApplicationGatewayHTTPListenerPropertiesFormat != nil {
+ objectMap["properties"] = aghl.ApplicationGatewayHTTPListenerPropertiesFormat
+ }
+ if aghl.Name != nil {
+ objectMap["name"] = aghl.Name
+ }
+ if aghl.ID != nil {
+ objectMap["id"] = aghl.ID
+ }
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON is the custom unmarshaler for ApplicationGatewayHTTPListener struct.
+func (aghl *ApplicationGatewayHTTPListener) 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 applicationGatewayHTTPListenerPropertiesFormat ApplicationGatewayHTTPListenerPropertiesFormat
+ err = json.Unmarshal(*v, &applicationGatewayHTTPListenerPropertiesFormat)
+ if err != nil {
+ return err
+ }
+ aghl.ApplicationGatewayHTTPListenerPropertiesFormat = &applicationGatewayHTTPListenerPropertiesFormat
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ aghl.Name = &name
+ }
+ case "etag":
+ if v != nil {
+ var etag string
+ err = json.Unmarshal(*v, &etag)
+ if err != nil {
+ return err
+ }
+ aghl.Etag = &etag
+ }
+ case "type":
+ if v != nil {
+ var typeVar string
+ err = json.Unmarshal(*v, &typeVar)
+ if err != nil {
+ return err
+ }
+ aghl.Type = &typeVar
+ }
+ case "id":
+ if v != nil {
+ var ID string
+ err = json.Unmarshal(*v, &ID)
+ if err != nil {
+ return err
+ }
+ aghl.ID = &ID
+ }
+ }
+ }
+
+ return nil
+}
+
+// ApplicationGatewayHTTPListenerPropertiesFormat properties of HTTP listener of an application gateway.
+type ApplicationGatewayHTTPListenerPropertiesFormat struct {
+ // FrontendIPConfiguration - Frontend IP configuration resource of an application gateway.
+ FrontendIPConfiguration *SubResource `json:"frontendIPConfiguration,omitempty"`
+ // FrontendPort - Frontend port resource of an application gateway.
+ FrontendPort *SubResource `json:"frontendPort,omitempty"`
+ // Protocol - Protocol of the HTTP listener. Possible values include: 'HTTP', 'HTTPS'
+ Protocol ApplicationGatewayProtocol `json:"protocol,omitempty"`
+ // HostName - Host name of HTTP listener.
+ HostName *string `json:"hostName,omitempty"`
+ // SslCertificate - SSL certificate resource of an application gateway.
+ SslCertificate *SubResource `json:"sslCertificate,omitempty"`
+ // RequireServerNameIndication - Applicable only if protocol is https. Enables SNI for multi-hosting.
+ RequireServerNameIndication *bool `json:"requireServerNameIndication,omitempty"`
+ // ProvisioningState - READ-ONLY; The provisioning state of the HTTP listener resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'
+ ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
+ // CustomErrorConfigurations - Custom error configurations of the HTTP listener.
+ CustomErrorConfigurations *[]ApplicationGatewayCustomError `json:"customErrorConfigurations,omitempty"`
+ // FirewallPolicy - Reference to the FirewallPolicy resource.
+ FirewallPolicy *SubResource `json:"firewallPolicy,omitempty"`
+ // Hostnames - List of Host names for HTTP Listener that allows special wildcard characters as well.
+ Hostnames *[]string `json:"hostnames,omitempty"`
+}
+
+// ApplicationGatewayIPConfiguration IP configuration of an application gateway. Currently 1 public and 1
+// private IP configuration is allowed.
+type ApplicationGatewayIPConfiguration struct {
+ // ApplicationGatewayIPConfigurationPropertiesFormat - Properties of the application gateway IP configuration.
+ *ApplicationGatewayIPConfigurationPropertiesFormat `json:"properties,omitempty"`
+ // Name - Name of the IP configuration that is unique within an Application Gateway.
+ Name *string `json:"name,omitempty"`
+ // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated.
+ Etag *string `json:"etag,omitempty"`
+ // Type - READ-ONLY; Type of the resource.
+ Type *string `json:"type,omitempty"`
+ // ID - Resource ID.
+ ID *string `json:"id,omitempty"`
+}
+
+// MarshalJSON is the custom marshaler for ApplicationGatewayIPConfiguration.
+func (agic ApplicationGatewayIPConfiguration) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ if agic.ApplicationGatewayIPConfigurationPropertiesFormat != nil {
+ objectMap["properties"] = agic.ApplicationGatewayIPConfigurationPropertiesFormat
+ }
+ if agic.Name != nil {
+ objectMap["name"] = agic.Name
+ }
+ if agic.ID != nil {
+ objectMap["id"] = agic.ID
+ }
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON is the custom unmarshaler for ApplicationGatewayIPConfiguration struct.
+func (agic *ApplicationGatewayIPConfiguration) 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 applicationGatewayIPConfigurationPropertiesFormat ApplicationGatewayIPConfigurationPropertiesFormat
+ err = json.Unmarshal(*v, &applicationGatewayIPConfigurationPropertiesFormat)
+ if err != nil {
+ return err
+ }
+ agic.ApplicationGatewayIPConfigurationPropertiesFormat = &applicationGatewayIPConfigurationPropertiesFormat
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ agic.Name = &name
+ }
+ case "etag":
+ if v != nil {
+ var etag string
+ err = json.Unmarshal(*v, &etag)
+ if err != nil {
+ return err
+ }
+ agic.Etag = &etag
+ }
+ case "type":
+ if v != nil {
+ var typeVar string
+ err = json.Unmarshal(*v, &typeVar)
+ if err != nil {
+ return err
+ }
+ agic.Type = &typeVar
+ }
+ case "id":
+ if v != nil {
+ var ID string
+ err = json.Unmarshal(*v, &ID)
+ if err != nil {
+ return err
+ }
+ agic.ID = &ID
+ }
+ }
+ }
+
+ return nil
+}
+
+// ApplicationGatewayIPConfigurationPropertiesFormat properties of IP configuration of an application
+// gateway.
+type ApplicationGatewayIPConfigurationPropertiesFormat struct {
+ // Subnet - Reference to the subnet resource. A subnet from where application gateway gets its private address.
+ Subnet *SubResource `json:"subnet,omitempty"`
+ // ProvisioningState - READ-ONLY; The provisioning state of the application gateway IP configuration resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'
+ ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
+}
+
+// ApplicationGatewayListResult response for ListApplicationGateways API service call.
+type ApplicationGatewayListResult struct {
+ autorest.Response `json:"-"`
+ // Value - List of an application gateways in a resource group.
+ Value *[]ApplicationGateway `json:"value,omitempty"`
+ // NextLink - URL to get the next set of results.
+ NextLink *string `json:"nextLink,omitempty"`
+}
+
+// ApplicationGatewayListResultIterator provides access to a complete listing of ApplicationGateway values.
+type ApplicationGatewayListResultIterator struct {
+ i int
+ page ApplicationGatewayListResultPage
+}
+
+// NextWithContext 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 *ApplicationGatewayListResultIterator) NextWithContext(ctx context.Context) (err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ApplicationGatewayListResultIterator.NextWithContext")
+ defer func() {
+ sc := -1
+ if iter.Response().Response.Response != nil {
+ sc = iter.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ iter.i++
+ if iter.i < len(iter.page.Values()) {
+ return nil
+ }
+ err = iter.page.NextWithContext(ctx)
+ if err != nil {
+ iter.i--
+ return err
+ }
+ iter.i = 0
+ return nil
+}
+
+// Next advances to the next value. If there was an error making
+// the request the iterator does not advance and the error is returned.
+// Deprecated: Use NextWithContext() instead.
+func (iter *ApplicationGatewayListResultIterator) Next() error {
+ return iter.NextWithContext(context.Background())
+}
+
+// NotDone returns true if the enumeration should be started or is not yet complete.
+func (iter ApplicationGatewayListResultIterator) 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 ApplicationGatewayListResultIterator) Response() ApplicationGatewayListResult {
+ 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 ApplicationGatewayListResultIterator) Value() ApplicationGateway {
+ if !iter.page.NotDone() {
+ return ApplicationGateway{}
+ }
+ return iter.page.Values()[iter.i]
+}
+
+// Creates a new instance of the ApplicationGatewayListResultIterator type.
+func NewApplicationGatewayListResultIterator(page ApplicationGatewayListResultPage) ApplicationGatewayListResultIterator {
+ return ApplicationGatewayListResultIterator{page: page}
+}
+
+// IsEmpty returns true if the ListResult contains no values.
+func (aglr ApplicationGatewayListResult) IsEmpty() bool {
+ return aglr.Value == nil || len(*aglr.Value) == 0
+}
+
+// applicationGatewayListResultPreparer prepares a request to retrieve the next set of results.
+// It returns nil if no more results exist.
+func (aglr ApplicationGatewayListResult) applicationGatewayListResultPreparer(ctx context.Context) (*http.Request, error) {
+ if aglr.NextLink == nil || len(to.String(aglr.NextLink)) < 1 {
+ return nil, nil
+ }
+ return autorest.Prepare((&http.Request{}).WithContext(ctx),
+ autorest.AsJSON(),
+ autorest.AsGet(),
+ autorest.WithBaseURL(to.String(aglr.NextLink)))
+}
+
+// ApplicationGatewayListResultPage contains a page of ApplicationGateway values.
+type ApplicationGatewayListResultPage struct {
+ fn func(context.Context, ApplicationGatewayListResult) (ApplicationGatewayListResult, error)
+ aglr ApplicationGatewayListResult
+}
+
+// NextWithContext 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 *ApplicationGatewayListResultPage) NextWithContext(ctx context.Context) (err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ApplicationGatewayListResultPage.NextWithContext")
+ defer func() {
+ sc := -1
+ if page.Response().Response.Response != nil {
+ sc = page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ next, err := page.fn(ctx, page.aglr)
+ if err != nil {
+ return err
+ }
+ page.aglr = next
+ return nil
+}
+
+// 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.
+// Deprecated: Use NextWithContext() instead.
+func (page *ApplicationGatewayListResultPage) Next() error {
+ return page.NextWithContext(context.Background())
+}
+
+// NotDone returns true if the page enumeration should be started or is not yet complete.
+func (page ApplicationGatewayListResultPage) NotDone() bool {
+ return !page.aglr.IsEmpty()
+}
+
+// Response returns the raw server response from the last page request.
+func (page ApplicationGatewayListResultPage) Response() ApplicationGatewayListResult {
+ return page.aglr
+}
+
+// Values returns the slice of values for the current page or nil if there are no values.
+func (page ApplicationGatewayListResultPage) Values() []ApplicationGateway {
+ if page.aglr.IsEmpty() {
+ return nil
+ }
+ return *page.aglr.Value
+}
+
+// Creates a new instance of the ApplicationGatewayListResultPage type.
+func NewApplicationGatewayListResultPage(getNextPage func(context.Context, ApplicationGatewayListResult) (ApplicationGatewayListResult, error)) ApplicationGatewayListResultPage {
+ return ApplicationGatewayListResultPage{fn: getNextPage}
+}
+
+// ApplicationGatewayOnDemandProbe details of on demand test probe request.
+type ApplicationGatewayOnDemandProbe struct {
+ // Protocol - The protocol used for the probe. Possible values include: 'HTTP', 'HTTPS'
+ Protocol ApplicationGatewayProtocol `json:"protocol,omitempty"`
+ // Host - Host name to send the probe to.
+ Host *string `json:"host,omitempty"`
+ // Path - Relative path of probe. Valid path starts from '/'. Probe is sent to Issue +// type | Service +// Id |
Billing | '/providers/Microsoft.Support/services/517f2da6-78fd-0498-4e22-ad26996b1dfc' |
Subscription +// Management | '/providers/Microsoft.Support/services/f3dc5421-79ef-1efa-41a5-42bf3cbb52c6' |
Quota | '/providers/Microsoft.Support/services/06bfd9d3-516b-d5c6-5802-169c800dec89' |