javacomponents

package
v0.20241118.1115603 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: MPL-2.0 Imports: 13 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-02-02-preview/javacomponents Documentation

The javacomponents SDK allows for interaction with Azure Resource Manager containerapps (API Version 2024-02-02-preview).

This readme covers example usages, but further information on using this SDK can be found in the project root.

Import Path

import "github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-02-02-preview/javacomponents"

Client Initialization

client := javacomponents.NewJavaComponentsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: JavaComponentsClient.CreateOrUpdate

ctx := context.TODO()
id := javacomponents.NewJavaComponentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentName", "javaComponentName")

payload := javacomponents.JavaComponent{
	// ...
}


if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Example Usage: JavaComponentsClient.Delete

ctx := context.TODO()
id := javacomponents.NewJavaComponentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentName", "javaComponentName")

if err := client.DeleteThenPoll(ctx, id); err != nil {
	// handle the error
}

Example Usage: JavaComponentsClient.Get

ctx := context.TODO()
id := javacomponents.NewJavaComponentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentName", "javaComponentName")

read, err := client.Get(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: JavaComponentsClient.List

ctx := context.TODO()
id := javacomponents.NewManagedEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentName")

// alternatively `client.List(ctx, id)` can be used to do batched pagination
items, err := client.ListComplete(ctx, id)
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: JavaComponentsClient.Update

ctx := context.TODO()
id := javacomponents.NewJavaComponentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentName", "javaComponentName")

payload := javacomponents.JavaComponent{
	// ...
}


if err := client.UpdateThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForJavaComponentProvisioningState

func PossibleValuesForJavaComponentProvisioningState() []string

func PossibleValuesForJavaComponentType

func PossibleValuesForJavaComponentType() []string

func ValidateJavaComponentID

func ValidateJavaComponentID(input interface{}, key string) (warnings []string, errors []error)

ValidateJavaComponentID checks that 'input' can be parsed as a Java Component ID

func ValidateManagedEnvironmentID

func ValidateManagedEnvironmentID(input interface{}, key string) (warnings []string, errors []error)

ValidateManagedEnvironmentID checks that 'input' can be parsed as a Managed Environment ID

Types

type BaseJavaComponentPropertiesImpl added in v0.20240920.1135249

type BaseJavaComponentPropertiesImpl struct {
	ComponentType     JavaComponentType                     `json:"componentType"`
	Configurations    *[]JavaComponentConfigurationProperty `json:"configurations,omitempty"`
	ProvisioningState *JavaComponentProvisioningState       `json:"provisioningState,omitempty"`
	ServiceBinds      *[]JavaComponentServiceBind           `json:"serviceBinds,omitempty"`
}

func (BaseJavaComponentPropertiesImpl) JavaComponentProperties added in v0.20240920.1135249

type CreateOrUpdateOperationResponse

type CreateOrUpdateOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *JavaComponent
}

type DeleteOperationResponse

type DeleteOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
}

type GetOperationResponse

type GetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *JavaComponent
}

type JavaComponent

type JavaComponent struct {
	Id         *string                 `json:"id,omitempty"`
	Name       *string                 `json:"name,omitempty"`
	Properties JavaComponentProperties `json:"properties"`
	SystemData *systemdata.SystemData  `json:"systemData,omitempty"`
	Type       *string                 `json:"type,omitempty"`
}

func (*JavaComponent) UnmarshalJSON

func (s *JavaComponent) UnmarshalJSON(bytes []byte) error

type JavaComponentConfigurationProperty

type JavaComponentConfigurationProperty struct {
	PropertyName *string `json:"propertyName,omitempty"`
	Value        *string `json:"value,omitempty"`
}

type JavaComponentId

type JavaComponentId struct {
	SubscriptionId         string
	ResourceGroupName      string
	ManagedEnvironmentName string
	JavaComponentName      string
}

JavaComponentId is a struct representing the Resource ID for a Java Component

func NewJavaComponentID

func NewJavaComponentID(subscriptionId string, resourceGroupName string, managedEnvironmentName string, javaComponentName string) JavaComponentId

NewJavaComponentID returns a new JavaComponentId struct

func ParseJavaComponentID

func ParseJavaComponentID(input string) (*JavaComponentId, error)

ParseJavaComponentID parses 'input' into a JavaComponentId

func ParseJavaComponentIDInsensitively

func ParseJavaComponentIDInsensitively(input string) (*JavaComponentId, error)

ParseJavaComponentIDInsensitively parses 'input' case-insensitively into a JavaComponentId note: this method should only be used for API response data and not user input

func (*JavaComponentId) FromParseResult

func (id *JavaComponentId) FromParseResult(input resourceids.ParseResult) error

func (JavaComponentId) ID

func (id JavaComponentId) ID() string

ID returns the formatted Java Component ID

func (JavaComponentId) Segments

