v1beta1

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package v1beta1 contains the input type for this Function +kubebuilder:object:generate=true +groupName=azresourcegraph.fn.crossplane.io +versionName=v1alpha1

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Identity added in v0.11.0

type Identity struct {
	// Type of credentials used to authenticate to the Microsoft Graph API.
	Type IdentityType `json:"type"`
}

Identity defines the type of identity used for authentication to the Microsoft Graph API.

func (*Identity) DeepCopy added in v0.11.0

func (in *Identity) DeepCopy() *Identity

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Identity.

func (*Identity) DeepCopyInto added in v0.11.0

func (in *Identity) DeepCopyInto(out *Identity)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type IdentityType added in v0.11.0

type IdentityType string

IdentityType controls type of credentials to use for authentication to the Microsoft Graph API. Supported values: AzureServicePrincipalCredentials;AzureWorkloadIdentityCredentials

const (
	// IdentityTypeAzureServicePrincipalCredentials defines default IdentityType which uses client id/client secret pair for authentication
	IdentityTypeAzureServicePrincipalCredentials IdentityType = "AzureServicePrincipalCredentials"
	// IdentityTypeAzureWorkloadIdentityCredentials defines default IdentityType which uses workload identity credentials for authentication
	IdentityTypeAzureWorkloadIdentityCredentials IdentityType = "AzureWorkloadIdentityCredentials"
)

type Input

type Input struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	// Query to Azure Resource Graph API
	// +optional
	Query string `json:"query,omitempty"`

	// Reference to retrieve the query string (e.g., from status or context)
	// Overrides Query field if used
	// +optional
	QueryRef *string `json:"queryRef,omitempty"`

	// Azure management groups against which to execute the query. Example: [ 'mg1', 'mg2' ]
	// +optional
	ManagementGroups []*string `json:"managementGroups,omitempty"`

	// Azure subscriptions against which to execute the query. Example: [ 'sub1','sub2' ]
	// +optional
	Subscriptions []*string `json:"subscriptions,omitempty"`

	// Reference to retrieve the subscriptions (e.g., from status or context)
	// Overrides Subscriptions field if used
	// +optional
	SubscriptionsRef *string `json:"subscriptionsRef,omitempty"`

	// Target where to store the Query Result
	Target string `json:"target"`

	// SkipQueryWhenTargetHasData controls whether to skip the query when the target already has data
	// Default is false to ensure continuous reconciliation
	// +optional
	SkipQueryWhenTargetHasData *bool `json:"skipQueryWhenTargetHasData,omitempty"`

	// QueryIntervalMinutes specifies the minimum interval between queries in minutes
	// Used to prevent throttling and handle partial data scenarios
	// Default is 0 (no interval limiting)
	// +optional
	QueryIntervalMinutes *int `json:"queryIntervalMinutes,omitempty"`

	// Identity defines the type of identity used for authentication to the Microsoft Graph API.
	// +optional
	Identity *Identity `json:"identity,omitempty"`
}

Input can be used to provide input to this Function. +kubebuilder:object:root=true +kubebuilder:storageversion +kubebuilder:resource:categories=crossplane

func (*Input) DeepCopy

func (in *Input) DeepCopy() *Input

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Input.

func (*Input) DeepCopyInto

func (in *Input) DeepCopyInto(out *Input)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Input) DeepCopyObject

func (in *Input) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

Jump to

Keyboard shortcuts

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