This repository has been archived by the owner on Mar 11, 2021. It is now read-only.
/
getShare.go
58 lines (53 loc) · 2.17 KB
/
getShare.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
// *** 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 v20200901preview
import (
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func LookupShare(ctx *pulumi.Context, args *LookupShareArgs, opts ...pulumi.InvokeOption) (*LookupShareResult, error) {
var rv LookupShareResult
err := ctx.Invoke("azure-nextgen:databoxedge/v20200901preview:getShare", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
type LookupShareArgs struct {
// The device name.
DeviceName string `pulumi:"deviceName"`
// The share name.
Name string `pulumi:"name"`
// The resource group name.
ResourceGroupName string `pulumi:"resourceGroupName"`
}
// Represents a share on the Data Box Edge/Gateway device.
type LookupShareResult struct {
// Access protocol to be used by the share.
AccessProtocol string `pulumi:"accessProtocol"`
// Azure container mapping for the share.
AzureContainerInfo *AzureContainerInfoResponse `pulumi:"azureContainerInfo"`
// List of IP addresses and corresponding access rights on the share(required for NFS protocol).
ClientAccessRights []ClientAccessRightResponse `pulumi:"clientAccessRights"`
// Data policy of the share.
DataPolicy *string `pulumi:"dataPolicy"`
// Description for the share.
Description *string `pulumi:"description"`
// The path ID that uniquely identifies the object.
Id string `pulumi:"id"`
// Current monitoring status of the share.
MonitoringStatus string `pulumi:"monitoringStatus"`
// The object name.
Name string `pulumi:"name"`
// Details of the refresh job on this share.
RefreshDetails *RefreshDetailsResponse `pulumi:"refreshDetails"`
// Share mount point to the role.
ShareMappings []MountPointMapResponse `pulumi:"shareMappings"`
// Current status of the share.
ShareStatus string `pulumi:"shareStatus"`
// Share on ASE device
SystemData SystemDataResponse `pulumi:"systemData"`
// The hierarchical type of the object.
Type string `pulumi:"type"`
// Mapping of users and corresponding access rights on the share (required for SMB protocol).
UserAccessRights []UserAccessRightResponse `pulumi:"userAccessRights"`
}