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"
|
||||
)
|
||||
|
||||
// SessionsClient is the rEST API for Azure Logic Apps.
|
||||
// SessionsClient is the REST API for Azure Logic Apps.
|
||||
type SessionsClient struct {
|
||||
ManagementClient
|
||||
}
|
||||
@@ -35,17 +34,15 @@ func NewSessionsClient(subscriptionID string) SessionsClient {
|
||||
return NewSessionsClientWithBaseURI(DefaultBaseURI, subscriptionID)
|
||||
}
|
||||
|
||||
// NewSessionsClientWithBaseURI creates an instance of the SessionsClient
|
||||
// client.
|
||||
// NewSessionsClientWithBaseURI creates an instance of the SessionsClient client.
|
||||
func NewSessionsClientWithBaseURI(baseURI string, subscriptionID string) SessionsClient {
|
||||
return SessionsClient{NewWithBaseURI(baseURI, subscriptionID)}
|
||||
}
|
||||
|
||||
// CreateOrUpdate creates or updates an integration account session.
|
||||
//
|
||||
// resourceGroupName is the resource group name. integrationAccountName is the
|
||||
// integration account name. sessionName is the integration account session
|
||||
// name. session is the integration account session.
|
||||
// resourceGroupName is the resource group name. integrationAccountName is the integration account name. sessionName is
|
||||
// the integration account session name. session is the integration account session.
|
||||
func (client SessionsClient) CreateOrUpdate(resourceGroupName string, integrationAccountName string, sessionName string, session IntegrationAccountSession) (result IntegrationAccountSession, err error) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: session,
|
||||
@@ -119,9 +116,8 @@ func (client SessionsClient) CreateOrUpdateResponder(resp *http.Response) (resul
|
||||
|
||||
// Delete deletes an integration account session.
|
||||
//
|
||||
// resourceGroupName is the resource group name. integrationAccountName is the
|
||||
// integration account name. sessionName is the integration account session
|
||||
// name.
|
||||
// resourceGroupName is the resource group name. integrationAccountName is the integration account name. sessionName is
|
||||
// the integration account session name.
|
||||
func (client SessionsClient) Delete(resourceGroupName string, integrationAccountName string, sessionName string) (result autorest.Response, err error) {
|
||||
req, err := client.DeletePreparer(resourceGroupName, integrationAccountName, sessionName)
|
||||
if err != nil {
|
||||
@@ -186,9 +182,8 @@ func (client SessionsClient) DeleteResponder(resp *http.Response) (result autore
|
||||
|
||||
// Get gets an integration account session.
|
||||
//
|
||||
// resourceGroupName is the resource group name. integrationAccountName is the
|
||||
// integration account name. sessionName is the integration account session
|
||||
// name.
|
||||
// resourceGroupName is the resource group name. integrationAccountName is the integration account name. sessionName is
|
||||
// the integration account session name.
|
||||
func (client SessionsClient) Get(resourceGroupName string, integrationAccountName string, sessionName string) (result IntegrationAccountSession, err error) {
|
||||
req, err := client.GetPreparer(resourceGroupName, integrationAccountName, sessionName)
|
||||
if err != nil {
|
||||
@@ -254,9 +249,8 @@ func (client SessionsClient) GetResponder(resp *http.Response) (result Integrati
|
||||
|
||||
// ListByIntegrationAccounts gets a list of integration account sessions.
|
||||
//
|
||||
// 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 SessionsClient) ListByIntegrationAccounts(resourceGroupName string, integrationAccountName string, top *int32, filter string) (result IntegrationAccountSessionListResult, err error) {
|
||||
req, err := client.ListByIntegrationAccountsPreparer(resourceGroupName, integrationAccountName, top, filter)
|
||||
if err != nil {
|
||||
@@ -348,3 +342,48 @@ func (client SessionsClient) ListByIntegrationAccountsNextResults(lastResults In
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// ListByIntegrationAccountsComplete gets all elements from the list without paging.
|
||||
func (client SessionsClient) ListByIntegrationAccountsComplete(resourceGroupName string, integrationAccountName string, top *int32, filter string, cancel <-chan struct{}) (<-chan IntegrationAccountSession, <-chan error) {
|
||||
resultChan := make(chan IntegrationAccountSession)
|
||||
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