vendor: update all dependencies to latest versions
This commit is contained in:
+73
-34
@@ -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,35 +24,29 @@ import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
// RelationshipsClient 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.
|
||||
// RelationshipsClient 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 RelationshipsClient struct {
|
||||
ManagementClient
|
||||
}
|
||||
|
||||
// NewRelationshipsClient creates an instance of the RelationshipsClient
|
||||
// client.
|
||||
// NewRelationshipsClient creates an instance of the RelationshipsClient client.
|
||||
func NewRelationshipsClient(subscriptionID string) RelationshipsClient {
|
||||
return NewRelationshipsClientWithBaseURI(DefaultBaseURI, subscriptionID)
|
||||
}
|
||||
|
||||
// NewRelationshipsClientWithBaseURI creates an instance of the
|
||||
// RelationshipsClient client.
|
||||
// NewRelationshipsClientWithBaseURI creates an instance of the RelationshipsClient client.
|
||||
func NewRelationshipsClientWithBaseURI(baseURI string, subscriptionID string) RelationshipsClient {
|
||||
return RelationshipsClient{NewWithBaseURI(baseURI, subscriptionID)}
|
||||
}
|
||||
|
||||
// CreateOrUpdate creates a relationship or updates an existing relationship
|
||||
// within a hub. This method may poll for completion. Polling can be canceled
|
||||
// by passing the cancel channel argument. The channel will be used to cancel
|
||||
// CreateOrUpdate creates a relationship or updates an existing relationship within a 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. relationshipName is the name of the Relationship. parameters is
|
||||
// parameters supplied to the CreateOrUpdate Relationship operation.
|
||||
// resourceGroupName is the name of the resource group. hubName is the name of the hub. relationshipName is the name of
|
||||
// the Relationship. parameters is parameters supplied to the CreateOrUpdate Relationship operation.
|
||||
func (client RelationshipsClient) CreateOrUpdate(resourceGroupName string, hubName string, relationshipName string, parameters RelationshipResourceFormat, cancel <-chan struct{}) (<-chan RelationshipResourceFormat, <-chan error) {
|
||||
resultChan := make(chan RelationshipResourceFormat, 1)
|
||||
errChan := make(chan error, 1)
|
||||
@@ -77,8 +70,10 @@ func (client RelationshipsClient) CreateOrUpdate(resourceGroupName string, hubNa
|
||||
var err error
|
||||
var result RelationshipResourceFormat
|
||||
defer func() {
|
||||
if err != nil {
|
||||
errChan <- err
|
||||
}
|
||||
resultChan <- result
|
||||
errChan <- err
|
||||
close(resultChan)
|
||||
close(errChan)
|
||||
}()
|
||||
@@ -112,7 +107,7 @@ func (client RelationshipsClient) CreateOrUpdatePreparer(resourceGroupName strin
|
||||
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
|
||||
}
|
||||
|
||||
const APIVersion = "2017-01-01"
|
||||
const APIVersion = "2017-04-26"
|
||||
queryParameters := map[string]interface{}{
|
||||
"api-version": APIVersion,
|
||||
}
|
||||
@@ -148,13 +143,11 @@ func (client RelationshipsClient) CreateOrUpdateResponder(resp *http.Response) (
|
||||
return
|
||||
}
|
||||
|
||||
// Delete deletes a relationship within a 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 relationship within a 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. relationshipName is the name of the relationship.
|
||||
// resourceGroupName is the name of the resource group. hubName is the name of the hub. relationshipName is the name of
|
||||
// the relationship.
|
||||
func (client RelationshipsClient) Delete(resourceGroupName string, hubName string, relationshipName string, cancel <-chan struct{}) (<-chan autorest.Response, <-chan error) {
|
||||
resultChan := make(chan autorest.Response, 1)
|
||||
errChan := make(chan error, 1)
|
||||
@@ -162,8 +155,10 @@ func (client RelationshipsClient) Delete(resourceGroupName string, hubName strin
|
||||
var err error
|
||||
var result autorest.Response
|
||||
defer func() {
|
||||
if err != nil {
|
||||
errChan <- err
|
||||
}
|
||||
resultChan <- result
|
||||
errChan <- err
|
||||
close(resultChan)
|
||||
close(errChan)
|
||||
}()
|
||||
@@ -197,7 +192,7 @@ func (client RelationshipsClient) DeletePreparer(resourceGroupName string, hubNa
|
||||
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
|
||||
}
|
||||
|
||||
const APIVersion = "2017-01-01"
|
||||
const APIVersion = "2017-04-26"
|
||||
queryParameters := map[string]interface{}{
|
||||
"api-version": APIVersion,
|
||||
}
|
||||
@@ -232,8 +227,8 @@ func (client RelationshipsClient) DeleteResponder(resp *http.Response) (result a
|
||||
|
||||
// Get gets information about the specified relationship.
|
||||
//
|
||||
// resourceGroupName is the name of the resource group. hubName is the name of
|
||||
// the hub. relationshipName is the name of the relationship.
|
||||
// resourceGroupName is the name of the resource group. hubName is the name of the hub. relationshipName is the name of
|
||||
// the relationship.
|
||||
func (client RelationshipsClient) Get(resourceGroupName string, hubName string, relationshipName string) (result RelationshipResourceFormat, err error) {
|
||||
req, err := client.GetPreparer(resourceGroupName, hubName, relationshipName)
|
||||
if err != nil {
|
||||
@@ -265,7 +260,7 @@ func (client RelationshipsClient) GetPreparer(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,
|
||||
}
|
||||
@@ -299,8 +294,7 @@ func (client RelationshipsClient) GetResponder(resp *http.Response) (result Rela
|
||||
|
||||
// ListByHub gets all relationships in the 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 RelationshipsClient) ListByHub(resourceGroupName string, hubName string) (result RelationshipListResult, err error) {
|
||||
req, err := client.ListByHubPreparer(resourceGroupName, hubName)
|
||||
if err != nil {
|
||||
@@ -331,7 +325,7 @@ func (client RelationshipsClient) ListByHubPreparer(resourceGroupName string, hu
|
||||
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
|
||||
}
|
||||
|
||||
const APIVersion = "2017-01-01"
|
||||
const APIVersion = "2017-04-26"
|
||||
queryParameters := map[string]interface{}{
|
||||
"api-version": APIVersion,
|
||||
}
|
||||
@@ -386,3 +380,48 @@ func (client RelationshipsClient) ListByHubNextResults(lastResults RelationshipL
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// ListByHubComplete gets all elements from the list without paging.
|
||||
func (client RelationshipsClient) ListByHubComplete(resourceGroupName string, hubName string, cancel <-chan struct{}) (<-chan RelationshipResourceFormat, <-chan error) {
|
||||
resultChan := make(chan RelationshipResourceFormat)
|
||||
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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user