func (id JavaComponentId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Java Component ID

func (JavaComponentId) String

func (id JavaComponentId) String() string

String returns a human-readable description of this Java Component ID

type JavaComponentIngress

type JavaComponentIngress struct {
	Fqdn *string `json:"fqdn,omitempty"`
}

type JavaComponentOperationPredicate

type JavaComponentOperationPredicate struct {
	Id   *string
	Name *string
	Type *string
}

func (JavaComponentOperationPredicate) Matches

type JavaComponentProperties

type JavaComponentProperties interface {
	JavaComponentProperties() BaseJavaComponentPropertiesImpl
}

func UnmarshalJavaComponentPropertiesImplementation added in v0.20240920.1135249

func UnmarshalJavaComponentPropertiesImplementation(input []byte) (JavaComponentProperties, error)

type JavaComponentProvisioningState

type JavaComponentProvisioningState string
const (
	JavaComponentProvisioningStateCanceled   JavaComponentProvisioningState = "Canceled"
	JavaComponentProvisioningStateDeleting   JavaComponentProvisioningState = "Deleting"
	JavaComponentProvisioningStateFailed     JavaComponentProvisioningState = "Failed"
	JavaComponentProvisioningStateInProgress JavaComponentProvisioningState = "InProgress"
	JavaComponentProvisioningStateSucceeded  JavaComponentProvisioningState = "Succeeded"
)

func (*JavaComponentProvisioningState) UnmarshalJSON

func (s *JavaComponentProvisioningState) UnmarshalJSON(bytes []byte) error

type JavaComponentServiceBind

type JavaComponentServiceBind struct {
	Name      *string `json:"name,omitempty"`
	ServiceId *string `json:"serviceId,omitempty"`
}

type JavaComponentType

type JavaComponentType string
const (
	JavaComponentTypeNacos             JavaComponentType = "Nacos"
	JavaComponentTypeSpringBootAdmin   JavaComponentType = "SpringBootAdmin"
	JavaComponentTypeSpringCloudConfig JavaComponentType = "SpringCloudConfig"
	JavaComponentTypeSpringCloudEureka JavaComponentType = "SpringCloudEureka"
)

func (*JavaComponentType) UnmarshalJSON

func (s *JavaComponentType) UnmarshalJSON(bytes []byte) error

type JavaComponentsClient

type JavaComponentsClient struct {
	Client *resourcemanager.Client
}

func NewJavaComponentsClientWithBaseURI

func NewJavaComponentsClientWithBaseURI(sdkApi sdkEnv.Api) (*JavaComponentsClient, error)

func (JavaComponentsClient) CreateOrUpdate

CreateOrUpdate ...

func (JavaComponentsClient) CreateOrUpdateThenPoll

func (c JavaComponentsClient) CreateOrUpdateThenPoll(ctx context.Context, id JavaComponentId, input JavaComponent) error

CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed

func (JavaComponentsClient) Delete

Delete ...

func (JavaComponentsClient) DeleteThenPoll

func (c JavaComponentsClient) DeleteThenPoll(ctx context.Context, id JavaComponentId) error

DeleteThenPoll performs Delete then polls until it's completed

func (JavaComponentsClient) Get

Get ...

func (JavaComponentsClient) List

List ...

func (JavaComponentsClient) ListComplete

ListComplete retrieves all the results into a single object

func (JavaComponentsClient) ListCompleteMatchingPredicate

func (c JavaComponentsClient) ListCompleteMatchingPredicate(ctx context.Context, id ManagedEnvironmentId, predicate JavaComponentOperationPredicate) (result ListCompleteResult, err error)

ListCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (JavaComponentsClient) Update

Update ...

func (JavaComponentsClient) UpdateThenPoll

func (c JavaComponentsClient) UpdateThenPoll(ctx context.Context, id JavaComponentId, input JavaComponent) error

UpdateThenPoll performs Update then polls until it's completed

type ListCompleteResult

type ListCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []JavaComponent
}

type ListCustomPager

type ListCustomPager struct {
	NextLink *odata.Link `json:"nextLink"`
}
func (p *ListCustomPager) NextPageLink() *odata.Link

type ListOperationResponse

type ListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]JavaComponent
}

type ManagedEnvironmentId

type ManagedEnvironmentId struct {
	SubscriptionId         string
	ResourceGroupName      string
	ManagedEnvironmentName string
}

ManagedEnvironmentId is a struct representing the Resource ID for a Managed Environment

func NewManagedEnvironmentID

func NewManagedEnvironmentID(subscriptionId string, resourceGroupName string, managedEnvironmentName string) ManagedEnvironmentId

NewManagedEnvironmentID returns a new ManagedEnvironmentId struct

func ParseManagedEnvironmentID

func ParseManagedEnvironmentID(input string) (*ManagedEnvironmentId, error)

