vendor: update all dependencies to latest versions
This commit is contained in:
+72
-32
@@ -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"
|
||||
)
|
||||
|
||||
// KpiClient 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.
|
||||
// KpiClient 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 KpiClient struct {
|
||||
ManagementClient
|
||||
}
|
||||
@@ -43,14 +41,12 @@ func NewKpiClientWithBaseURI(baseURI string, subscriptionID string) KpiClient {
|
||||
return KpiClient{NewWithBaseURI(baseURI, subscriptionID)}
|
||||
}
|
||||
|
||||
// CreateOrUpdate creates a KPI or updates an existing KPI in the hub. This
|
||||
// method may poll for completion. Polling can be canceled by passing the
|
||||
// cancel channel argument. The channel will be used to cancel polling and any
|
||||
// outstanding HTTP requests.
|
||||
// CreateOrUpdate creates a KPI or updates an existing KPI in the hub. This method may poll for completion. Polling can
|
||||
// be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding
|
||||
// HTTP requests.
|
||||
//
|
||||
// resourceGroupName is the name of the resource group. hubName is the name of
|
||||
// the hub. kpiName is the name of the KPI. parameters is parameters supplied
|
||||
// to the create/update KPI operation.
|
||||
// resourceGroupName is the name of the resource group. hubName is the name of the hub. kpiName is the name of the KPI.
|
||||
// parameters is parameters supplied to the create/update KPI operation.
|
||||
func (client KpiClient) CreateOrUpdate(resourceGroupName string, hubName string, kpiName string, parameters KpiResourceFormat, cancel <-chan struct{}) (<-chan KpiResourceFormat, <-chan error) {
|
||||
resultChan := make(chan KpiResourceFormat, 1)
|
||||
errChan := make(chan error, 1)
|
||||
@@ -79,8 +75,10 @@ func (client KpiClient) CreateOrUpdate(resourceGroupName string, hubName string,
|
||||
var err error
|
||||
var result KpiResourceFormat
|
||||
defer func() {
|
||||
if err != nil {
|
||||
errChan <- err
|
||||
}
|
||||
resultChan <- result
|
||||
errChan <- err
|
||||
close(resultChan)
|
||||
close(errChan)
|
||||
}()
|
||||
@@ -114,7 +112,7 @@ func (client KpiClient) CreateOrUpdatePreparer(resourceGroupName string, hubName
|
||||
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
|
||||
}
|
||||
|
||||
const APIVersion = "2017-01-01"
|
||||
const APIVersion = "2017-04-26"
|
||||
queryParameters := map[string]interface{}{
|
||||
"api-version": APIVersion,
|
||||
}
|
||||
@@ -150,12 +148,10 @@ func (client KpiClient) CreateOrUpdateResponder(resp *http.Response) (result Kpi
|
||||
return
|
||||
}
|
||||
|
||||
// Delete deletes a KPI in the hub. This method may poll for completion.
|
||||
// Polling can be canceled by passing the cancel channel argument. The channel
|
||||
// will be used to cancel polling and any outstanding HTTP requests.
|
||||
// Delete deletes a KPI in the hub. This method may poll for completion. Polling can be canceled by passing the cancel
|
||||
// channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.
|
||||
//
|
||||
// resourceGroupName is the name of the resource group. hubName is the name of
|
||||
// the hub. kpiName is the name of the KPI.
|
||||
// resourceGroupName is the name of the resource group. hubName is the name of the hub. kpiName is the name of the KPI.
|
||||
func (client KpiClient) Delete(resourceGroupName string, hubName string, kpiName string, cancel <-chan struct{}) (<-chan autorest.Response, <-chan error) {
|
||||
resultChan := make(chan autorest.Response, 1)
|
||||
errChan := make(chan error, 1)
|
||||
@@ -163,8 +159,10 @@ func (client KpiClient) Delete(resourceGroupName string, hubName string, kpiName
|
||||
var err error
|
||||
var result autorest.Response
|
||||
defer func() {
|
||||
if err != nil {
|
||||
errChan <- err
|
||||
}
|
||||
resultChan <- result
|
||||
errChan <- err
|
||||
close(resultChan)
|
||||
close(errChan)
|
||||
}()
|
||||
@@ -198,7 +196,7 @@ func (client KpiClient) DeletePreparer(resourceGroupName string, hubName string,
|
||||
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
|
||||
}
|
||||
|
||||
const APIVersion = "2017-01-01"
|
||||
const APIVersion = "2017-04-26"
|
||||
queryParameters := map[string]interface{}{
|
||||
"api-version": APIVersion,
|
||||
}
|
||||
@@ -233,8 +231,7 @@ func (client KpiClient) DeleteResponder(resp *http.Response) (result autorest.Re
|
||||
|
||||
// Get gets a KPI in the hub.
|
||||
//
|
||||
// resourceGroupName is the name of the resource group. hubName is the name of
|
||||
// the hub. kpiName is the name of the KPI.
|
||||
// resourceGroupName is the name of the resource group. hubName is the name of the hub. kpiName is the name of the KPI.
|
||||
func (client KpiClient) Get(resourceGroupName string, hubName string, kpiName string) (result KpiResourceFormat, err error) {
|
||||
req, err := client.GetPreparer(resourceGroupName, hubName, kpiName)
|
||||
if err != nil {
|
||||
@@ -266,7 +263,7 @@ func (client KpiClient) GetPreparer(resourceGroupName string, hubName string, kp
|
||||
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
|
||||
}
|
||||
|
||||
const APIVersion = "2017-01-01"
|
||||
const APIVersion = "2017-04-26"
|
||||
queryParameters := map[string]interface{}{
|
||||
"api-version": APIVersion,
|
||||
}
|
||||
@@ -300,8 +297,7 @@ func (client KpiClient) GetResponder(resp *http.Response) (result KpiResourceFor
|
||||
|
||||
// ListByHub gets all the KPIs in the specified hub.
|
||||
//
|
||||
// resourceGroupName is the name of the resource group. hubName is the name of
|
||||
// the hub.
|
||||
// resourceGroupName is the name of the resource group. hubName is the name of the hub.
|
||||
func (client KpiClient) ListByHub(resourceGroupName string, hubName string) (result KpiListResult, err error) {
|
||||
req, err := client.ListByHubPreparer(resourceGroupName, hubName)
|
||||
if err != nil {
|
||||
@@ -332,7 +328,7 @@ func (client KpiClient) ListByHubPreparer(resourceGroupName string, hubName stri
|
||||
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
|
||||
}
|
||||
|
||||
const APIVersion = "2017-01-01"
|
||||
const APIVersion = "2017-04-26"
|
||||
queryParameters := map[string]interface{}{
|
||||
"api-version": APIVersion,
|
||||
}
|
||||
@@ -388,10 +384,54 @@ func (client KpiClient) ListByHubNextResults(lastResults KpiListResult) (result
|
||||
return
|
||||
}
|
||||
|
||||
// ListByHubComplete gets all elements from the list without paging.
|
||||
func (client KpiClient) ListByHubComplete(resourceGroupName string, hubName string, cancel <-chan struct{}) (<-chan KpiResourceFormat, <-chan error) {
|
||||
resultChan := make(chan KpiResourceFormat)
|
||||
errChan := make(chan error, 1)
|
||||
go func() {
|
||||
defer func() {
|
||||
close(resultChan)
|
||||
close(errChan)
|
||||
}()
|
||||
list, err := client.ListByHub(resourceGroupName, hubName)
|
||||
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
|
||||
}
|
||||
|
||||
// Reprocess reprocesses the Kpi values of the specified KPI.
|
||||
//
|
||||
// resourceGroupName is the name of the resource group. hubName is the name of
|
||||
// the hub. kpiName is the name of the KPI.
|
||||
// resourceGroupName is the name of the resource group. hubName is the name of the hub. kpiName is the name of the KPI.
|
||||
func (client KpiClient) Reprocess(resourceGroupName string, hubName string, kpiName string) (result autorest.Response, err error) {
|
||||
req, err := client.ReprocessPreparer(resourceGroupName, hubName, kpiName)
|
||||
if err != nil {
|
||||
@@ -423,7 +463,7 @@ func (client KpiClient) ReprocessPreparer(resourceGroupName string, hubName stri
|
||||
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
|
||||
}
|
||||
|
||||
const APIVersion = "2017-01-01"
|
||||
const APIVersion = "2017-04-26"
|
||||
queryParameters := map[string]interface{}{
|
||||
"api-version": APIVersion,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user