generated from crossplane/upjet-provider-template
/
zz_ccenamespace_types.go
executable file
·121 lines (96 loc) · 4.82 KB
/
zz_ccenamespace_types.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
/*
Copyright 2022 Upbound Inc.
*/
// Code generated by upjet. DO NOT EDIT.
package v1beta1
import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime/schema"
v1 "github.com/crossplane/crossplane-runtime/apis/common/v1"
)
type CCENameSpaceObservation struct {
// The server time when namespace was created.
CreationTimestamp *string `json:"creationTimestamp,omitempty" tf:"creation_timestamp,omitempty"`
// The namespace ID in UUID format.
ID *string `json:"id,omitempty" tf:"id,omitempty"`
// The current phase of the namespace.
Status *string `json:"status,omitempty" tf:"status,omitempty"`
}
type CCENameSpaceParameters struct {
// Specifies an unstructured key value map for external parameters.
// Changing this will create a new namespace resource.
// +kubebuilder:validation:Optional
Annotations map[string]*string `json:"annotations,omitempty" tf:"annotations,omitempty"`
// Specifies the cluster ID to which the CCE namespace belongs.
// Changing this will create a new namespace resource.
// +crossplane:generate:reference:type=Cluster
// +kubebuilder:validation:Optional
ClusterID *string `json:"clusterId,omitempty" tf:"cluster_id,omitempty"`
// Reference to a Cluster to populate clusterId.
// +kubebuilder:validation:Optional
ClusterIDRef *v1.Reference `json:"clusterIdRef,omitempty" tf:"-"`
// Selector for a Cluster to populate clusterId.
// +kubebuilder:validation:Optional
ClusterIDSelector *v1.Selector `json:"clusterIdSelector,omitempty" tf:"-"`
// Specifies the map of string keys and values for labels.
// Changing this will create a new namespace resource.
// +kubebuilder:validation:Optional
Labels map[string]*string `json:"labels,omitempty" tf:"labels,omitempty"`
// Specifies the unique name of the namespace.
// This parameter can contain a maximum of 63 characters, which may consist of lowercase letters, digits and hyphens (-),
// and must start and end with lowercase letters and digits. Changing this will create a new namespace resource.
// Exactly one of name or prefix must be provided.
// +kubebuilder:validation:Optional
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// Specifies a prefix used by the server to generate a unique name.
// This parameter can contain a maximum of 63 characters, which may consist of lowercase letters, digits and
// hyphens (-), and must start and end with lowercase letters and digits.
// Changing this will create a new namespace resource. Exactly one of name or prefix must be provided.
// +kubebuilder:validation:Optional
Prefix *string `json:"prefix,omitempty" tf:"prefix,omitempty"`
// Specifies the region in which to create the namespace resource.
// If omitted, the provider-level region will be used. Changing this will create a new namespace resource.
// +kubebuilder:validation:Optional
Region *string `json:"region,omitempty" tf:"region,omitempty"`
}
// CCENameSpaceSpec defines the desired state of CCENameSpace
type CCENameSpaceSpec struct {
v1.ResourceSpec `json:",inline"`
ForProvider CCENameSpaceParameters `json:"forProvider"`
}
// CCENameSpaceStatus defines the observed state of CCENameSpace.
type CCENameSpaceStatus struct {
v1.ResourceStatus `json:",inline"`
AtProvider CCENameSpaceObservation `json:"atProvider,omitempty"`
}
// +kubebuilder:object:root=true
// CCENameSpace is the Schema for the CCENameSpaces API. ""page_title: "flexibleengine_cce_namespace"
// +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:subresource:status
// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,flexibleengine}
type CCENameSpace struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec CCENameSpaceSpec `json:"spec"`
Status CCENameSpaceStatus `json:"status,omitempty"`
}
// +kubebuilder:object:root=true
// CCENameSpaceList contains a list of CCENameSpaces
type CCENameSpaceList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []CCENameSpace `json:"items"`
}
// Repository type metadata.
var (
CCENameSpace_Kind = "CCENameSpace"
CCENameSpace_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: CCENameSpace_Kind}.String()
CCENameSpace_KindAPIVersion = CCENameSpace_Kind + "." + CRDGroupVersion.String()
CCENameSpace_GroupVersionKind = CRDGroupVersion.WithKind(CCENameSpace_Kind)
)
func init() {
SchemeBuilder.Register(&CCENameSpace{}, &CCENameSpaceList{})
}