api

package
v10.1.1+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 24, 2019 License: Apache-2.0 Imports: 7 Imported by: 4

Documentation

Index

Constants

View Source
const (
	// DefaultBaseURI is the default URI used for the service Containerservice
	DefaultBaseURI = "https://management.azure.com"
)

Variables

This section is empty.

Functions

func UserAgent

func UserAgent() string

UserAgent returns the UserAgent string to use when sending http.Requests.

func Version

func Version() string

Version returns the semantic version (see http://semver.org) of the client.

Types

type BaseClient

type BaseClient struct {
	autorest.Client
	BaseURI        string
	SubscriptionID string
}

BaseClient is the base client for Containerservice.

func New

func New(subscriptionID string) BaseClient

New creates an instance of the BaseClient client.

func NewWithBaseURI

func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient

NewWithBaseURI creates an instance of the BaseClient client.

type OpenShiftManagedClustersClient

type OpenShiftManagedClustersClient struct {
	BaseClient
}

OpenShiftManagedClustersClient is the the Container Service Client.

func NewOpenShiftManagedClustersClient

func NewOpenShiftManagedClustersClient(subscriptionID string) OpenShiftManagedClustersClient

NewOpenShiftManagedClustersClient creates an instance of the OpenShiftManagedClustersClient client.

func NewOpenShiftManagedClustersClientWithBaseURI

func NewOpenShiftManagedClustersClientWithBaseURI(baseURI string, subscriptionID string) OpenShiftManagedClustersClient

NewOpenShiftManagedClustersClientWithBaseURI creates an instance of the OpenShiftManagedClustersClient client.

func (OpenShiftManagedClustersClient) CreateOrUpdate

func (client OpenShiftManagedClustersClient) CreateOrUpdate(ctx context.Context, resourceGroupName, resourceName string, parameters v20190930preview.OpenShiftManagedCluster) (result OpenShiftManagedClustersCreateOrUpdateFuture, err error)

CreateOrUpdate creates or updates a openshift managed cluster with the specified configuration for agents and OpenShift version. Parameters: resourceGroupName - the name of the resource group. resourceName - the name of the openshift managed cluster resource. parameters - parameters supplied to the Create or Update an OpenShift Managed Cluster operation.

func (OpenShiftManagedClustersClient) CreateOrUpdateAndWait

func (client OpenShiftManagedClustersClient) CreateOrUpdateAndWait(ctx context.Context, resourceGroupName, resourceName string, parameters v20190930preview.OpenShiftManagedCluster) (osmc v20190930preview.OpenShiftManagedCluster, err error)

CreateOrUpdateAndWait creates or updates a openshift managed cluster and waits for the request to complete before returning.

func (OpenShiftManagedClustersClient) CreateOrUpdatePreparer

func (client OpenShiftManagedClustersClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, resourceName string, parameters v20190930preview.OpenShiftManagedCluster) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (OpenShiftManagedClustersClient) CreateOrUpdateResponder

func (client OpenShiftManagedClustersClient) CreateOrUpdateResponder(resp *http.Response) (result v20190930preview.OpenShiftManagedCluster, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (OpenShiftManagedClustersClient) CreateOrUpdateSender

func (client OpenShiftManagedClustersClient) CreateOrUpdateSender(req *http.Request) (future OpenShiftManagedClustersCreateOrUpdateFuture, err error)

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (OpenShiftManagedClustersClient) Delete

func (client OpenShiftManagedClustersClient) Delete(ctx context.Context, resourceGroupName string, resourceName string) (result OpenShiftManagedClustersDeleteFuture, err error)

Delete deletes the openshift managed cluster with a specified resource group and name. Parameters: resourceGroupName - the name of the resource group. resourceName - the name of the openshift managed cluster resource.

func (OpenShiftManagedClustersClient) DeletePreparer

func (client OpenShiftManagedClustersClient) DeletePreparer(ctx context.Context, resourceGroupName string, resourceName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (OpenShiftManagedClustersClient) DeleteResponder

func (client OpenShiftManagedClustersClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (OpenShiftManagedClustersClient) DeleteSender

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (OpenShiftManagedClustersClient) Get

func (client OpenShiftManagedClustersClient) Get(ctx context.Context, resourceGroupName string, resourceName string) (result v20190930preview.OpenShiftManagedCluster, err error)

Get gets the details of the managed openshift cluster with a specified resource group and name. Parameters: resourceGroupName - the name of the resource group. resourceName - the name of the openshift managed cluster resource.

func (OpenShiftManagedClustersClient) GetPreparer

func (client OpenShiftManagedClustersClient) GetPreparer(ctx context.Context, resourceGroupName string, resourceName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (OpenShiftManagedClustersClient) GetResponder

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (OpenShiftManagedClustersClient) GetSender

func (client OpenShiftManagedClustersClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (OpenShiftManagedClustersClient) UpdateTags

func (client OpenShiftManagedClustersClient) UpdateTags(ctx context.Context, resourceGroupName string, resourceName string, parameters TagsObject) (result OpenShiftManagedClustersUpdateTagsFuture, err error)

UpdateTags updates an openshift managed cluster with the specified tags. Parameters: resourceGroupName - the name of the resource group. resourceName - the name of the openshift managed cluster resource. parameters - parameters supplied to the Update OpenShift Managed Cluster Tags operation.

func (OpenShiftManagedClustersClient) UpdateTagsPreparer

func (client OpenShiftManagedClustersClient) UpdateTagsPreparer(ctx context.Context, resourceGroupName string, resourceName string, parameters TagsObject) (*http.Request, error)

UpdateTagsPreparer prepares the UpdateTags request.

func (OpenShiftManagedClustersClient) UpdateTagsResponder

func (client OpenShiftManagedClustersClient) UpdateTagsResponder(resp *http.Response) (result v20190930preview.OpenShiftManagedCluster, err error)

UpdateTagsResponder handles the response to the UpdateTags request. The method always closes the http.Response Body.

func (OpenShiftManagedClustersClient) UpdateTagsSender

UpdateTagsSender sends the UpdateTags request. The method will close the http.Response Body if it receives an error.

type OpenShiftManagedClustersCreateOrUpdateFuture

type OpenShiftManagedClustersCreateOrUpdateFuture struct {
	azure.Future
}

OpenShiftManagedClustersCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*OpenShiftManagedClustersCreateOrUpdateFuture) Result

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type OpenShiftManagedClustersDeleteFuture

type OpenShiftManagedClustersDeleteFuture struct {
	azure.Future
}

OpenShiftManagedClustersDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*OpenShiftManagedClustersDeleteFuture) Result

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type OpenShiftManagedClustersUpdateTagsFuture

type OpenShiftManagedClustersUpdateTagsFuture struct {
	azure.Future
}

OpenShiftManagedClustersUpdateTagsFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*OpenShiftManagedClustersUpdateTagsFuture) Result

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type TagsObject

type TagsObject struct {
	// Tags - Resource tags.
	Tags map[string]*string `json:"tags"`
}

TagsObject tags object for patch operations.

func (TagsObject) MarshalJSON

func (toVar TagsObject) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for TagsObject.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL