Documentation ¶
Index ¶
- type AgreementProperties
- type AgreementResource
- type AgreementResourceListResponse
- type ClientFactory
- func (c *ClientFactory) NewMarketplaceAgreementsClient() *MarketplaceAgreementsClient
- func (c *ClientFactory) NewOrganizationClient() *OrganizationClient
- func (c *ClientFactory) NewOrganizationOperationsClient() *OrganizationOperationsClient
- func (c *ClientFactory) NewValidationsClient() *ValidationsClient
- type CreatedByType
- type ErrorResponseBody
- type MarketplaceAgreementsClient
- func (client *MarketplaceAgreementsClient) Create(ctx context.Context, options *MarketplaceAgreementsClientCreateOptions) (MarketplaceAgreementsClientCreateResponse, error)
- func (client *MarketplaceAgreementsClient) NewListPager(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, ...) (*runtime.Poller[OrganizationClientCreateResponse], error)
- func (client *OrganizationClient) BeginDelete(ctx context.Context, resourceGroupName string, organizationName string, ...) (*runtime.Poller[OrganizationClientDeleteResponse], error)
- func (client *OrganizationClient) Get(ctx context.Context, resourceGroupName string, organizationName string, ...) (OrganizationClientGetResponse, error)
- func (client *OrganizationClient) NewListByResourceGroupPager(resourceGroupName string, ...) *runtime.Pager[OrganizationClientListByResourceGroupResponse]
- func (client *OrganizationClient) NewListBySubscriptionPager(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.NewListPager
- OrganizationClient.BeginCreate
- OrganizationClient.BeginDelete
- OrganizationClient.Get
- OrganizationClient.NewListByResourceGroupPager
- OrganizationClient.NewListBySubscriptionPager
- OrganizationClient.Update
- OrganizationOperationsClient.NewListPager
- 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
func (AgreementResource) MarshalJSON ¶ added in v1.1.0
func (a AgreementResource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AgreementResource.
func (*AgreementResource) UnmarshalJSON ¶ added in v1.1.0
func (a *AgreementResource) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AgreementResource.
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.
func (*AgreementResourceListResponse) UnmarshalJSON ¶ added in v1.1.0
func (a *AgreementResourceListResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AgreementResourceListResponse.
type ClientFactory ¶ added in v1.1.0
type ClientFactory struct {
// contains filtered or unexported fields
}
ClientFactory is a client factory used to create any client in this module. Don't use this type directly, use NewClientFactory instead.
func NewClientFactory ¶ added in v1.1.0
func NewClientFactory(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ClientFactory, error)
NewClientFactory creates a new instance of ClientFactory with the specified values. The parameter values will be propagated to any client created from this factory.
- subscriptionID - Microsoft Azure subscription id
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*ClientFactory) NewMarketplaceAgreementsClient ¶ added in v1.1.0
func (c *ClientFactory) NewMarketplaceAgreementsClient() *MarketplaceAgreementsClient
func (*ClientFactory) NewOrganizationClient ¶ added in v1.1.0
func (c *ClientFactory) NewOrganizationClient() *OrganizationClient
func (*ClientFactory) NewOrganizationOperationsClient ¶ added in v1.1.0
func (c *ClientFactory) NewOrganizationOperationsClient() *OrganizationOperationsClient
func (*ClientFactory) NewValidationsClient ¶ added in v1.1.0
func (c *ClientFactory) NewValidationsClient() *ValidationsClient
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.
func (*ErrorResponseBody) UnmarshalJSON ¶ added in v1.1.0
func (e *ErrorResponseBody) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller 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.
Generated from API version 2021-12-01
- options - MarketplaceAgreementsClientCreateOptions contains the optional parameters for the MarketplaceAgreementsClient.Create method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/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) } ctx := context.Background() clientFactory, err := armconfluent.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewMarketplaceAgreementsClient().Create(ctx, &armconfluent.MarketplaceAgreementsClientCreateOptions{Body: nil}) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.AgreementResource = armconfluent.AgreementResource{ // Name: to.Ptr("default"), // Type: to.Ptr("Microsoft.Confluent/agreements"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Confluent/agreements/default"), // Properties: &armconfluent.AgreementProperties{ // Accepted: to.Ptr(true), // LicenseTextLink: to.Ptr("test.licenseLink1"), // Plan: to.Ptr("planid1"), // PrivacyPolicyLink: to.Ptr("test.privacyPolicyLink1"), // Product: to.Ptr("offid1"), // Publisher: to.Ptr("pubid1"), // RetrieveDatetime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-11-05T17:33:07.12132Z"); return t}()), // Signature: to.Ptr("YKWOQOKH2BCKZ46O7SCKHANWEENRFRU5WB4LXDFUYWCBWTS4AG4SGQXCOZYIR5ZJCZTXRMZKYZMO2BJSL5YKPLAR4LBFRUNS6CRYE7A"), // }, // SystemData: &armconfluent.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-05-09T14:28:47.284Z"); return t}()), // CreatedBy: to.Ptr("string"), // CreatedByType: to.Ptr(armconfluent.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-05-09T14:28:47.284Z"); return t}()), // LastModifiedBy: to.Ptr("string"), // LastModifiedByType: to.Ptr(armconfluent.CreatedByTypeUser), // }, // } }
Output:
func (*MarketplaceAgreementsClient) NewListPager ¶ added in v0.4.0
func (client *MarketplaceAgreementsClient) NewListPager(options *MarketplaceAgreementsClientListOptions) *runtime.Pager[MarketplaceAgreementsClientListResponse]
NewListPager - List Confluent marketplace agreements in the subscription.
Generated from API version 2021-12-01
- options - MarketplaceAgreementsClientListOptions contains the optional parameters for the MarketplaceAgreementsClient.NewListPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/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) } ctx := context.Background() clientFactory, err := armconfluent.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewMarketplaceAgreementsClient().NewListPager(nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.AgreementResourceListResponse = armconfluent.AgreementResourceListResponse{ // Value: []*armconfluent.AgreementResource{ // { // Name: to.Ptr("planid1"), // Type: to.Ptr("Microsoft.Confluent/agreements"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Confluent/agreements/default"), // Properties: &armconfluent.AgreementProperties{ // Accepted: to.Ptr(true), // LicenseTextLink: to.Ptr("test.licenseLink1"), // Plan: to.Ptr("planid1"), // PrivacyPolicyLink: to.Ptr("test.privacyPolicyLink1"), // Product: to.Ptr("offid1"), // Publisher: to.Ptr("pubid1"), // RetrieveDatetime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-08-15T11:33:07.12132Z"); return t}()), // Signature: to.Ptr("ASDFSDAFWEFASDGWERLWER"), // }, // }, // { // Name: to.Ptr("planid2"), // Type: to.Ptr("Microsoft.MarketplaceOrdering/offertypes"), // ID: to.Ptr("id2"), // Properties: &armconfluent.AgreementProperties{ // Accepted: to.Ptr(true), // LicenseTextLink: to.Ptr("test.licenseLin2k"), // Plan: to.Ptr("planid2"), // PrivacyPolicyLink: to.Ptr("test.privacyPolicyLink2"), // Product: to.Ptr("offid2"), // Publisher: to.Ptr("pubid2"), // RetrieveDatetime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-08-14T11:33:07.12132Z"); return t}()), // Signature: to.Ptr("ASDFSDAFWEFASDGWERLWER"), // }, // }}, // } } }
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.NewListPager method.
type MarketplaceAgreementsClientListResponse ¶ added in v0.2.0
type MarketplaceAgreementsClientListResponse struct {
AgreementResourceListResponse
}
MarketplaceAgreementsClientListResponse contains the response from method MarketplaceAgreementsClient.NewListPager.
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
func (OfferDetail) MarshalJSON ¶ added in v1.1.0
func (o OfferDetail) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type OfferDetail.
func (*OfferDetail) UnmarshalJSON ¶ added in v1.1.0
func (o *OfferDetail) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type OfferDetail.
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.
func (OperationDisplay) MarshalJSON ¶ added in v1.1.0
func (o OperationDisplay) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type OperationDisplay.
func (*OperationDisplay) UnmarshalJSON ¶ added in v1.1.0
func (o *OperationDisplay) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type OperationDisplay.
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.
func (*OperationListResult) UnmarshalJSON ¶ added in v1.1.0
func (o *OperationListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller 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.
func (OperationResult) MarshalJSON ¶ added in v1.1.0
func (o OperationResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type OperationResult.
func (*OperationResult) UnmarshalJSON ¶ added in v1.1.0
func (o *OperationResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type OperationResult.
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) (*runtime.Poller[OrganizationClientCreateResponse], error)
BeginCreate - Create Organization resource If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2021-12-01
- 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/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/confluent/resource-manager/Microsoft.Confluent/stable/2021-12-01/examples/Organization_Create.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) } ctx := context.Background() clientFactory, err := armconfluent.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewOrganizationClient().BeginCreate(ctx, "myResourceGroup", "myOrganization", &armconfluent.OrganizationClientBeginCreateOptions{Body: &armconfluent.OrganizationResource{ Location: to.Ptr("West US"), Properties: &armconfluent.OrganizationResourceProperties{ OfferDetail: &armconfluent.OfferDetail{ ID: to.Ptr("string"), PlanID: to.Ptr("string"), PlanName: to.Ptr("string"), PublisherID: to.Ptr("string"), TermUnit: to.Ptr("string"), }, UserDetail: &armconfluent.UserDetail{ EmailAddress: to.Ptr("contoso@microsoft.com"), FirstName: to.Ptr("string"), LastName: to.Ptr("string"), }, }, Tags: map[string]*string{ "Environment": to.Ptr("Dev"), }, }, }) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.OrganizationResource = armconfluent.OrganizationResource{ // Name: to.Ptr("myOrganization"), // Type: to.Ptr("Microsoft.Confluent/organizations"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Confluent/organizations/myOrganization"), // Location: to.Ptr("West US"), // Properties: &armconfluent.OrganizationResourceProperties{ // CreatedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-05-09T14:28:47.284Z"); return t}()), // OfferDetail: &armconfluent.OfferDetail{ // ID: to.Ptr("string"), // PlanID: to.Ptr("string"), // PlanName: to.Ptr("string"), // PublisherID: to.Ptr("string"), // Status: to.Ptr(armconfluent.SaaSOfferStatusStarted), // TermUnit: to.Ptr("string"), // }, // OrganizationID: to.Ptr("string"), // ProvisioningState: to.Ptr(armconfluent.ProvisionStateSucceeded), // SsoURL: to.Ptr("string"), // UserDetail: &armconfluent.UserDetail{ // EmailAddress: to.Ptr("contoso@microsoft.com"), // FirstName: to.Ptr("string"), // LastName: to.Ptr("string"), // }, // }, // SystemData: &armconfluent.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-05-09T14:28:47.284Z"); return t}()), // CreatedBy: to.Ptr("string"), // CreatedByType: to.Ptr(armconfluent.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-05-09T14:28:47.284Z"); return t}()), // LastModifiedBy: to.Ptr("string"), // LastModifiedByType: to.Ptr(armconfluent.CreatedByTypeUser), // }, // Tags: map[string]*string{ // "Environment": to.Ptr("Dev"), // }, // } }
Output:
func (*OrganizationClient) BeginDelete ¶
func (client *OrganizationClient) BeginDelete(ctx context.Context, resourceGroupName string, organizationName string, options *OrganizationClientBeginDeleteOptions) (*runtime.Poller[OrganizationClientDeleteResponse], error)
BeginDelete - Delete Organization resource If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2021-12-01
- 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/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/confluent/resource-manager/Microsoft.Confluent/stable/2021-12-01/examples/Organization_Delete.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) } ctx := context.Background() clientFactory, err := armconfluent.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewOrganizationClient().BeginDelete(ctx, "myResourceGroup", "myOrganization", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } _, err = poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } }
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.
Generated from API version 2021-12-01
- 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/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/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) } ctx := context.Background() clientFactory, err := armconfluent.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewOrganizationClient().Get(ctx, "myResourceGroup", "myOrganization", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.OrganizationResource = armconfluent.OrganizationResource{ // Name: to.Ptr("myOrganization"), // Type: to.Ptr("Microsoft.Confluent/organizations"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Confluent/organizations/myOrganization"), // Location: to.Ptr("West US"), // Properties: &armconfluent.OrganizationResourceProperties{ // CreatedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-05-09T14:28:47.284Z"); return t}()), // OfferDetail: &armconfluent.OfferDetail{ // ID: to.Ptr("string"), // PlanID: to.Ptr("string"), // PlanName: to.Ptr("string"), // PublisherID: to.Ptr("string"), // Status: to.Ptr(armconfluent.SaaSOfferStatusStarted), // TermUnit: to.Ptr("string"), // }, // OrganizationID: to.Ptr("string"), // ProvisioningState: to.Ptr(armconfluent.ProvisionStateSucceeded), // SsoURL: to.Ptr("string"), // UserDetail: &armconfluent.UserDetail{ // EmailAddress: to.Ptr("contoso@microsoft.com"), // FirstName: to.Ptr("string"), // LastName: to.Ptr("string"), // }, // }, // SystemData: &armconfluent.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-05-09T14:28:47.284Z"); return t}()), // CreatedBy: to.Ptr("string"), // CreatedByType: to.Ptr(armconfluent.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-05-09T14:28:47.284Z"); return t}()), // LastModifiedBy: to.Ptr("string"), // LastModifiedByType: to.Ptr(armconfluent.CreatedByTypeUser), // }, // Tags: map[string]*string{ // "Environment": to.Ptr("Dev"), // }, // } }
Output:
func (*OrganizationClient) NewListByResourceGroupPager ¶ added in v0.4.0
func (client *OrganizationClient) NewListByResourceGroupPager(resourceGroupName string, options *OrganizationClientListByResourceGroupOptions) *runtime.Pager[OrganizationClientListByResourceGroupResponse]
NewListByResourceGroupPager - List all Organizations under the specified resource group.
Generated from API version 2021-12-01
- resourceGroupName - Resource group name
- options - OrganizationClientListByResourceGroupOptions contains the optional parameters for the OrganizationClient.NewListByResourceGroupPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/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) } ctx := context.Background() clientFactory, err := armconfluent.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewOrganizationClient().NewListByResourceGroupPager("myResourceGroup", nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.OrganizationResourceListResult = armconfluent.OrganizationResourceListResult{ // Value: []*armconfluent.OrganizationResource{ // { // Name: to.Ptr("myOrganizations"), // Type: to.Ptr("Microsoft.Confluent/organizations"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Confluent/organizations/myOrganizations"), // Location: to.Ptr("West US"), // Properties: &armconfluent.OrganizationResourceProperties{ // CreatedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-05-09T14:28:47.284Z"); return t}()), // OfferDetail: &armconfluent.OfferDetail{ // ID: to.Ptr("string"), // PlanID: to.Ptr("string"), // PlanName: to.Ptr("string"), // PublisherID: to.Ptr("string"), // Status: to.Ptr(armconfluent.SaaSOfferStatusStarted), // TermUnit: to.Ptr("string"), // }, // OrganizationID: to.Ptr("string"), // ProvisioningState: to.Ptr(armconfluent.ProvisionStateSucceeded), // SsoURL: to.Ptr("string"), // UserDetail: &armconfluent.UserDetail{ // EmailAddress: to.Ptr("contoso@microsoft.com"), // FirstName: to.Ptr("string"), // LastName: to.Ptr("string"), // }, // }, // Tags: map[string]*string{ // "Environment": to.Ptr("Dev"), // }, // }}, // } } }
Output:
func (*OrganizationClient) NewListBySubscriptionPager ¶ added in v0.4.0
func (client *OrganizationClient) NewListBySubscriptionPager(options *OrganizationClientListBySubscriptionOptions) *runtime.Pager[OrganizationClientListBySubscriptionResponse]
NewListBySubscriptionPager - List all organizations under the specified subscription.
Generated from API version 2021-12-01
- options - OrganizationClientListBySubscriptionOptions contains the optional parameters for the OrganizationClient.NewListBySubscriptionPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/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) } ctx := context.Background() clientFactory, err := armconfluent.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewOrganizationClient().NewListBySubscriptionPager(nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.OrganizationResourceListResult = armconfluent.OrganizationResourceListResult{ // Value: []*armconfluent.OrganizationResource{ // { // Name: to.Ptr("myOrganizations"), // Type: to.Ptr("Microsoft.Confluent/organizations"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Confluent/organizations/myOrganizations"), // Location: to.Ptr("West US"), // Properties: &armconfluent.OrganizationResourceProperties{ // CreatedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-05-09T14:28:47.284Z"); return t}()), // OfferDetail: &armconfluent.OfferDetail{ // ID: to.Ptr("string"), // PlanID: to.Ptr("string"), // PlanName: to.Ptr("string"), // PublisherID: to.Ptr("string"), // Status: to.Ptr(armconfluent.SaaSOfferStatusStarted), // TermUnit: to.Ptr("string"), // }, // OrganizationID: to.Ptr("string"), // ProvisioningState: to.Ptr(armconfluent.ProvisionStateSucceeded), // SsoURL: to.Ptr("string"), // UserDetail: &armconfluent.UserDetail{ // EmailAddress: to.Ptr("contoso@microsoft.com"), // FirstName: to.Ptr("string"), // LastName: to.Ptr("string"), // }, // }, // Tags: map[string]*string{ // "Environment": to.Ptr("Dev"), // }, // }}, // } } }
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.
Generated from API version 2021-12-01
- 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/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/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) } ctx := context.Background() clientFactory, err := armconfluent.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewOrganizationClient().Update(ctx, "myResourceGroup", "myOrganization", &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) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.OrganizationResource = armconfluent.OrganizationResource{ // Name: to.Ptr("myOrganization"), // Type: to.Ptr("Microsoft.Confluent/organizations"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Confluent/organizations/myOrganization"), // Location: to.Ptr("West US"), // Properties: &armconfluent.OrganizationResourceProperties{ // CreatedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-05-09T14:28:47.284Z"); return t}()), // OfferDetail: &armconfluent.OfferDetail{ // ID: to.Ptr("string"), // PlanID: to.Ptr("string"), // PlanName: to.Ptr("string"), // PublisherID: to.Ptr("string"), // Status: to.Ptr(armconfluent.SaaSOfferStatusStarted), // TermUnit: to.Ptr("string"), // }, // OrganizationID: to.Ptr("string"), // ProvisioningState: to.Ptr(armconfluent.ProvisionStateSucceeded), // SsoURL: to.Ptr("string"), // UserDetail: &armconfluent.UserDetail{ // EmailAddress: to.Ptr("contoso@microsoft.com"), // FirstName: to.Ptr("string"), // LastName: to.Ptr("string"), // }, // }, // SystemData: &armconfluent.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-05-09T14:28:47.284Z"); return t}()), // CreatedBy: to.Ptr("string"), // CreatedByType: to.Ptr(armconfluent.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-05-09T14:28:47.284Z"); return t}()), // LastModifiedBy: to.Ptr("string"), // LastModifiedByType: to.Ptr(armconfluent.CreatedByTypeUser), // }, // Tags: map[string]*string{ // "Environment": to.Ptr("Dev"), // }, // } }
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.BeginCreate.
type OrganizationClientDeleteResponse ¶ added in v0.2.0
type OrganizationClientDeleteResponse struct { }
OrganizationClientDeleteResponse contains the response from method OrganizationClient.BeginDelete.
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.NewListByResourceGroupPager method.
type OrganizationClientListByResourceGroupResponse ¶ added in v0.2.0
type OrganizationClientListByResourceGroupResponse struct {
OrganizationResourceListResult
}
OrganizationClientListByResourceGroupResponse contains the response from method OrganizationClient.NewListByResourceGroupPager.
type OrganizationClientListBySubscriptionOptions ¶ added in v0.2.0
type OrganizationClientListBySubscriptionOptions struct { }
OrganizationClientListBySubscriptionOptions contains the optional parameters for the OrganizationClient.NewListBySubscriptionPager method.
type OrganizationClientListBySubscriptionResponse ¶ added in v0.2.0
type OrganizationClientListBySubscriptionResponse struct {
OrganizationResourceListResult
}
OrganizationClientListBySubscriptionResponse contains the response from method OrganizationClient.NewListBySubscriptionPager.
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) NewListPager ¶ added in v0.4.0
func (client *OrganizationOperationsClient) NewListPager(options *OrganizationOperationsClientListOptions) *runtime.Pager[OrganizationOperationsClientListResponse]
NewListPager - List all operations provided by Microsoft.Confluent.
Generated from API version 2021-12-01
- options - OrganizationOperationsClientListOptions contains the optional parameters for the OrganizationOperationsClient.NewListPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/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) } ctx := context.Background() clientFactory, err := armconfluent.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewOrganizationOperationsClient().NewListPager(nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.OperationListResult = armconfluent.OperationListResult{ // Value: []*armconfluent.OperationResult{ // { // Name: to.Ptr("Microsoft.Confluent/organizations/Read"), // Display: &armconfluent.OperationDisplay{ // Description: to.Ptr("Read organization"), // Operation: to.Ptr("Get/List organization resources"), // Provider: to.Ptr("Microsoft.Confluent"), // Resource: to.Ptr("organizations"), // }, // IsDataAction: to.Ptr(false), // }, // { // Name: to.Ptr("Microsoft.Confluent/organizations/Write"), // Display: &armconfluent.OperationDisplay{ // Description: to.Ptr("Write organization"), // Operation: to.Ptr("Create/Update organization resources"), // Provider: to.Ptr("Microsoft.Confluent"), // Resource: to.Ptr("organizations"), // }, // IsDataAction: to.Ptr(false), // }, // { // Name: to.Ptr("Microsoft.Confluent/organizations/Delete"), // Display: &armconfluent.OperationDisplay{ // Description: to.Ptr("Delete organization"), // Operation: to.Ptr("Delete organization resources"), // Provider: to.Ptr("Microsoft.Confluent"), // Resource: to.Ptr("organizations"), // }, // IsDataAction: to.Ptr(false), // }}, // } } }
Output:
type OrganizationOperationsClientListOptions ¶ added in v0.2.0
type OrganizationOperationsClientListOptions struct { }
OrganizationOperationsClientListOptions contains the optional parameters for the OrganizationOperationsClient.NewListPager method.
type OrganizationOperationsClientListResponse ¶ added in v0.2.0
type OrganizationOperationsClientListResponse struct {
OperationListResult
}
OrganizationOperationsClientListResponse contains the response from method OrganizationOperationsClient.NewListPager.
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.
func (*OrganizationResource) UnmarshalJSON ¶ added in v1.1.0
func (o *OrganizationResource) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller 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.
func (*OrganizationResourceListResult) UnmarshalJSON ¶ added in v1.1.0
func (o *OrganizationResourceListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller 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.
func (*OrganizationResourceUpdate) UnmarshalJSON ¶ added in v1.1.0
func (o *OrganizationResourceUpdate) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller 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
func (ResourceProviderDefaultErrorResponse) MarshalJSON ¶ added in v1.1.0
func (r ResourceProviderDefaultErrorResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ResourceProviderDefaultErrorResponse.
func (*ResourceProviderDefaultErrorResponse) UnmarshalJSON ¶ added in v1.1.0
func (r *ResourceProviderDefaultErrorResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ResourceProviderDefaultErrorResponse.
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
func (UserDetail) MarshalJSON ¶ added in v1.1.0
func (u UserDetail) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type UserDetail.
func (*UserDetail) UnmarshalJSON ¶ added in v1.1.0
func (u *UserDetail) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type UserDetail.
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.
Generated from API version 2021-12-01
- 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/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/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) } ctx := context.Background() clientFactory, err := armconfluent.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewValidationsClient().ValidateOrganization(ctx, "myResourceGroup", "myOrganization", armconfluent.OrganizationResource{ Location: to.Ptr("West US"), Properties: &armconfluent.OrganizationResourceProperties{ OfferDetail: &armconfluent.OfferDetail{ ID: to.Ptr("string"), PlanID: to.Ptr("string"), PlanName: to.Ptr("string"), PublisherID: to.Ptr("string"), TermUnit: to.Ptr("string"), }, UserDetail: &armconfluent.UserDetail{ EmailAddress: to.Ptr("abc@microsoft.com"), FirstName: to.Ptr("string"), LastName: to.Ptr("string"), }, }, Tags: map[string]*string{ "Environment": to.Ptr("Dev"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.OrganizationResource = armconfluent.OrganizationResource{ // Name: to.Ptr("myOrganization"), // Type: to.Ptr("Microsoft.Confluent/organizations"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Confluent/organizations/myOrganization"), // Location: to.Ptr("West US"), // Properties: &armconfluent.OrganizationResourceProperties{ // CreatedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-05-09T14:28:47.284Z"); return t}()), // OfferDetail: &armconfluent.OfferDetail{ // ID: to.Ptr("string"), // PlanID: to.Ptr("string"), // PlanName: to.Ptr("string"), // PublisherID: to.Ptr("string"), // Status: to.Ptr(armconfluent.SaaSOfferStatusStarted), // TermUnit: to.Ptr("string"), // }, // OrganizationID: to.Ptr("string"), // ProvisioningState: to.Ptr(armconfluent.ProvisionStateSucceeded), // SsoURL: to.Ptr("string"), // UserDetail: &armconfluent.UserDetail{ // EmailAddress: to.Ptr("abc@microsoft.com"), // FirstName: to.Ptr("string"), // LastName: to.Ptr("string"), // }, // }, // Tags: map[string]*string{ // "Environment": to.Ptr("Dev"), // }, // } }
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.