sourcecontrolconfiguration

package
v0.20241126.1723 Latest Latest
Warning

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

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

README

github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2023-05-01/sourcecontrolconfiguration Documentation

The sourcecontrolconfiguration SDK allows for interaction with Azure Resource Manager kubernetesconfiguration (API Version 2023-05-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-helpers/resourcemanager/commonids"
import "github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2023-05-01/sourcecontrolconfiguration"

Client Initialization

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

Example Usage: SourceControlConfigurationClient.CreateOrUpdate

ctx := context.TODO()
id := sourcecontrolconfiguration.NewScopedSourceControlConfigurationID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "sourceControlConfigurationName")

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.NewScopedSourceControlConfigurationID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "sourceControlConfigurationName")

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

Example Usage: SourceControlConfigurationClient.Get

ctx := context.TODO()
id := sourcecontrolconfiguration.NewScopedSourceControlConfigurationID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "sourceControlConfigurationName")

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 := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group")

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

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

ValidateScopedSourceControlConfigurationID checks that 'input' can be parsed as a Scoped 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"
)

func (*ComplianceStateType) UnmarshalJSON

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

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
	OData        *odata.OData
	Model        *SourceControlConfiguration
}

type DeleteOperationResponse

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

type GetOperationResponse

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

type HelmOperatorProperties

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

type ListCompleteResult

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

type ListCustomPager

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

type MessageLevelType

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

func (*MessageLevelType) UnmarshalJSON

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

type OperatorScopeType

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

func (*OperatorScopeType) UnmarshalJSON

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

type OperatorType

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

func (*OperatorType) UnmarshalJSON

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

type ProvisioningStateType

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

func (*ProvisioningStateType) UnmarshalJSON

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

type ScopedSourceControlConfigurationId

type ScopedSourceControlConfigurationId struct {
	Scope                          string
	SourceControlConfigurationName string
}

ScopedSourceControlConfigurationId is a struct representing the Resource ID for a Scoped Source Control Configuration

func NewScopedSourceControlConfigurationID

func NewScopedSourceControlConfigurationID(scope string, sourceControlConfigurationName string) ScopedSourceControlConfigurationId

NewScopedSourceControlConfigurationID returns a new ScopedSourceControlConfigurationId struct

func ParseScopedSourceControlConfigurationID

func ParseScopedSourceControlConfigurationID(input string) (*ScopedSourceControlConfigurationId, error)

ParseScopedSourceControlConfigurationID parses 'input' into a ScopedSourceControlConfigurationId

func ParseScopedSourceControlConfigurationIDInsensitively

func ParseScopedSourceControlConfigurationIDInsensitively(input string) (*ScopedSourceControlConfigurationId, error)

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

func (*ScopedSourceControlConfigurationId) FromParseResult

func (ScopedSourceControlConfigurationId) ID

ID returns the formatted Scoped Source Control Configuration ID

func (ScopedSourceControlConfigurationId) Segments

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

func (ScopedSourceControlConfigurationId) String

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

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 *resourcemanager.Client
}

func NewSourceControlConfigurationClientWithBaseURI

func NewSourceControlConfigurationClientWithBaseURI(sdkApi sdkEnv.Api) (*SourceControlConfigurationClient, error)

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

func (SourceControlConfigurationClient) ListCompleteMatchingPredicate

ListCompleteMatchingPredicate retrieves all the results and then applies the predicate

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