syncsets

package
v0.20240708.1080555 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2024 License: MPL-2.0 Imports: 11 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/redhatopenshift/2023-11-22/syncsets Documentation

The syncsets SDK allows for interaction with the Azure Resource Manager Service redhatopenshift (API Version 2023-11-22).

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/redhatopenshift/2023-11-22/syncsets"

Client Initialization

client := syncsets.NewSyncSetsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: SyncSetsClient.CreateOrUpdate

ctx := context.TODO()
id := syncsets.NewSyncSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "openShiftClusterValue", "syncSetValue")

payload := syncsets.SyncSet{
	// ...
}


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

Example Usage: SyncSetsClient.Delete

ctx := context.TODO()
id := syncsets.NewSyncSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "openShiftClusterValue", "syncSetValue")

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

Example Usage: SyncSetsClient.Get

ctx := context.TODO()
id := syncsets.NewSyncSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "openShiftClusterValue", "syncSetValue")

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: SyncSetsClient.List

ctx := context.TODO()
id := syncsets.NewOpenShiftClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "openShiftClusterValue")

// 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: SyncSetsClient.Update

ctx := context.TODO()
id := syncsets.NewSyncSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "openShiftClusterValue", "syncSetValue")

payload := syncsets.SyncSetUpdate{
	// ...
}


read, err := client.Update(ctx, id, payload)
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 ValidateOpenShiftClusterID

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

ValidateOpenShiftClusterID checks that 'input' can be parsed as a Open Shift Cluster ID

func ValidateSyncSetID

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

ValidateSyncSetID checks that 'input' can be parsed as a Sync Set ID

Types

type CreateOrUpdateOperationResponse

type CreateOrUpdateOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *SyncSet
}

type DeleteOperationResponse

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

type GetOperationResponse

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

type ListCompleteResult

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

type ListCustomPager added in v0.20240628.1153531

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        *[]SyncSet
}

type OpenShiftClusterId

type OpenShiftClusterId struct {
	SubscriptionId       string
	ResourceGroupName    string
	OpenShiftClusterName string
}

OpenShiftClusterId is a struct representing the Resource ID for a Open Shift Cluster

func NewOpenShiftClusterID

func NewOpenShiftClusterID(subscriptionId string, resourceGroupName string, openShiftClusterName string) OpenShiftClusterId

NewOpenShiftClusterID returns a new OpenShiftClusterId struct

func ParseOpenShiftClusterID

func ParseOpenShiftClusterID(input string) (*OpenShiftClusterId, error)

ParseOpenShiftClusterID parses 'input' into a OpenShiftClusterId

func ParseOpenShiftClusterIDInsensitively

func ParseOpenShiftClusterIDInsensitively(input string) (*OpenShiftClusterId, error)

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

func (*OpenShiftClusterId) FromParseResult

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

func (OpenShiftClusterId) ID

func (id OpenShiftClusterId) ID() string

ID returns the formatted Open Shift Cluster ID

func (OpenShiftClusterId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Open Shift Cluster ID

func (OpenShiftClusterId) String

func (id OpenShiftClusterId) String() string

String returns a human-readable description of this Open Shift Cluster ID

type SyncSet

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

type SyncSetId

type SyncSetId struct {
	SubscriptionId       string
	ResourceGroupName    string
	OpenShiftClusterName string
	SyncSetName          string
}

SyncSetId is a struct representing the Resource ID for a Sync Set

func NewSyncSetID

func NewSyncSetID(subscriptionId string, resourceGroupName string, openShiftClusterName string, syncSetName string) SyncSetId

NewSyncSetID returns a new SyncSetId struct

func ParseSyncSetID

func ParseSyncSetID(input string) (*SyncSetId, error)

ParseSyncSetID parses 'input' into a SyncSetId

func ParseSyncSetIDInsensitively

func ParseSyncSetIDInsensitively(input string) (*SyncSetId, error)

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

func (*SyncSetId) FromParseResult

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

func (SyncSetId) ID

func (id SyncSetId) ID() string

ID returns the formatted Sync Set ID

func (SyncSetId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Sync Set ID

func (SyncSetId) String

func (id SyncSetId) String() string

String returns a human-readable description of this Sync Set ID

type SyncSetOperationPredicate

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

func (SyncSetOperationPredicate) Matches

func (p SyncSetOperationPredicate) Matches(input SyncSet) bool

type SyncSetProperties

type SyncSetProperties struct {
	Resources *string `json:"resources,omitempty"`
}

type SyncSetUpdate

type SyncSetUpdate struct {
	Properties *SyncSetProperties     `json:"properties,omitempty"`
	SystemData *systemdata.SystemData `json:"systemData,omitempty"`
}

type SyncSetsClient

type SyncSetsClient struct {
	Client *resourcemanager.Client
}

func NewSyncSetsClientWithBaseURI

func NewSyncSetsClientWithBaseURI(sdkApi sdkEnv.Api) (*SyncSetsClient, error)

func (SyncSetsClient) CreateOrUpdate

func (c SyncSetsClient) CreateOrUpdate(ctx context.Context, id SyncSetId, input SyncSet) (result CreateOrUpdateOperationResponse, err error)

CreateOrUpdate ...

func (SyncSetsClient) Delete

func (c SyncSetsClient) Delete(ctx context.Context, id SyncSetId) (result DeleteOperationResponse, err error)

Delete ...

func (SyncSetsClient) Get

func (c SyncSetsClient) Get(ctx context.Context, id SyncSetId) (result GetOperationResponse, err error)

Get ...

func (SyncSetsClient) List

List ...

func (SyncSetsClient) ListComplete

ListComplete retrieves all the results into a single object

func (SyncSetsClient) ListCompleteMatchingPredicate

func (c SyncSetsClient) ListCompleteMatchingPredicate(ctx context.Context, id OpenShiftClusterId, predicate SyncSetOperationPredicate) (result ListCompleteResult, err error)

ListCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (SyncSetsClient) Update

func (c SyncSetsClient) Update(ctx context.Context, id SyncSetId, input SyncSetUpdate) (result UpdateOperationResponse, err error)

Update ...

type UpdateOperationResponse

type UpdateOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *SyncSet
}

Jump to

Keyboard shortcuts

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