v1alpha1api20200601

package
v2.0.0-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

+kubebuilder:object:generate=true All object properties are optional by default, this will be overridden when needed: +kubebuilder:validation:Optional +groupName=microsoft.resources.azure.com

Copyright (c) Microsoft Corporation. Licensed under the MIT license.

Copyright (c) Microsoft Corporation. Licensed under the MIT license.

Index

Constants

View Source
const ResourceGroupTypeResourceGroup = ResourceGroupType("Microsoft.Resources/resourceGroups")

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "microsoft.resources.azure.com", Version: "v1alpha1api20200601"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type ResourceGroup

type ResourceGroup struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              ResourceGroupSpec   `json:"spec,omitempty"`
	Status            ResourceGroupStatus `json:"status,omitempty"`
}

+kubebuilder:object:root=true +kubebuilder:subresource:status +kubebuilder:printcolumn:name="Ready",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="Reason",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].reason" +kubebuilder:printcolumn:name="Message",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].message" +kubebuilder:storageversion

func (*ResourceGroup) AzureName

func (rg *ResourceGroup) AzureName() string

AzureName returns the Azure name of the resource

func (*ResourceGroup) DeepCopy

func (in *ResourceGroup) DeepCopy() *ResourceGroup

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

func (*ResourceGroup) DeepCopyInto

func (in *ResourceGroup) DeepCopyInto(out *ResourceGroup)

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

func (*ResourceGroup) DeepCopyObject

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

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

func (*ResourceGroup) Default

func (rg *ResourceGroup) Default()

Default defaults the Azure name of the resource to the Kubernetes name

func (*ResourceGroup) GetAPIVersion

func (rg *ResourceGroup) GetAPIVersion() string

GetAPIVersion returns the API version of the resource. This is always "2020-06-01"

func (*ResourceGroup) GetConditions

func (rg *ResourceGroup) GetConditions() conditions.Conditions

GetConditions returns the conditions of the resource

func (*ResourceGroup) GetResourceKind

func (rg *ResourceGroup) GetResourceKind() genruntime.ResourceKind

GetResourceKind returns the kind of the resource

func (*ResourceGroup) GetSpec

GetSpec returns the specification of this resource

func (*ResourceGroup) GetStatus

func (rg *ResourceGroup) GetStatus() genruntime.ConvertibleStatus

GetStatus returns the status of this resource

func (*ResourceGroup) GetType

func (rg *ResourceGroup) GetType() string

GetType returns the ARM Type of the resource. This is always "Microsoft.Resources/resourceGroups"

func (*ResourceGroup) Location

func (rg *ResourceGroup) Location() string

func (*ResourceGroup) NewEmptyStatus

func (rg *ResourceGroup) NewEmptyStatus() genruntime.ConvertibleStatus

NewEmptyStatus returns a new empty (blank) status

func (*ResourceGroup) Owner

Owner returns the ResourceReference of the owner, or nil if there is no owner

func (*ResourceGroup) SetConditions

func (rg *ResourceGroup) SetConditions(conditions conditions.Conditions)

SetConditions sets the conditions on the resource status

func (*ResourceGroup) SetStatus

func (rg *ResourceGroup) SetStatus(status genruntime.ConvertibleStatus) error

SetStatus sets the status of this resource

type ResourceGroupList

type ResourceGroupList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []ResourceGroup `json:"items"`
}

+kubebuilder:object:root=true

func (*ResourceGroupList) DeepCopy

func (in *ResourceGroupList) DeepCopy() *ResourceGroupList

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

func (*ResourceGroupList) DeepCopyInto

func (in *ResourceGroupList) DeepCopyInto(out *ResourceGroupList)

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

func (*ResourceGroupList) DeepCopyObject

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

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

type ResourceGroupSpec

type ResourceGroupSpec struct {
	// AzureName: The name of the resource in Azure. This is often the same as the name
	// of the resource in Kubernetes but it doesn't have to be.
	AzureName string `json:"azureName"`

	// +kubebuilder:validation:Required
	// Location is the Azure location for the group (eg westus2, southcentralus, etc...)
	Location string `json:"location"`

	// ManagedBy is the management group responsible for managing this group
	ManagedBy string `json:"managedBy,omitempty"`

	// Tags are user defined key value pairs
	Tags map[string]string `json:"tags,omitempty"`
}

func (*ResourceGroupSpec) ConvertSpecFrom

func (spec *ResourceGroupSpec) ConvertSpecFrom(source genruntime.ConvertibleSpec) error

ConvertSpecFrom copies information from the supplied source onto the current instance

func (*ResourceGroupSpec) ConvertSpecTo

func (spec *ResourceGroupSpec) ConvertSpecTo(destination genruntime.ConvertibleSpec) error

ConvertSpecTo copies information from the current instance over to the supplied destination

func (*ResourceGroupSpec) ConvertToARM

func (spec *ResourceGroupSpec) ConvertToARM(resolved genruntime.ConvertToARMResolvedDetails) (interface{}, error)

ConvertToARM converts from a Kubernetes CRD object to an ARM object

