sourcecontrolconfiguration

package
v0.20221216.1110338 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2022 License: MPL-2.0 Imports: 12 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-03-01/sourcecontrolconfiguration Documentation

The sourcecontrolconfiguration SDK allows for interaction with the Azure Resource Manager Service kubernetesconfiguration (API Version 2022-03-01).

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/kubernetesconfiguration/2022-03-01/sourcecontrolconfiguration"

Client Initialization

client := sourcecontrolconfiguration.NewSourceControlConfigurationClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: SourceControlConfigurationClient.CreateOrUpdate

ctx := context.TODO()
id := sourcecontrolconfiguration.NewSourceControlConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterRpValue", "clusterResourceValue", "clusterValue", "sourceControlConfigurationValue")

payload := sourcecontrolconfiguration.SourceControlConfiguration{
	// ...
}


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

ctx := context.TODO()
id := sourcecontrolconfiguration.NewSourceControlConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterRpValue", "clusterResourceValue", "clusterValue", "sourceControlConfigurationValue")

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

Example Usage: SourceControlConfigurationClient.Get

ctx := context.TODO()
id := sourcecontrolconfiguration.NewSourceControlConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterRpValue", "clusterResourceValue", "clusterValue", "sourceControlConfigurationValue")

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

ctx := context.TODO()
id := sourcecontrolconfiguration.NewProviderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterRpValue", "clusterResourceValue", "clusterValue")

// 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
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForComplianceStateType

func PossibleValuesForComplianceStateType() []string

func PossibleValuesForMessageLevelType

func PossibleValuesForMessageLevelType() []string

func PossibleValuesForOperatorScopeType

func PossibleValuesForOperatorScopeType() []string

func PossibleValuesForOperatorType

func PossibleValuesForOperatorType() []string

func PossibleValuesForProvisioningStateType

func PossibleValuesForProvisioningStateType() []string

func ValidateProviderID

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

ValidateProviderID checks that 'input' can be parsed as a Provider ID

func ValidateSourceControlConfigurationID

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

ValidateSourceControlConfigurationID checks that 'input' can be parsed as a Source Control Configuration ID

Types

type ComplianceStateType

type ComplianceStateType string
const (
	ComplianceStateTypeCompliant    ComplianceStateType = "Compliant"
	ComplianceStateTypeFailed       ComplianceStateType = "Failed"
	ComplianceStateTypeInstalled    ComplianceStateType = "Installed"
	ComplianceStateTypeNoncompliant ComplianceStateType = "Noncompliant"
	ComplianceStateTypePending      ComplianceStateType = "Pending"
)

type ComplianceStatus

type ComplianceStatus struct {
	ComplianceState   *ComplianceStateType `json:"complianceState,omitempty"`
	LastConfigApplied *string              `json:"lastConfigApplied,omitempty"`
	Message           *string              `json:"message,omitempty"`
	MessageLevel      *MessageLevelType    `json:"messageLevel,omitempty"`
}

func (*ComplianceStatus) GetLastConfigAppliedAsTime

func (o *ComplianceStatus) GetLastConfigAppliedAsTime() (*time.Time, error)

func (*ComplianceStatus) SetLastConfigAppliedAsTime

func (o *ComplianceStatus) SetLastConfigAppliedAsTime(input time.Time)

type CreateOrUpdateOperationResponse

type CreateOrUpdateOperationResponse struct {
	HttpResponse *http.Response
	Model        *SourceControlConfiguration
}

type DeleteOperationResponse

type DeleteOperationResponse struct {
	Poller       polling.LongRunningPoller
	HttpResponse *http.Response
}

type GetOperationResponse

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

type HelmOperatorProperties

type HelmOperatorProperties struct {
	ChartValues  *string `json:"chartValues,omitempty"`
	ChartVersion *string `json:"chartVersion,omitempty"`
}

type ListCompleteResult

type ListCompleteResult struct {
	Items []SourceControlConfiguration
}

type ListOperationResponse

