generated from crossplane/upjet-provider-template
/
zz_vpc_types.go
executable file
·118 lines (91 loc) · 4.11 KB
/
zz_vpc_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
/*
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 RoutesObservation struct {
Destination *string `json:"destination,omitempty" tf:"destination,omitempty"`
Nexthop *string `json:"nexthop,omitempty" tf:"nexthop,omitempty"`
}
type RoutesParameters struct {
}
type VPCObservation struct {
// The VPC ID in UUID format.
ID *string `json:"id,omitempty" tf:"id,omitempty"`
Routes []RoutesObservation `json:"routes,omitempty" tf:"routes,omitempty"`
// The current status of the VPC. Possible values are as follows: CREATING, OK or ERROR.
Status *string `json:"status,omitempty" tf:"status,omitempty"`
}
type VPCParameters struct {
// Specifies the range of available subnets in the VPC. The value ranges from 10.0.0.0/8 to
// 10.255.255.0/24, 172.16.0.0/12 to 172.31.255.0/24, or 192.168.0.0/16 to 192.168.255.0/24.
// +kubebuilder:validation:Required
Cidr *string `json:"cidr" tf:"cidr,omitempty"`
// Specifies supplementary information about the VPC. The value is a string of
// no more than 255 characters and cannot contain angle brackets (< or >).
// +kubebuilder:validation:Optional
Description *string `json:"description,omitempty" tf:"description,omitempty"`
// The VPC ID in UUID format.
// +kubebuilder:validation:Optional
EnterpriseProjectID *string `json:"enterpriseProjectId,omitempty" tf:"enterprise_project_id,omitempty"`
// Specifies the name of the VPC. The name must be unique for a tenant. The value is a string
// of no more than 64 characters and can contain digits, letters, underscores (_), and hyphens (-).
// +kubebuilder:validation:Required
Name *string `json:"name" tf:"name,omitempty"`
// Specifies the region in which to create the VPC. If omitted, the
// provider-level region will be used. Changing this creates a new VPC resource.
// +kubebuilder:validation:Optional
Region *string `json:"region,omitempty" tf:"region,omitempty"`
// Specifies the secondary CIDR block of the VPC.
// +kubebuilder:validation:Optional
SecondaryCidr *string `json:"secondaryCidr,omitempty" tf:"secondary_cidr,omitempty"`
// Specifies the key/value pairs to associate with the VPC.
// +kubebuilder:validation:Optional
Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"`
}
// VPCSpec defines the desired state of VPC
type VPCSpec struct {
v1.ResourceSpec `json:",inline"`
ForProvider VPCParameters `json:"forProvider"`
}
// VPCStatus defines the observed state of VPC.
type VPCStatus struct {
v1.ResourceStatus `json:",inline"`
AtProvider VPCObservation `json:"atProvider,omitempty"`
}
// +kubebuilder:object:root=true
// VPC is the Schema for the VPCs API. ""page_title: "flexibleengine_vpc_v1"
// +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 VPC struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec VPCSpec `json:"spec"`
Status VPCStatus `json:"status,omitempty"`
}
// +kubebuilder:object:root=true
// VPCList contains a list of VPCs
type VPCList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []VPC `json:"items"`
}
// Repository type metadata.
var (
VPC_Kind = "VPC"
VPC_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: VPC_Kind}.String()
VPC_KindAPIVersion = VPC_Kind + "." + CRDGroupVersion.String()
VPC_GroupVersionKind = CRDGroupVersion.WithKind(VPC_Kind)
)
func init() {
SchemeBuilder.Register(&VPC{}, &VPCList{})
}