v1alpha1

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package v1alpha1 contains the v1alpha1 group Sample resources of the Template provider. +kubebuilder:object:generate=true +groupName=iampolicymanagementv1.ibmcloud.crossplane.io +versionName=v1alpha1

Index

Constants

View Source
const (
	Group   = "iampolicymanagementv1.ibmcloud.crossplane.io"
	Version = "v1alpha1"
)

Package type metadata.

Variables

View Source
var (
	// SchemeGroupVersion is group version used to register these objects
	SchemeGroupVersion = schema.GroupVersion{Group: Group, Version: Version}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion}
)
View Source
var (
	PolicyKind                 = reflect.TypeOf(Policy{}).Name()
	PolicyGroupKind            = schema.GroupKind{Group: Group, Kind: PolicyKind}.String()
	PolicyKindAPIVersion       = PolicyKind + "." + SchemeGroupVersion.String()
	PolicyGroupVersionKind     = SchemeGroupVersion.WithKind(PolicyKind)
	CustomRoleKind             = reflect.TypeOf(CustomRole{}).Name()
	CustomRoleGroupKind        = schema.GroupKind{Group: Group, Kind: CustomRoleKind}.String()
	CustomRoleKindAPIVersion   = CustomRoleKind + "." + SchemeGroupVersion.String()
	CustomRoleGroupVersionKind = SchemeGroupVersion.WithKind(CustomRoleKind)
)

Resourcecontrollerv2 types metadata.

Functions

This section is empty.

Types

type CustomRole

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

	Spec   CustomRoleSpec   `json:"spec"`
	Status CustomRoleStatus `json:"status,omitempty"`
}

A CustomRole represents an instance of an IAM policy on IBM Cloud +kubebuilder:subresource:status +kubebuilder:printcolumn:name="STATUS",type="string",JSONPath=".status.bindingPhase" +kubebuilder:printcolumn:name="STATE",type="string",JSONPath=".status.atProvider.state" +kubebuilder:printcolumn:name="CLASS",type="string",JSONPath=".spec.classRef.name" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,ibmcloud}

func (*CustomRole) DeepCopy

func (in *CustomRole) DeepCopy() *CustomRole

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

func (*CustomRole) DeepCopyInto

func (in *CustomRole) DeepCopyInto(out *CustomRole)

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

func (*CustomRole) DeepCopyObject

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

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

func (*CustomRole) GetCondition

GetCondition of this CustomRole.

func (*CustomRole) GetDeletionPolicy

func (mg *CustomRole) GetDeletionPolicy() runtimev1alpha1.DeletionPolicy

GetDeletionPolicy of this CustomRole.

func (*CustomRole) GetProviderConfigReference

func (mg *CustomRole) GetProviderConfigReference() *runtimev1alpha1.Reference

GetProviderConfigReference of this CustomRole.

func (*CustomRole) GetProviderReference

func (mg *CustomRole) GetProviderReference() *runtimev1alpha1.Reference

GetProviderReference of this CustomRole. Deprecated: Use GetProviderConfigReference.

func (*CustomRole) GetWriteConnectionSecretToReference

func (mg *CustomRole) GetWriteConnectionSecretToReference() *runtimev1alpha1.SecretReference

GetWriteConnectionSecretToReference of this CustomRole.

func (*CustomRole) SetConditions

func (mg *CustomRole) SetConditions(c ...runtimev1alpha1.Condition)

SetConditions of this CustomRole.

func (*CustomRole) SetDeletionPolicy

func (mg *CustomRole) SetDeletionPolicy(r runtimev1alpha1.DeletionPolicy)

SetDeletionPolicy of this CustomRole.

func (*CustomRole) SetProviderConfigReference

func (mg *CustomRole) SetProviderConfigReference(r *runtimev1alpha1.Reference)

SetProviderConfigReference of this CustomRole.

func (*CustomRole) SetProviderReference

func (mg *CustomRole) SetProviderReference(r *runtimev1alpha1.Reference)

SetProviderReference of this CustomRole. Deprecated: Use SetProviderConfigReference.

func (*CustomRole) SetWriteConnectionSecretToReference

