Documentation ¶
Index ¶
- type AgreementProperties
- type AgreementResource
- type AgreementResourceListResponse
- type CreatedByType
- type ErrorResponseBody
- type MarketplaceAgreementsClient
- func (client *MarketplaceAgreementsClient) Create(ctx context.Context, options *MarketplaceAgreementsClientCreateOptions) (MarketplaceAgreementsClientCreateResponse, error)
- func (client *MarketplaceAgreementsClient) List(options *MarketplaceAgreementsClientListOptions) *runtime.Pager[MarketplaceAgreementsClientListResponse]
- type MarketplaceAgreementsClientCreateOptions
- type MarketplaceAgreementsClientCreateResponse
- type MarketplaceAgreementsClientListOptions
- type MarketplaceAgreementsClientListResponse
- type OfferDetail
- type OperationDisplay
- type OperationListResult
- type OperationResult
- type OrganizationClient
- func (client *OrganizationClient) BeginCreate(ctx context.Context, resourceGroupName string, organizationName string, ...) (*armruntime.Poller[OrganizationClientCreateResponse], error)
- func (client *OrganizationClient) BeginDelete(ctx context.Context, resourceGroupName string, organizationName string, ...) (*armruntime.Poller[OrganizationClientDeleteResponse], error)
- func (client *OrganizationClient) Get(ctx context.Context, resourceGroupName string, organizationName string, ...) (OrganizationClientGetResponse, error)
- func (client *OrganizationClient) ListByResourceGroup(resourceGroupName string, ...) *runtime.Pager[OrganizationClientListByResourceGroupResponse]
- func (client *OrganizationClient) ListBySubscription(options *OrganizationClientListBySubscriptionOptions) *runtime.Pager[OrganizationClientListBySubscriptionResponse]
- func (client *OrganizationClient) Update(ctx context.Context, resourceGroupName string, organizationName string, ...) (OrganizationClientUpdateResponse, error)
- type OrganizationClientBeginCreateOptions
- type OrganizationClientBeginDeleteOptions
- type OrganizationClientCreateResponse
- type OrganizationClientDeleteResponse
- type OrganizationClientGetOptions
- type OrganizationClientGetResponse
- type OrganizationClientListByResourceGroupOptions
- type OrganizationClientListByResourceGroupResponse
- type OrganizationClientListBySubscriptionOptions
- type OrganizationClientListBySubscriptionResponse
- type OrganizationClientUpdateOptions
- type OrganizationClientUpdateResponse
- type OrganizationOperationsClient
- type OrganizationOperationsClientListOptions
- type OrganizationOperationsClientListResponse
- type OrganizationResource
- type OrganizationResourceListResult
- type OrganizationResourceProperties
- type OrganizationResourceUpdate
- type ProvisionState
- type ResourceProviderDefaultErrorResponse
- type SaaSOfferStatus
- type SystemData
- type UserDetail
- type ValidationsClient
- type ValidationsClientValidateOrganizationOptions
- type ValidationsClientValidateOrganizationResponse
Examples ¶
- MarketplaceAgreementsClient.Create
- MarketplaceAgreementsClient.List
- OrganizationClient.BeginCreate
- OrganizationClient.BeginDelete
- OrganizationClient.Get
- OrganizationClient.ListByResourceGroup
- OrganizationClient.ListBySubscription
- OrganizationClient.Update
- OrganizationOperationsClient.List
- ValidationsClient.ValidateOrganization
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AgreementProperties ¶ added in v0.2.0
type AgreementProperties struct { // If any version of the terms have been accepted, otherwise false. Accepted *bool `json:"accepted,omitempty"` // Link to HTML with Microsoft and Publisher terms. LicenseTextLink *string `json:"licenseTextLink,omitempty"` // Plan identifier string. Plan *string `json:"plan,omitempty"` // Link to the privacy policy of the publisher. PrivacyPolicyLink *string `json:"privacyPolicyLink,omitempty"` // Product identifier string. Product *string `json:"product,omitempty"` // Publisher identifier string. Publisher *string `json:"publisher,omitempty"` // Date and time in UTC of when the terms were accepted. This is empty if Accepted is false. RetrieveDatetime *time.Time `json:"retrieveDatetime,omitempty"` // Terms signature. Signature *string `json:"signature,omitempty"` }
AgreementProperties - Terms properties for Marketplace and Confluent.
func (AgreementProperties) MarshalJSON ¶ added in v0.2.0
func (a AgreementProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AgreementProperties.
func (*AgreementProperties) UnmarshalJSON ¶ added in v0.2.0
func (a *AgreementProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AgreementProperties.
type AgreementResource ¶ added in v0.2.0
type AgreementResource struct { // Represents the properties of the resource. Properties *AgreementProperties `json:"properties,omitempty"` // READ-ONLY; The ARM id of the resource. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the agreement. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Metadata pertaining to creation and last modification of the resource SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the agreement. Type *string `json:"type,omitempty" azure:"ro"` }
AgreementResource - Agreement Terms definition
type AgreementResourceListResponse ¶ added in v0.2.0
type AgreementResourceListResponse struct { // Link to the next set of results, if any. NextLink *string `json:"nextLink,omitempty"` // Results of a list operation. Value []*AgreementResource `json:"value,omitempty"` }
AgreementResourceListResponse - Response of a list operation.
func (AgreementResourceListResponse) MarshalJSON ¶ added in v0.2.0
func (a AgreementResourceListResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AgreementResourceListResponse.
type CreatedByType ¶
type CreatedByType string
CreatedByType - The type of identity that created the resource.
const ( CreatedByTypeApplication CreatedByType = "Application" CreatedByTypeKey CreatedByType = "Key" CreatedByTypeManagedIdentity CreatedByType = "ManagedIdentity" CreatedByTypeUser CreatedByType = "User" )
func PossibleCreatedByTypeValues ¶
func PossibleCreatedByTypeValues() []CreatedByType
PossibleCreatedByTypeValues returns the possible values for the CreatedByType const type.
type ErrorResponseBody ¶
type ErrorResponseBody struct { // READ-ONLY; Error code Code *string `json:"code,omitempty" azure:"ro"` // READ-ONLY; Error detail Details []*ErrorResponseBody `json:"details,omitempty" azure:"ro"` // READ-ONLY; Error message Message *string `json:"message,omitempty" azure:"ro"` // READ-ONLY; Error target Target *string `json:"target,omitempty" azure:"ro"` }
ErrorResponseBody - Response body of Error
func (ErrorResponseBody) MarshalJSON ¶
func (e ErrorResponseBody) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ErrorResponseBody.
type MarketplaceAgreementsClient ¶
type MarketplaceAgreementsClient struct {
// contains filtered or unexported fields
}
MarketplaceAgreementsClient contains the methods for the MarketplaceAgreements group. Don't use this type directly, use NewMarketplaceAgreementsClient() instead.
func NewMarketplaceAgreementsClient ¶
func NewMarketplaceAgreementsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*MarketplaceAgreementsClient, error)
NewMarketplaceAgreementsClient creates a new instance of MarketplaceAgreementsClient with the specified values. subscriptionID - Microsoft Azure subscription id credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*MarketplaceAgreementsClient) Create ¶
func (client *MarketplaceAgreementsClient) Create(ctx context.Context, options *MarketplaceAgreementsClientCreateOptions) (MarketplaceAgreementsClientCreateResponse, error)
Create - Create Confluent Marketplace agreement in the subscription. If the operation fails it returns an *azcore.ResponseError type. options - MarketplaceAgreementsClientCreateOptions contains the optional parameters for the MarketplaceAgreementsClient.Create method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/confluent/resource-manager/Microsoft.Confluent/stable/2021-12-01/examples/MarketplaceAgreements_Create.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/confluent/armconfluent" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armconfluent.NewMarketplaceAgreementsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.Create(ctx, &armconfluent.MarketplaceAgreementsClientCreateOptions{Body: nil}) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
func (*MarketplaceAgreementsClient) List ¶
func (client *MarketplaceAgreementsClient) List(options *MarketplaceAgreementsClientListOptions) *runtime.Pager[MarketplaceAgreementsClientListResponse]
List - List Confluent marketplace agreements in the subscription. If the operation fails it returns an *azcore.ResponseError type. options - MarketplaceAgreementsClientListOptions contains the optional parameters for the MarketplaceAgreementsClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/confluent/resource-manager/Microsoft.Confluent/stable/2021-12-01/examples/MarketplaceAgreements_List.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/confluent/armconfluent" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armconfluent.NewMarketplaceAgreementsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } pager := client.List(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) return } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type MarketplaceAgreementsClientCreateOptions ¶ added in v0.2.0
type MarketplaceAgreementsClientCreateOptions struct { // Confluent Marketplace Agreement resource Body *AgreementResource }
MarketplaceAgreementsClientCreateOptions contains the optional parameters for the MarketplaceAgreementsClient.Create method.
type MarketplaceAgreementsClientCreateResponse ¶ added in v0.2.0
type MarketplaceAgreementsClientCreateResponse struct {
AgreementResource
}
MarketplaceAgreementsClientCreateResponse contains the response from method MarketplaceAgreementsClient.Create.
type MarketplaceAgreementsClientListOptions ¶ added in v0.2.0
type MarketplaceAgreementsClientListOptions struct { }
MarketplaceAgreementsClientListOptions contains the optional parameters for the MarketplaceAgreementsClient.List method.
type MarketplaceAgreementsClientListResponse ¶ added in v0.2.0
type MarketplaceAgreementsClientListResponse struct {
AgreementResourceListResponse
}
MarketplaceAgreementsClientListResponse contains the response from method MarketplaceAgreementsClient.List.
type OfferDetail ¶
type OfferDetail struct { // REQUIRED; Offer Id ID *string `json:"id,omitempty"` // REQUIRED; Offer Plan Id PlanID *string `json:"planId,omitempty"` // REQUIRED; Offer Plan Name PlanName *string `json:"planName,omitempty"` // REQUIRED; Publisher Id PublisherID *string `json:"publisherId,omitempty"` // REQUIRED; Offer Plan Term unit TermUnit *string `json:"termUnit,omitempty"` // READ-ONLY; SaaS Offer Status Status *SaaSOfferStatus `json:"status,omitempty" azure:"ro"` }
OfferDetail - Confluent Offer detail
type OperationDisplay ¶
type OperationDisplay struct { // Description of the operation, e.g., 'Write confluent'. Description *string `json:"description,omitempty"` // Operation type, e.g., read, write, delete, etc. Operation *string `json:"operation,omitempty"` // Service provider: Microsoft.Confluent Provider *string `json:"provider,omitempty"` // Type on which the operation is performed, e.g., 'clusters'. Resource *string `json:"resource,omitempty"` }
OperationDisplay - The object that represents the operation.
type OperationListResult ¶
type OperationListResult struct { // URL to get the next set of operation list results if there are any. NextLink *string `json:"nextLink,omitempty"` // List of Confluent operations supported by the Microsoft.Confluent provider. Value []*OperationResult `json:"value,omitempty"` }
OperationListResult - Result of GET request to list Confluent operations.
func (OperationListResult) MarshalJSON ¶
func (o OperationListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type OperationListResult.
type OperationResult ¶
type OperationResult struct { // The object that represents the operation. Display *OperationDisplay `json:"display,omitempty"` // Indicates whether the operation is a data action IsDataAction *bool `json:"isDataAction,omitempty"` // Operation name: {provider}/{resource}/{operation} Name *string `json:"name,omitempty"` }
OperationResult - An Confluent REST API operation.
type OrganizationClient ¶
type OrganizationClient struct {
// contains filtered or unexported fields
}
OrganizationClient contains the methods for the Organization group. Don't use this type directly, use NewOrganizationClient() instead.
func NewOrganizationClient ¶
func NewOrganizationClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*OrganizationClient, error)
NewOrganizationClient creates a new instance of OrganizationClient with the specified values. subscriptionID - Microsoft Azure subscription id credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*OrganizationClient) BeginCreate ¶
func (client *OrganizationClient) BeginCreate(ctx context.Context, resourceGroupName string, organizationName string, options *OrganizationClientBeginCreateOptions) (*armruntime.Poller[OrganizationClientCreateResponse], error)
BeginCreate - Create Organization resource If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - Resource group name organizationName - Organization resource name options - OrganizationClientBeginCreateOptions contains the optional parameters for the OrganizationClient.BeginCreate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/confluent/resource-manager/Microsoft.Confluent/stable/2021-12-01/examples/Organization_Create.json
package main import ( "context" "log" "time" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/confluent/armconfluent" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armconfluent.NewOrganizationClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } poller, err := client.BeginCreate(ctx, "<resource-group-name>", "<organization-name>", &armconfluent.OrganizationClientBeginCreateOptions{Body: &armconfluent.OrganizationResource{ Location: to.Ptr("<location>"), Properties: &armconfluent.OrganizationResourceProperties{ OfferDetail: &armconfluent.OfferDetail{ ID: to.Ptr("<id>"), PlanID: to.Ptr("<plan-id>"), PlanName: to.Ptr("<plan-name>"), PublisherID: to.Ptr("<publisher-id>"), TermUnit: to.Ptr("<term-unit>"), }, UserDetail: &armconfluent.UserDetail{ EmailAddress: to.Ptr("<email-address>"), FirstName: to.Ptr("<first-name>"), LastName: to.Ptr("<last-name>"), }, }, Tags: map[string]*string{ "Environment": to.Ptr("Dev"), }, }, ResumeToken: "", }) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } res, err := poller.PollUntilDone(ctx, 30*time.Second) if err != nil { log.Fatalf("failed to pull the result: %v", err) return } // TODO: use response item _ = res }
Output:
func (*OrganizationClient) BeginDelete ¶
func (client *OrganizationClient) BeginDelete(ctx context.Context, resourceGroupName string, organizationName string, options *OrganizationClientBeginDeleteOptions) (*armruntime.Poller[OrganizationClientDeleteResponse], error)
BeginDelete - Delete Organization resource If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - Resource group name organizationName - Organization resource name options - OrganizationClientBeginDeleteOptions contains the optional parameters for the OrganizationClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/confluent/resource-manager/Microsoft.Confluent/stable/2021-12-01/examples/Organization_Delete.json
package main import ( "context" "log" "time" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/confluent/armconfluent" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armconfluent.NewOrganizationClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } poller, err := client.BeginDelete(ctx, "<resource-group-name>", "<organization-name>", &armconfluent.OrganizationClientBeginDeleteOptions{ResumeToken: ""}) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } _, err = poller.PollUntilDone(ctx, 30*time.Second) if err != nil { log.Fatalf("failed to pull the result: %v", err) return } }
Output:
func (*OrganizationClient) Get ¶
func (client *OrganizationClient) Get(ctx context.Context, resourceGroupName string, organizationName string, options *OrganizationClientGetOptions) (OrganizationClientGetResponse, error)
Get - Get the properties of a specific Organization resource. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - Resource group name organizationName - Organization resource name options - OrganizationClientGetOptions contains the optional parameters for the OrganizationClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/confluent/resource-manager/Microsoft.Confluent/stable/2021-12-01/examples/Organization_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/confluent/armconfluent" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armconfluent.NewOrganizationClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.Get(ctx, "<resource-group-name>", "<organization-name>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
func (*OrganizationClient) ListByResourceGroup ¶
func (client *OrganizationClient) ListByResourceGroup(resourceGroupName string, options *OrganizationClientListByResourceGroupOptions) *runtime.Pager[OrganizationClientListByResourceGroupResponse]
ListByResourceGroup - List all Organizations under the specified resource group. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - Resource group name options - OrganizationClientListByResourceGroupOptions contains the optional parameters for the OrganizationClient.ListByResourceGroup method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/confluent/resource-manager/Microsoft.Confluent/stable/2021-12-01/examples/Organization_ListByResourceGroup.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/confluent/armconfluent" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armconfluent.NewOrganizationClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } pager := client.ListByResourceGroup("<resource-group-name>", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) return } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*OrganizationClient) ListBySubscription ¶
func (client *OrganizationClient) ListBySubscription(options *OrganizationClientListBySubscriptionOptions) *runtime.Pager[OrganizationClientListBySubscriptionResponse]
ListBySubscription - List all organizations under the specified subscription. If the operation fails it returns an *azcore.ResponseError type. options - OrganizationClientListBySubscriptionOptions contains the optional parameters for the OrganizationClient.ListBySubscription method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/confluent/resource-manager/Microsoft.Confluent/stable/2021-12-01/examples/Organization_ListBySubscription.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/confluent/armconfluent" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armconfluent.NewOrganizationClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } pager := client.ListBySubscription(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) return } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*OrganizationClient) Update ¶
func (client *OrganizationClient) Update(ctx context.Context, resourceGroupName string, organizationName string, options *OrganizationClientUpdateOptions) (OrganizationClientUpdateResponse, error)
Update - Update Organization resource If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - Resource group name organizationName - Organization resource name options - OrganizationClientUpdateOptions contains the optional parameters for the OrganizationClient.Update method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/confluent/resource-manager/Microsoft.Confluent/stable/2021-12-01/examples/Organization_Update.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/confluent/armconfluent" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armconfluent.NewOrganizationClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.Update(ctx, "<resource-group-name>", "<organization-name>", &armconfluent.OrganizationClientUpdateOptions{Body: &armconfluent.OrganizationResourceUpdate{ Tags: map[string]*string{ "client": to.Ptr("dev-client"), "env": to.Ptr("dev"), }, }, }) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
type OrganizationClientBeginCreateOptions ¶ added in v0.2.0
type OrganizationClientBeginCreateOptions struct { // Organization resource model Body *OrganizationResource // Resumes the LRO from the provided token. ResumeToken string }
OrganizationClientBeginCreateOptions contains the optional parameters for the OrganizationClient.BeginCreate method.
type OrganizationClientBeginDeleteOptions ¶ added in v0.2.0
type OrganizationClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
OrganizationClientBeginDeleteOptions contains the optional parameters for the OrganizationClient.BeginDelete method.
type OrganizationClientCreateResponse ¶ added in v0.2.0
type OrganizationClientCreateResponse struct {
OrganizationResource
}
OrganizationClientCreateResponse contains the response from method OrganizationClient.Create.
type OrganizationClientDeleteResponse ¶ added in v0.2.0
type OrganizationClientDeleteResponse struct { }
OrganizationClientDeleteResponse contains the response from method OrganizationClient.Delete.
type OrganizationClientGetOptions ¶ added in v0.2.0
type OrganizationClientGetOptions struct { }
OrganizationClientGetOptions contains the optional parameters for the OrganizationClient.Get method.
type OrganizationClientGetResponse ¶ added in v0.2.0
type OrganizationClientGetResponse struct {
OrganizationResource
}
OrganizationClientGetResponse contains the response from method OrganizationClient.Get.
type OrganizationClientListByResourceGroupOptions ¶ added in v0.2.0
type OrganizationClientListByResourceGroupOptions struct { }
OrganizationClientListByResourceGroupOptions contains the optional parameters for the OrganizationClient.ListByResourceGroup method.
type OrganizationClientListByResourceGroupResponse ¶ added in v0.2.0
type OrganizationClientListByResourceGroupResponse struct {
OrganizationResourceListResult
}
OrganizationClientListByResourceGroupResponse contains the response from method OrganizationClient.ListByResourceGroup.
type OrganizationClientListBySubscriptionOptions ¶ added in v0.2.0
type OrganizationClientListBySubscriptionOptions struct { }
OrganizationClientListBySubscriptionOptions contains the optional parameters for the OrganizationClient.ListBySubscription method.
type OrganizationClientListBySubscriptionResponse ¶ added in v0.2.0
type OrganizationClientListBySubscriptionResponse struct {
OrganizationResourceListResult
}
OrganizationClientListBySubscriptionResponse contains the response from method OrganizationClient.ListBySubscription.
type OrganizationClientUpdateOptions ¶ added in v0.2.0
type OrganizationClientUpdateOptions struct { // Updated Organization resource Body *OrganizationResourceUpdate }
OrganizationClientUpdateOptions contains the optional parameters for the OrganizationClient.Update method.
type OrganizationClientUpdateResponse ¶ added in v0.2.0
type OrganizationClientUpdateResponse struct {
OrganizationResource
}
OrganizationClientUpdateResponse contains the response from method OrganizationClient.Update.
type OrganizationOperationsClient ¶
type OrganizationOperationsClient struct {
// contains filtered or unexported fields
}
OrganizationOperationsClient contains the methods for the OrganizationOperations group. Don't use this type directly, use NewOrganizationOperationsClient() instead.
func NewOrganizationOperationsClient ¶
func NewOrganizationOperationsClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*OrganizationOperationsClient, error)
NewOrganizationOperationsClient creates a new instance of OrganizationOperationsClient with the specified values. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*OrganizationOperationsClient) List ¶
func (client *OrganizationOperationsClient) List(options *OrganizationOperationsClientListOptions) *runtime.Pager[OrganizationOperationsClientListResponse]
List - List all operations provided by Microsoft.Confluent. If the operation fails it returns an *azcore.ResponseError type. options - OrganizationOperationsClientListOptions contains the optional parameters for the OrganizationOperationsClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/confluent/resource-manager/Microsoft.Confluent/stable/2021-12-01/examples/OrganizationOperations_List.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/confluent/armconfluent" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armconfluent.NewOrganizationOperationsClient(cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } pager := client.List(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) return } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type OrganizationOperationsClientListOptions ¶ added in v0.2.0
type OrganizationOperationsClientListOptions struct { }
OrganizationOperationsClientListOptions contains the optional parameters for the OrganizationOperationsClient.List method.
type OrganizationOperationsClientListResponse ¶ added in v0.2.0
type OrganizationOperationsClientListResponse struct {
OperationListResult
}
OrganizationOperationsClientListResponse contains the response from method OrganizationOperationsClient.List.
type OrganizationResource ¶
type OrganizationResource struct { // REQUIRED; Organization resource properties Properties *OrganizationResourceProperties `json:"properties,omitempty"` // Location of Organization resource Location *string `json:"location,omitempty"` // Organization resource tags Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; The ARM id of the resource. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Metadata pertaining to creation and last modification of the resource SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. Type *string `json:"type,omitempty" azure:"ro"` }
OrganizationResource - Organization resource.
func (OrganizationResource) MarshalJSON ¶
func (o OrganizationResource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type OrganizationResource.
type OrganizationResourceListResult ¶
type OrganizationResourceListResult struct { // Link to the next set of results, if any. NextLink *string `json:"nextLink,omitempty"` // Result of a list operation. Value []*OrganizationResource `json:"value,omitempty"` }
OrganizationResourceListResult - The response of a list operation.
func (OrganizationResourceListResult) MarshalJSON ¶
func (o OrganizationResourceListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type OrganizationResourceListResult.
type OrganizationResourceProperties ¶
type OrganizationResourceProperties struct { // REQUIRED; Confluent offer detail OfferDetail *OfferDetail `json:"offerDetail,omitempty"` // REQUIRED; Subscriber detail UserDetail *UserDetail `json:"userDetail,omitempty"` // READ-ONLY; The creation time of the resource. CreatedTime *time.Time `json:"createdTime,omitempty" azure:"ro"` // READ-ONLY; Id of the Confluent organization. OrganizationID *string `json:"organizationId,omitempty" azure:"ro"` // READ-ONLY; Provision states for confluent RP ProvisioningState *ProvisionState `json:"provisioningState,omitempty" azure:"ro"` // READ-ONLY; SSO url for the Confluent organization. SsoURL *string `json:"ssoUrl,omitempty" azure:"ro"` }
OrganizationResourceProperties - Organization resource property
func (OrganizationResourceProperties) MarshalJSON ¶
func (o OrganizationResourceProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type OrganizationResourceProperties.
func (*OrganizationResourceProperties) UnmarshalJSON ¶
func (o *OrganizationResourceProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type OrganizationResourceProperties.
type OrganizationResourceUpdate ¶
type OrganizationResourceUpdate struct { // ARM resource tags Tags map[string]*string `json:"tags,omitempty"` }
OrganizationResourceUpdate - Organization Resource update
func (OrganizationResourceUpdate) MarshalJSON ¶
func (o OrganizationResourceUpdate) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type OrganizationResourceUpdate.
type ProvisionState ¶
type ProvisionState string
ProvisionState - Provision states for confluent RP
const ( ProvisionStateAccepted ProvisionState = "Accepted" ProvisionStateCanceled ProvisionState = "Canceled" ProvisionStateCreating ProvisionState = "Creating" ProvisionStateDeleted ProvisionState = "Deleted" ProvisionStateDeleting ProvisionState = "Deleting" ProvisionStateFailed ProvisionState = "Failed" ProvisionStateNotSpecified ProvisionState = "NotSpecified" ProvisionStateSucceeded ProvisionState = "Succeeded" ProvisionStateUpdating ProvisionState = "Updating" )
func PossibleProvisionStateValues ¶
func PossibleProvisionStateValues() []ProvisionState
PossibleProvisionStateValues returns the possible values for the ProvisionState const type.
type ResourceProviderDefaultErrorResponse ¶
type ResourceProviderDefaultErrorResponse struct { // READ-ONLY; Response body of Error Error *ErrorResponseBody `json:"error,omitempty" azure:"ro"` }
ResourceProviderDefaultErrorResponse - Default error response for resource provider
type SaaSOfferStatus ¶
type SaaSOfferStatus string
SaaSOfferStatus - SaaS Offer Status for confluent RP
const ( SaaSOfferStatusFailed SaaSOfferStatus = "Failed" SaaSOfferStatusInProgress SaaSOfferStatus = "InProgress" SaaSOfferStatusPendingFulfillmentStart SaaSOfferStatus = "PendingFulfillmentStart" SaaSOfferStatusReinstated SaaSOfferStatus = "Reinstated" SaaSOfferStatusStarted SaaSOfferStatus = "Started" SaaSOfferStatusSubscribed SaaSOfferStatus = "Subscribed" SaaSOfferStatusSucceeded SaaSOfferStatus = "Succeeded" SaaSOfferStatusSuspended SaaSOfferStatus = "Suspended" SaaSOfferStatusUnsubscribed SaaSOfferStatus = "Unsubscribed" SaaSOfferStatusUpdating SaaSOfferStatus = "Updating" )
func PossibleSaaSOfferStatusValues ¶
func PossibleSaaSOfferStatusValues() []SaaSOfferStatus
PossibleSaaSOfferStatusValues returns the possible values for the SaaSOfferStatus const type.
type SystemData ¶
type SystemData struct { // The timestamp of resource creation (UTC). CreatedAt *time.Time `json:"createdAt,omitempty"` // The identity that created the resource. CreatedBy *string `json:"createdBy,omitempty"` // The type of identity that created the resource. CreatedByType *CreatedByType `json:"createdByType,omitempty"` // The timestamp of resource last modification (UTC) LastModifiedAt *time.Time `json:"lastModifiedAt,omitempty"` // The identity that last modified the resource. LastModifiedBy *string `json:"lastModifiedBy,omitempty"` // The type of identity that last modified the resource. LastModifiedByType *CreatedByType `json:"lastModifiedByType,omitempty"` }
SystemData - Metadata pertaining to creation and last modification of the resource.
func (SystemData) MarshalJSON ¶
func (s SystemData) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SystemData.
func (*SystemData) UnmarshalJSON ¶
func (s *SystemData) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SystemData.
type UserDetail ¶
type UserDetail struct { // REQUIRED; Email address EmailAddress *string `json:"emailAddress,omitempty"` // First name FirstName *string `json:"firstName,omitempty"` // Last name LastName *string `json:"lastName,omitempty"` }
UserDetail - Subscriber detail
type ValidationsClient ¶
type ValidationsClient struct {
// contains filtered or unexported fields
}
ValidationsClient contains the methods for the Validations group. Don't use this type directly, use NewValidationsClient() instead.
func NewValidationsClient ¶
func NewValidationsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ValidationsClient, error)
NewValidationsClient creates a new instance of ValidationsClient with the specified values. subscriptionID - Microsoft Azure subscription id credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*ValidationsClient) ValidateOrganization ¶
func (client *ValidationsClient) ValidateOrganization(ctx context.Context, resourceGroupName string, organizationName string, body OrganizationResource, options *ValidationsClientValidateOrganizationOptions) (ValidationsClientValidateOrganizationResponse, error)
ValidateOrganization - Organization Validate proxy resource If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - Resource group name organizationName - Organization resource name body - Organization resource model options - ValidationsClientValidateOrganizationOptions contains the optional parameters for the ValidationsClient.ValidateOrganization method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/confluent/resource-manager/Microsoft.Confluent/stable/2021-12-01/examples/Validations_ValidateOrganizations.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/confluent/armconfluent" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armconfluent.NewValidationsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.ValidateOrganization(ctx, "<resource-group-name>", "<organization-name>", armconfluent.OrganizationResource{ Location: to.Ptr("<location>"), Properties: &armconfluent.OrganizationResourceProperties{ OfferDetail: &armconfluent.OfferDetail{ ID: to.Ptr("<id>"), PlanID: to.Ptr("<plan-id>"), PlanName: to.Ptr("<plan-name>"), PublisherID: to.Ptr("<publisher-id>"), TermUnit: to.Ptr("<term-unit>"), }, UserDetail: &armconfluent.UserDetail{ EmailAddress: to.Ptr("<email-address>"), FirstName: to.Ptr("<first-name>"), LastName: to.Ptr("<last-name>"), }, }, Tags: map[string]*string{ "Environment": to.Ptr("Dev"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
type ValidationsClientValidateOrganizationOptions ¶ added in v0.2.0
type ValidationsClientValidateOrganizationOptions struct { }
ValidationsClientValidateOrganizationOptions contains the optional parameters for the ValidationsClient.ValidateOrganization method.
type ValidationsClientValidateOrganizationResponse ¶ added in v0.2.0
type ValidationsClientValidateOrganizationResponse struct {
OrganizationResource
}
ValidationsClientValidateOrganizationResponse contains the response from method ValidationsClient.ValidateOrganization.
Source Files ¶
- build.go
- zz_generated_constants.go
- zz_generated_marketplaceagreements_client.go
- zz_generated_models.go
- zz_generated_models_serde.go
- zz_generated_organization_client.go
- zz_generated_organizationoperations_client.go
- zz_generated_response_types.go
- zz_generated_time_rfc3339.go
- zz_generated_validations_client.go