syncidentityproviders

package
v0.20240715.1103416 Latest Latest
Warning

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

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

README

github.com/hashicorp/go-azure-sdk/resource-manager/redhatopenshift/2023-09-04/syncidentityproviders Documentation

The syncidentityproviders SDK allows for interaction with the Azure Resource Manager Service redhatopenshift (API Version 2023-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/2023-09-04/syncidentityproviders"

Client Initialization

client := syncidentityproviders.NewSyncIdentityProvidersClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: SyncIdentityProvidersClient.CreateOrUpdate

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

payload := syncidentityproviders.SyncIdentityProvider{
	// ...
}


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: SyncIdentityProvidersClient.Delete

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

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: SyncIdentityProvidersClient.Get

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

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

ctx := context.TODO()
id := syncidentityproviders.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: SyncIdentityProvidersClient.Update

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

payload := syncidentityproviders.SyncIdentityProviderUpdate{
	// ...
}


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 ValidateSyncIdentityProviderID

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

ValidateSyncIdentityProviderID checks that 'input' can be parsed as a Sync Identity Provider ID

Types

type CreateOrUpdateOperationResponse

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

type DeleteOperationResponse

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

type GetOperationResponse

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

type ListCompleteResult

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

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

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 SyncIdentityProvider

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

type SyncIdentityProviderId

type SyncIdentityProviderId struct {
	SubscriptionId           string
	ResourceGroupName        string
	OpenShiftClusterName     string
	SyncIdentityProviderName string
}

SyncIdentityProviderId is a struct representing the Resource ID for a Sync Identity Provider

func NewSyncIdentityProviderID

func NewSyncIdentityProviderID(subscriptionId string, resourceGroupName string, openShiftClusterName string, syncIdentityProviderName string) SyncIdentityProviderId

NewSyncIdentityProviderID returns a new SyncIdentityProviderId struct

func ParseSyncIdentityProviderID

func ParseSyncIdentityProviderID(input string) (*SyncIdentityProviderId, error)

ParseSyncIdentityProviderID parses 'input' into a SyncIdentityProviderId

func ParseSyncIdentityProviderIDInsensitively

func ParseSyncIdentityProviderIDInsensitively(input string) (*SyncIdentityProviderId, error)

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

func (*SyncIdentityProviderId) FromParseResult

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

func (SyncIdentityProviderId) ID

ID returns the formatted Sync Identity Provider ID

func (SyncIdentityProviderId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Sync Identity Provider ID

func (SyncIdentityProviderId) String

func (id SyncIdentityProviderId) String() string

String returns a human-readable description of this Sync Identity Provider ID

type SyncIdentityProviderOperationPredicate

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

func (SyncIdentityProviderOperationPredicate) Matches

type SyncIdentityProviderProperties

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

type SyncIdentityProviderUpdate

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

type SyncIdentityProvidersClient

type SyncIdentityProvidersClient struct {
	Client *resourcemanager.Client
}

func NewSyncIdentityProvidersClientWithBaseURI

func NewSyncIdentityProvidersClientWithBaseURI(sdkApi sdkEnv.Api) (*SyncIdentityProvidersClient, error)

func (SyncIdentityProvidersClient) CreateOrUpdate

CreateOrUpdate ...

func (SyncIdentityProvidersClient) Delete

Delete ...

func (SyncIdentityProvidersClient) Get

Get ...

func (SyncIdentityProvidersClient) List

List ...

func (SyncIdentityProvidersClient) ListComplete

ListComplete retrieves all the results into a single object

func (SyncIdentityProvidersClient) ListCompleteMatchingPredicate

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

ListCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (SyncIdentityProvidersClient) Update

Update ...

type UpdateOperationResponse

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

Jump to

Keyboard shortcuts

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