devspaces

package
v59.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package devspaces implements the Azure ARM Devspaces service API version 2019-04-01.

Dev Spaces Client

Index

Constants

View Source
const (
	// DefaultBaseURI is the default URI used for the service Devspaces
	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 Devspaces.

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 using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

type BasicOrchestratorSpecificConnectionDetails

type BasicOrchestratorSpecificConnectionDetails interface {
	AsKubernetesConnectionDetails() (*KubernetesConnectionDetails, bool)
	AsOrchestratorSpecificConnectionDetails() (*OrchestratorSpecificConnectionDetails, bool)
}

BasicOrchestratorSpecificConnectionDetails base class for types that supply values used to connect to container orchestrators

type ContainerHostMapping

type ContainerHostMapping struct {
	autorest.Response `json:"-"`
	// ContainerHostResourceID - ARM ID of the Container Host resource
	ContainerHostResourceID *string `json:"containerHostResourceId,omitempty"`
	// MappedControllerResourceID - READ-ONLY; ARM ID of the mapped Controller resource
	MappedControllerResourceID *string `json:"mappedControllerResourceId,omitempty"`
}

ContainerHostMapping container host mapping object specifying the Container host resource ID and its associated Controller resource.

func (ContainerHostMapping) MarshalJSON

func (chm ContainerHostMapping) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ContainerHostMapping.

type ContainerHostMappingsClient

type ContainerHostMappingsClient struct {
	BaseClient
}

ContainerHostMappingsClient is the dev Spaces Client

func NewContainerHostMappingsClient

func NewContainerHostMappingsClient(subscriptionID string) ContainerHostMappingsClient

NewContainerHostMappingsClient creates an instance of the ContainerHostMappingsClient client.

func NewContainerHostMappingsClientWithBaseURI

func NewContainerHostMappingsClientWithBaseURI(baseURI string, subscriptionID string) ContainerHostMappingsClient

NewContainerHostMappingsClientWithBaseURI creates an instance of the ContainerHostMappingsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (ContainerHostMappingsClient) GetContainerHostMapping

func (client ContainerHostMappingsClient) GetContainerHostMapping(ctx context.Context, containerHostMapping ContainerHostMapping, resourceGroupName string, location string) (result ContainerHostMapping, err error)

GetContainerHostMapping sends the get container host mapping request. Parameters: resourceGroupName - resource group to which the resource belongs. location - location of the container host.

func (ContainerHostMappingsClient) GetContainerHostMappingPreparer

func (client ContainerHostMappingsClient) GetContainerHostMappingPreparer(ctx context.Context, containerHostMapping ContainerHostMapping, resourceGroupName string, location string) (*http.Request, error)

GetContainerHostMappingPreparer prepares the GetContainerHostMapping request.

func (ContainerHostMappingsClient) GetContainerHostMappingResponder

func (client ContainerHostMappingsClient) GetContainerHostMappingResponder(resp *http.Response) (result ContainerHostMapping, err error)

GetContainerHostMappingResponder handles the response to the GetContainerHostMapping request. The method always closes the http.Response Body.

func (ContainerHostMappingsClient) GetContainerHostMappingSender

func (client ContainerHostMappingsClient) GetContainerHostMappingSender(req *http.Request) (*http.Response, error)

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

type Controller

type Controller struct {
	autorest.Response     `json:"-"`
	*ControllerProperties `json:"properties,omitempty"`
	Sku                   *Sku `json:"sku,omitempty"`
	// Tags - Tags for the Azure resource.
	Tags map[string]*string `json:"tags"`
	// Location - Region where the Azure resource is located.
	Location *string `json:"location,omitempty"`
	// ID - READ-ONLY; Fully qualified resource Id for the resource.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; The name of the resource.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; The type of the resource.
	Type *string `json:"type,omitempty"`
}

Controller ...

func (Controller) MarshalJSON

func (c Controller) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Controller.

func (*Controller) UnmarshalJSON

func (c *Controller) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Controller struct.

type ControllerConnectionDetails

type ControllerConnectionDetails struct {
	OrchestratorSpecificConnectionDetails BasicOrchestratorSpecificConnectionDetails `json:"orchestratorSpecificConnectionDetails,omitempty"`
}

ControllerConnectionDetails ...

func (*ControllerConnectionDetails) UnmarshalJSON

func (ccd *ControllerConnectionDetails) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ControllerConnectionDetails struct.

type ControllerConnectionDetailsList

type ControllerConnectionDetailsList struct {
	autorest.Response `json:"-"`
	// ConnectionDetailsList - List of Azure Dev Spaces Controller connection details.
	ConnectionDetailsList *[]ControllerConnectionDetails `json:"connectionDetailsList,omitempty"`
}

ControllerConnectionDetailsList ...

type ControllerList

type ControllerList struct {
	autorest.Response `json:"-"`
	// Value - List of Azure Dev Spaces Controllers.
	Value *[]Controller `json:"value,omitempty"`
	// NextLink - READ-ONLY; The URI that can be used to request the next page for list of Azure Dev Spaces Controllers.
	NextLink *string `json:"nextLink,omitempty"`
}

ControllerList ...

func (ControllerList) IsEmpty

func (cl ControllerList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

func (ControllerList) MarshalJSON

func (cl ControllerList) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ControllerList.

type ControllerListIterator

type ControllerListIterator struct {
	// contains filtered or unexported fields
}

ControllerListIterator provides access to a complete listing of Controller values.

func NewControllerListIterator

func NewControllerListIterator(page ControllerListPage) ControllerListIterator

Creates a new instance of the ControllerListIterator type.

func (*ControllerListIterator) Next

func (iter *ControllerListIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*ControllerListIterator) NextWithContext

func (iter *ControllerListIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (ControllerListIterator) NotDone

func (iter ControllerListIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (ControllerListIterator) Response

func (iter ControllerListIterator) Response() ControllerList

Response returns the raw server response from the last page request.

func (ControllerListIterator) Value

func (iter ControllerListIterator) Value() Controller

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type ControllerListPage

type ControllerListPage struct {
	// contains filtered or unexported fields
}

ControllerListPage contains a page of Controller values.

func NewControllerListPage

func NewControllerListPage(cur ControllerList, getNextPage func(context.Context, ControllerList) (ControllerList, error)) ControllerListPage

Creates a new instance of the ControllerListPage type.

func (*ControllerListPage) Next

func (page *ControllerListPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*ControllerListPage) NextWithContext

func (page *ControllerListPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (ControllerListPage) NotDone

func (page ControllerListPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (ControllerListPage) Response

func (page ControllerListPage) Response() ControllerList

Response returns the raw server response from the last page request.

func (ControllerListPage) Values

func (page ControllerListPage) Values() []Controller

Values returns the slice of values for the current page or nil if there are no values.

type ControllerProperties

type ControllerProperties struct {
	// ProvisioningState - READ-ONLY; Provisioning state of the Azure Dev Spaces Controller. Possible values include: 'Succeeded', 'Failed', 'Canceled', 'Updating', 'Creating', 'Deleting', 'Deleted'
	ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
	// HostSuffix - READ-ONLY; DNS suffix for public endpoints running in the Azure Dev Spaces Controller.
	HostSuffix *string `json:"hostSuffix,omitempty"`
	// DataPlaneFqdn - READ-ONLY; DNS name for accessing DataPlane services
	DataPlaneFqdn *string `json:"dataPlaneFqdn,omitempty"`
	// TargetContainerHostAPIServerFqdn - READ-ONLY; DNS of the target container host's API server
	TargetContainerHostAPIServerFqdn *string `json:"targetContainerHostApiServerFqdn,omitempty"`
	// TargetContainerHostResourceID - Resource ID of the target container host
	TargetContainerHostResourceID *string `json:"targetContainerHostResourceId,omitempty"`
	// TargetContainerHostCredentialsBase64 - Credentials of the target container host (base64).
	TargetContainerHostCredentialsBase64 *string `json:"targetContainerHostCredentialsBase64,omitempty"`
}

ControllerProperties ...

func (ControllerProperties) MarshalJSON

func (cp ControllerProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ControllerProperties.

type ControllerUpdateParameters

type ControllerUpdateParameters struct {
	// Tags - Tags for the Azure Dev Spaces Controller.
	Tags                                  map[string]*string `json:"tags"`
	*ControllerUpdateParametersProperties `json:"properties,omitempty"`
}

ControllerUpdateParameters parameters for updating an Azure Dev Spaces Controller.

func (ControllerUpdateParameters) MarshalJSON

func (cup ControllerUpdateParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ControllerUpdateParameters.

func (*ControllerUpdateParameters) UnmarshalJSON

func (cup *ControllerUpdateParameters) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ControllerUpdateParameters struct.

type ControllerUpdateParametersProperties

type ControllerUpdateParametersProperties struct {
	// TargetContainerHostCredentialsBase64 - Credentials of the target container host (base64).
	TargetContainerHostCredentialsBase64 *string `json:"targetContainerHostCredentialsBase64,omitempty"`
}

ControllerUpdateParametersProperties ...

type ControllersClient

type ControllersClient struct {
	BaseClient
}

ControllersClient is the dev Spaces Client

func NewControllersClient

func NewControllersClient(subscriptionID string) ControllersClient

NewControllersClient creates an instance of the ControllersClient client.

func NewControllersClientWithBaseURI

func NewControllersClientWithBaseURI(baseURI string, subscriptionID string) ControllersClient

NewControllersClientWithBaseURI creates an instance of the ControllersClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (ControllersClient) Create

func (client ControllersClient) Create(ctx context.Context, resourceGroupName string, name string, controller Controller) (result ControllersCreateFuture, err error)

Create creates an Azure Dev Spaces Controller with the specified create parameters. Parameters: resourceGroupName - resource group to which the resource belongs. name - name of the resource. controller - controller create parameters.

func (ControllersClient) CreatePreparer

func (client ControllersClient) CreatePreparer(ctx context.Context, resourceGroupName string, name string, controller Controller) (*http.Request, error)

CreatePreparer prepares the Create request.

func (ControllersClient) CreateResponder

func (client ControllersClient) CreateResponder(resp *http.Response) (result Controller, err error)

CreateResponder handles the response to the Create request. The method always closes the http.Response Body.

func (ControllersClient) CreateSender

func (client ControllersClient) CreateSender(req *http.Request) (future ControllersCreateFuture, err error)

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

func (ControllersClient) Delete

func (client ControllersClient) Delete(ctx context.Context, resourceGroupName string, name string) (result ControllersDeleteFuture, err error)

Delete deletes an existing Azure Dev Spaces Controller. Parameters: resourceGroupName - resource group to which the resource belongs. name - name of the resource.

func (ControllersClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (ControllersClient) DeleteResponder

func (client ControllersClient) 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 (ControllersClient) DeleteSender

func (client ControllersClient) DeleteSender(req *http.Request) (future ControllersDeleteFuture, err error)

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

func (ControllersClient) Get

func (client ControllersClient) Get(ctx context.Context, resourceGroupName string, name string) (result Controller, err error)

Get gets the properties for an Azure Dev Spaces Controller. Parameters: resourceGroupName - resource group to which the resource belongs. name - name of the resource.

func (ControllersClient) GetPreparer

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

GetPreparer prepares the Get request.

func (ControllersClient) GetResponder

func (client ControllersClient) GetResponder(resp *http.Response) (result Controller, err error)

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

func (ControllersClient) GetSender

func (client ControllersClient) 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 (ControllersClient) List

func (client ControllersClient) List(ctx context.Context) (result ControllerListPage, err error)

List lists all the Azure Dev Spaces Controllers with their properties in the subscription.

func (ControllersClient) ListByResourceGroup

func (client ControllersClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result ControllerListPage, err error)

ListByResourceGroup lists all the Azure Dev Spaces Controllers with their properties in the specified resource group and subscription. Parameters: resourceGroupName - resource group to which the resource belongs.

func (ControllersClient) ListByResourceGroupComplete

func (client ControllersClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result ControllerListIterator, err error)

ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required.

func (ControllersClient) ListByResourceGroupPreparer

func (client ControllersClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (ControllersClient) ListByResourceGroupResponder

func (client ControllersClient) ListByResourceGroupResponder(resp *http.Response) (result ControllerList, err error)

ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always closes the http.Response Body.

func (ControllersClient) ListByResourceGroupSender

func (client ControllersClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)

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

func (ControllersClient) ListComplete

func (client ControllersClient) ListComplete(ctx context.Context) (result ControllerListIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (ControllersClient) ListConnectionDetails

func (client ControllersClient) ListConnectionDetails(ctx context.Context, resourceGroupName string, name string, listConnectionDetailsParameters ListConnectionDetailsParameters) (result ControllerConnectionDetailsList, err error)

ListConnectionDetails lists connection details for the underlying container resources of an Azure Dev Spaces Controller. Parameters: resourceGroupName - resource group to which the resource belongs. name - name of the resource. listConnectionDetailsParameters - parameters for listing connection details of Azure Dev Spaces Controller.

func (ControllersClient) ListConnectionDetailsPreparer

func (client ControllersClient) ListConnectionDetailsPreparer(ctx context.Context, resourceGroupName string, name string, listConnectionDetailsParameters ListConnectionDetailsParameters) (*http.Request, error)

ListConnectionDetailsPreparer prepares the ListConnectionDetails request.

func (ControllersClient) ListConnectionDetailsResponder

func (client ControllersClient) ListConnectionDetailsResponder(resp *http.Response) (result ControllerConnectionDetailsList, err error)

ListConnectionDetailsResponder handles the response to the ListConnectionDetails request. The method always closes the http.Response Body.

func (ControllersClient) ListConnectionDetailsSender

func (client ControllersClient) ListConnectionDetailsSender(req *http.Request) (*http.Response, error)

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

func (ControllersClient) ListPreparer

func (client ControllersClient) ListPreparer(ctx context.Context) (*http.Request, error)

ListPreparer prepares the List request.

func (ControllersClient) ListResponder

func (client ControllersClient) ListResponder(resp *http.Response) (result ControllerList, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (ControllersClient) ListSender

func (client ControllersClient) ListSender(req *http.Request) (*http.Response, error)

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

func (ControllersClient) Update

func (client ControllersClient) Update(ctx context.Context, resourceGroupName string, name string, controllerUpdateParameters ControllerUpdateParameters) (result Controller, err error)

Update updates the properties of an existing Azure Dev Spaces Controller with the specified update parameters. Parameters: resourceGroupName - resource group to which the resource belongs. name - name of the resource. controllerUpdateParameters - parameters for updating the Azure Dev Spaces Controller.

func (ControllersClient) UpdatePreparer

func (client ControllersClient) UpdatePreparer(ctx context.Context, resourceGroupName string, name string, controllerUpdateParameters ControllerUpdateParameters) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (ControllersClient) UpdateResponder

func (client ControllersClient) UpdateResponder(resp *http.Response) (result Controller, err error)

UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.

func (ControllersClient) UpdateSender

func (client ControllersClient) UpdateSender(req *http.Request) (*http.Response, error)

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

type ControllersCreateFuture

type ControllersCreateFuture struct {
	azure.FutureAPI
	// Result returns the result of the asynchronous operation.
	// If the operation has not completed it will return an error.
	Result func(ControllersClient) (Controller, error)
}

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

func (*ControllersCreateFuture) UnmarshalJSON

func (future *ControllersCreateFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type ControllersDeleteFuture

type ControllersDeleteFuture struct {
	azure.FutureAPI
	// Result returns the result of the asynchronous operation.
	// If the operation has not completed it will return an error.
	Result func(ControllersClient) (autorest.Response, error)
}

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

func (*ControllersDeleteFuture) UnmarshalJSON

func (future *ControllersDeleteFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type ErrorDetails

type ErrorDetails struct {
	// Code - READ-ONLY; Status code for the error.
	Code *string `json:"code,omitempty"`
	// Message - READ-ONLY; Error message describing the error in detail.
	Message *string `json:"message,omitempty"`
	// Target - READ-ONLY; The target of the particular error.
	Target *string `json:"target,omitempty"`
}

ErrorDetails ...

func (ErrorDetails) MarshalJSON

func (ed ErrorDetails) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ErrorDetails.

type ErrorResponse

type ErrorResponse struct {
	// Error - The details of the error.
	Error *ErrorDetails `json:"error,omitempty"`
}

ErrorResponse error response indicates that the service is not able to process the incoming request. The reason is provided in the error message.

type InstanceType

type InstanceType string

InstanceType enumerates the values for instance type.

const (
	// InstanceTypeKubernetes ...
	InstanceTypeKubernetes InstanceType = "Kubernetes"
	// InstanceTypeOrchestratorSpecificConnectionDetails ...
	InstanceTypeOrchestratorSpecificConnectionDetails InstanceType = "OrchestratorSpecificConnectionDetails"
)

func PossibleInstanceTypeValues

func PossibleInstanceTypeValues() []InstanceType

PossibleInstanceTypeValues returns an array of possible values for the InstanceType const type.

type KubernetesConnectionDetails

type KubernetesConnectionDetails struct {
	// KubeConfig - Gets the kubeconfig for the cluster.
	KubeConfig *string `json:"kubeConfig,omitempty"`
	// InstanceType - Possible values include: 'InstanceTypeOrchestratorSpecificConnectionDetails', 'InstanceTypeKubernetes'
	InstanceType InstanceType `json:"instanceType,omitempty"`
}

KubernetesConnectionDetails contains information used to connect to a Kubernetes cluster

func (KubernetesConnectionDetails) AsBasicOrchestratorSpecificConnectionDetails

func (kcd KubernetesConnectionDetails) AsBasicOrchestratorSpecificConnectionDetails() (BasicOrchestratorSpecificConnectionDetails, bool)

AsBasicOrchestratorSpecificConnectionDetails is the BasicOrchestratorSpecificConnectionDetails implementation for KubernetesConnectionDetails.

func (KubernetesConnectionDetails) AsKubernetesConnectionDetails

func (kcd KubernetesConnectionDetails) AsKubernetesConnectionDetails() (*KubernetesConnectionDetails, bool)

AsKubernetesConnectionDetails is the BasicOrchestratorSpecificConnectionDetails implementation for KubernetesConnectionDetails.

func (KubernetesConnectionDetails) AsOrchestratorSpecificConnectionDetails

func (kcd KubernetesConnectionDetails) AsOrchestratorSpecificConnectionDetails() (*OrchestratorSpecificConnectionDetails, bool)

AsOrchestratorSpecificConnectionDetails is the BasicOrchestratorSpecificConnectionDetails implementation for KubernetesConnectionDetails.

func (KubernetesConnectionDetails) MarshalJSON

func (kcd KubernetesConnectionDetails) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for KubernetesConnectionDetails.

type ListConnectionDetailsParameters

type ListConnectionDetailsParameters struct {
	// TargetContainerHostResourceID - Resource ID of the target container host mapped to the Azure Dev Spaces Controller.
	TargetContainerHostResourceID *string `json:"targetContainerHostResourceId,omitempty"`
}

ListConnectionDetailsParameters parameters for listing connection details of an Azure Dev Spaces Controller.

type OperationsClient

type OperationsClient struct {
	BaseClient
}

OperationsClient is the dev Spaces Client

func NewOperationsClient

func NewOperationsClient(subscriptionID string) OperationsClient

NewOperationsClient creates an instance of the OperationsClient client.

func NewOperationsClientWithBaseURI

func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient

NewOperationsClientWithBaseURI creates an instance of the OperationsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (OperationsClient) List

List lists all the supported operations by the Microsoft.DevSpaces resource provider along with their description.

func (OperationsClient) ListComplete

func (client OperationsClient) ListComplete(ctx context.Context) (result ResourceProviderOperationListIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (OperationsClient) ListPreparer

func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, error)

ListPreparer prepares the List request.

func (OperationsClient) ListResponder

func (client OperationsClient) ListResponder(resp *http.Response) (result ResourceProviderOperationList, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (OperationsClient) ListSender

func (client OperationsClient) ListSender(req *http.Request) (*http.Response, error)

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

type OrchestratorSpecificConnectionDetails

type OrchestratorSpecificConnectionDetails struct {
	// InstanceType - Possible values include: 'InstanceTypeOrchestratorSpecificConnectionDetails', 'InstanceTypeKubernetes'
	InstanceType InstanceType `json:"instanceType,omitempty"`
}

OrchestratorSpecificConnectionDetails base class for types that supply values used to connect to container orchestrators

func (OrchestratorSpecificConnectionDetails) AsBasicOrchestratorSpecificConnectionDetails

func (oscd OrchestratorSpecificConnectionDetails) AsBasicOrchestratorSpecificConnectionDetails() (BasicOrchestratorSpecificConnectionDetails, bool)

AsBasicOrchestratorSpecificConnectionDetails is the BasicOrchestratorSpecificConnectionDetails implementation for OrchestratorSpecificConnectionDetails.

func (OrchestratorSpecificConnectionDetails) AsKubernetesConnectionDetails

func (oscd OrchestratorSpecificConnectionDetails) AsKubernetesConnectionDetails() (*KubernetesConnectionDetails, bool)

AsKubernetesConnectionDetails is the BasicOrchestratorSpecificConnectionDetails implementation for OrchestratorSpecificConnectionDetails.

func (OrchestratorSpecificConnectionDetails) AsOrchestratorSpecificConnectionDetails

func (oscd OrchestratorSpecificConnectionDetails) AsOrchestratorSpecificConnectionDetails() (*OrchestratorSpecificConnectionDetails, bool)

AsOrchestratorSpecificConnectionDetails is the BasicOrchestratorSpecificConnectionDetails implementation for OrchestratorSpecificConnectionDetails.

func (OrchestratorSpecificConnectionDetails) MarshalJSON

func (oscd OrchestratorSpecificConnectionDetails) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for OrchestratorSpecificConnectionDetails.

type ProvisioningState

type ProvisioningState string

ProvisioningState enumerates the values for provisioning state.

const (
	// Canceled ...
	Canceled ProvisioningState = "Canceled"
	// Creating ...
	Creating ProvisioningState = "Creating"
	// Deleted ...
	Deleted ProvisioningState = "Deleted"
	// Deleting ...
	Deleting ProvisioningState = "Deleting"
	// Failed ...
	Failed ProvisioningState = "Failed"
	// Succeeded ...
	Succeeded ProvisioningState = "Succeeded"
	// Updating ...
	Updating ProvisioningState = "Updating"
)

func PossibleProvisioningStateValues

func PossibleProvisioningStateValues() []ProvisioningState

PossibleProvisioningStateValues returns an array of possible values for the ProvisioningState const type.

type Resource

type Resource struct {
	// ID - READ-ONLY; Fully qualified resource Id for the resource.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; The name of the resource.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; The type of the resource.
	Type *string `json:"type,omitempty"`
}

Resource an Azure resource.

func (Resource) MarshalJSON

func (r Resource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Resource.

type ResourceProviderOperationDefinition

type ResourceProviderOperationDefinition struct {
	// Name - Resource provider operation name.
	Name    *string                           `json:"name,omitempty"`
	Display *ResourceProviderOperationDisplay `json:"display,omitempty"`
}

ResourceProviderOperationDefinition ...

type ResourceProviderOperationDisplay

type ResourceProviderOperationDisplay struct {
	// Provider - Name of the resource provider.
	Provider *string `json:"provider,omitempty"`
	// Resource - Name of the resource type.
	Resource *string `json:"resource,omitempty"`
	// Operation - Name of the resource provider operation.
	Operation *string `json:"operation,omitempty"`
	// Description - Description of the resource provider operation.
	Description *string `json:"description,omitempty"`
}

ResourceProviderOperationDisplay ...

type ResourceProviderOperationList

type ResourceProviderOperationList struct {
	autorest.Response `json:"-"`
	// Value - Resource provider operations list.
	Value *[]ResourceProviderOperationDefinition `json:"value,omitempty"`
	// NextLink - READ-ONLY; The URI that can be used to request the next page for list of Azure operations.
	NextLink *string `json:"nextLink,omitempty"`
}

ResourceProviderOperationList ...

func (ResourceProviderOperationList) IsEmpty

func (rpol ResourceProviderOperationList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

func (ResourceProviderOperationList) MarshalJSON

func (rpol ResourceProviderOperationList) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ResourceProviderOperationList.

type ResourceProviderOperationListIterator

type ResourceProviderOperationListIterator struct {
	// contains filtered or unexported fields
}

ResourceProviderOperationListIterator provides access to a complete listing of ResourceProviderOperationDefinition values.

func NewResourceProviderOperationListIterator

func NewResourceProviderOperationListIterator(page ResourceProviderOperationListPage) ResourceProviderOperationListIterator

Creates a new instance of the ResourceProviderOperationListIterator type.

func (*ResourceProviderOperationListIterator) Next

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*ResourceProviderOperationListIterator) NextWithContext

func (iter *ResourceProviderOperationListIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (ResourceProviderOperationListIterator) NotDone

NotDone returns true if the enumeration should be started or is not yet complete.

func (ResourceProviderOperationListIterator) Response

Response returns the raw server response from the last page request.

func (ResourceProviderOperationListIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type ResourceProviderOperationListPage

type ResourceProviderOperationListPage struct {
	// contains filtered or unexported fields
}

ResourceProviderOperationListPage contains a page of ResourceProviderOperationDefinition values.

func NewResourceProviderOperationListPage

Creates a new instance of the ResourceProviderOperationListPage type.

func (*ResourceProviderOperationListPage) Next

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*ResourceProviderOperationListPage) NextWithContext

func (page *ResourceProviderOperationListPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (ResourceProviderOperationListPage) NotDone

func (page ResourceProviderOperationListPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (ResourceProviderOperationListPage) Response

Response returns the raw server response from the last page request.

func (ResourceProviderOperationListPage) Values

Values returns the slice of values for the current page or nil if there are no values.

type Sku

type Sku struct {
	// Name - The name of the SKU for Azure Dev Spaces Controller.
	Name *string `json:"name,omitempty"`
	// Tier - The tier of the SKU for Azure Dev Spaces Controller. Possible values include: 'Standard'
	Tier SkuTier `json:"tier,omitempty"`
}

Sku model representing SKU for Azure Dev Spaces Controller.

type SkuTier

type SkuTier string

SkuTier enumerates the values for sku tier.

const (
	// Standard ...
	Standard SkuTier = "Standard"
)

func PossibleSkuTierValues

func PossibleSkuTierValues() []SkuTier

PossibleSkuTierValues returns an array of possible values for the SkuTier const type.

type TrackedResource

type TrackedResource struct {
	// Tags - Tags for the Azure resource.
	Tags map[string]*string `json:"tags"`
	// Location - Region where the Azure resource is located.
	Location *string `json:"location,omitempty"`
	// ID - READ-ONLY; Fully qualified resource Id for the resource.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; The name of the resource.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; The type of the resource.
	Type *string `json:"type,omitempty"`
}

TrackedResource the resource model definition for a ARM tracked top level resource.

func (TrackedResource) MarshalJSON

func (tr TrackedResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for TrackedResource.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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