materializedviewsbuilder

package
v0.20241111.1164443 Latest Latest
Warning

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

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

README

github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-08-15/materializedviewsbuilder Documentation

The materializedviewsbuilder SDK allows for interaction with Azure Resource Manager cosmosdb (API Version 2024-08-15).

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/cosmosdb/2024-08-15/materializedviewsbuilder"

Client Initialization

client := materializedviewsbuilder.NewMaterializedViewsBuilderClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: MaterializedViewsBuilderClient.ServiceCreate

ctx := context.TODO()
id := materializedviewsbuilder.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountName", "serviceName")

payload := materializedviewsbuilder.ServiceResourceCreateUpdateParameters{
	// ...
}


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

Example Usage: MaterializedViewsBuilderClient.ServiceDelete

ctx := context.TODO()
id := materializedviewsbuilder.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountName", "serviceName")

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

Example Usage: MaterializedViewsBuilderClient.ServiceGet

ctx := context.TODO()
id := materializedviewsbuilder.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountName", "serviceName")

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForDedicatedGatewayType

func PossibleValuesForDedicatedGatewayType() []string

func PossibleValuesForServiceSize

func PossibleValuesForServiceSize() []string

func PossibleValuesForServiceStatus

func PossibleValuesForServiceStatus() []string

func PossibleValuesForServiceType

func PossibleValuesForServiceType() []string

func ValidateServiceID

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

ValidateServiceID checks that 'input' can be parsed as a Service ID

Types

type BaseServiceResourceCreateUpdatePropertiesImpl

type BaseServiceResourceCreateUpdatePropertiesImpl struct {
	InstanceCount *int64       `json:"instanceCount,omitempty"`
	InstanceSize  *ServiceSize `json:"instanceSize,omitempty"`
	ServiceType   ServiceType  `json:"serviceType"`
}

func (BaseServiceResourceCreateUpdatePropertiesImpl) ServiceResourceCreateUpdateProperties

type BaseServiceResourcePropertiesImpl

type BaseServiceResourcePropertiesImpl struct {
	CreationTime  *string        `json:"creationTime,omitempty"`
	InstanceCount *int64         `json:"instanceCount,omitempty"`
	InstanceSize  *ServiceSize   `json:"instanceSize,omitempty"`
	ServiceType   ServiceType    `json:"serviceType"`
	Status        *ServiceStatus `json:"status,omitempty"`
}

func (BaseServiceResourcePropertiesImpl) ServiceResourceProperties

type DataTransferServiceResourceCreateUpdateProperties

type DataTransferServiceResourceCreateUpdateProperties struct {
	InstanceCount *int64       `json:"instanceCount,omitempty"`
	InstanceSize  *ServiceSize `json:"instanceSize,omitempty"`
	ServiceType   ServiceType  `json:"serviceType"`
}

func (DataTransferServiceResourceCreateUpdateProperties) MarshalJSON

func (DataTransferServiceResourceCreateUpdateProperties) ServiceResourceCreateUpdateProperties

type DataTransferServiceResourceProperties

type DataTransferServiceResourceProperties struct {
	Locations *[]RegionalServiceResource `json:"locations,omitempty"`

	CreationTime  *string        `json:"creationTime,omitempty"`
	InstanceCount *int64         `json:"instanceCount,omitempty"`
	InstanceSize  *ServiceSize   `json:"instanceSize,omitempty"`
	ServiceType   ServiceType    `json:"serviceType"`
	Status        *ServiceStatus `json:"status,omitempty"`
}

func (*DataTransferServiceResourceProperties) GetCreationTimeAsTime

func (o *DataTransferServiceResourceProperties) GetCreationTimeAsTime() (*time.Time, error)

func (DataTransferServiceResourceProperties) MarshalJSON

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

func (DataTransferServiceResourceProperties) ServiceResourceProperties

func (*DataTransferServiceResourceProperties) SetCreationTimeAsTime

func (o *DataTransferServiceResourceProperties) SetCreationTimeAsTime(input time.Time)

type DedicatedGatewayType

