diff --git a/profiles/latest/devtestlabs/mgmt/dtl/models.go b/profiles/latest/devtestlabs/mgmt/dtl/models.go index 43ed11186d72..f35bb8a8b6ee 100644 --- a/profiles/latest/devtestlabs/mgmt/dtl/models.go +++ b/profiles/latest/devtestlabs/mgmt/dtl/models.go @@ -196,8 +196,9 @@ const ( type StorageType = original.StorageType const ( - Premium StorageType = original.Premium - Standard StorageType = original.Standard + Premium StorageType = original.Premium + Standard StorageType = original.Standard + StandardSSD StorageType = original.StandardSSD ) type TargetCostStatus = original.TargetCostStatus @@ -225,8 +226,9 @@ const ( type VirtualMachineCreationSource = original.VirtualMachineCreationSource const ( - FromCustomImage VirtualMachineCreationSource = original.FromCustomImage - FromGalleryImage VirtualMachineCreationSource = original.FromGalleryImage + FromCustomImage VirtualMachineCreationSource = original.FromCustomImage + FromGalleryImage VirtualMachineCreationSource = original.FromGalleryImage + FromSharedGalleryImage VirtualMachineCreationSource = original.FromSharedGalleryImage ) type WindowsOsState = original.WindowsOsState @@ -493,9 +495,6 @@ type ServiceFabricsDeleteFuture = original.ServiceFabricsDeleteFuture type ServiceFabricsStartFuture = original.ServiceFabricsStartFuture type ServiceFabricsStopFuture = original.ServiceFabricsStopFuture type ServiceRunner = original.ServiceRunner -type ServiceRunnerList = original.ServiceRunnerList -type ServiceRunnerListIterator = original.ServiceRunnerListIterator -type ServiceRunnerListPage = original.ServiceRunnerListPage type ServiceRunnersClient = original.ServiceRunnersClient type SharedPublicIPAddressConfiguration = original.SharedPublicIPAddressConfiguration type SharedPublicIPAddressConfigurationFragment = original.SharedPublicIPAddressConfigurationFragment @@ -778,12 +777,6 @@ func NewServiceFabricsClient(subscriptionID string) ServiceFabricsClient { func NewServiceFabricsClientWithBaseURI(baseURI string, subscriptionID string) ServiceFabricsClient { return original.NewServiceFabricsClientWithBaseURI(baseURI, subscriptionID) } -func NewServiceRunnerListIterator(page ServiceRunnerListPage) ServiceRunnerListIterator { - return original.NewServiceRunnerListIterator(page) -} -func NewServiceRunnerListPage(getNextPage func(context.Context, ServiceRunnerList) (ServiceRunnerList, error)) ServiceRunnerListPage { - return original.NewServiceRunnerListPage(getNextPage) -} func NewServiceRunnersClient(subscriptionID string) ServiceRunnersClient { return original.NewServiceRunnersClient(subscriptionID) } diff --git a/profiles/preview/devtestlabs/mgmt/dtl/models.go b/profiles/preview/devtestlabs/mgmt/dtl/models.go index 254097a49f2c..0f9b01653c20 100644 --- a/profiles/preview/devtestlabs/mgmt/dtl/models.go +++ b/profiles/preview/devtestlabs/mgmt/dtl/models.go @@ -196,8 +196,9 @@ const ( type StorageType = original.StorageType const ( - Premium StorageType = original.Premium - Standard StorageType = original.Standard + Premium StorageType = original.Premium + Standard StorageType = original.Standard + StandardSSD StorageType = original.StandardSSD ) type TargetCostStatus = original.TargetCostStatus @@ -225,8 +226,9 @@ const ( type VirtualMachineCreationSource = original.VirtualMachineCreationSource const ( - FromCustomImage VirtualMachineCreationSource = original.FromCustomImage - FromGalleryImage VirtualMachineCreationSource = original.FromGalleryImage + FromCustomImage VirtualMachineCreationSource = original.FromCustomImage + FromGalleryImage VirtualMachineCreationSource = original.FromGalleryImage + FromSharedGalleryImage VirtualMachineCreationSource = original.FromSharedGalleryImage ) type WindowsOsState = original.WindowsOsState @@ -493,9 +495,6 @@ type ServiceFabricsDeleteFuture = original.ServiceFabricsDeleteFuture type ServiceFabricsStartFuture = original.ServiceFabricsStartFuture type ServiceFabricsStopFuture = original.ServiceFabricsStopFuture type ServiceRunner = original.ServiceRunner -type ServiceRunnerList = original.ServiceRunnerList -type ServiceRunnerListIterator = original.ServiceRunnerListIterator -type ServiceRunnerListPage = original.ServiceRunnerListPage type ServiceRunnersClient = original.ServiceRunnersClient type SharedPublicIPAddressConfiguration = original.SharedPublicIPAddressConfiguration type SharedPublicIPAddressConfigurationFragment = original.SharedPublicIPAddressConfigurationFragment @@ -778,12 +777,6 @@ func NewServiceFabricsClient(subscriptionID string) ServiceFabricsClient { func NewServiceFabricsClientWithBaseURI(baseURI string, subscriptionID string) ServiceFabricsClient { return original.NewServiceFabricsClientWithBaseURI(baseURI, subscriptionID) } -func NewServiceRunnerListIterator(page ServiceRunnerListPage) ServiceRunnerListIterator { - return original.NewServiceRunnerListIterator(page) -} -func NewServiceRunnerListPage(getNextPage func(context.Context, ServiceRunnerList) (ServiceRunnerList, error)) ServiceRunnerListPage { - return original.NewServiceRunnerListPage(getNextPage) -} func NewServiceRunnersClient(subscriptionID string) ServiceRunnersClient { return original.NewServiceRunnersClient(subscriptionID) } diff --git a/services/devtestlabs/mgmt/2018-09-15/dtl/artifactsources.go b/services/devtestlabs/mgmt/2018-09-15/dtl/artifactsources.go index c647a1de6cf1..1a6ce871930b 100644 --- a/services/devtestlabs/mgmt/2018-09-15/dtl/artifactsources.go +++ b/services/devtestlabs/mgmt/2018-09-15/dtl/artifactsources.go @@ -421,7 +421,7 @@ func (client ArtifactSourcesClient) ListComplete(ctx context.Context, resourceGr return } -// Update modify properties of artifact sources. +// Update allows modifying tags of artifact sources. All other properties will be ignored. // Parameters: // resourceGroupName - the name of the resource group. // labName - the name of the lab. diff --git a/services/devtestlabs/mgmt/2018-09-15/dtl/customimages.go b/services/devtestlabs/mgmt/2018-09-15/dtl/customimages.go index 87d8d5c64a9f..b3b1846fe084 100644 --- a/services/devtestlabs/mgmt/2018-09-15/dtl/customimages.go +++ b/services/devtestlabs/mgmt/2018-09-15/dtl/customimages.go @@ -421,7 +421,7 @@ func (client CustomImagesClient) ListComplete(ctx context.Context, resourceGroup return } -// Update modify properties of custom images. +// Update allows modifying tags of custom images. All other properties will be ignored. // Parameters: // resourceGroupName - the name of the resource group. // labName - the name of the lab. diff --git a/services/devtestlabs/mgmt/2018-09-15/dtl/disks.go b/services/devtestlabs/mgmt/2018-09-15/dtl/disks.go index 43f15f47801f..f4292a45c4c8 100644 --- a/services/devtestlabs/mgmt/2018-09-15/dtl/disks.go +++ b/services/devtestlabs/mgmt/2018-09-15/dtl/disks.go @@ -596,7 +596,7 @@ func (client DisksClient) ListComplete(ctx context.Context, resourceGroupName st return } -// Update modify properties of disks. +// Update allows modifying tags of disks. All other properties will be ignored. // Parameters: // resourceGroupName - the name of the resource group. // labName - the name of the lab. diff --git a/services/devtestlabs/mgmt/2018-09-15/dtl/dtlapi/interfaces.go b/services/devtestlabs/mgmt/2018-09-15/dtl/dtlapi/interfaces.go index 59aca2c7c9d7..6a8b229473ab 100644 --- a/services/devtestlabs/mgmt/2018-09-15/dtl/dtlapi/interfaces.go +++ b/services/devtestlabs/mgmt/2018-09-15/dtl/dtlapi/interfaces.go @@ -182,7 +182,6 @@ type ServiceRunnersClientAPI interface { CreateOrUpdate(ctx context.Context, resourceGroupName string, labName string, name string, serviceRunner dtl.ServiceRunner) (result dtl.ServiceRunner, err error) Delete(ctx context.Context, resourceGroupName string, labName string, name string) (result autorest.Response, err error) Get(ctx context.Context, resourceGroupName string, labName string, name string) (result dtl.ServiceRunner, err error) - List(ctx context.Context, resourceGroupName string, labName string, filter string, top *int32, orderby string) (result dtl.ServiceRunnerListPage, err error) } var _ ServiceRunnersClientAPI = (*dtl.ServiceRunnersClient)(nil) diff --git a/services/devtestlabs/mgmt/2018-09-15/dtl/environments.go b/services/devtestlabs/mgmt/2018-09-15/dtl/environments.go index 1d7ec6836f8c..92461b7a051b 100644 --- a/services/devtestlabs/mgmt/2018-09-15/dtl/environments.go +++ b/services/devtestlabs/mgmt/2018-09-15/dtl/environments.go @@ -429,7 +429,7 @@ func (client EnvironmentsClient) ListComplete(ctx context.Context, resourceGroup return } -// Update modify properties of environments. +// Update allows modifying tags of environments. All other properties will be ignored. // Parameters: // resourceGroupName - the name of the resource group. // labName - the name of the lab. diff --git a/services/devtestlabs/mgmt/2018-09-15/dtl/formulas.go b/services/devtestlabs/mgmt/2018-09-15/dtl/formulas.go index c244f2888fc1..0e077bf059da 100644 --- a/services/devtestlabs/mgmt/2018-09-15/dtl/formulas.go +++ b/services/devtestlabs/mgmt/2018-09-15/dtl/formulas.go @@ -421,7 +421,7 @@ func (client FormulasClient) ListComplete(ctx context.Context, resourceGroupName return } -// Update modify properties of formulas. +// Update allows modifying tags of formulas. All other properties will be ignored. // Parameters: // resourceGroupName - the name of the resource group. // labName - the name of the lab. diff --git a/services/devtestlabs/mgmt/2018-09-15/dtl/globalschedules.go b/services/devtestlabs/mgmt/2018-09-15/dtl/globalschedules.go index 586415082ebd..562c8f877b56 100644 --- a/services/devtestlabs/mgmt/2018-09-15/dtl/globalschedules.go +++ b/services/devtestlabs/mgmt/2018-09-15/dtl/globalschedules.go @@ -695,7 +695,7 @@ func (client GlobalSchedulesClient) RetargetResponder(resp *http.Response) (resu return } -// Update modify properties of schedules. +// Update allows modifying tags of schedules. All other properties will be ignored. // Parameters: // resourceGroupName - the name of the resource group. // name - the name of the schedule. diff --git a/services/devtestlabs/mgmt/2018-09-15/dtl/labs.go b/services/devtestlabs/mgmt/2018-09-15/dtl/labs.go index 16a2ecee4e2d..0e22f03fce91 100644 --- a/services/devtestlabs/mgmt/2018-09-15/dtl/labs.go +++ b/services/devtestlabs/mgmt/2018-09-15/dtl/labs.go @@ -1043,7 +1043,7 @@ func (client LabsClient) ListVhdsComplete(ctx context.Context, resourceGroupName return } -// Update modify properties of labs. +// Update allows modifying tags of labs. All other properties will be ignored. // Parameters: // resourceGroupName - the name of the resource group. // name - the name of the lab. diff --git a/services/devtestlabs/mgmt/2018-09-15/dtl/models.go b/services/devtestlabs/mgmt/2018-09-15/dtl/models.go index 98acd9422bc9..2da37eed42eb 100644 --- a/services/devtestlabs/mgmt/2018-09-15/dtl/models.go +++ b/services/devtestlabs/mgmt/2018-09-15/dtl/models.go @@ -383,11 +383,13 @@ const ( Premium StorageType = "Premium" // Standard ... Standard StorageType = "Standard" + // StandardSSD ... + StandardSSD StorageType = "StandardSSD" ) // PossibleStorageTypeValues returns an array of possible values for the StorageType const type. func PossibleStorageTypeValues() []StorageType { - return []StorageType{Premium, Standard} + return []StorageType{Premium, Standard, StandardSSD} } // TargetCostStatus enumerates the values for target cost status. @@ -445,11 +447,13 @@ const ( FromCustomImage VirtualMachineCreationSource = "FromCustomImage" // FromGalleryImage ... FromGalleryImage VirtualMachineCreationSource = "FromGalleryImage" + // FromSharedGalleryImage ... + FromSharedGalleryImage VirtualMachineCreationSource = "FromSharedGalleryImage" ) // PossibleVirtualMachineCreationSourceValues returns an array of possible values for the VirtualMachineCreationSource const type. func PossibleVirtualMachineCreationSourceValues() []VirtualMachineCreationSource { - return []VirtualMachineCreationSource{FromCustomImage, FromGalleryImage} + return []VirtualMachineCreationSource{FromCustomImage, FromGalleryImage, FromSharedGalleryImage} } // WindowsOsState enumerates the values for windows os state. @@ -1632,21 +1636,21 @@ type AttachDiskProperties struct { // AttachNewDataDiskOptions properties to attach new disk to the Virtual Machine. type AttachNewDataDiskOptions struct { - // DiskSizeGiB - Size of the disk to be attached in Gibibytes. + // DiskSizeGiB - Size of the disk to be attached in GibiBytes. DiskSizeGiB *int32 `json:"diskSizeGiB,omitempty"` // DiskName - The name of the disk to be attached. DiskName *string `json:"diskName,omitempty"` - // DiskType - The storage type for the disk (i.e. Standard, Premium). Possible values include: 'Standard', 'Premium' + // DiskType - The storage type for the disk (i.e. Standard, Premium). Possible values include: 'Standard', 'Premium', 'StandardSSD' DiskType StorageType `json:"diskType,omitempty"` } // AttachNewDataDiskOptionsFragment properties to attach new disk to the Virtual Machine. type AttachNewDataDiskOptionsFragment struct { - // DiskSizeGiB - Size of the disk to be attached in Gibibytes. + // DiskSizeGiB - Size of the disk to be attached in GibiBytes. DiskSizeGiB *int32 `json:"diskSizeGiB,omitempty"` // DiskName - The name of the disk to be attached. DiskName *string `json:"diskName,omitempty"` - // DiskType - The storage type for the disk (i.e. Standard, Premium). Possible values include: 'Standard', 'Premium' + // DiskType - The storage type for the disk (i.e. Standard, Premium). Possible values include: 'Standard', 'Premium', 'StandardSSD' DiskType StorageType `json:"diskType,omitempty"` } @@ -1664,7 +1668,7 @@ type BulkCreationParametersFragment struct { // CloudError error from a REST request. type CloudError struct { - // Error - The cloud error that occurred + // Error - The cloud error that occured Error *CloudErrorBody `json:"error,omitempty"` } @@ -2260,7 +2264,7 @@ type DataDiskPropertiesFragment struct { type DataDiskStorageTypeInfo struct { // Lun - Disk Lun Lun *string `json:"lun,omitempty"` - // StorageType - Disk Storage Type. Possible values include: 'Standard', 'Premium' + // StorageType - Disk Storage Type. Possible values include: 'Standard', 'Premium', 'StandardSSD' StorageType StorageType `json:"storageType,omitempty"` } @@ -2268,7 +2272,7 @@ type DataDiskStorageTypeInfo struct { type DataDiskStorageTypeInfoFragment struct { // Lun - Disk Lun Lun *string `json:"lun,omitempty"` - // StorageType - Disk Storage Type. Possible values include: 'Standard', 'Premium' + // StorageType - Disk Storage Type. Possible values include: 'Standard', 'Premium', 'StandardSSD' StorageType StorageType `json:"storageType,omitempty"` } @@ -2598,9 +2602,9 @@ func NewDiskListPage(getNextPage func(context.Context, DiskList) (DiskList, erro // DiskProperties properties of a disk. type DiskProperties struct { - // DiskType - The storage type for the disk (i.e. Standard, Premium). Possible values include: 'Standard', 'Premium' + // DiskType - The storage type for the disk (i.e. Standard, Premium). Possible values include: 'Standard', 'Premium', 'StandardSSD' DiskType StorageType `json:"diskType,omitempty"` - // DiskSizeGiB - The size of the disk in Gibibytes. + // DiskSizeGiB - The size of the disk in GibiBytes. DiskSizeGiB *int32 `json:"diskSizeGiB,omitempty"` // LeasedByLabVMID - The resource ID of the VM to which this disk is leased. LeasedByLabVMID *string `json:"leasedByLabVmId,omitempty"` @@ -2622,9 +2626,9 @@ type DiskProperties struct { // DiskPropertiesFragment properties of a disk. type DiskPropertiesFragment struct { - // DiskType - The storage type for the disk (i.e. Standard, Premium). Possible values include: 'Standard', 'Premium' + // DiskType - The storage type for the disk (i.e. Standard, Premium). Possible values include: 'Standard', 'Premium', 'StandardSSD' DiskType StorageType `json:"diskType,omitempty"` - // DiskSizeGiB - The size of the disk in Gibibytes. + // DiskSizeGiB - The size of the disk in GibiBytes. DiskSizeGiB *int32 `json:"diskSizeGiB,omitempty"` // LeasedByLabVMID - The resource ID of the VM to which this disk is leased. LeasedByLabVMID *string `json:"leasedByLabVmId,omitempty"` @@ -3873,7 +3877,7 @@ type GenerateUploadURIParameter struct { BlobName *string `json:"blobName,omitempty"` } -// GenerateUploadURIResponse response body for generating an upload URI. +// GenerateUploadURIResponse reponse body for generating an upload URI. type GenerateUploadURIResponse struct { autorest.Response `json:"-"` // UploadURI - The upload URI for the VHD. @@ -4466,7 +4470,7 @@ type LabProperties struct { PremiumDataDiskStorageAccount *string `json:"premiumDataDiskStorageAccount,omitempty"` // VaultName - READ-ONLY; The lab's Key vault. VaultName *string `json:"vaultName,omitempty"` - // LabStorageType - Type of storage used by the lab. It can be either Premium or Standard. Default is Premium. Possible values include: 'Standard', 'Premium' + // LabStorageType - Type of storage used by the lab. It can be either Premium or Standard. Default is Premium. Possible values include: 'Standard', 'Premium', 'StandardSSD' LabStorageType StorageType `json:"labStorageType,omitempty"` // MandatoryArtifactsResourceIdsLinux - The ordered list of artifact resource IDs that should be applied on all Linux VM creations by default, prior to the artifacts specified by the user. MandatoryArtifactsResourceIdsLinux *[]string `json:"mandatoryArtifactsResourceIdsLinux,omitempty"` @@ -4484,7 +4488,7 @@ type LabProperties struct { Announcement *LabAnnouncementProperties `json:"announcement,omitempty"` // Support - The properties of any lab support message associated with this lab Support *LabSupportProperties `json:"support,omitempty"` - // VMCreationResourceGroup - READ-ONLY; The resource group in which lab virtual machines will be created in. + // VMCreationResourceGroup - READ-ONLY; The resource group in which all new lab virtual machines will be created. To let DevTest Labs manage resource group creation, set this value to null. VMCreationResourceGroup *string `json:"vmCreationResourceGroup,omitempty"` // PublicIPID - READ-ONLY; The public IP address for the lab's load balancer. PublicIPID *string `json:"publicIpId,omitempty"` @@ -4532,7 +4536,7 @@ func (lp LabProperties) MarshalJSON() ([]byte, error) { // LabPropertiesFragment properties of a lab. type LabPropertiesFragment struct { - // LabStorageType - Type of storage used by the lab. It can be either Premium or Standard. Default is Premium. Possible values include: 'Standard', 'Premium' + // LabStorageType - Type of storage used by the lab. It can be either Premium or Standard. Default is Premium. Possible values include: 'Standard', 'Premium', 'StandardSSD' LabStorageType StorageType `json:"labStorageType,omitempty"` // MandatoryArtifactsResourceIdsLinux - The ordered list of artifact resource IDs that should be applied on all Linux VM creations by default, prior to the artifacts specified by the user. MandatoryArtifactsResourceIdsLinux *[]string `json:"mandatoryArtifactsResourceIdsLinux,omitempty"` @@ -5234,7 +5238,7 @@ type LabVirtualMachineCreationParameterProperties struct { AllowClaim *bool `json:"allowClaim,omitempty"` // StorageType - Storage type to use for virtual machine (i.e. Standard, Premium). StorageType *string `json:"storageType,omitempty"` - // VirtualMachineCreationSource - Tells source of creation of lab virtual machine. Output property only. Possible values include: 'FromCustomImage', 'FromGalleryImage' + // VirtualMachineCreationSource - Tells source of creation of lab virtual machine. Output property only. Possible values include: 'FromCustomImage', 'FromGalleryImage', 'FromSharedGalleryImage' VirtualMachineCreationSource VirtualMachineCreationSource `json:"virtualMachineCreationSource,omitempty"` // EnvironmentID - The resource ID of the environment that contains this virtual machine, if any. EnvironmentID *string `json:"environmentId,omitempty"` @@ -5302,7 +5306,7 @@ type LabVirtualMachineCreationParameterPropertiesFragment struct { AllowClaim *bool `json:"allowClaim,omitempty"` // StorageType - Storage type to use for virtual machine (i.e. Standard, Premium). StorageType *string `json:"storageType,omitempty"` - // VirtualMachineCreationSource - Tells source of creation of lab virtual machine. Output property only. Possible values include: 'FromCustomImage', 'FromGalleryImage' + // VirtualMachineCreationSource - Tells source of creation of lab virtual machine. Output property only. Possible values include: 'FromCustomImage', 'FromGalleryImage', 'FromSharedGalleryImage' VirtualMachineCreationSource VirtualMachineCreationSource `json:"virtualMachineCreationSource,omitempty"` // EnvironmentID - The resource ID of the environment that contains this virtual machine, if any. EnvironmentID *string `json:"environmentId,omitempty"` @@ -5571,7 +5575,7 @@ type LabVirtualMachineProperties struct { AllowClaim *bool `json:"allowClaim,omitempty"` // StorageType - Storage type to use for virtual machine (i.e. Standard, Premium). StorageType *string `json:"storageType,omitempty"` - // VirtualMachineCreationSource - Tells source of creation of lab virtual machine. Output property only. Possible values include: 'FromCustomImage', 'FromGalleryImage' + // VirtualMachineCreationSource - Tells source of creation of lab virtual machine. Output property only. Possible values include: 'FromCustomImage', 'FromGalleryImage', 'FromSharedGalleryImage' VirtualMachineCreationSource VirtualMachineCreationSource `json:"virtualMachineCreationSource,omitempty"` // EnvironmentID - The resource ID of the environment that contains this virtual machine, if any. EnvironmentID *string `json:"environmentId,omitempty"` @@ -5641,7 +5645,7 @@ type LabVirtualMachinePropertiesFragment struct { AllowClaim *bool `json:"allowClaim,omitempty"` // StorageType - Storage type to use for virtual machine (i.e. Standard, Premium). StorageType *string `json:"storageType,omitempty"` - // VirtualMachineCreationSource - Tells source of creation of lab virtual machine. Output property only. Possible values include: 'FromCustomImage', 'FromGalleryImage' + // VirtualMachineCreationSource - Tells source of creation of lab virtual machine. Output property only. Possible values include: 'FromCustomImage', 'FromGalleryImage', 'FromSharedGalleryImage' VirtualMachineCreationSource VirtualMachineCreationSource `json:"virtualMachineCreationSource,omitempty"` // EnvironmentID - The resource ID of the environment that contains this virtual machine, if any. EnvironmentID *string `json:"environmentId,omitempty"` @@ -6013,7 +6017,7 @@ func NewNotificationChannelListPage(getNextPage func(context.Context, Notificati type NotificationChannelProperties struct { // WebHookURL - The webhook URL to send notifications to. WebHookURL *string `json:"webHookUrl,omitempty"` - // EmailRecipient - The email recipient to send notifications to (can be a list of semi-colon separated email addresses). + // EmailRecipient - The email recipient to send notifications to (can be a list of semi-colon seperated email addresses). EmailRecipient *string `json:"emailRecipient,omitempty"` // NotificationLocale - The locale to use when sending a notification (fallback for unsupported languages is EN). NotificationLocale *string `json:"notificationLocale,omitempty"` @@ -6033,7 +6037,7 @@ type NotificationChannelProperties struct { type NotificationChannelPropertiesFragment struct { // WebHookURL - The webhook URL to send notifications to. WebHookURL *string `json:"webHookUrl,omitempty"` - // EmailRecipient - The email recipient to send notifications to (can be a list of semi-colon separated email addresses). + // EmailRecipient - The email recipient to send notifications to (can be a list of semi-colon seperated email addresses). EmailRecipient *string `json:"emailRecipient,omitempty"` // NotificationLocale - The locale to use when sending a notification (fallback for unsupported languages is EN). NotificationLocale *string `json:"notificationLocale,omitempty"` @@ -6051,7 +6055,7 @@ type NotificationSettings struct { TimeInMinutes *int32 `json:"timeInMinutes,omitempty"` // WebhookURL - The webhook URL to which the notification will be sent. WebhookURL *string `json:"webhookUrl,omitempty"` - // EmailRecipient - The email recipient to send notifications to (can be a list of semi-colon separated email addresses). + // EmailRecipient - The email recipient to send notifications to (can be a list of semi-colon seperated email addresses). EmailRecipient *string `json:"emailRecipient,omitempty"` // NotificationLocale - The locale to use when sending a notification (fallback for unsupported languages is EN). NotificationLocale *string `json:"notificationLocale,omitempty"` @@ -6065,7 +6069,7 @@ type NotificationSettingsFragment struct { TimeInMinutes *int32 `json:"timeInMinutes,omitempty"` // WebhookURL - The webhook URL to which the notification will be sent. WebhookURL *string `json:"webhookUrl,omitempty"` - // EmailRecipient - The email recipient to send notifications to (can be a list of semi-colon separated email addresses). + // EmailRecipient - The email recipient to send notifications to (can be a list of semi-colon seperated email addresses). EmailRecipient *string `json:"emailRecipient,omitempty"` // NotificationLocale - The locale to use when sending a notification (fallback for unsupported languages is EN). NotificationLocale *string `json:"notificationLocale,omitempty"` @@ -8094,152 +8098,6 @@ func (sr ServiceRunner) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// ServiceRunnerList the response of a list operation. -type ServiceRunnerList struct { - autorest.Response `json:"-"` - // Value - Results of the list operation. - Value *[]ServiceRunner `json:"value,omitempty"` - // NextLink - Link for next set of results. - NextLink *string `json:"nextLink,omitempty"` -} - -// ServiceRunnerListIterator provides access to a complete listing of ServiceRunner values. -type ServiceRunnerListIterator struct { - i int - page ServiceRunnerListPage -} - -// 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 *ServiceRunnerListIterator) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ServiceRunnerListIterator.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 *ServiceRunnerListIterator) Next() error { - return iter.NextWithContext(context.Background()) -} - -// NotDone returns true if the enumeration should be started or is not yet complete. -func (iter ServiceRunnerListIterator) 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 ServiceRunnerListIterator) Response() ServiceRunnerList { - 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 ServiceRunnerListIterator) Value() ServiceRunner { - if !iter.page.NotDone() { - return ServiceRunner{} - } - return iter.page.Values()[iter.i] -} - -// Creates a new instance of the ServiceRunnerListIterator type. -func NewServiceRunnerListIterator(page ServiceRunnerListPage) ServiceRunnerListIterator { - return ServiceRunnerListIterator{page: page} -} - -// IsEmpty returns true if the ListResult contains no values. -func (srl ServiceRunnerList) IsEmpty() bool { - return srl.Value == nil || len(*srl.Value) == 0 -} - -// serviceRunnerListPreparer prepares a request to retrieve the next set of results. -// It returns nil if no more results exist. -func (srl ServiceRunnerList) serviceRunnerListPreparer(ctx context.Context) (*http.Request, error) { - if srl.NextLink == nil || len(to.String(srl.NextLink)) < 1 { - return nil, nil - } - return autorest.Prepare((&http.Request{}).WithContext(ctx), - autorest.AsJSON(), - autorest.AsGet(), - autorest.WithBaseURL(to.String(srl.NextLink))) -} - -// ServiceRunnerListPage contains a page of ServiceRunner values. -type ServiceRunnerListPage struct { - fn func(context.Context, ServiceRunnerList) (ServiceRunnerList, error) - srl ServiceRunnerList -} - -// 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 *ServiceRunnerListPage) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ServiceRunnerListPage.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.srl) - if err != nil { - return err - } - page.srl = 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 *ServiceRunnerListPage) Next() error { - return page.NextWithContext(context.Background()) -} - -// NotDone returns true if the page enumeration should be started or is not yet complete. -func (page ServiceRunnerListPage) NotDone() bool { - return !page.srl.IsEmpty() -} - -// Response returns the raw server response from the last page request. -func (page ServiceRunnerListPage) Response() ServiceRunnerList { - return page.srl -} - -// Values returns the slice of values for the current page or nil if there are no values. -func (page ServiceRunnerListPage) Values() []ServiceRunner { - if page.srl.IsEmpty() { - return nil - } - return *page.srl.Value -} - -// Creates a new instance of the ServiceRunnerListPage type. -func NewServiceRunnerListPage(getNextPage func(context.Context, ServiceRunnerList) (ServiceRunnerList, error)) ServiceRunnerListPage { - return ServiceRunnerListPage{fn: getNextPage} -} - // SharedPublicIPAddressConfiguration properties of a virtual machine that determine how it is connected to // a load balancer. type SharedPublicIPAddressConfiguration struct { diff --git a/services/devtestlabs/mgmt/2018-09-15/dtl/notificationchannels.go b/services/devtestlabs/mgmt/2018-09-15/dtl/notificationchannels.go index 40c7e0f64a96..cfa4229e8deb 100644 --- a/services/devtestlabs/mgmt/2018-09-15/dtl/notificationchannels.go +++ b/services/devtestlabs/mgmt/2018-09-15/dtl/notificationchannels.go @@ -129,7 +129,7 @@ func (client NotificationChannelsClient) CreateOrUpdateResponder(resp *http.Resp return } -// Delete delete notification channel. +// Delete delete notificationchannel. // Parameters: // resourceGroupName - the name of the resource group. // labName - the name of the lab. @@ -207,7 +207,7 @@ func (client NotificationChannelsClient) DeleteResponder(resp *http.Response) (r return } -// Get get notification channel. +// Get get notificationchannel. // Parameters: // resourceGroupName - the name of the resource group. // labName - the name of the lab. @@ -290,7 +290,7 @@ func (client NotificationChannelsClient) GetResponder(resp *http.Response) (resu return } -// List list notification channels in a given lab. +// List list notificationchannels in a given lab. // Parameters: // resourceGroupName - the name of the resource group. // labName - the name of the lab. @@ -502,7 +502,7 @@ func (client NotificationChannelsClient) NotifyResponder(resp *http.Response) (r return } -// Update modify properties of notification channels. +// Update allows modifying tags of notificationchannels. All other properties will be ignored. // Parameters: // resourceGroupName - the name of the resource group. // labName - the name of the lab. diff --git a/services/devtestlabs/mgmt/2018-09-15/dtl/policies.go b/services/devtestlabs/mgmt/2018-09-15/dtl/policies.go index 356d6ca01875..7d602b751000 100644 --- a/services/devtestlabs/mgmt/2018-09-15/dtl/policies.go +++ b/services/devtestlabs/mgmt/2018-09-15/dtl/policies.go @@ -429,7 +429,7 @@ func (client PoliciesClient) ListComplete(ctx context.Context, resourceGroupName return } -// Update modify properties of policies. +// Update allows modifying tags of policies. All other properties will be ignored. // Parameters: // resourceGroupName - the name of the resource group. // labName - the name of the lab. diff --git a/services/devtestlabs/mgmt/2018-09-15/dtl/schedules.go b/services/devtestlabs/mgmt/2018-09-15/dtl/schedules.go index d33991149ac7..bf4af0e6c7f5 100644 --- a/services/devtestlabs/mgmt/2018-09-15/dtl/schedules.go +++ b/services/devtestlabs/mgmt/2018-09-15/dtl/schedules.go @@ -616,7 +616,7 @@ func (client SchedulesClient) ListApplicableComplete(ctx context.Context, resour return } -// Update modify properties of schedules. +// Update allows modifying tags of schedules. All other properties will be ignored. // Parameters: // resourceGroupName - the name of the resource group. // labName - the name of the lab. diff --git a/services/devtestlabs/mgmt/2018-09-15/dtl/secrets.go b/services/devtestlabs/mgmt/2018-09-15/dtl/secrets.go index ced061e89dad..52d74d0a203b 100644 --- a/services/devtestlabs/mgmt/2018-09-15/dtl/secrets.go +++ b/services/devtestlabs/mgmt/2018-09-15/dtl/secrets.go @@ -429,7 +429,7 @@ func (client SecretsClient) ListComplete(ctx context.Context, resourceGroupName return } -// Update modify properties of secrets. +// Update allows modifying tags of secrets. All other properties will be ignored. // Parameters: // resourceGroupName - the name of the resource group. // labName - the name of the lab. diff --git a/services/devtestlabs/mgmt/2018-09-15/dtl/servicefabrics.go b/services/devtestlabs/mgmt/2018-09-15/dtl/servicefabrics.go index 7ca72b7ced7d..5758571a9ef3 100644 --- a/services/devtestlabs/mgmt/2018-09-15/dtl/servicefabrics.go +++ b/services/devtestlabs/mgmt/2018-09-15/dtl/servicefabrics.go @@ -679,7 +679,7 @@ func (client ServiceFabricsClient) StopResponder(resp *http.Response) (result au return } -// Update modify properties of service fabrics. +// Update allows modifying tags of service fabrics. All other properties will be ignored. // Parameters: // resourceGroupName - the name of the resource group. // labName - the name of the lab. diff --git a/services/devtestlabs/mgmt/2018-09-15/dtl/servicefabricschedules.go b/services/devtestlabs/mgmt/2018-09-15/dtl/servicefabricschedules.go index 59763a2f5136..65e91f729a7b 100644 --- a/services/devtestlabs/mgmt/2018-09-15/dtl/servicefabricschedules.go +++ b/services/devtestlabs/mgmt/2018-09-15/dtl/servicefabricschedules.go @@ -519,7 +519,7 @@ func (client ServiceFabricSchedulesClient) ListComplete(ctx context.Context, res return } -// Update modify properties of schedules. +// Update allows modifying tags of schedules. All other properties will be ignored. // Parameters: // resourceGroupName - the name of the resource group. // labName - the name of the lab. diff --git a/services/devtestlabs/mgmt/2018-09-15/dtl/servicerunners.go b/services/devtestlabs/mgmt/2018-09-15/dtl/servicerunners.go index 611b399383cd..cae03612909c 100644 --- a/services/devtestlabs/mgmt/2018-09-15/dtl/servicerunners.go +++ b/services/devtestlabs/mgmt/2018-09-15/dtl/servicerunners.go @@ -278,130 +278,3 @@ func (client ServiceRunnersClient) GetResponder(resp *http.Response) (result Ser result.Response = autorest.Response{Response: resp} return } - -// List list service runners in a given lab. -// Parameters: -// resourceGroupName - the name of the resource group. -// labName - the name of the lab. -// filter - the filter to apply to the operation. Example: '$filter=contains(name,'myName') -// top - the maximum number of resources to return from the operation. Example: '$top=10' -// orderby - the ordering expression for the results, using OData notation. Example: '$orderby=name desc' -func (client ServiceRunnersClient) List(ctx context.Context, resourceGroupName string, labName string, filter string, top *int32, orderby string) (result ServiceRunnerListPage, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ServiceRunnersClient.List") - defer func() { - sc := -1 - if result.srl.Response.Response != nil { - sc = result.srl.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - result.fn = client.listNextResults - req, err := client.ListPreparer(ctx, resourceGroupName, labName, filter, top, orderby) - if err != nil { - err = autorest.NewErrorWithError(err, "dtl.ServiceRunnersClient", "List", nil, "Failure preparing request") - return - } - - resp, err := client.ListSender(req) - if err != nil { - result.srl.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "dtl.ServiceRunnersClient", "List", resp, "Failure sending request") - return - } - - result.srl, err = client.ListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "dtl.ServiceRunnersClient", "List", resp, "Failure responding to request") - } - - return -} - -// ListPreparer prepares the List request. -func (client ServiceRunnersClient) ListPreparer(ctx context.Context, resourceGroupName string, labName string, filter string, top *int32, orderby string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "labName": autorest.Encode("path", labName), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-09-15" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(filter) > 0 { - queryParameters["$filter"] = autorest.Encode("query", filter) - } - if top != nil { - queryParameters["$top"] = autorest.Encode("query", *top) - } - if len(orderby) > 0 { - queryParameters["$orderby"] = autorest.Encode("query", orderby) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/servicerunners", 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 ServiceRunnersClient) ListSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// ListResponder handles the response to the List request. The method always -// closes the http.Response Body. -func (client ServiceRunnersClient) ListResponder(resp *http.Response) (result ServiceRunnerList, 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 ServiceRunnersClient) listNextResults(ctx context.Context, lastResults ServiceRunnerList) (result ServiceRunnerList, err error) { - req, err := lastResults.serviceRunnerListPreparer(ctx) - if err != nil { - return result, autorest.NewErrorWithError(err, "dtl.ServiceRunnersClient", "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, "dtl.ServiceRunnersClient", "listNextResults", resp, "Failure sending next results request") - } - result, err = client.ListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "dtl.ServiceRunnersClient", "listNextResults", resp, "Failure responding to next results request") - } - return -} - -// ListComplete enumerates all values, automatically crossing page boundaries as required. -func (client ServiceRunnersClient) ListComplete(ctx context.Context, resourceGroupName string, labName string, filter string, top *int32, orderby string) (result ServiceRunnerListIterator, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ServiceRunnersClient.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, labName, filter, top, orderby) - return -} diff --git a/services/devtestlabs/mgmt/2018-09-15/dtl/users.go b/services/devtestlabs/mgmt/2018-09-15/dtl/users.go index 048f590296ee..1d7f61a88148 100644 --- a/services/devtestlabs/mgmt/2018-09-15/dtl/users.go +++ b/services/devtestlabs/mgmt/2018-09-15/dtl/users.go @@ -414,7 +414,7 @@ func (client UsersClient) ListComplete(ctx context.Context, resourceGroupName st return } -// Update modify properties of user profiles. +// Update allows modifying tags of user profiles. All other properties will be ignored. // Parameters: // resourceGroupName - the name of the resource group. // labName - the name of the lab. diff --git a/services/devtestlabs/mgmt/2018-09-15/dtl/virtualmachines.go b/services/devtestlabs/mgmt/2018-09-15/dtl/virtualmachines.go index 271ab79f1f5b..1fd187ae06d2 100644 --- a/services/devtestlabs/mgmt/2018-09-15/dtl/virtualmachines.go +++ b/services/devtestlabs/mgmt/2018-09-15/dtl/virtualmachines.go @@ -1461,7 +1461,7 @@ func (client VirtualMachinesClient) UnClaimResponder(resp *http.Response) (resul return } -// Update modify properties of virtual machines. +// Update allows modifying tags of virtual machines. All other properties will be ignored. // Parameters: // resourceGroupName - the name of the resource group. // labName - the name of the lab. diff --git a/services/devtestlabs/mgmt/2018-09-15/dtl/virtualmachineschedules.go b/services/devtestlabs/mgmt/2018-09-15/dtl/virtualmachineschedules.go index b49c7e6ff7d9..920b31e718bf 100644 --- a/services/devtestlabs/mgmt/2018-09-15/dtl/virtualmachineschedules.go +++ b/services/devtestlabs/mgmt/2018-09-15/dtl/virtualmachineschedules.go @@ -509,7 +509,7 @@ func (client VirtualMachineSchedulesClient) ListComplete(ctx context.Context, re return } -// Update modify properties of schedules. +// Update allows modifying tags of schedules. All other properties will be ignored. // Parameters: // resourceGroupName - the name of the resource group. // labName - the name of the lab. diff --git a/services/devtestlabs/mgmt/2018-09-15/dtl/virtualnetworks.go b/services/devtestlabs/mgmt/2018-09-15/dtl/virtualnetworks.go index bbc57015151c..a762efbd809c 100644 --- a/services/devtestlabs/mgmt/2018-09-15/dtl/virtualnetworks.go +++ b/services/devtestlabs/mgmt/2018-09-15/dtl/virtualnetworks.go @@ -414,7 +414,7 @@ func (client VirtualNetworksClient) ListComplete(ctx context.Context, resourceGr return } -// Update modify properties of virtual networks. +// Update allows modifying tags of virtual networks. All other properties will be ignored. // Parameters: // resourceGroupName - the name of the resource group. // labName - the name of the lab.