Documentation ¶
Index ¶
- func PossibleValuesForProvisioningState() []string
- func ValidateProjectID(input interface{}, key string) (warnings []string, errors []error)
- type CreateOrUpdateOperationResponse
- type DeleteOperationResponse
- type GetOperationResponse
- type ListByResourceGroupCompleteResult
- type ListByResourceGroupOperationOptions
- type ListByResourceGroupOperationResponse
- type ListBySubscriptionCompleteResult
- type ListBySubscriptionOperationOptions
- type ListBySubscriptionOperationResponse
- type Project
- type ProjectId
- type ProjectOperationPredicate
- type ProjectProperties
- type ProjectUpdate
- type ProjectUpdateProperties
- type ProjectsClient
- func (c ProjectsClient) CreateOrUpdate(ctx context.Context, id ProjectId, input Project) (result CreateOrUpdateOperationResponse, err error)
- func (c ProjectsClient) CreateOrUpdateThenPoll(ctx context.Context, id ProjectId, input Project) error
- func (c ProjectsClient) Delete(ctx context.Context, id ProjectId) (result DeleteOperationResponse, err error)
- func (c ProjectsClient) DeleteThenPoll(ctx context.Context, id ProjectId) error
- func (c ProjectsClient) Get(ctx context.Context, id ProjectId) (result GetOperationResponse, err error)
- func (c ProjectsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId, ...) (result ListByResourceGroupOperationResponse, err error)
- func (c ProjectsClient) ListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId, ...) (ListByResourceGroupCompleteResult, error)
- func (c ProjectsClient) ListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, ...) (result ListByResourceGroupCompleteResult, err error)
- func (c ProjectsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId, ...) (result ListBySubscriptionOperationResponse, err error)
- func (c ProjectsClient) ListBySubscriptionComplete(ctx context.Context, id commonids.SubscriptionId, ...) (ListBySubscriptionCompleteResult, error)
- func (c ProjectsClient) ListBySubscriptionCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, ...) (result ListBySubscriptionCompleteResult, err error)
- func (c ProjectsClient) Update(ctx context.Context, id ProjectId, input ProjectUpdate) (result UpdateOperationResponse, err error)
- func (c ProjectsClient) UpdateThenPoll(ctx context.Context, id ProjectId, input ProjectUpdate) error
- type ProvisioningState
- type UpdateOperationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForProvisioningState ¶
func PossibleValuesForProvisioningState() []string
func ValidateProjectID ¶
ValidateProjectID checks that 'input' can be parsed as a Project ID
Types ¶
type DeleteOperationResponse ¶
type GetOperationResponse ¶
type ListByResourceGroupOperationOptions ¶
type ListByResourceGroupOperationOptions struct {
Top *int64
}
func DefaultListByResourceGroupOperationOptions ¶
func DefaultListByResourceGroupOperationOptions() ListByResourceGroupOperationOptions
func (ListByResourceGroupOperationOptions) ToHeaders ¶
func (o ListByResourceGroupOperationOptions) ToHeaders() *client.Headers
func (ListByResourceGroupOperationOptions) ToOData ¶
func (o ListByResourceGroupOperationOptions) ToOData() *odata.Query
func (ListByResourceGroupOperationOptions) ToQuery ¶
func (o ListByResourceGroupOperationOptions) ToQuery() *client.QueryParams
type ListBySubscriptionOperationOptions ¶
type ListBySubscriptionOperationOptions struct {
Top *int64
}
func DefaultListBySubscriptionOperationOptions ¶
func DefaultListBySubscriptionOperationOptions() ListBySubscriptionOperationOptions
func (ListBySubscriptionOperationOptions) ToHeaders ¶
func (o ListBySubscriptionOperationOptions) ToHeaders() *client.Headers
func (ListBySubscriptionOperationOptions) ToOData ¶
func (o ListBySubscriptionOperationOptions) ToOData() *odata.Query
func (ListBySubscriptionOperationOptions) ToQuery ¶
func (o ListBySubscriptionOperationOptions) ToQuery() *client.QueryParams
type Project ¶
type Project struct { Id *string `json:"id,omitempty"` Location string `json:"location"` Name *string `json:"name,omitempty"` Properties *ProjectProperties `json:"properties,omitempty"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Tags *map[string]string `json:"tags,omitempty"` Type *string `json:"type,omitempty"` }
type ProjectId ¶
ProjectId is a struct representing the Resource ID for a Project
func NewProjectID ¶
NewProjectID returns a new ProjectId struct
func ParseProjectID ¶
ParseProjectID parses 'input' into a ProjectId
func ParseProjectIDInsensitively ¶
ParseProjectIDInsensitively parses 'input' case-insensitively into a ProjectId note: this method should only be used for API response data and not user input
func (*ProjectId) FromParseResult ¶
func (id *ProjectId) FromParseResult(input resourceids.ParseResult) error
func (ProjectId) Segments ¶
func (id ProjectId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Project ID
type ProjectOperationPredicate ¶
func (ProjectOperationPredicate) Matches ¶
func (p ProjectOperationPredicate) Matches(input Project) bool
type ProjectProperties ¶
type ProjectProperties struct { Description *string `json:"description,omitempty"` DevCenterId string `json:"devCenterId"` DevCenterUri *string `json:"devCenterUri,omitempty"` MaxDevBoxesPerUser *int64 `json:"maxDevBoxesPerUser,omitempty"` ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` }
type ProjectUpdate ¶
type ProjectUpdate struct { Location *string `json:"location,omitempty"` Properties *ProjectUpdateProperties `json:"properties,omitempty"` Tags *map[string]string `json:"tags,omitempty"` }
type ProjectUpdateProperties ¶
type ProjectsClient ¶
type ProjectsClient struct {
Client *resourcemanager.Client
}
func NewProjectsClientWithBaseURI ¶
func NewProjectsClientWithBaseURI(sdkApi sdkEnv.Api) (*ProjectsClient, error)
func (ProjectsClient) CreateOrUpdate ¶
func (c ProjectsClient) CreateOrUpdate(ctx context.Context, id ProjectId, input Project) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (ProjectsClient) CreateOrUpdateThenPoll ¶
func (c ProjectsClient) CreateOrUpdateThenPoll(ctx context.Context, id ProjectId, input Project) error
CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed
func (ProjectsClient) Delete ¶
func (c ProjectsClient) Delete(ctx context.Context, id ProjectId) (result DeleteOperationResponse, err error)
Delete ...
func (ProjectsClient) DeleteThenPoll ¶
func (c ProjectsClient) DeleteThenPoll(ctx context.Context, id ProjectId) error
DeleteThenPoll performs Delete then polls until it's completed
func (ProjectsClient) Get ¶
func (c ProjectsClient) Get(ctx context.Context, id ProjectId) (result GetOperationResponse, err error)
Get ...
func (ProjectsClient) ListByResourceGroup ¶
func (c ProjectsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId, options ListByResourceGroupOperationOptions) (result ListByResourceGroupOperationResponse, err error)
ListByResourceGroup ...
func (ProjectsClient) ListByResourceGroupComplete ¶
func (c ProjectsClient) ListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId, options ListByResourceGroupOperationOptions) (ListByResourceGroupCompleteResult, error)
ListByResourceGroupComplete retrieves all the results into a single object
func (ProjectsClient) ListByResourceGroupCompleteMatchingPredicate ¶
func (c ProjectsClient) ListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, options ListByResourceGroupOperationOptions, predicate ProjectOperationPredicate) (result ListByResourceGroupCompleteResult, err error)
ListByResourceGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (ProjectsClient) ListBySubscription ¶
func (c ProjectsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId, options ListBySubscriptionOperationOptions) (result ListBySubscriptionOperationResponse, err error)
ListBySubscription ...
func (ProjectsClient) ListBySubscriptionComplete ¶
func (c ProjectsClient) ListBySubscriptionComplete(ctx context.Context, id commonids.SubscriptionId, options ListBySubscriptionOperationOptions) (ListBySubscriptionCompleteResult, error)
ListBySubscriptionComplete retrieves all the results into a single object
func (ProjectsClient) ListBySubscriptionCompleteMatchingPredicate ¶
func (c ProjectsClient) ListBySubscriptionCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, options ListBySubscriptionOperationOptions, predicate ProjectOperationPredicate) (result ListBySubscriptionCompleteResult, err error)
ListBySubscriptionCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (ProjectsClient) Update ¶
func (c ProjectsClient) Update(ctx context.Context, id ProjectId, input ProjectUpdate) (result UpdateOperationResponse, err error)
Update ...
func (ProjectsClient) UpdateThenPoll ¶
func (c ProjectsClient) UpdateThenPoll(ctx context.Context, id ProjectId, input ProjectUpdate) error
UpdateThenPoll performs Update then polls until it's completed
type ProvisioningState ¶
type ProvisioningState string
const ( ProvisioningStateAccepted ProvisioningState = "Accepted" ProvisioningStateCanceled ProvisioningState = "Canceled" ProvisioningStateCreated ProvisioningState = "Created" ProvisioningStateCreating ProvisioningState = "Creating" ProvisioningStateDeleted ProvisioningState = "Deleted" ProvisioningStateDeleting ProvisioningState = "Deleting" ProvisioningStateFailed ProvisioningState = "Failed" ProvisioningStateMovingResources ProvisioningState = "MovingResources" ProvisioningStateNotSpecified ProvisioningState = "NotSpecified" ProvisioningStateRolloutInProgress ProvisioningState = "RolloutInProgress" ProvisioningStateRunning ProvisioningState = "Running" ProvisioningStateStorageProvisioningFailed ProvisioningState = "StorageProvisioningFailed" ProvisioningStateSucceeded ProvisioningState = "Succeeded" ProvisioningStateTransientFailure ProvisioningState = "TransientFailure" ProvisioningStateUpdated ProvisioningState = "Updated" ProvisioningStateUpdating ProvisioningState = "Updating" )
func (*ProvisioningState) UnmarshalJSON ¶
func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error