type DedicatedGatewayType string
const (
	DedicatedGatewayTypeDistributedQuery DedicatedGatewayType = "DistributedQuery"
	DedicatedGatewayTypeIntegratedCache  DedicatedGatewayType = "IntegratedCache"
)

func (*DedicatedGatewayType) UnmarshalJSON

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

type GraphAPIComputeRegionalServiceResource

type GraphAPIComputeRegionalServiceResource struct {
	GraphApiComputeEndpoint *string        `json:"graphApiComputeEndpoint,omitempty"`
	Location                *string        `json:"location,omitempty"`
	Name                    *string        `json:"name,omitempty"`
	Status                  *ServiceStatus `json:"status,omitempty"`
}

type GraphAPIComputeServiceResourceCreateUpdateProperties

type GraphAPIComputeServiceResourceCreateUpdateProperties struct {
	InstanceCount *int64       `json:"instanceCount,omitempty"`
	InstanceSize  *ServiceSize `json:"instanceSize,omitempty"`
	ServiceType   ServiceType  `json:"serviceType"`
}

func (GraphAPIComputeServiceResourceCreateUpdateProperties) MarshalJSON

func (GraphAPIComputeServiceResourceCreateUpdateProperties) ServiceResourceCreateUpdateProperties

type GraphAPIComputeServiceResourceProperties

type GraphAPIComputeServiceResourceProperties struct {
	GraphApiComputeEndpoint *string                                   `json:"graphApiComputeEndpoint,omitempty"`
	Locations               *[]GraphAPIComputeRegionalServiceResource `json:"locations,omitempty"`

	CreationTime  *string        `json:"creationTime,omitempty"`
	InstanceCount *int64         `json:"instanceCount,omitempty"`
	InstanceSize  *ServiceSize   `json:"instanceSize,omitempty"`
	ServiceType   ServiceType    `json:"serviceType"`
	Status        *ServiceStatus `json:"status,omitempty"`
}

func (*GraphAPIComputeServiceResourceProperties) GetCreationTimeAsTime

func (o *GraphAPIComputeServiceResourceProperties) GetCreationTimeAsTime() (*time.Time, error)

func (GraphAPIComputeServiceResourceProperties) MarshalJSON

func (GraphAPIComputeServiceResourceProperties) ServiceResourceProperties

func (*GraphAPIComputeServiceResourceProperties) SetCreationTimeAsTime

func (o *GraphAPIComputeServiceResourceProperties) SetCreationTimeAsTime(input time.Time)

type MaterializedViewsBuilderClient

type MaterializedViewsBuilderClient struct {
	Client *resourcemanager.Client
}

func NewMaterializedViewsBuilderClientWithBaseURI

func NewMaterializedViewsBuilderClientWithBaseURI(sdkApi sdkEnv.Api) (*MaterializedViewsBuilderClient, error)

func (MaterializedViewsBuilderClient) ServiceCreate

ServiceCreate ...

func (MaterializedViewsBuilderClient) ServiceCreateThenPoll

ServiceCreateThenPoll performs ServiceCreate then polls until it's completed

func (MaterializedViewsBuilderClient) ServiceDelete

ServiceDelete ...

func (MaterializedViewsBuilderClient) ServiceDeleteThenPoll

func (c MaterializedViewsBuilderClient) ServiceDeleteThenPoll(ctx context.Context, id ServiceId) error

ServiceDeleteThenPoll performs ServiceDelete then polls until it's completed

func (MaterializedViewsBuilderClient) ServiceGet

ServiceGet ...

type MaterializedViewsBuilderServiceResourceCreateUpdateProperties

type MaterializedViewsBuilderServiceResourceCreateUpdateProperties struct {
	InstanceCount *int64       `json:"instanceCount,omitempty"`
	InstanceSize  *ServiceSize `json:"instanceSize,omitempty"`
	ServiceType   ServiceType  `json:"serviceType"`
}

func (MaterializedViewsBuilderServiceResourceCreateUpdateProperties) MarshalJSON

func (MaterializedViewsBuilderServiceResourceCreateUpdateProperties) ServiceResourceCreateUpdateProperties

type MaterializedViewsBuilderServiceResourceProperties