type ListOperationResponse struct {
	HttpResponse *http.Response
	Model        *[]SourceControlConfiguration
	// 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 MessageLevelType

type MessageLevelType string
const (
	MessageLevelTypeError       MessageLevelType = "Error"
	MessageLevelTypeInformation MessageLevelType = "Information"
	MessageLevelTypeWarning     MessageLevelType = "Warning"
)

type OperatorScopeType

type OperatorScopeType string
const (
	OperatorScopeTypeCluster   OperatorScopeType = "cluster"
	OperatorScopeTypeNamespace OperatorScopeType = "namespace"
)

type OperatorType

type OperatorType string
const (
	OperatorTypeFlux OperatorType = "Flux"
)

type ProviderId

type ProviderId struct {
	SubscriptionId      string
	ResourceGroupName   string
	ClusterRp           string
	ClusterResourceName string
	ClusterName         string
}

ProviderId is a struct representing the Resource ID for a Provider

func NewProviderID

func NewProviderID(subscriptionId string, resourceGroupName string, clusterRp string, clusterResourceName string, clusterName string) ProviderId

NewProviderID returns a new ProviderId struct

func ParseProviderID

func ParseProviderID(input string) (*ProviderId, error)

ParseProviderID parses 'input' into a ProviderId

func ParseProviderIDInsensitively

func ParseProviderIDInsensitively(input string) (*ProviderId, error)

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

func (ProviderId) ID

func (id ProviderId) ID() string

ID returns the formatted Provider ID

func (ProviderId) Segments

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

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

func (ProviderId) String

func (id ProviderId) String() string

String returns a human-readable description of this Provider ID

type ProvisioningStateType

type ProvisioningStateType string
const (
	ProvisioningStateTypeAccepted  ProvisioningStateType = "Accepted"
	ProvisioningStateTypeDeleting  ProvisioningStateType = "Deleting"
	ProvisioningStateTypeFailed    ProvisioningStateType = "Failed"
	ProvisioningStateTypeRunning   ProvisioningStateType = "Running"
	ProvisioningStateTypeSucceeded ProvisioningStateType = "Succeeded"
)

type SourceControlConfiguration

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

type SourceControlConfigurationClient

type SourceControlConfigurationClient struct {
	Client autorest.Client
	// contains filtered or unexported fields
}

func NewSourceControlConfigurationClientWithBaseURI

func NewSourceControlConfigurationClientWithBaseURI(endpoint string) SourceControlConfigurationClient

func (SourceControlConfigurationClient) CreateOrUpdate

CreateOrUpdate ...

func (SourceControlConfigurationClient) Delete

Delete ...

func (SourceControlConfigurationClient) DeleteThenPoll

DeleteThenPoll performs Delete then polls until it's completed

func (SourceControlConfigurationClient) Get

Get ...

func (SourceControlConfigurationClient) List

List ...

func (SourceControlConfigurationClient) ListComplete

ListComplete retrieves all of the results into a single object

func (SourceControlConfigurationClient) ListCompleteMatchingPredicate

ListCompleteMatchingPredicate retrieves all of the results and then applied the predicate

type SourceControlConfigurationId

type SourceControlConfigurationId struct {
	SubscriptionId                 string
	ResourceGroupName              string
	ClusterRp                      string
	ClusterResourceName            string
	ClusterName                    string
	SourceControlConfigurationName string
}

SourceControlConfigurationId is a struct representing the Resource ID for a Source Control Configuration

func NewSourceControlConfigurationID

func NewSourceControlConfigurationID(subscriptionId string, resourceGroupName string, clusterRp string, clusterResourceName string, clusterName string, sourceControlConfigurationName string) SourceControlConfigurationId

NewSourceControlConfigurationID returns a new SourceControlConfigurationId struct

func ParseSourceControlConfigurationID

func ParseSourceControlConfigurationID(input string) (*SourceControlConfigurationId, error)

ParseSourceControlConfigurationID parses 'input' into a SourceControlConfigurationId

func ParseSourceControlConfigurationIDInsensitively

func ParseSourceControlConfigurationIDInsensitively(input string) (*SourceControlConfigurationId, error)

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

func (SourceControlConfigurationId) ID

ID returns the formatted Source Control Configuration ID

func (SourceControlConfigurationId) Segments

Segments returns a slice of Resource ID Segments which comprise this Source Control Configuration ID

func (SourceControlConfigurationId) String

String returns a human-readable description of this Source Control Configuration ID

type SourceControlConfigurationOperationPredicate

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

func (SourceControlConfigurationOperationPredicate) Matches

type SourceControlConfigurationProperties

type SourceControlConfigurationProperties struct {
	ComplianceStatus               *ComplianceStatus       `json:"complianceStatus,omitempty"`
	ConfigurationProtectedSettings *map[string]string      `json:"configurationProtectedSettings,omitempty"`
	EnableHelmOperator             *bool                   `json:"enableHelmOperator,omitempty"`
	HelmOperatorProperties         *HelmOperatorProperties `json:"helmOperatorProperties,omitempty"`
	OperatorInstanceName           *string                 `json:"operatorInstanceName,omitempty"`
	OperatorNamespace              *string                 `json:"operatorNamespace,omitempty"`
	OperatorParams                 *string                 `json:"operatorParams,omitempty"`
	OperatorScope                  *OperatorScopeType      `json:"operatorScope,omitempty"`
	OperatorType                   *OperatorType           `json:"operatorType,omitempty"`
	ProvisioningState              *ProvisioningStateType  `json:"provisioningState,omitempty"`
	RepositoryPublicKey            *string                 `json:"repositoryPublicKey,omitempty"`
	RepositoryUrl                  *string                 `json:"repositoryUrl,omitempty"`
	SshKnownHostsContents          *string                 `json:"sshKnownHostsContents,omitempty"`
}

Jump to

Keyboard shortcuts

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