vendor: update all dependencies to latest versions
This commit is contained in:
+62
-26
@@ -14,9 +14,8 @@ package devtestlabs
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
//
|
||||
// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
|
||||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
|
||||
import (
|
||||
"github.com/Azure/go-autorest/autorest"
|
||||
@@ -30,23 +29,20 @@ type NotificationChannelsClient struct {
|
||||
ManagementClient
|
||||
}
|
||||
|
||||
// NewNotificationChannelsClient creates an instance of the
|
||||
// NotificationChannelsClient client.
|
||||
// NewNotificationChannelsClient creates an instance of the NotificationChannelsClient client.
|
||||
func NewNotificationChannelsClient(subscriptionID string) NotificationChannelsClient {
|
||||
return NewNotificationChannelsClientWithBaseURI(DefaultBaseURI, subscriptionID)
|
||||
}
|
||||
|
||||
// NewNotificationChannelsClientWithBaseURI creates an instance of the
|
||||
// NotificationChannelsClient client.
|
||||
// NewNotificationChannelsClientWithBaseURI creates an instance of the NotificationChannelsClient client.
|
||||
func NewNotificationChannelsClientWithBaseURI(baseURI string, subscriptionID string) NotificationChannelsClient {
|
||||
return NotificationChannelsClient{NewWithBaseURI(baseURI, subscriptionID)}
|
||||
}
|
||||
|
||||
// CreateOrUpdate create or replace an existing notificationChannel.
|
||||
//
|
||||
// resourceGroupName is the name of the resource group. labName is the name of
|
||||
// the lab. name is the name of the notificationChannel. notificationChannel is
|
||||
// a notification.
|
||||
// resourceGroupName is the name of the resource group. labName is the name of the lab. name is the name of the
|
||||
// notificationChannel. notificationChannel is a notification.
|
||||
func (client NotificationChannelsClient) CreateOrUpdate(resourceGroupName string, labName string, name string, notificationChannel NotificationChannel) (result NotificationChannel, err error) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: notificationChannel,
|
||||
@@ -120,8 +116,8 @@ func (client NotificationChannelsClient) CreateOrUpdateResponder(resp *http.Resp
|
||||
|
||||
// Delete delete notificationchannel.
|
||||
//
|
||||
// resourceGroupName is the name of the resource group. labName is the name of
|
||||
// the lab. name is the name of the notificationChannel.
|
||||
// resourceGroupName is the name of the resource group. labName is the name of the lab. name is the name of the
|
||||
// notificationChannel.
|
||||
func (client NotificationChannelsClient) Delete(resourceGroupName string, labName string, name string) (result autorest.Response, err error) {
|
||||
req, err := client.DeletePreparer(resourceGroupName, labName, name)
|
||||
if err != nil {
|
||||
@@ -186,9 +182,8 @@ func (client NotificationChannelsClient) DeleteResponder(resp *http.Response) (r
|
||||
|
||||
// Get get notificationchannel.
|
||||
//
|
||||
// resourceGroupName is the name of the resource group. labName is the name of
|
||||
// the lab. name is the name of the notificationChannel. expand is specify the
|
||||
// $expand query. Example: 'properties($select=webHookUrl)'
|
||||
// resourceGroupName is the name of the resource group. labName is the name of the lab. name is the name of the
|
||||
// notificationChannel. expand is specify the $expand query. Example: 'properties($select=webHookUrl)'
|
||||
func (client NotificationChannelsClient) Get(resourceGroupName string, labName string, name string, expand string) (result NotificationChannel, err error) {
|
||||
req, err := client.GetPreparer(resourceGroupName, labName, name, expand)
|
||||
if err != nil {
|
||||
@@ -257,11 +252,9 @@ func (client NotificationChannelsClient) GetResponder(resp *http.Response) (resu
|
||||
|
||||
// List list notificationchannels in a given lab.
|
||||
//
|
||||
// resourceGroupName is the name of the resource group. labName is the name of
|
||||
// the lab. expand is specify the $expand query. Example:
|
||||
// 'properties($select=webHookUrl)' filter is the filter to apply to the
|
||||
// operation. top is the maximum number of resources to return from the
|
||||
// operation. orderby is the ordering expression for the results, using OData
|
||||
// resourceGroupName is the name of the resource group. labName is the name of the lab. expand is specify the $expand
|
||||
// query. Example: 'properties($select=webHookUrl)' filter is the filter to apply to the operation. top is the maximum
|
||||
// number of resources to return from the operation. orderby is the ordering expression for the results, using OData
|
||||
// notation.
|
||||
func (client NotificationChannelsClient) List(resourceGroupName string, labName string, expand string, filter string, top *int32, orderby string) (result ResponseWithContinuationNotificationChannel, err error) {
|
||||
req, err := client.ListPreparer(resourceGroupName, labName, expand, filter, top, orderby)
|
||||
@@ -361,11 +354,55 @@ func (client NotificationChannelsClient) ListNextResults(lastResults ResponseWit
|
||||
return
|
||||
}
|
||||
|
||||
// ListComplete gets all elements from the list without paging.
|
||||
func (client NotificationChannelsClient) ListComplete(resourceGroupName string, labName string, expand string, filter string, top *int32, orderby string, cancel <-chan struct{}) (<-chan NotificationChannel, <-chan error) {
|
||||
resultChan := make(chan NotificationChannel)
|
||||
errChan := make(chan error, 1)
|
||||
go func() {
|
||||
defer func() {
|
||||
close(resultChan)
|
||||
close(errChan)
|
||||
}()
|
||||
list, err := client.List(resourceGroupName, labName, expand, filter, top, orderby)
|
||||
if err != nil {
|
||||
errChan <- err
|
||||
return
|
||||
}
|
||||
if list.Value != nil {
|
||||
for _, item := range *list.Value {
|
||||
select {
|
||||
case <-cancel:
|
||||
return
|
||||
case resultChan <- item:
|
||||
// Intentionally left blank
|
||||
}
|
||||
}
|
||||
}
|
||||
for list.NextLink != nil {
|
||||
list, err = client.ListNextResults(list)
|
||||
if err != nil {
|
||||
errChan <- err
|
||||
return
|
||||
}
|
||||
if list.Value != nil {
|
||||
for _, item := range *list.Value {
|
||||
select {
|
||||
case <-cancel:
|
||||
return
|
||||
case resultChan <- item:
|
||||
// Intentionally left blank
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}()
|
||||
return resultChan, errChan
|
||||
}
|
||||
|
||||
// Notify send notification to provided channel.
|
||||
//
|
||||
// resourceGroupName is the name of the resource group. labName is the name of
|
||||
// the lab. name is the name of the notificationChannel. notifyParameters is
|
||||
// properties for generating a Notification.
|
||||
// resourceGroupName is the name of the resource group. labName is the name of the lab. name is the name of the
|
||||
// notificationChannel. notifyParameters is properties for generating a Notification.
|
||||
func (client NotificationChannelsClient) Notify(resourceGroupName string, labName string, name string, notifyParameters NotifyParameters) (result autorest.Response, err error) {
|
||||
req, err := client.NotifyPreparer(resourceGroupName, labName, name, notifyParameters)
|
||||
if err != nil {
|
||||
@@ -432,9 +469,8 @@ func (client NotificationChannelsClient) NotifyResponder(resp *http.Response) (r
|
||||
|
||||
// Update modify properties of notificationchannels.
|
||||
//
|
||||
// resourceGroupName is the name of the resource group. labName is the name of
|
||||
// the lab. name is the name of the notificationChannel. notificationChannel is
|
||||
// a notification.
|
||||
// resourceGroupName is the name of the resource group. labName is the name of the lab. name is the name of the
|
||||
// notificationChannel. notificationChannel is a notification.
|
||||
func (client NotificationChannelsClient) Update(resourceGroupName string, labName string, name string, notificationChannel NotificationChannelFragment) (result NotificationChannel, err error) {
|
||||
req, err := client.UpdatePreparer(resourceGroupName, labName, name, notificationChannel)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user