func (mg *CustomRole) SetWriteConnectionSecretToReference(r *runtimev1alpha1.SecretReference)

SetWriteConnectionSecretToReference of this CustomRole.

type CustomRoleList

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

CustomRoleList contains a list of CustomRole

func (*CustomRoleList) DeepCopy

func (in *CustomRoleList) DeepCopy() *CustomRoleList

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

func (*CustomRoleList) DeepCopyInto

func (in *CustomRoleList) DeepCopyInto(out *CustomRoleList)

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

func (*CustomRoleList) DeepCopyObject

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

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

func (*CustomRoleList) GetItems

func (l *CustomRoleList) GetItems() []resource.Managed

GetItems of this CustomRoleList.

type CustomRoleObservation

type CustomRoleObservation struct {
	// The role ID.
	ID string `json:"id,omitempty"`

	// The role CRN.
	CRN string `json:"crn,omitempty"`

	// The UTC timestamp when the role was created.
	CreatedAt *metav1.Time `json:"createdAt,omitempty"`

	// The iam ID of the entity that created the role.
	CreatedByID string `json:"createdById,omitempty"`

	// The UTC timestamp when the role was last modified.
	LastModifiedAt *metav1.Time `json:"lastModifiedAt,omitempty"`

	// The iam ID of the entity that last modified the role.
	LastModifiedByID string `json:"lastModifiedById,omitempty"`

	// The href link back to the role.
	Href string `json:"href,omitempty"`

	// The current state of the role
	State string `json:"state,omitempty"`
}

CustomRoleObservation are the observable fields of a CustomRole.

func (*CustomRoleObservation) DeepCopy

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

func (*CustomRoleObservation) DeepCopyInto

func (in *CustomRoleObservation) DeepCopyInto(out *CustomRoleObservation)

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

type CustomRoleParameters

type CustomRoleParameters struct {
	// The display name of the role that is shown in the console.
	DisplayName string `json:"displayName"`

	// The actions of the role.
	Actions []string `json:"actions"`

	// The name of the role that is used in the CRN. Can only be alphanumeric and has to be capitalized.
	Name string `json:"name"`

	// The account GUID.
	AccountID string `json:"accountId"`

	// The service name.
	ServiceName string `json:"serviceName"`

	// The description of the role.
	//+optional
	Description *string `json:"description,omitempty"`
}

CustomRoleParameters are the configurable fields of a CustomRole.

func (*CustomRoleParameters) DeepCopy

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

func (*CustomRoleParameters) DeepCopyInto

func (in *CustomRoleParameters) DeepCopyInto(out *CustomRoleParameters)

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

type CustomRoleSpec

type CustomRoleSpec struct {
	runtimev1alpha1.ResourceSpec `json:",inline"`
	ForProvider                  CustomRoleParameters `json:"forProvider"`
}

A CustomRoleSpec defines the desired state of a CustomRole.

func (*CustomRoleSpec) DeepCopy

func (in *CustomRoleSpec) DeepCopy() *CustomRoleSpec

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

func (*CustomRoleSpec) DeepCopyInto

func (in *CustomRoleSpec) DeepCopyInto(out *CustomRoleSpec)

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

type CustomRoleStatus

type CustomRoleStatus struct {
	runtimev1alpha1.ResourceStatus `json:",inline"`
	AtProvider                     CustomRoleObservation `json:"atProvider,omitempty"`
}

A CustomRoleStatus represents the observed state of a CustomRole.

func (*CustomRoleStatus) DeepCopy

func (in *CustomRoleStatus) DeepCopy() *CustomRoleStatus

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

func (*CustomRoleStatus) DeepCopyInto

func (in *CustomRoleStatus) DeepCopyInto(out *CustomRoleStatus)

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

type Policy

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

	Spec   PolicySpec   `json:"spec"`
	Status PolicyStatus `json:"status,omitempty"`
}

