|
|
|
|
@ -14,7 +14,7 @@ package containerservice
|
|
|
|
|
// See the License for the specific language governing permissions and
|
|
|
|
|
// limitations under the License.
|
|
|
|
|
//
|
|
|
|
|
// Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
|
|
|
|
|
// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
|
|
|
|
|
// Changes may cause incorrect behavior and will be lost if the code is
|
|
|
|
|
// regenerated.
|
|
|
|
|
|
|
|
|
|
@ -43,15 +43,15 @@ func NewContainerServicesClientWithBaseURI(baseURI string, subscriptionID string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 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.
|
|
|
|
|
// 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 Service operation.
|
|
|
|
|
// 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{}) (result autorest.Response, err error) {
|
|
|
|
|
if err := validation.Validate([]validation.Validation{
|
|
|
|
|
{TargetValue: parameters,
|
|
|
|
|
@ -63,9 +63,7 @@ func (client ContainerServicesClient) CreateOrUpdate(resourceGroupName string, c
|
|
|
|
|
{Target: "parameters.Properties.ServicePrincipalProfile.Secret", Name: validation.Null, Rule: true, Chain: nil},
|
|
|
|
|
}},
|
|
|
|
|
{Target: "parameters.Properties.MasterProfile", Name: validation.Null, Rule: true,
|
|
|
|
|
Chain: []validation.Constraint{{Target: "parameters.Properties.MasterProfile.DNSPrefix", Name: validation.Null, Rule: true, Chain: nil},
|
|
|
|
|
{Target: "parameters.Properties.MasterProfile.Fqdn", Name: validation.ReadOnly, Rule: true, Chain: nil},
|
|
|
|
|
}},
|
|
|
|
|
Chain: []validation.Constraint{{Target: "parameters.Properties.MasterProfile.DNSPrefix", Name: validation.Null, Rule: true, Chain: nil}}},
|
|
|
|
|
{Target: "parameters.Properties.AgentPoolProfiles", Name: validation.Null, Rule: true, Chain: nil},
|
|
|
|
|
{Target: "parameters.Properties.WindowsProfile", Name: validation.Null, Rule: false,
|
|
|
|
|
Chain: []validation.Constraint{{Target: "parameters.Properties.WindowsProfile.AdminUsername", Name: validation.Null, Rule: true,
|
|
|
|
|
@ -81,11 +79,8 @@ func (client ContainerServicesClient) CreateOrUpdate(resourceGroupName string, c
|
|
|
|
|
}},
|
|
|
|
|
{Target: "parameters.Properties.DiagnosticsProfile", Name: validation.Null, Rule: false,
|
|
|
|
|
Chain: []validation.Constraint{{Target: "parameters.Properties.DiagnosticsProfile.VMDiagnostics", Name: validation.Null, Rule: true,
|
|
|
|
|
Chain: []validation.Constraint{{Target: "parameters.Properties.DiagnosticsProfile.VMDiagnostics.Enabled", Name: validation.Null, Rule: true, Chain: nil},
|
|
|
|
|
{Target: "parameters.Properties.DiagnosticsProfile.VMDiagnostics.StorageURI", Name: validation.ReadOnly, Rule: true, Chain: nil},
|
|
|
|
|
}},
|
|
|
|
|
Chain: []validation.Constraint{{Target: "parameters.Properties.DiagnosticsProfile.VMDiagnostics.Enabled", Name: validation.Null, Rule: true, Chain: nil}}},
|
|
|
|
|
}},
|
|
|
|
|
{Target: "parameters.Properties.ProvisioningState", Name: validation.ReadOnly, Rule: true, Chain: nil},
|
|
|
|
|
}}}}}); err != nil {
|
|
|
|
|
return result, validation.NewErrorWithValidationError(err, "containerservice.ContainerServicesClient", "CreateOrUpdate")
|
|
|
|
|
}
|
|
|
|
|
@ -151,18 +146,18 @@ 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{}) (result autorest.Response, err error) {
|
|
|
|
|
req, err := client.DeletePreparer(resourceGroupName, containerServiceName, cancel)
|
|
|
|
|
if err != nil {
|
|
|
|
|
@ -228,9 +223,9 @@ func (client ContainerServicesClient) DeleteResponder(resp *http.Response) (resu
|
|
|
|
|
// 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 {
|
|
|
|
|
@ -292,8 +287,7 @@ func (client ContainerServicesClient) GetResponder(resp *http.Response) (result
|
|
|
|
|
|
|
|
|
|
// 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.
|
|
|
|
|
// 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 {
|
|
|
|
|
|