vendor: update all dependencies to latest versions
This commit is contained in:
+62
-22
@@ -14,9 +14,8 @@ package customerinsights
|
||||
// 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"
|
||||
@@ -25,10 +24,9 @@ import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
// ViewsClient is the the Azure Customer Insights management API provides a
|
||||
// RESTful set of web services that interact with Azure Customer Insights
|
||||
// service to manage your resources. The API has entities that capture the
|
||||
// relationship between an end user and the Azure Customer Insights service.
|
||||
// ViewsClient is the the Azure Customer Insights management API provides a RESTful set of web services that interact
|
||||
// with Azure Customer Insights service to manage your resources. The API has entities that capture the relationship
|
||||
// between an end user and the Azure Customer Insights service.
|
||||
type ViewsClient struct {
|
||||
ManagementClient
|
||||
}
|
||||
@@ -45,9 +43,8 @@ func NewViewsClientWithBaseURI(baseURI string, subscriptionID string) ViewsClien
|
||||
|
||||
// CreateOrUpdate creates a view or updates an exisiting view in the hub.
|
||||
//
|
||||
// resourceGroupName is the name of the resource group. hubName is the name of
|
||||
// the hub. viewName is the name of the view. parameters is parameters supplied
|
||||
// to the CreateOrUpdate View operation.
|
||||
// resourceGroupName is the name of the resource group. hubName is the name of the hub. viewName is the name of the
|
||||
// view. parameters is parameters supplied to the CreateOrUpdate View operation.
|
||||
func (client ViewsClient) CreateOrUpdate(resourceGroupName string, hubName string, viewName string, parameters ViewResourceFormat) (result ViewResourceFormat, err error) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: viewName,
|
||||
@@ -89,7 +86,7 @@ func (client ViewsClient) CreateOrUpdatePreparer(resourceGroupName string, hubNa
|
||||
"viewName": autorest.Encode("path", viewName),
|
||||
}
|
||||
|
||||
const APIVersion = "2017-01-01"
|
||||
const APIVersion = "2017-04-26"
|
||||
queryParameters := map[string]interface{}{
|
||||
"api-version": APIVersion,
|
||||
}
|
||||
@@ -125,9 +122,8 @@ func (client ViewsClient) CreateOrUpdateResponder(resp *http.Response) (result V
|
||||
|
||||
// Delete deletes a view in the specified hub.
|
||||
//
|
||||
// resourceGroupName is the name of the resource group. hubName is the name of
|
||||
// the hub. viewName is the name of the view. userID is the user ID. Use * to
|
||||
// retreive hub level view.
|
||||
// resourceGroupName is the name of the resource group. hubName is the name of the hub. viewName is the name of the
|
||||
// view. userID is the user ID. Use * to retreive hub level view.
|
||||
func (client ViewsClient) Delete(resourceGroupName string, hubName string, viewName string, userID string) (result autorest.Response, err error) {
|
||||
req, err := client.DeletePreparer(resourceGroupName, hubName, viewName, userID)
|
||||
if err != nil {
|
||||
@@ -159,7 +155,7 @@ func (client ViewsClient) DeletePreparer(resourceGroupName string, hubName strin
|
||||
"viewName": autorest.Encode("path", viewName),
|
||||
}
|
||||
|
||||
const APIVersion = "2017-01-01"
|
||||
const APIVersion = "2017-04-26"
|
||||
queryParameters := map[string]interface{}{
|
||||
"api-version": APIVersion,
|
||||
"userId": autorest.Encode("query", userID),
|
||||
@@ -193,9 +189,8 @@ func (client ViewsClient) DeleteResponder(resp *http.Response) (result autorest.
|
||||
|
||||
// Get gets a view in the hub.
|
||||
//
|
||||
// resourceGroupName is the name of the resource group. hubName is the name of
|
||||
// the hub. viewName is the name of the view. userID is the user ID. Use * to
|
||||
// retreive hub level view.
|
||||
// resourceGroupName is the name of the resource group. hubName is the name of the hub. viewName is the name of the
|
||||
// view. userID is the user ID. Use * to retreive hub level view.
|
||||
func (client ViewsClient) Get(resourceGroupName string, hubName string, viewName string, userID string) (result ViewResourceFormat, err error) {
|
||||
req, err := client.GetPreparer(resourceGroupName, hubName, viewName, userID)
|
||||
if err != nil {
|
||||
@@ -227,7 +222,7 @@ func (client ViewsClient) GetPreparer(resourceGroupName string, hubName string,
|
||||
"viewName": autorest.Encode("path", viewName),
|
||||
}
|
||||
|
||||
const APIVersion = "2017-01-01"
|
||||
const APIVersion = "2017-04-26"
|
||||
queryParameters := map[string]interface{}{
|
||||
"api-version": APIVersion,
|
||||
"userId": autorest.Encode("query", userID),
|
||||
@@ -262,8 +257,8 @@ func (client ViewsClient) GetResponder(resp *http.Response) (result ViewResource
|
||||
|
||||
// ListByHub gets all available views for given user in the specified hub.
|
||||
//
|
||||
// resourceGroupName is the name of the resource group. hubName is the name of
|
||||
// the hub. userID is the user ID. Use * to retreive hub level views.
|
||||
// resourceGroupName is the name of the resource group. hubName is the name of the hub. userID is the user ID. Use * to
|
||||
// retreive hub level views.
|
||||
func (client ViewsClient) ListByHub(resourceGroupName string, hubName string, userID string) (result ViewListResult, err error) {
|
||||
req, err := client.ListByHubPreparer(resourceGroupName, hubName, userID)
|
||||
if err != nil {
|
||||
@@ -294,7 +289,7 @@ func (client ViewsClient) ListByHubPreparer(resourceGroupName string, hubName st
|
||||
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
|
||||
}
|
||||
|
||||
const APIVersion = "2017-01-01"
|
||||
const APIVersion = "2017-04-26"
|
||||
queryParameters := map[string]interface{}{
|
||||
"api-version": APIVersion,
|
||||
"userId": autorest.Encode("query", userID),
|
||||
@@ -350,3 +345,48 @@ func (client ViewsClient) ListByHubNextResults(lastResults ViewListResult) (resu
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// ListByHubComplete gets all elements from the list without paging.
|
||||
func (client ViewsClient) ListByHubComplete(resourceGroupName string, hubName string, userID string, cancel <-chan struct{}) (<-chan ViewResourceFormat, <-chan error) {
|
||||
resultChan := make(chan ViewResourceFormat)
|
||||
errChan := make(chan error, 1)
|
||||
go func() {
|
||||
defer func() {
|
||||
close(resultChan)
|
||||
close(errChan)
|
||||
}()
|
||||
list, err := client.ListByHub(resourceGroupName, hubName, userID)
|
||||
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.ListByHubNextResults(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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user