ParseManagedEnvironmentID parses 'input' into a ManagedEnvironmentId

func ParseManagedEnvironmentIDInsensitively

func ParseManagedEnvironmentIDInsensitively(input string) (*ManagedEnvironmentId, error)

ParseManagedEnvironmentIDInsensitively parses 'input' case-insensitively into a ManagedEnvironmentId note: this method should only be used for API response data and not user input

func (*ManagedEnvironmentId) FromParseResult

func (id *ManagedEnvironmentId) FromParseResult(input resourceids.ParseResult) error

func (ManagedEnvironmentId) ID

func (id ManagedEnvironmentId) ID() string

ID returns the formatted Managed Environment ID

func (ManagedEnvironmentId) Segments

func (id ManagedEnvironmentId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Managed Environment ID

func (ManagedEnvironmentId) String

func (id ManagedEnvironmentId) String() string

String returns a human-readable description of this Managed Environment ID

type NacosComponent

type NacosComponent struct {
	Ingress *JavaComponentIngress `json:"ingress,omitempty"`

	ComponentType     JavaComponentType                     `json:"componentType"`
	Configurations    *[]JavaComponentConfigurationProperty `json:"configurations,omitempty"`
	ProvisioningState *JavaComponentProvisioningState       `json:"provisioningState,omitempty"`
	ServiceBinds      *[]JavaComponentServiceBind           `json:"serviceBinds,omitempty"`
}

func (NacosComponent) JavaComponentProperties added in v0.20240920.1135249

func (s NacosComponent) JavaComponentProperties() BaseJavaComponentPropertiesImpl

func (NacosComponent) MarshalJSON

func (s NacosComponent) MarshalJSON() ([]byte, error)

type RawJavaComponentPropertiesImpl

type RawJavaComponentPropertiesImpl struct {
	Type   string
	Values map[string]interface{}
	// contains filtered or unexported fields
}

RawJavaComponentPropertiesImpl is returned when the Discriminated Value doesn't match any of the defined types NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) and is used only for Deserialization (e.g. this cannot be used as a Request Payload).

func (RawJavaComponentPropertiesImpl) JavaComponentProperties added in v0.20240920.1135249

type SpringBootAdminComponent

type SpringBootAdminComponent struct {
	Ingress *JavaComponentIngress `json:"ingress,omitempty"`

	ComponentType     JavaComponentType                     `json:"componentType"`
	Configurations    *[]JavaComponentConfigurationProperty `json:"configurations,omitempty"`
	ProvisioningState *JavaComponentProvisioningState       `json:"provisioningState,omitempty"`
	ServiceBinds      *[]JavaComponentServiceBind           `json:"serviceBinds,omitempty"`
}

func (SpringBootAdminComponent) JavaComponentProperties added in v0.20240920.1135249

func (s SpringBootAdminComponent) JavaComponentProperties() BaseJavaComponentPropertiesImpl

func (SpringBootAdminComponent) MarshalJSON

func (s SpringBootAdminComponent) MarshalJSON() ([]byte, error)

type SpringCloudConfigComponent

type SpringCloudConfigComponent struct {
	ComponentType     JavaComponentType                     `json:"componentType"`
	Configurations    *[]JavaComponentConfigurationProperty `json:"configurations,omitempty"`
	ProvisioningState *JavaComponentProvisioningState       `json:"provisioningState,omitempty"`
	ServiceBinds      *[]JavaComponentServiceBind           `json:"serviceBinds,omitempty"`
}

func (SpringCloudConfigComponent) JavaComponentProperties added in v0.20240920.1135249

func (s SpringCloudConfigComponent) JavaComponentProperties() BaseJavaComponentPropertiesImpl

func (SpringCloudConfigComponent) MarshalJSON

func (s SpringCloudConfigComponent) MarshalJSON() ([]byte, error)

type SpringCloudEurekaComponent

type SpringCloudEurekaComponent struct {
	Ingress *JavaComponentIngress `json:"ingress,omitempty"`

	ComponentType     JavaComponentType                     `json:"componentType"`
	Configurations    *[]JavaComponentConfigurationProperty `json:"configurations,omitempty"`
	ProvisioningState *JavaComponentProvisioningState       `json:"provisioningState,omitempty"`
	ServiceBinds      *[]JavaComponentServiceBind           `json:"serviceBinds,omitempty"`
}

func (SpringCloudEurekaComponent) JavaComponentProperties added in v0.20240920.1135249

func (s SpringCloudEurekaComponent) JavaComponentProperties() BaseJavaComponentPropertiesImpl

func (SpringCloudEurekaComponent) MarshalJSON

func (s SpringCloudEurekaComponent) MarshalJSON() ([]byte, error)

type UpdateOperationResponse

type UpdateOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *JavaComponent
}

Jump to

Keyboard shortcuts

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