func (*ResourceGroupSpec) DeepCopy

func (in *ResourceGroupSpec) DeepCopy() *ResourceGroupSpec

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

func (*ResourceGroupSpec) DeepCopyInto

func (in *ResourceGroupSpec) DeepCopyInto(out *ResourceGroupSpec)

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

func (*ResourceGroupSpec) NewEmptyARMValue

func (spec *ResourceGroupSpec) NewEmptyARMValue() genruntime.ARMResourceStatus

func (*ResourceGroupSpec) PopulateFromARM

func (spec *ResourceGroupSpec) PopulateFromARM(owner genruntime.ArbitraryOwnerReference, armInput interface{}) error

PopulateFromARM populates a Kubernetes CRD object from an Azure ARM object

func (*ResourceGroupSpec) SetAzureName

func (spec *ResourceGroupSpec) SetAzureName(azureName string)

SetAzureName sets the Azure name of the resource

type ResourceGroupSpecARM

type ResourceGroupSpecARM struct {

	//Name: Name of the resource
	Name string `json:"name"`

	// Location is the Azure location for the group (eg westus2, southcentralus, etc...)
	Location string `json:"location"`

	// ManagedBy is the management group responsible for managing this group
	ManagedBy string `json:"managedBy,omitempty"` // TODO: ??

	// Tags are user defined key value pairs
	Tags map[string]string `json:"tags,omitempty"`
}

func (*ResourceGroupSpecARM) DeepCopy

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

func (*ResourceGroupSpecARM) DeepCopyInto

func (in *ResourceGroupSpecARM) DeepCopyInto(out *ResourceGroupSpecARM)

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

func (ResourceGroupSpecARM) GetAPIVersion

func (spec ResourceGroupSpecARM) GetAPIVersion() string

GetAPIVersion returns the APIVersion of the resource

func (ResourceGroupSpecARM) GetName

func (spec ResourceGroupSpecARM) GetName() string

GetName returns the Name of the resource

func (ResourceGroupSpecARM) GetType

func (spec ResourceGroupSpecARM) GetType() string

GetType returns the Type of the resource

type ResourceGroupStatus

type ResourceGroupStatus struct {
	ID string `json:"id,omitempty"`

	Name     string `json:"name,omitempty"`
	Location string `json:"location,omitempty"`

	// ManagedBy is the management group responsible for managing this group
	ManagedBy string `json:"managedBy,omitempty"`

	// Tags are user defined key value pairs
	Tags map[string]string `json:"tags,omitempty"`

	ProvisioningState string `json:"provisioningState,omitempty"`

	// Conditions describe the observed state of the resource
	Conditions []conditions.Condition `json:"conditions,omitempty"`
}

func (*ResourceGroupStatus) ConvertStatusFrom

func (status *ResourceGroupStatus) ConvertStatusFrom(source genruntime.ConvertibleStatus) error

ConvertSpecFrom copies information from the supplied source onto the current instance

func (*ResourceGroupStatus) ConvertStatusTo

func (status *ResourceGroupStatus) ConvertStatusTo(destination genruntime.ConvertibleStatus) error

ConvertSpecTo copies information from the current instance onto the supplied destination

func (*ResourceGroupStatus) DeepCopy

func (in *ResourceGroupStatus) DeepCopy() *ResourceGroupStatus

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

func (*ResourceGroupStatus) DeepCopyInto

func (in *ResourceGroupStatus) DeepCopyInto(out *ResourceGroupStatus)

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

func (*ResourceGroupStatus) NewEmptyARMValue

func (status *ResourceGroupStatus) NewEmptyARMValue() genruntime.ARMResourceStatus

func (*ResourceGroupStatus) PopulateFromARM

func (status *ResourceGroupStatus) PopulateFromARM(owner genruntime.ArbitraryOwnerReference, armInput interface{}) error

PopulateFromARM populates a Kubernetes CRD object from an Azure ARM object

type ResourceGroupStatusARM

type ResourceGroupStatusARM struct {
	ID string `json:"id,omitempty"`

	Name     string `json:"name,omitempty"`
	Location string `json:"location,omitempty"`

	// ManagedBy is the management group responsible for managing this group
	ManagedBy string `json:"managedBy,omitempty"`

	// Tags are user defined key value pairs
	Tags map[string]string `json:"tags,omitempty"`

	Properties *ResourceGroupStatusPropertiesARM `json:"properties,omitempty"`
}

func (*ResourceGroupStatusARM) DeepCopy

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

func (*ResourceGroupStatusARM) DeepCopyInto

func (in *ResourceGroupStatusARM) DeepCopyInto(out *ResourceGroupStatusARM)

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

type ResourceGroupStatusPropertiesARM

type ResourceGroupStatusPropertiesARM struct {
	ProvisioningState string `json:"provisioningState,omitempty"`
}

func (*ResourceGroupStatusPropertiesARM) DeepCopy

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

func (*ResourceGroupStatusPropertiesARM) DeepCopyInto

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

type ResourceGroupType

type ResourceGroupType string

Jump to

Keyboard shortcuts

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