syncsets

package
v0.20230224.1071134 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2023 License: MPL-2.0 Imports: 9 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/redhatopenshift/2022-09-04/syncsets Documentation

The syncsets SDK allows for interaction with the Azure Resource Manager Service redhatopenshift (API Version 2022-09-04).

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/2022-09-04/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
	Model        *SyncSet
}

type DeleteOperationResponse

type DeleteOperationResponse struct {
	HttpResponse *http.Response
}

type GetOperationResponse

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

type ListCompleteResult

type ListCompleteResult struct {
	Items []SyncSet
}

type ListOperationResponse

type ListOperationResponse struct {
	HttpResponse *http.Response
	Model        *[]SyncSet
	// contains filtered or unexported fields
}

func (ListOperationResponse) HasMore

func (r ListOperationResponse) HasMore() bool

func (ListOperationResponse) LoadMore

func (r ListOperationResponse) LoadMore(ctx context.Context) (resp ListOperationResponse, err error)

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) 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) 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 autorest.Client
	// contains filtered or unexported fields
}

func NewSyncSetsClientWithBaseURI

func NewSyncSetsClientWithBaseURI(endpoint string) SyncSetsClient

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 of the results into a single object

func (SyncSetsClient) ListCompleteMatchingPredicate

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

ListCompleteMatchingPredicate retrieves all of the results and then applied 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
	Model        *SyncSet
}

Jump to

Keyboard shortcuts

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