This repository has been archived by the owner on Mar 11, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
serverEndpoint.go
306 lines (283 loc) · 11.8 KB
/
serverEndpoint.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
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
// *** WARNING: this file was generated by the Pulumi SDK Generator. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package v20191001
import (
"context"
"reflect"
"github.com/pkg/errors"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
// Server Endpoint object.
type ServerEndpoint struct {
pulumi.CustomResourceState
// Cloud Tiering.
CloudTiering pulumi.StringPtrOutput `pulumi:"cloudTiering"`
// Cloud tiering status. Only populated if cloud tiering is enabled.
CloudTieringStatus ServerEndpointCloudTieringStatusResponseOutput `pulumi:"cloudTieringStatus"`
// Friendly Name
FriendlyName pulumi.StringPtrOutput `pulumi:"friendlyName"`
// Resource Last Operation Name
LastOperationName pulumi.StringOutput `pulumi:"lastOperationName"`
// ServerEndpoint lastWorkflowId
LastWorkflowId pulumi.StringOutput `pulumi:"lastWorkflowId"`
// The name of the resource
Name pulumi.StringOutput `pulumi:"name"`
// Offline data transfer
OfflineDataTransfer pulumi.StringPtrOutput `pulumi:"offlineDataTransfer"`
// Offline data transfer share name
OfflineDataTransferShareName pulumi.StringPtrOutput `pulumi:"offlineDataTransferShareName"`
// Offline data transfer storage account resource ID
OfflineDataTransferStorageAccountResourceId pulumi.StringOutput `pulumi:"offlineDataTransferStorageAccountResourceId"`
// Offline data transfer storage account tenant ID
OfflineDataTransferStorageAccountTenantId pulumi.StringOutput `pulumi:"offlineDataTransferStorageAccountTenantId"`
// ServerEndpoint Provisioning State
ProvisioningState pulumi.StringOutput `pulumi:"provisioningState"`
// Recall status. Only populated if cloud tiering is enabled.
RecallStatus ServerEndpointRecallStatusResponseOutput `pulumi:"recallStatus"`
// Server Local path.
ServerLocalPath pulumi.StringPtrOutput `pulumi:"serverLocalPath"`
// Server Resource Id.
ServerResourceId pulumi.StringPtrOutput `pulumi:"serverResourceId"`
// Server Endpoint sync status
SyncStatus ServerEndpointSyncStatusResponseOutput `pulumi:"syncStatus"`
// Tier files older than days.
TierFilesOlderThanDays pulumi.IntPtrOutput `pulumi:"tierFilesOlderThanDays"`
// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Type pulumi.StringOutput `pulumi:"type"`
// Level of free space to be maintained by Cloud Tiering if it is enabled.
VolumeFreeSpacePercent pulumi.IntPtrOutput `pulumi:"volumeFreeSpacePercent"`
}
// NewServerEndpoint registers a new resource with the given unique name, arguments, and options.
func NewServerEndpoint(ctx *pulumi.Context,
name string, args *ServerEndpointArgs, opts ...pulumi.ResourceOption) (*ServerEndpoint, error) {
if args == nil || args.ResourceGroupName == nil {
return nil, errors.New("missing required argument 'ResourceGroupName'")
}
if args == nil || args.ServerEndpointName == nil {
return nil, errors.New("missing required argument 'ServerEndpointName'")
}
if args == nil || args.StorageSyncServiceName == nil {
return nil, errors.New("missing required argument 'StorageSyncServiceName'")
}
if args == nil || args.SyncGroupName == nil {
return nil, errors.New("missing required argument 'SyncGroupName'")
}
if args == nil {
args = &ServerEndpointArgs{}
}
aliases := pulumi.Aliases([]pulumi.Alias{
{
Type: pulumi.String("azure-nextgen:storagesync/latest:ServerEndpoint"),
},
{
Type: pulumi.String("azure-nextgen:storagesync/v20170605preview:ServerEndpoint"),
},
{
Type: pulumi.String("azure-nextgen:storagesync/v20180402:ServerEndpoint"),
},
{
Type: pulumi.String("azure-nextgen:storagesync/v20180701:ServerEndpoint"),
},
{
Type: pulumi.String("azure-nextgen:storagesync/v20181001:ServerEndpoint"),
},
{
Type: pulumi.String("azure-nextgen:storagesync/v20190201:ServerEndpoint"),
},
{
Type: pulumi.String("azure-nextgen:storagesync/v20190301:ServerEndpoint"),
},
{
Type: pulumi.String("azure-nextgen:storagesync/v20190601:ServerEndpoint"),
},
{
Type: pulumi.String("azure-nextgen:storagesync/v20200301:ServerEndpoint"),
},
{
Type: pulumi.String("azure-nextgen:storagesync/v20200901:ServerEndpoint"),
},
})
opts = append(opts, aliases)
var resource ServerEndpoint
err := ctx.RegisterResource("azure-nextgen:storagesync/v20191001:ServerEndpoint", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetServerEndpoint gets an existing ServerEndpoint resource's state with the given name, ID, and optional
// state properties that are used to uniquely qualify the lookup (nil if not required).
func GetServerEndpoint(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *ServerEndpointState, opts ...pulumi.ResourceOption) (*ServerEndpoint, error) {
var resource ServerEndpoint
err := ctx.ReadResource("azure-nextgen:storagesync/v20191001:ServerEndpoint", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering ServerEndpoint resources.
type serverEndpointState struct {
// Cloud Tiering.
CloudTiering *string `pulumi:"cloudTiering"`
// Cloud tiering status. Only populated if cloud tiering is enabled.
CloudTieringStatus *ServerEndpointCloudTieringStatusResponse `pulumi:"cloudTieringStatus"`
// Friendly Name
FriendlyName *string `pulumi:"friendlyName"`
// Resource Last Operation Name
LastOperationName *string `pulumi:"lastOperationName"`
// ServerEndpoint lastWorkflowId
LastWorkflowId *string `pulumi:"lastWorkflowId"`
// The name of the resource
Name *string `pulumi:"name"`
// Offline data transfer
OfflineDataTransfer *string `pulumi:"offlineDataTransfer"`
// Offline data transfer share name
OfflineDataTransferShareName *string `pulumi:"offlineDataTransferShareName"`
// Offline data transfer storage account resource ID
OfflineDataTransferStorageAccountResourceId *string `pulumi:"offlineDataTransferStorageAccountResourceId"`
// Offline data transfer storage account tenant ID
OfflineDataTransferStorageAccountTenantId *string `pulumi:"offlineDataTransferStorageAccountTenantId"`
// ServerEndpoint Provisioning State
ProvisioningState *string `pulumi:"provisioningState"`
// Recall status. Only populated if cloud tiering is enabled.
RecallStatus *ServerEndpointRecallStatusResponse `pulumi:"recallStatus"`
// Server Local path.
ServerLocalPath *string `pulumi:"serverLocalPath"`
// Server Resource Id.
ServerResourceId *string `pulumi:"serverResourceId"`
// Server Endpoint sync status
SyncStatus *ServerEndpointSyncStatusResponse `pulumi:"syncStatus"`
// Tier files older than days.
TierFilesOlderThanDays *int `pulumi:"tierFilesOlderThanDays"`
// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Type *string `pulumi:"type"`
// Level of free space to be maintained by Cloud Tiering if it is enabled.
VolumeFreeSpacePercent *int `pulumi:"volumeFreeSpacePercent"`
}
type ServerEndpointState struct {
// Cloud Tiering.
CloudTiering pulumi.StringPtrInput
// Cloud tiering status. Only populated if cloud tiering is enabled.
CloudTieringStatus ServerEndpointCloudTieringStatusResponsePtrInput
// Friendly Name
FriendlyName pulumi.StringPtrInput
// Resource Last Operation Name
LastOperationName pulumi.StringPtrInput
// ServerEndpoint lastWorkflowId
LastWorkflowId pulumi.StringPtrInput
// The name of the resource
Name pulumi.StringPtrInput
// Offline data transfer
OfflineDataTransfer pulumi.StringPtrInput
// Offline data transfer share name
OfflineDataTransferShareName pulumi.StringPtrInput
// Offline data transfer storage account resource ID
OfflineDataTransferStorageAccountResourceId pulumi.StringPtrInput
// Offline data transfer storage account tenant ID
OfflineDataTransferStorageAccountTenantId pulumi.StringPtrInput
// ServerEndpoint Provisioning State
ProvisioningState pulumi.StringPtrInput
// Recall status. Only populated if cloud tiering is enabled.
RecallStatus ServerEndpointRecallStatusResponsePtrInput
// Server Local path.
ServerLocalPath pulumi.StringPtrInput
// Server Resource Id.
ServerResourceId pulumi.StringPtrInput
// Server Endpoint sync status
SyncStatus ServerEndpointSyncStatusResponsePtrInput
// Tier files older than days.
TierFilesOlderThanDays pulumi.IntPtrInput
// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Type pulumi.StringPtrInput
// Level of free space to be maintained by Cloud Tiering if it is enabled.
VolumeFreeSpacePercent pulumi.IntPtrInput
}
func (ServerEndpointState) ElementType() reflect.Type {
return reflect.TypeOf((*serverEndpointState)(nil)).Elem()
}
type serverEndpointArgs struct {
// Cloud Tiering.
CloudTiering *string `pulumi:"cloudTiering"`
// Friendly Name
FriendlyName *string `pulumi:"friendlyName"`
// Offline data transfer
OfflineDataTransfer *string `pulumi:"offlineDataTransfer"`
// Offline data transfer share name
OfflineDataTransferShareName *string `pulumi:"offlineDataTransferShareName"`
// The name of the resource group. The name is case insensitive.
ResourceGroupName string `pulumi:"resourceGroupName"`
// Name of Server Endpoint object.
ServerEndpointName string `pulumi:"serverEndpointName"`
// Server Local path.
ServerLocalPath *string `pulumi:"serverLocalPath"`
// Server Resource Id.
ServerResourceId *string `pulumi:"serverResourceId"`
// Name of Storage Sync Service resource.
StorageSyncServiceName string `pulumi:"storageSyncServiceName"`
// Name of Sync Group resource.
SyncGroupName string `pulumi:"syncGroupName"`
// Tier files older than days.
TierFilesOlderThanDays *int `pulumi:"tierFilesOlderThanDays"`
// Level of free space to be maintained by Cloud Tiering if it is enabled.
VolumeFreeSpacePercent *int `pulumi:"volumeFreeSpacePercent"`
}
// The set of arguments for constructing a ServerEndpoint resource.
type ServerEndpointArgs struct {
// Cloud Tiering.
CloudTiering pulumi.StringPtrInput
// Friendly Name
FriendlyName pulumi.StringPtrInput
// Offline data transfer
OfflineDataTransfer pulumi.StringPtrInput
// Offline data transfer share name
OfflineDataTransferShareName pulumi.StringPtrInput
// The name of the resource group. The name is case insensitive.
ResourceGroupName pulumi.StringInput
// Name of Server Endpoint object.
ServerEndpointName pulumi.StringInput
// Server Local path.
ServerLocalPath pulumi.StringPtrInput
// Server Resource Id.
ServerResourceId pulumi.StringPtrInput
// Name of Storage Sync Service resource.
StorageSyncServiceName pulumi.StringInput
// Name of Sync Group resource.
SyncGroupName pulumi.StringInput
// Tier files older than days.
TierFilesOlderThanDays pulumi.IntPtrInput
// Level of free space to be maintained by Cloud Tiering if it is enabled.
VolumeFreeSpacePercent pulumi.IntPtrInput
}
func (ServerEndpointArgs) ElementType() reflect.Type {
return reflect.TypeOf((*serverEndpointArgs)(nil)).Elem()
}
type ServerEndpointInput interface {
pulumi.Input
ToServerEndpointOutput() ServerEndpointOutput
ToServerEndpointOutputWithContext(ctx context.Context) ServerEndpointOutput
}
func (ServerEndpoint) ElementType() reflect.Type {
return reflect.TypeOf((*ServerEndpoint)(nil)).Elem()
}
func (i ServerEndpoint) ToServerEndpointOutput() ServerEndpointOutput {
return i.ToServerEndpointOutputWithContext(context.Background())
}
func (i ServerEndpoint) ToServerEndpointOutputWithContext(ctx context.Context) ServerEndpointOutput {
return pulumi.ToOutputWithContext(ctx, i).(ServerEndpointOutput)
}
type ServerEndpointOutput struct {
*pulumi.OutputState
}
func (ServerEndpointOutput) ElementType() reflect.Type {
return reflect.TypeOf((*ServerEndpointOutput)(nil)).Elem()
}
func (o ServerEndpointOutput) ToServerEndpointOutput() ServerEndpointOutput {
return o
}
func (o ServerEndpointOutput) ToServerEndpointOutputWithContext(ctx context.Context) ServerEndpointOutput {
return o
}
func init() {
pulumi.RegisterOutputType(ServerEndpointOutput{})
}