A Policy represents an instance of an IAM policy on IBM Cloud +kubebuilder:subresource:status +kubebuilder:printcolumn:name="STATUS",type="string",JSONPath=".status.bindingPhase" +kubebuilder:printcolumn:name="STATE",type="string",JSONPath=".status.atProvider.state" +kubebuilder:printcolumn:name="CLASS",type="string",JSONPath=".spec.classRef.name" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,ibmcloud}

func (*Policy) DeepCopy

func (in *Policy) DeepCopy() *Policy

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

func (*Policy) DeepCopyInto

func (in *Policy) DeepCopyInto(out *Policy)

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

func (*Policy) DeepCopyObject

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

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

func (*Policy) GetCondition

GetCondition of this Policy.

func (*Policy) GetDeletionPolicy

func (mg *Policy) GetDeletionPolicy() runtimev1alpha1.DeletionPolicy

GetDeletionPolicy of this Policy.

func (*Policy) GetProviderConfigReference

func (mg *Policy) GetProviderConfigReference() *runtimev1alpha1.Reference

GetProviderConfigReference of this Policy.

func (*Policy) GetProviderReference

func (mg *Policy) GetProviderReference() *runtimev1alpha1.Reference

GetProviderReference of this Policy. Deprecated: Use GetProviderConfigReference.

func (*Policy) GetWriteConnectionSecretToReference

func (mg *Policy) GetWriteConnectionSecretToReference() *runtimev1alpha1.SecretReference

GetWriteConnectionSecretToReference of this Policy.

func (*Policy) SetConditions

func (mg *Policy) SetConditions(c ...runtimev1alpha1.Condition)

SetConditions of this Policy.

func (*Policy) SetDeletionPolicy

func (mg *Policy) SetDeletionPolicy(r runtimev1alpha1.DeletionPolicy)

SetDeletionPolicy of this Policy.

func (*Policy) SetProviderConfigReference

func (mg *Policy) SetProviderConfigReference(r *runtimev1alpha1.Reference)

SetProviderConfigReference of this Policy.

func (*Policy) SetProviderReference

func (mg *Policy) SetProviderReference(r *runtimev1alpha1.Reference)

SetProviderReference of this Policy. Deprecated: Use SetProviderConfigReference.

func (*Policy) SetWriteConnectionSecretToReference

func (mg *Policy) SetWriteConnectionSecretToReference(r *runtimev1alpha1.SecretReference)

SetWriteConnectionSecretToReference of this Policy.

type PolicyList

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

PolicyList contains a list of Policy

func (*PolicyList) DeepCopy

func (in *PolicyList) DeepCopy() *PolicyList

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

func (*PolicyList) DeepCopyInto

func (in *PolicyList) DeepCopyInto(out *PolicyList)

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

func (*PolicyList) DeepCopyObject

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

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

func (*PolicyList) GetItems

func (l *PolicyList) GetItems() []resource.Managed

GetItems of this PolicyList.

type PolicyObservation

type PolicyObservation struct {
	// The policy ID.
	ID string `json:"id,omitempty"`

	// The href link back to the policy.
	Href string `json:"href,omitempty"`

	// The UTC timestamp when the policy was created.
	CreatedAt *metav1.Time `json:"createdAt,omitempty"`

	// The iam ID of the entity that created the policy.
	CreatedByID string `json:"createdById,omitempty"`

	// The UTC timestamp when the policy was last modified.
	LastModifiedAt *metav1.Time `json:"lastModifiedAt,omitempty"`

	// The iam ID of the entity that last modified the policy.
	LastModifiedByID string `json:"lastModifiedById,omitempty"`

	// The current state of the policy
	State string `json:"state,omitempty"`
}

PolicyObservation are the observable fields of a Policy.

func (*PolicyObservation) DeepCopy

func (in *PolicyObservation) DeepCopy() *PolicyObservation

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

func (*PolicyObservation) DeepCopyInto

func (in *PolicyObservation) DeepCopyInto(out *PolicyObservation)

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

type PolicyParameters

type PolicyParameters struct {
	// The policy type; either 'access' or 'authorization'.
	Type string `json:"type"`

	// The subjects associated with a policy.
	Subjects []PolicySubject `json:"subjects"`

	// A set of role cloud resource names (CRNs) granted by the policy.
	Roles []PolicyRole `json:"roles"`

	// The resources associated with a policy.
	Resources []PolicyResource `json:"resources"`

	// Customer-defined description.
	// +optional
	Description *string `json:"description,omitempty"`
}