type MaterializedViewsBuilderServiceResourceProperties struct {
	Locations *[]RegionalServiceResource `json:"locations,omitempty"`

	CreationTime  *string        `json:"creationTime,omitempty"`
	InstanceCount *int64         `json:"instanceCount,omitempty"`
	InstanceSize  *ServiceSize   `json:"instanceSize,omitempty"`
	ServiceType   ServiceType    `json:"serviceType"`
	Status        *ServiceStatus `json:"status,omitempty"`
}

func (*MaterializedViewsBuilderServiceResourceProperties) GetCreationTimeAsTime

func (o *MaterializedViewsBuilderServiceResourceProperties) GetCreationTimeAsTime() (*time.Time, error)

func (MaterializedViewsBuilderServiceResourceProperties) MarshalJSON

func (MaterializedViewsBuilderServiceResourceProperties) ServiceResourceProperties

func (*MaterializedViewsBuilderServiceResourceProperties) SetCreationTimeAsTime

func (o *MaterializedViewsBuilderServiceResourceProperties) SetCreationTimeAsTime(input time.Time)

type RawServiceResourceCreateUpdatePropertiesImpl

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

RawServiceResourceCreateUpdatePropertiesImpl 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 (RawServiceResourceCreateUpdatePropertiesImpl) ServiceResourceCreateUpdateProperties

type RawServiceResourcePropertiesImpl

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

RawServiceResourcePropertiesImpl 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 (RawServiceResourcePropertiesImpl) ServiceResourceProperties

type RegionalServiceResource

type RegionalServiceResource struct {
	Location *string        `json:"location,omitempty"`
	Name     *string        `json:"name,omitempty"`
	Status   *ServiceStatus `json:"status,omitempty"`
}

type ServiceCreateOperationResponse

type ServiceCreateOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ServiceResource
}

type ServiceDeleteOperationResponse

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

type ServiceGetOperationResponse

type ServiceGetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ServiceResource
}

type ServiceId

type ServiceId struct {
	SubscriptionId      string
	ResourceGroupName   string
	DatabaseAccountName string
	ServiceName         string
}

ServiceId is a struct representing the Resource ID for a Service

func NewServiceID

func NewServiceID(subscriptionId string, resourceGroupName string, databaseAccountName string, serviceName string) ServiceId

NewServiceID returns a new ServiceId struct

func ParseServiceID

func ParseServiceID(input string) (*ServiceId, error)

ParseServiceID parses 'input' into a ServiceId

func ParseServiceIDInsensitively

func ParseServiceIDInsensitively(input string) (*ServiceId, error)

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

func (*ServiceId) FromParseResult

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

func (ServiceId) ID

func (id ServiceId) ID() string

ID returns the formatted Service ID

