vendor: update all dependencies to latest versions
This commit is contained in:
Generated
Vendored
+123
-43
@@ -14,9 +14,8 @@ package containerservice
|
||||
// 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,32 +24,27 @@ import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
// ContainerServicesClient is the the Container Service Client.
|
||||
// ContainerServicesClient is the compute Client
|
||||
type ContainerServicesClient struct {
|
||||
ManagementClient
|
||||
}
|
||||
|
||||
// NewContainerServicesClient creates an instance of the
|
||||
// ContainerServicesClient client.
|
||||
// NewContainerServicesClient creates an instance of the ContainerServicesClient client.
|
||||
func NewContainerServicesClient(subscriptionID string) ContainerServicesClient {
|
||||
return NewContainerServicesClientWithBaseURI(DefaultBaseURI, subscriptionID)
|
||||
}
|
||||
|
||||
// NewContainerServicesClientWithBaseURI creates an instance of the
|
||||
// ContainerServicesClient client.
|
||||
// NewContainerServicesClientWithBaseURI creates an instance of the ContainerServicesClient client.
|
||||
func NewContainerServicesClientWithBaseURI(baseURI string, subscriptionID string) ContainerServicesClient {
|
||||
return ContainerServicesClient{NewWithBaseURI(baseURI, subscriptionID)}
|
||||
}
|
||||
|
||||
// CreateOrUpdate creates or updates a container service with the specified
|
||||
// configuration of orchestrator, masters, and agents. 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 or updates a container service with the specified configuration of orchestrator, masters, and
|
||||
// agents. 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. containerServiceName is
|
||||
// the name of the container service in the specified subscription and resource
|
||||
// group. parameters is parameters supplied to the Create or Update a Container
|
||||
// resourceGroupName is the name of the resource group. containerServiceName is the name of the container service in
|
||||
// the specified subscription and resource group. parameters is parameters supplied to the Create or Update a Container
|
||||
// Service operation.
|
||||
func (client ContainerServicesClient) CreateOrUpdate(resourceGroupName string, containerServiceName string, parameters ContainerService, cancel <-chan struct{}) (<-chan ContainerService, <-chan error) {
|
||||
resultChan := make(chan ContainerService, 1)
|
||||
@@ -94,8 +88,10 @@ func (client ContainerServicesClient) CreateOrUpdate(resourceGroupName string, c
|
||||
var err error
|
||||
var result ContainerService
|
||||
defer func() {
|
||||
if err != nil {
|
||||
errChan <- err
|
||||
}
|
||||
resultChan <- result
|
||||
errChan <- err
|
||||
close(resultChan)
|
||||
close(errChan)
|
||||
}()
|
||||
@@ -164,18 +160,14 @@ func (client ContainerServicesClient) CreateOrUpdateResponder(resp *http.Respons
|
||||
return
|
||||
}
|
||||
|
||||
// Delete deletes the specified container service in the specified subscription
|
||||
// and resource group. The operation does not delete other resources created as
|
||||
// part of creating a container service, including storage accounts, VMs, and
|
||||
// availability sets. All the other resources created with the container
|
||||
// service are part of the same resource group and can be deleted individually.
|
||||
// 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 the specified container service in the specified subscription and resource group. The operation does
|
||||
// not delete other resources created as part of creating a container service, including storage accounts, VMs, and
|
||||
// availability sets. All the other resources created with the container service are part of the same resource group
|
||||
// and can be deleted individually. 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. containerServiceName is
|
||||
// the name of the container service in the specified subscription and resource
|
||||
// group.
|
||||
// resourceGroupName is the name of the resource group. containerServiceName is the name of the container service in
|
||||
// the specified subscription and resource group.
|
||||
func (client ContainerServicesClient) Delete(resourceGroupName string, containerServiceName string, cancel <-chan struct{}) (<-chan autorest.Response, <-chan error) {
|
||||
resultChan := make(chan autorest.Response, 1)
|
||||
errChan := make(chan error, 1)
|
||||
@@ -183,8 +175,10 @@ func (client ContainerServicesClient) Delete(resourceGroupName string, container
|
||||
var err error
|
||||
var result autorest.Response
|
||||
defer func() {
|
||||
if err != nil {
|
||||
errChan <- err
|
||||
}
|
||||
resultChan <- result
|
||||
errChan <- err
|
||||
close(resultChan)
|
||||
close(errChan)
|
||||
}()
|
||||
@@ -250,14 +244,12 @@ func (client ContainerServicesClient) DeleteResponder(resp *http.Response) (resu
|
||||
return
|
||||
}
|
||||
|
||||
// Get gets the properties of the specified container service in the specified
|
||||
// subscription and resource group. The operation returns the properties
|
||||
// including state, orchestrator, number of masters and agents, and FQDNs of
|
||||
// masters and agents.
|
||||
// Get gets the properties of the specified container service in the specified subscription and resource group. The
|
||||
// operation returns the properties including state, orchestrator, number of masters and agents, and FQDNs of masters
|
||||
// and agents.
|
||||
//
|
||||
// resourceGroupName is the name of the resource group. containerServiceName is
|
||||
// the name of the container service in the specified subscription and resource
|
||||
// group.
|
||||
// resourceGroupName is the name of the resource group. containerServiceName is the name of the container service in
|
||||
// the specified subscription and resource group.
|
||||
func (client ContainerServicesClient) Get(resourceGroupName string, containerServiceName string) (result ContainerService, err error) {
|
||||
req, err := client.GetPreparer(resourceGroupName, containerServiceName)
|
||||
if err != nil {
|
||||
@@ -320,9 +312,8 @@ func (client ContainerServicesClient) GetResponder(resp *http.Response) (result
|
||||
return
|
||||
}
|
||||
|
||||
// List gets a list of container services in the specified subscription. The
|
||||
// operation returns properties of each container service including state,
|
||||
// orchestrator, number of masters and agents, and FQDNs of masters and agents.
|
||||
// List gets a list of container services in the specified subscription. The operation returns properties of each
|
||||
// container service including state, orchestrator, number of masters and agents, and FQDNs of masters and agents.
|
||||
func (client ContainerServicesClient) List() (result ListResult, err error) {
|
||||
req, err := client.ListPreparer()
|
||||
if err != nil {
|
||||
@@ -407,10 +398,54 @@ func (client ContainerServicesClient) ListNextResults(lastResults ListResult) (r
|
||||
return
|
||||
}
|
||||
|
||||
// ListByResourceGroup gets a list of container services in the specified
|
||||
// subscription and resource group. The operation returns properties of each
|
||||
// container service including state, orchestrator, number of masters and
|
||||
// agents, and FQDNs of masters and agents.
|
||||
// ListComplete gets all elements from the list without paging.
|
||||
func (client ContainerServicesClient) ListComplete(cancel <-chan struct{}) (<-chan ContainerService, <-chan error) {
|
||||
resultChan := make(chan ContainerService)
|
||||
errChan := make(chan error, 1)
|
||||
go func() {
|
||||
defer func() {
|
||||
close(resultChan)
|
||||
close(errChan)
|
||||
}()
|
||||
list, err := client.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
|
||||
}
|
||||
}
|
||||
}
|
||||
for list.NextLink != nil {
|
||||
list, err = client.ListNextResults(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
|
||||
}
|
||||
|
||||
// ListByResourceGroup gets a list of container services in the specified subscription and resource group. The
|
||||
// operation returns properties of each container service including state, orchestrator, number of masters and agents,
|
||||
// and FQDNs of masters and agents.
|
||||
//
|
||||
// resourceGroupName is the name of the resource group.
|
||||
func (client ContainerServicesClient) ListByResourceGroup(resourceGroupName string) (result ListResult, err error) {
|
||||
@@ -497,3 +532,48 @@ func (client ContainerServicesClient) ListByResourceGroupNextResults(lastResults
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// ListByResourceGroupComplete gets all elements from the list without paging.
|
||||
func (client ContainerServicesClient) ListByResourceGroupComplete(resourceGroupName string, cancel <-chan struct{}) (<-chan ContainerService, <-chan error) {
|
||||
resultChan := make(chan ContainerService)
|
||||
errChan := make(chan error, 1)
|
||||
go func() {
|
||||
defer func() {
|
||||
close(resultChan)
|
||||
close(errChan)
|
||||
}()
|
||||
list, err := client.ListByResourceGroup(resourceGroupName)
|
||||
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.ListByResourceGroupNextResults(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