PolicyParameters are the configurable fields of a Policy.

func (*PolicyParameters) DeepCopy

func (in *PolicyParameters) DeepCopy() *PolicyParameters

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

func (*PolicyParameters) DeepCopyInto

func (in *PolicyParameters) DeepCopyInto(out *PolicyParameters)

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

type PolicyResource

type PolicyResource struct {
	// List of resource attributes.
	Attributes []ResourceAttribute `json:"attributes,omitempty"`
}

PolicyResource : The attributes of the resource. Note that only one resource is allowed in a policy.

func (*PolicyResource) DeepCopy

func (in *PolicyResource) DeepCopy() *PolicyResource

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

func (*PolicyResource) DeepCopyInto

func (in *PolicyResource) DeepCopyInto(out *PolicyResource)

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

type PolicyRole

type PolicyRole struct {
	// The role cloud resource name granted by the policy.
	RoleID string `json:"roleId"`
}

PolicyRole : A role associated with a policy.

func (*PolicyRole) DeepCopy

func (in *PolicyRole) DeepCopy() *PolicyRole

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

func (*PolicyRole) DeepCopyInto

func (in *PolicyRole) DeepCopyInto(out *PolicyRole)

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

type PolicySpec

type PolicySpec struct {
	runtimev1alpha1.ResourceSpec `json:",inline"`
	ForProvider                  PolicyParameters `json:"forProvider"`
}

A PolicySpec defines the desired state of a Policy.

func (*PolicySpec) DeepCopy

func (in *PolicySpec) DeepCopy() *PolicySpec

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

func (*PolicySpec) DeepCopyInto

func (in *PolicySpec) DeepCopyInto(out *PolicySpec)

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

type PolicyStatus

type PolicyStatus struct {
	runtimev1alpha1.ResourceStatus `json:",inline"`
	AtProvider                     PolicyObservation `json:"atProvider,omitempty"`
}

A PolicyStatus represents the observed state of a Policy.

func (*PolicyStatus) DeepCopy

func (in *PolicyStatus) DeepCopy() *PolicyStatus

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

func (*PolicyStatus) DeepCopyInto

func (in *PolicyStatus) DeepCopyInto(out *PolicyStatus)

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

type PolicySubject

type PolicySubject struct {
	// List of subject attributes.
	Attributes []SubjectAttribute `json:"attributes,omitempty"`
}

PolicySubject : The subject attribute values that must match in order for this policy to apply in a permission decision.

func (*PolicySubject) DeepCopy

func (in *PolicySubject) DeepCopy() *PolicySubject

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

func (*PolicySubject) DeepCopyInto

func (in *PolicySubject) DeepCopyInto(out *PolicySubject)

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

type ResourceAttribute

type ResourceAttribute struct {
	// The name of an attribute.
	Name *string `json:"name" validate:"required"`

	// The value of an attribute.
	Value *string `json:"value" validate:"required"`

	// The operator of an attribute.
	Operator *string `json:"operator,omitempty"`
}

ResourceAttribute : An attribute associated with a resource.

func (*ResourceAttribute) DeepCopy

func (in *ResourceAttribute) DeepCopy() *ResourceAttribute

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

func (*ResourceAttribute) DeepCopyInto

func (in *ResourceAttribute) DeepCopyInto(out *ResourceAttribute)

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

type SubjectAttribute

type SubjectAttribute struct {
	// The name of an attribute.
	Name *string `json:"name" validate:"required"`

	// The value of an attribute.
	Value *string `json:"value" validate:"required"`
}

SubjectAttribute : An attribute associated with a subject.

func (*SubjectAttribute) DeepCopy

func (in *SubjectAttribute) DeepCopy() *SubjectAttribute

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

func (*SubjectAttribute) DeepCopyInto

func (in *SubjectAttribute) DeepCopyInto(out *SubjectAttribute)

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

Jump to

Keyboard shortcuts

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