func (ServiceId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Service ID

func (ServiceId) String

func (id ServiceId) String() string

String returns a human-readable description of this Service ID

type ServiceResource

type ServiceResource struct {
	Id         *string                   `json:"id,omitempty"`
	Name       *string                   `json:"name,omitempty"`
	Properties ServiceResourceProperties `json:"properties"`
	Type       *string                   `json:"type,omitempty"`
}

func (*ServiceResource) UnmarshalJSON

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

type ServiceResourceCreateUpdateParameters

type ServiceResourceCreateUpdateParameters struct {
	Properties ServiceResourceCreateUpdateProperties `json:"properties"`
}

func (*ServiceResourceCreateUpdateParameters) UnmarshalJSON

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

type ServiceResourceCreateUpdateProperties

type ServiceResourceCreateUpdateProperties interface {
	ServiceResourceCreateUpdateProperties() BaseServiceResourceCreateUpdatePropertiesImpl
}

func UnmarshalServiceResourceCreateUpdatePropertiesImplementation

func UnmarshalServiceResourceCreateUpdatePropertiesImplementation(input []byte) (ServiceResourceCreateUpdateProperties, error)

type ServiceResourceProperties

type ServiceResourceProperties interface {
	ServiceResourceProperties() BaseServiceResourcePropertiesImpl
}

func UnmarshalServiceResourcePropertiesImplementation

func UnmarshalServiceResourcePropertiesImplementation(input []byte) (ServiceResourceProperties, error)

type ServiceSize

type ServiceSize string
const (
	ServiceSizeCosmosPointDEights  ServiceSize = "Cosmos.D8s"
	ServiceSizeCosmosPointDFours   ServiceSize = "Cosmos.D4s"
	ServiceSizeCosmosPointDOneSixs ServiceSize = "Cosmos.D16s"
)

func (*ServiceSize) UnmarshalJSON

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

type ServiceStatus

type ServiceStatus string
const (
	ServiceStatusCreating ServiceStatus = "Creating"
	ServiceStatusDeleting ServiceStatus = "Deleting"
	ServiceStatusError    ServiceStatus = "Error"
	ServiceStatusRunning  ServiceStatus = "Running"
	ServiceStatusStopped  ServiceStatus = "Stopped"
	ServiceStatusUpdating ServiceStatus = "Updating"
)

func (*ServiceStatus) UnmarshalJSON

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

type ServiceType

type ServiceType string
const (
	ServiceTypeDataTransfer             ServiceType = "DataTransfer"
	ServiceTypeGraphAPICompute          ServiceType = "GraphAPICompute"
	ServiceTypeMaterializedViewsBuilder ServiceType = "MaterializedViewsBuilder"
	ServiceTypeSqlDedicatedGateway      ServiceType = "SqlDedicatedGateway"
)

func (*ServiceType) UnmarshalJSON

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

type SqlDedicatedGatewayRegionalServiceResource

type SqlDedicatedGatewayRegionalServiceResource struct {
	Location                    *string        `json:"location,omitempty"`
	Name                        *string        `json:"name,omitempty"`
	SqlDedicatedGatewayEndpoint *string        `json:"sqlDedicatedGatewayEndpoint,omitempty"`
	Status                      *ServiceStatus `json:"status,omitempty"`
}

type SqlDedicatedGatewayServiceResourceCreateUpdateProperties

type SqlDedicatedGatewayServiceResourceCreateUpdateProperties struct {
	DedicatedGatewayType *DedicatedGatewayType `json:"dedicatedGatewayType,omitempty"`

	InstanceCount *int64       `json:"instanceCount,omitempty"`
	InstanceSize  *ServiceSize `json:"instanceSize,omitempty"`
	ServiceType   ServiceType  `json:"serviceType"`
}

func (SqlDedicatedGatewayServiceResourceCreateUpdateProperties) MarshalJSON

func (SqlDedicatedGatewayServiceResourceCreateUpdateProperties) ServiceResourceCreateUpdateProperties

type SqlDedicatedGatewayServiceResourceProperties

type SqlDedicatedGatewayServiceResourceProperties struct {
	DedicatedGatewayType        *DedicatedGatewayType                         `json:"dedicatedGatewayType,omitempty"`
	Locations                   *[]SqlDedicatedGatewayRegionalServiceResource `json:"locations,omitempty"`
	SqlDedicatedGatewayEndpoint *string                                       `json:"sqlDedicatedGatewayEndpoint,omitempty"`

	CreationTime  *string        `json:"creationTime,omitempty"`
	InstanceCount *int64         `json:"instanceCount,omitempty"`
	InstanceSize  *ServiceSize   `json:"instanceSize,omitempty"`
	ServiceType   ServiceType    `json:"serviceType"`
	Status        *ServiceStatus `json:"status,omitempty"`
}

func (*SqlDedicatedGatewayServiceResourceProperties) GetCreationTimeAsTime

func (o *SqlDedicatedGatewayServiceResourceProperties) GetCreationTimeAsTime() (*time.Time, error)

func (SqlDedicatedGatewayServiceResourceProperties) MarshalJSON

func (SqlDedicatedGatewayServiceResourceProperties) ServiceResourceProperties

func (*SqlDedicatedGatewayServiceResourceProperties) SetCreationTimeAsTime

func (o *SqlDedicatedGatewayServiceResourceProperties) SetCreationTimeAsTime(input time.Time)

Jump to

Keyboard shortcuts

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