-
Notifications
You must be signed in to change notification settings - Fork 112
/
zz_networkprofile_types.go
executable file
·184 lines (138 loc) · 8.25 KB
/
zz_networkprofile_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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
/*
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 NetworkProfileObservation struct {
// The Amazon Resource Name of this network profile.
Arn *string `json:"arn,omitempty" tf:"arn,omitempty"`
// The description of the network profile.
Description *string `json:"description,omitempty" tf:"description,omitempty"`
// The data throughput rate in bits per second, as an integer from 0 to 104857600. Default value is 104857600.
DownlinkBandwidthBits *float64 `json:"downlinkBandwidthBits,omitempty" tf:"downlink_bandwidth_bits,omitempty"`
// Delay time for all packets to destination in milliseconds as an integer from 0 to 2000.
DownlinkDelayMs *float64 `json:"downlinkDelayMs,omitempty" tf:"downlink_delay_ms,omitempty"`
// Time variation in the delay of received packets in milliseconds as an integer from 0 to 2000.
DownlinkJitterMs *float64 `json:"downlinkJitterMs,omitempty" tf:"downlink_jitter_ms,omitempty"`
// Proportion of received packets that fail to arrive from 0 to 100 percent.
DownlinkLossPercent *float64 `json:"downlinkLossPercent,omitempty" tf:"downlink_loss_percent,omitempty"`
ID *string `json:"id,omitempty" tf:"id,omitempty"`
// The name for the network profile.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// The ARN of the project for the network profile.
ProjectArn *string `json:"projectArn,omitempty" tf:"project_arn,omitempty"`
// Key-value map of resource tags.
Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"`
// A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
TagsAll map[string]*string `json:"tagsAll,omitempty" tf:"tags_all,omitempty"`
// The type of network profile to create. Valid values are listed are PRIVATE and CURATED.
Type *string `json:"type,omitempty" tf:"type,omitempty"`
// The data throughput rate in bits per second, as an integer from 0 to 104857600. Default value is 104857600.
UplinkBandwidthBits *float64 `json:"uplinkBandwidthBits,omitempty" tf:"uplink_bandwidth_bits,omitempty"`
// Delay time for all packets to destination in milliseconds as an integer from 0 to 2000.
UplinkDelayMs *float64 `json:"uplinkDelayMs,omitempty" tf:"uplink_delay_ms,omitempty"`
// Time variation in the delay of received packets in milliseconds as an integer from 0 to 2000.
UplinkJitterMs *float64 `json:"uplinkJitterMs,omitempty" tf:"uplink_jitter_ms,omitempty"`
// Proportion of received packets that fail to arrive from 0 to 100 percent.
UplinkLossPercent *float64 `json:"uplinkLossPercent,omitempty" tf:"uplink_loss_percent,omitempty"`
}
type NetworkProfileParameters struct {
// The description of the network profile.
// +kubebuilder:validation:Optional
Description *string `json:"description,omitempty" tf:"description,omitempty"`
// The data throughput rate in bits per second, as an integer from 0 to 104857600. Default value is 104857600.
// +kubebuilder:validation:Optional
DownlinkBandwidthBits *float64 `json:"downlinkBandwidthBits,omitempty" tf:"downlink_bandwidth_bits,omitempty"`
// Delay time for all packets to destination in milliseconds as an integer from 0 to 2000.
// +kubebuilder:validation:Optional
DownlinkDelayMs *float64 `json:"downlinkDelayMs,omitempty" tf:"downlink_delay_ms,omitempty"`
// Time variation in the delay of received packets in milliseconds as an integer from 0 to 2000.
// +kubebuilder:validation:Optional
DownlinkJitterMs *float64 `json:"downlinkJitterMs,omitempty" tf:"downlink_jitter_ms,omitempty"`
// Proportion of received packets that fail to arrive from 0 to 100 percent.
// +kubebuilder:validation:Optional
DownlinkLossPercent *float64 `json:"downlinkLossPercent,omitempty" tf:"downlink_loss_percent,omitempty"`
// The name for the network profile.
// +kubebuilder:validation:Optional
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// The ARN of the project for the network profile.
// +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/devicefarm/v1beta1.Project
// +crossplane:generate:reference:extractor=github.com/upbound/upjet/pkg/resource.ExtractParamPath("arn",true)
// +kubebuilder:validation:Optional
ProjectArn *string `json:"projectArn,omitempty" tf:"project_arn,omitempty"`
// Reference to a Project in devicefarm to populate projectArn.
// +kubebuilder:validation:Optional
ProjectArnRef *v1.Reference `json:"projectArnRef,omitempty" tf:"-"`
// Selector for a Project in devicefarm to populate projectArn.
// +kubebuilder:validation:Optional
ProjectArnSelector *v1.Selector `json:"projectArnSelector,omitempty" tf:"-"`
// Region is the region you'd like your resource to be created in.
// +upjet:crd:field:TFTag=-
// +kubebuilder:validation:Required
Region *string `json:"region" tf:"-"`
// Key-value map of resource tags.
// +kubebuilder:validation:Optional
Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"`
// The type of network profile to create. Valid values are listed are PRIVATE and CURATED.
// +kubebuilder:validation:Optional
Type *string `json:"type,omitempty" tf:"type,omitempty"`
// The data throughput rate in bits per second, as an integer from 0 to 104857600. Default value is 104857600.
// +kubebuilder:validation:Optional
UplinkBandwidthBits *float64 `json:"uplinkBandwidthBits,omitempty" tf:"uplink_bandwidth_bits,omitempty"`
// Delay time for all packets to destination in milliseconds as an integer from 0 to 2000.
// +kubebuilder:validation:Optional
UplinkDelayMs *float64 `json:"uplinkDelayMs,omitempty" tf:"uplink_delay_ms,omitempty"`
// Time variation in the delay of received packets in milliseconds as an integer from 0 to 2000.
// +kubebuilder:validation:Optional
UplinkJitterMs *float64 `json:"uplinkJitterMs,omitempty" tf:"uplink_jitter_ms,omitempty"`
// Proportion of received packets that fail to arrive from 0 to 100 percent.
// +kubebuilder:validation:Optional
UplinkLossPercent *float64 `json:"uplinkLossPercent,omitempty" tf:"uplink_loss_percent,omitempty"`
}
// NetworkProfileSpec defines the desired state of NetworkProfile
type NetworkProfileSpec struct {
v1.ResourceSpec `json:",inline"`
ForProvider NetworkProfileParameters `json:"forProvider"`
}
// NetworkProfileStatus defines the observed state of NetworkProfile.
type NetworkProfileStatus struct {
v1.ResourceStatus `json:",inline"`
AtProvider NetworkProfileObservation `json:"atProvider,omitempty"`
}
// +kubebuilder:object:root=true
// NetworkProfile is the Schema for the NetworkProfiles API. Provides a Devicefarm network profile
// +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,aws}
type NetworkProfile struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
// +kubebuilder:validation:XValidation:rule="self.managementPolicy == 'ObserveOnly' || has(self.forProvider.name)",message="name is a required parameter"
Spec NetworkProfileSpec `json:"spec"`
Status NetworkProfileStatus `json:"status,omitempty"`
}
// +kubebuilder:object:root=true
// NetworkProfileList contains a list of NetworkProfiles
type NetworkProfileList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []NetworkProfile `json:"items"`
}
// Repository type metadata.
var (
NetworkProfile_Kind = "NetworkProfile"
NetworkProfile_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: NetworkProfile_Kind}.String()
NetworkProfile_KindAPIVersion = NetworkProfile_Kind + "." + CRDGroupVersion.String()
NetworkProfile_GroupVersionKind = CRDGroupVersion.WithKind(NetworkProfile_Kind)
)
func init() {
SchemeBuilder.Register(&NetworkProfile{}, &NetworkProfileList{})
}