vendor: update all dependencies to latest versions
This commit is contained in:
+57
-18
@@ -14,9 +14,8 @@ package logic
|
||||
// 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,7 +24,7 @@ import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
// PartnersClient is the rEST API for Azure Logic Apps.
|
||||
// PartnersClient is the REST API for Azure Logic Apps.
|
||||
type PartnersClient struct {
|
||||
ManagementClient
|
||||
}
|
||||
@@ -35,17 +34,15 @@ func NewPartnersClient(subscriptionID string) PartnersClient {
|
||||
return NewPartnersClientWithBaseURI(DefaultBaseURI, subscriptionID)
|
||||
}
|
||||
|
||||
// NewPartnersClientWithBaseURI creates an instance of the PartnersClient
|
||||
// client.
|
||||
// NewPartnersClientWithBaseURI creates an instance of the PartnersClient client.
|
||||
func NewPartnersClientWithBaseURI(baseURI string, subscriptionID string) PartnersClient {
|
||||
return PartnersClient{NewWithBaseURI(baseURI, subscriptionID)}
|
||||
}
|
||||
|
||||
// CreateOrUpdate creates or updates an integration account partner.
|
||||
//
|
||||
// resourceGroupName is the resource group name. integrationAccountName is the
|
||||
// integration account name. partnerName is the integration account partner
|
||||
// name. partner is the integration account partner.
|
||||
// resourceGroupName is the resource group name. integrationAccountName is the integration account name. partnerName is
|
||||
// the integration account partner name. partner is the integration account partner.
|
||||
func (client PartnersClient) CreateOrUpdate(resourceGroupName string, integrationAccountName string, partnerName string, partner IntegrationAccountPartner) (result IntegrationAccountPartner, err error) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: partner,
|
||||
@@ -120,9 +117,8 @@ func (client PartnersClient) CreateOrUpdateResponder(resp *http.Response) (resul
|
||||
|
||||
// Delete deletes an integration account partner.
|
||||
//
|
||||
// resourceGroupName is the resource group name. integrationAccountName is the
|
||||
// integration account name. partnerName is the integration account partner
|
||||
// name.
|
||||
// resourceGroupName is the resource group name. integrationAccountName is the integration account name. partnerName is
|
||||
// the integration account partner name.
|
||||
func (client PartnersClient) Delete(resourceGroupName string, integrationAccountName string, partnerName string) (result autorest.Response, err error) {
|
||||
req, err := client.DeletePreparer(resourceGroupName, integrationAccountName, partnerName)
|
||||
if err != nil {
|
||||
@@ -187,9 +183,8 @@ func (client PartnersClient) DeleteResponder(resp *http.Response) (result autore
|
||||
|
||||
// Get gets an integration account partner.
|
||||
//
|
||||
// resourceGroupName is the resource group name. integrationAccountName is the
|
||||
// integration account name. partnerName is the integration account partner
|
||||
// name.
|
||||
// resourceGroupName is the resource group name. integrationAccountName is the integration account name. partnerName is
|
||||
// the integration account partner name.
|
||||
func (client PartnersClient) Get(resourceGroupName string, integrationAccountName string, partnerName string) (result IntegrationAccountPartner, err error) {
|
||||
req, err := client.GetPreparer(resourceGroupName, integrationAccountName, partnerName)
|
||||
if err != nil {
|
||||
@@ -255,9 +250,8 @@ func (client PartnersClient) GetResponder(resp *http.Response) (result Integrati
|
||||
|
||||
// ListByIntegrationAccounts gets a list of integration account partners.
|
||||
//
|
||||
// resourceGroupName is the resource group name. integrationAccountName is the
|
||||
// integration account name. top is the number of items to be included in the
|
||||
// result. filter is the filter to apply on the operation.
|
||||
// resourceGroupName is the resource group name. integrationAccountName is the integration account name. top is the
|
||||
// number of items to be included in the result. filter is the filter to apply on the operation.
|
||||
func (client PartnersClient) ListByIntegrationAccounts(resourceGroupName string, integrationAccountName string, top *int32, filter string) (result IntegrationAccountPartnerListResult, err error) {
|
||||
req, err := client.ListByIntegrationAccountsPreparer(resourceGroupName, integrationAccountName, top, filter)
|
||||
if err != nil {
|
||||
@@ -349,3 +343,48 @@ func (client PartnersClient) ListByIntegrationAccountsNextResults(lastResults In
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// ListByIntegrationAccountsComplete gets all elements from the list without paging.
|
||||
func (client PartnersClient) ListByIntegrationAccountsComplete(resourceGroupName string, integrationAccountName string, top *int32, filter string, cancel <-chan struct{}) (<-chan IntegrationAccountPartner, <-chan error) {
|
||||
resultChan := make(chan IntegrationAccountPartner)
|
||||
errChan := make(chan error, 1)
|
||||
go func() {
|
||||
defer func() {
|
||||
close(resultChan)
|
||||
close(errChan)
|
||||
}()
|
||||
list, err := client.ListByIntegrationAccounts(resourceGroupName, integrationAccountName, top, filter)
|
||||
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.ListByIntegrationAccountsNextResults(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