Documentation ¶
Overview ¶
+kubebuilder:object:generate=true +groupName=serviceprincipaldelegated.azuread.upbound.io +versionName=v1beta1
Index ¶
- Constants
- Variables
- type PermissionGrant
- func (in *PermissionGrant) DeepCopy() *PermissionGrant
- func (in *PermissionGrant) DeepCopyInto(out *PermissionGrant)
- func (in *PermissionGrant) DeepCopyObject() runtime.Object
- func (mg *PermissionGrant) GetCondition(ct xpv1.ConditionType) xpv1.Condition
- func (tr *PermissionGrant) GetConnectionDetailsMapping() map[string]string
- func (mg *PermissionGrant) GetDeletionPolicy() xpv1.DeletionPolicy
- func (tr *PermissionGrant) GetID() string
- func (tr *PermissionGrant) GetInitParameters() (map[string]any, error)
- func (mg *PermissionGrant) GetManagementPolicies() xpv1.ManagementPolicies
- func (tr *PermissionGrant) GetMergedParameters(shouldMergeInitProvider bool) (map[string]any, error)
- func (tr *PermissionGrant) GetObservation() (map[string]any, error)
- func (tr *PermissionGrant) GetParameters() (map[string]any, error)
- func (mg *PermissionGrant) GetProviderConfigReference() *xpv1.Reference
- func (mg *PermissionGrant) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
- func (mg *PermissionGrant) GetTerraformResourceType() string
- func (tr *PermissionGrant) GetTerraformSchemaVersion() int
- func (mg *PermissionGrant) GetWriteConnectionSecretToReference() *xpv1.SecretReference
- func (tr *PermissionGrant) Hub()
- func (tr *PermissionGrant) LateInitialize(attrs []byte) (bool, error)
- func (mg *PermissionGrant) ResolveReferences(ctx context.Context, c client.Reader) error
- func (mg *PermissionGrant) SetConditions(c ...xpv1.Condition)
- func (mg *PermissionGrant) SetDeletionPolicy(r xpv1.DeletionPolicy)
- func (mg *PermissionGrant) SetManagementPolicies(r xpv1.ManagementPolicies)
- func (tr *PermissionGrant) SetObservation(obs map[string]any) error
- func (tr *PermissionGrant) SetParameters(params map[string]any) error
- func (mg *PermissionGrant) SetProviderConfigReference(r *xpv1.Reference)
- func (mg *PermissionGrant) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)
- func (mg *PermissionGrant) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
- type PermissionGrantInitParameters
- type PermissionGrantList
- type PermissionGrantObservation
- type PermissionGrantParameters
- type PermissionGrantSpec
- type PermissionGrantStatus
Constants ¶
const ( CRDGroup = "serviceprincipaldelegated.azuread.upbound.io" CRDVersion = "v1beta1" )
Package type metadata.
Variables ¶
var ( // CRDGroupVersion is the API Group Version used to register the objects CRDGroupVersion = schema.GroupVersion{Group: CRDGroup, Version: CRDVersion} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: CRDGroupVersion} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
var ( PermissionGrant_Kind = "PermissionGrant" PermissionGrant_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: PermissionGrant_Kind}.String() PermissionGrant_KindAPIVersion = PermissionGrant_Kind + "." + CRDGroupVersion.String() PermissionGrant_GroupVersionKind = CRDGroupVersion.WithKind(PermissionGrant_Kind) )
Repository type metadata.
Functions ¶
This section is empty.
Types ¶
type PermissionGrant ¶
type PermissionGrant struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.claimValues) || (has(self.initProvider) && has(self.initProvider.claimValues))",message="spec.forProvider.claimValues is a required parameter" Spec PermissionGrantSpec `json:"spec"` Status PermissionGrantStatus `json:"status,omitempty"` }
PermissionGrant is the Schema for the PermissionGrants API. +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,azuread}
func (*PermissionGrant) DeepCopy ¶
func (in *PermissionGrant) DeepCopy() *PermissionGrant
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PermissionGrant.
func (*PermissionGrant) DeepCopyInto ¶
func (in *PermissionGrant) DeepCopyInto(out *PermissionGrant)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PermissionGrant) DeepCopyObject ¶
func (in *PermissionGrant) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*PermissionGrant) GetCondition ¶
func (mg *PermissionGrant) GetCondition(ct xpv1.ConditionType) xpv1.Condition
GetCondition of this PermissionGrant.
func (*PermissionGrant) GetConnectionDetailsMapping ¶
func (tr *PermissionGrant) GetConnectionDetailsMapping() map[string]string
GetConnectionDetailsMapping for this PermissionGrant
func (*PermissionGrant) GetDeletionPolicy ¶
func (mg *PermissionGrant) GetDeletionPolicy() xpv1.DeletionPolicy
GetDeletionPolicy of this PermissionGrant.
func (*PermissionGrant) GetID ¶
func (tr *PermissionGrant) GetID() string
GetID returns ID of underlying Terraform resource of this PermissionGrant
func (*PermissionGrant) GetInitParameters ¶ added in v0.10.0
func (tr *PermissionGrant) GetInitParameters() (map[string]any, error)
GetInitParameters of this PermissionGrant
func (*PermissionGrant) GetManagementPolicies ¶ added in v0.10.0
func (mg *PermissionGrant) GetManagementPolicies() xpv1.ManagementPolicies
GetManagementPolicies of this PermissionGrant.
func (*PermissionGrant) GetMergedParameters ¶ added in v0.14.0
func (tr *PermissionGrant) GetMergedParameters(shouldMergeInitProvider bool) (map[string]any, error)
GetInitParameters of this PermissionGrant
func (*PermissionGrant) GetObservation ¶
func (tr *PermissionGrant) GetObservation() (map[string]any, error)
GetObservation of this PermissionGrant
func (*PermissionGrant) GetParameters ¶
func (tr *PermissionGrant) GetParameters() (map[string]any, error)
GetParameters of this PermissionGrant
func (*PermissionGrant) GetProviderConfigReference ¶
func (mg *PermissionGrant) GetProviderConfigReference() *xpv1.Reference
GetProviderConfigReference of this PermissionGrant.
func (*PermissionGrant) GetPublishConnectionDetailsTo ¶
func (mg *PermissionGrant) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
GetPublishConnectionDetailsTo of this PermissionGrant.
func (*PermissionGrant) GetTerraformResourceType ¶
func (mg *PermissionGrant) GetTerraformResourceType() string
GetTerraformResourceType returns Terraform resource type for this PermissionGrant
func (*PermissionGrant) GetTerraformSchemaVersion ¶
func (tr *PermissionGrant) GetTerraformSchemaVersion() int
GetTerraformSchemaVersion returns the associated Terraform schema version
func (*PermissionGrant) GetWriteConnectionSecretToReference ¶
func (mg *PermissionGrant) GetWriteConnectionSecretToReference() *xpv1.SecretReference
GetWriteConnectionSecretToReference of this PermissionGrant.
func (*PermissionGrant) Hub ¶ added in v0.15.1
func (tr *PermissionGrant) Hub()
Hub marks this type as a conversion hub.
func (*PermissionGrant) LateInitialize ¶
func (tr *PermissionGrant) LateInitialize(attrs []byte) (bool, error)
LateInitialize this PermissionGrant using its observed tfState. returns True if there are any spec changes for the resource.
func (*PermissionGrant) ResolveReferences ¶
ResolveReferences of this PermissionGrant.
func (*PermissionGrant) SetConditions ¶
func (mg *PermissionGrant) SetConditions(c ...xpv1.Condition)
SetConditions of this PermissionGrant.
func (*PermissionGrant) SetDeletionPolicy ¶
func (mg *PermissionGrant) SetDeletionPolicy(r xpv1.DeletionPolicy)
SetDeletionPolicy of this PermissionGrant.
func (*PermissionGrant) SetManagementPolicies ¶ added in v0.10.0
func (mg *PermissionGrant) SetManagementPolicies(r xpv1.ManagementPolicies)
SetManagementPolicies of this PermissionGrant.
func (*PermissionGrant) SetObservation ¶
func (tr *PermissionGrant) SetObservation(obs map[string]any) error
SetObservation for this PermissionGrant
func (*PermissionGrant) SetParameters ¶
func (tr *PermissionGrant) SetParameters(params map[string]any) error
SetParameters for this PermissionGrant
func (*PermissionGrant) SetProviderConfigReference ¶
func (mg *PermissionGrant) SetProviderConfigReference(r *xpv1.Reference)
SetProviderConfigReference of this PermissionGrant.
func (*PermissionGrant) SetPublishConnectionDetailsTo ¶
func (mg *PermissionGrant) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)
SetPublishConnectionDetailsTo of this PermissionGrant.
func (*PermissionGrant) SetWriteConnectionSecretToReference ¶
func (mg *PermissionGrant) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
SetWriteConnectionSecretToReference of this PermissionGrant.
type PermissionGrantInitParameters ¶ added in v0.10.0
type PermissionGrantInitParameters struct { // - A set of claim values for delegated permission scopes which should be included in access tokens for the resource. // A set of claim values for delegated permission scopes which should be included in access tokens for the resource // +listType=set ClaimValues []*string `json:"claimValues,omitempty" tf:"claim_values,omitempty"` // The object ID of the service principal representing the resource to be accessed. Changing this forces a new resource to be created. // The object ID of the service principal representing the resource to be accessed // +crossplane:generate:reference:type=github.com/upbound/provider-azuread/apis/serviceprincipals/v1beta1.Principal ResourceServicePrincipalObjectID *string `json:"resourceServicePrincipalObjectId,omitempty" tf:"resource_service_principal_object_id,omitempty"` // Reference to a Principal in serviceprincipals to populate resourceServicePrincipalObjectId. // +kubebuilder:validation:Optional ResourceServicePrincipalObjectIDRef *v1.Reference `json:"resourceServicePrincipalObjectIdRef,omitempty" tf:"-"` // Selector for a Principal in serviceprincipals to populate resourceServicePrincipalObjectId. // +kubebuilder:validation:Optional ResourceServicePrincipalObjectIDSelector *v1.Selector `json:"resourceServicePrincipalObjectIdSelector,omitempty" tf:"-"` // The object ID of the service principal for which this delegated permission grant should be created. Changing this forces a new resource to be created. // The object ID of the service principal for which this delegated permission grant should be created // +crossplane:generate:reference:type=github.com/upbound/provider-azuread/apis/serviceprincipals/v1beta1.Principal ServicePrincipalObjectID *string `json:"servicePrincipalObjectId,omitempty" tf:"service_principal_object_id,omitempty"` // Reference to a Principal in serviceprincipals to populate servicePrincipalObjectId. // +kubebuilder:validation:Optional ServicePrincipalObjectIDRef *v1.Reference `json:"servicePrincipalObjectIdRef,omitempty" tf:"-"` // Selector for a Principal in serviceprincipals to populate servicePrincipalObjectId. // +kubebuilder:validation:Optional ServicePrincipalObjectIDSelector *v1.Selector `json:"servicePrincipalObjectIdSelector,omitempty" tf:"-"` // - The object ID of the user on behalf of whom the service principal is authorized to access the resource. When omitted, the delegated permission grant will be consented for all users. Changing this forces a new resource to be created. // The object ID of the user on behalf of whom the service principal is authorized to access the resource // +crossplane:generate:reference:type=github.com/upbound/provider-azuread/apis/users/v1beta1.User // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("object_id",true) UserObjectID *string `json:"userObjectId,omitempty" tf:"user_object_id,omitempty"` // Reference to a User in users to populate userObjectId. // +kubebuilder:validation:Optional UserObjectIDRef *v1.Reference `json:"userObjectIdRef,omitempty" tf:"-"` // Selector for a User in users to populate userObjectId. // +kubebuilder:validation:Optional UserObjectIDSelector *v1.Selector `json:"userObjectIdSelector,omitempty" tf:"-"` }
func (*PermissionGrantInitParameters) DeepCopy ¶ added in v0.10.0
func (in *PermissionGrantInitParameters) DeepCopy() *PermissionGrantInitParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PermissionGrantInitParameters.
func (*PermissionGrantInitParameters) DeepCopyInto ¶ added in v0.10.0
func (in *PermissionGrantInitParameters) DeepCopyInto(out *PermissionGrantInitParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PermissionGrantList ¶
type PermissionGrantList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []PermissionGrant `json:"items"` }
PermissionGrantList contains a list of PermissionGrants
func (*PermissionGrantList) DeepCopy ¶
func (in *PermissionGrantList) DeepCopy() *PermissionGrantList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PermissionGrantList.
func (*PermissionGrantList) DeepCopyInto ¶
func (in *PermissionGrantList) DeepCopyInto(out *PermissionGrantList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PermissionGrantList) DeepCopyObject ¶
func (in *PermissionGrantList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*PermissionGrantList) GetItems ¶
func (l *PermissionGrantList) GetItems() []resource.Managed
GetItems of this PermissionGrantList.
type PermissionGrantObservation ¶
type PermissionGrantObservation struct { // - A set of claim values for delegated permission scopes which should be included in access tokens for the resource. // A set of claim values for delegated permission scopes which should be included in access tokens for the resource // +listType=set ClaimValues []*string `json:"claimValues,omitempty" tf:"claim_values,omitempty"` // The ID of the delegated permission grant. ID *string `json:"id,omitempty" tf:"id,omitempty"` // The object ID of the service principal representing the resource to be accessed. Changing this forces a new resource to be created. // The object ID of the service principal representing the resource to be accessed ResourceServicePrincipalObjectID *string `json:"resourceServicePrincipalObjectId,omitempty" tf:"resource_service_principal_object_id,omitempty"` // The object ID of the service principal for which this delegated permission grant should be created. Changing this forces a new resource to be created. // The object ID of the service principal for which this delegated permission grant should be created ServicePrincipalObjectID *string `json:"servicePrincipalObjectId,omitempty" tf:"service_principal_object_id,omitempty"` // - The object ID of the user on behalf of whom the service principal is authorized to access the resource. When omitted, the delegated permission grant will be consented for all users. Changing this forces a new resource to be created. // The object ID of the user on behalf of whom the service principal is authorized to access the resource UserObjectID *string `json:"userObjectId,omitempty" tf:"user_object_id,omitempty"` }
func (*PermissionGrantObservation) DeepCopy ¶
func (in *PermissionGrantObservation) DeepCopy() *PermissionGrantObservation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PermissionGrantObservation.
func (*PermissionGrantObservation) DeepCopyInto ¶
func (in *PermissionGrantObservation) DeepCopyInto(out *PermissionGrantObservation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PermissionGrantParameters ¶
type PermissionGrantParameters struct { // - A set of claim values for delegated permission scopes which should be included in access tokens for the resource. // A set of claim values for delegated permission scopes which should be included in access tokens for the resource // +kubebuilder:validation:Optional // +listType=set ClaimValues []*string `json:"claimValues,omitempty" tf:"claim_values,omitempty"` // The object ID of the service principal representing the resource to be accessed. Changing this forces a new resource to be created. // The object ID of the service principal representing the resource to be accessed // +crossplane:generate:reference:type=github.com/upbound/provider-azuread/apis/serviceprincipals/v1beta1.Principal // +kubebuilder:validation:Optional ResourceServicePrincipalObjectID *string `json:"resourceServicePrincipalObjectId,omitempty" tf:"resource_service_principal_object_id,omitempty"` // Reference to a Principal in serviceprincipals to populate resourceServicePrincipalObjectId. // +kubebuilder:validation:Optional ResourceServicePrincipalObjectIDRef *v1.Reference `json:"resourceServicePrincipalObjectIdRef,omitempty" tf:"-"` // Selector for a Principal in serviceprincipals to populate resourceServicePrincipalObjectId. // +kubebuilder:validation:Optional ResourceServicePrincipalObjectIDSelector *v1.Selector `json:"resourceServicePrincipalObjectIdSelector,omitempty" tf:"-"` // The object ID of the service principal for which this delegated permission grant should be created. Changing this forces a new resource to be created. // The object ID of the service principal for which this delegated permission grant should be created // +crossplane:generate:reference:type=github.com/upbound/provider-azuread/apis/serviceprincipals/v1beta1.Principal // +kubebuilder:validation:Optional ServicePrincipalObjectID *string `json:"servicePrincipalObjectId,omitempty" tf:"service_principal_object_id,omitempty"` // Reference to a Principal in serviceprincipals to populate servicePrincipalObjectId. // +kubebuilder:validation:Optional ServicePrincipalObjectIDRef *v1.Reference `json:"servicePrincipalObjectIdRef,omitempty" tf:"-"` // Selector for a Principal in serviceprincipals to populate servicePrincipalObjectId. // +kubebuilder:validation:Optional ServicePrincipalObjectIDSelector *v1.Selector `json:"servicePrincipalObjectIdSelector,omitempty" tf:"-"` // - The object ID of the user on behalf of whom the service principal is authorized to access the resource. When omitted, the delegated permission grant will be consented for all users. Changing this forces a new resource to be created. // The object ID of the user on behalf of whom the service principal is authorized to access the resource // +crossplane:generate:reference:type=github.com/upbound/provider-azuread/apis/users/v1beta1.User // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("object_id",true) // +kubebuilder:validation:Optional UserObjectID *string `json:"userObjectId,omitempty" tf:"user_object_id,omitempty"` // Reference to a User in users to populate userObjectId. // +kubebuilder:validation:Optional UserObjectIDRef *v1.Reference `json:"userObjectIdRef,omitempty" tf:"-"` // Selector for a User in users to populate userObjectId. // +kubebuilder:validation:Optional UserObjectIDSelector *v1.Selector `json:"userObjectIdSelector,omitempty" tf:"-"` }
func (*PermissionGrantParameters) DeepCopy ¶
func (in *PermissionGrantParameters) DeepCopy() *PermissionGrantParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PermissionGrantParameters.
func (*PermissionGrantParameters) DeepCopyInto ¶
func (in *PermissionGrantParameters) DeepCopyInto(out *PermissionGrantParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PermissionGrantSpec ¶
type PermissionGrantSpec struct { v1.ResourceSpec `json:",inline"` ForProvider PermissionGrantParameters `json:"forProvider"` // THIS IS A BETA FIELD. It will be honored // unless the Management Policies feature flag is disabled. // InitProvider holds the same fields as ForProvider, with the exception // of Identifier and other resource reference fields. The fields that are // in InitProvider are merged into ForProvider when the resource is created. // The same fields are also added to the terraform ignore_changes hook, to // avoid updating them after creation. This is useful for fields that are // required on creation, but we do not desire to update them after creation, // for example because of an external controller is managing them, like an // autoscaler. InitProvider PermissionGrantInitParameters `json:"initProvider,omitempty"` }
PermissionGrantSpec defines the desired state of PermissionGrant
func (*PermissionGrantSpec) DeepCopy ¶
func (in *PermissionGrantSpec) DeepCopy() *PermissionGrantSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PermissionGrantSpec.
func (*PermissionGrantSpec) DeepCopyInto ¶
func (in *PermissionGrantSpec) DeepCopyInto(out *PermissionGrantSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PermissionGrantStatus ¶
type PermissionGrantStatus struct { v1.ResourceStatus `json:",inline"` AtProvider PermissionGrantObservation `json:"atProvider,omitempty"` }
PermissionGrantStatus defines the observed state of PermissionGrant.
func (*PermissionGrantStatus) DeepCopy ¶
func (in *PermissionGrantStatus) DeepCopy() *PermissionGrantStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PermissionGrantStatus.
func (*PermissionGrantStatus) DeepCopyInto ¶
func (in *PermissionGrantStatus) DeepCopyInto(out *PermissionGrantStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.