This repository has been archived by the owner on Mar 11, 2021. It is now read-only.
/
getReplicationNetworkMapping.go
44 lines (39 loc) · 1.88 KB
/
getReplicationNetworkMapping.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
// *** 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 v20180710
import (
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func LookupReplicationNetworkMapping(ctx *pulumi.Context, args *LookupReplicationNetworkMappingArgs, opts ...pulumi.InvokeOption) (*LookupReplicationNetworkMappingResult, error) {
var rv LookupReplicationNetworkMappingResult
err := ctx.Invoke("azure-nextgen:recoveryservices/v20180710:getReplicationNetworkMapping", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
type LookupReplicationNetworkMappingArgs struct {
// Primary fabric name.
FabricName string `pulumi:"fabricName"`
// Network mapping name.
NetworkMappingName string `pulumi:"networkMappingName"`
// Primary network name.
NetworkName string `pulumi:"networkName"`
// The name of the resource group where the recovery services vault is present.
ResourceGroupName string `pulumi:"resourceGroupName"`
// The name of the recovery services vault.
ResourceName string `pulumi:"resourceName"`
}
// Network Mapping model. Ideally it should have been possible to inherit this class from prev version in InheritedModels as long as there is no difference in structure or method signature. Since there were no base Models for certain fields and methods viz NetworkMappingProperties and Load with required return type, the class has been introduced in its entirety with references to base models to facilitate extensions in subsequent versions.
type LookupReplicationNetworkMappingResult struct {
// Resource Id
Id string `pulumi:"id"`
// Resource Location
Location *string `pulumi:"location"`
// Resource Name
Name string `pulumi:"name"`
// The Network Mapping Properties.
Properties NetworkMappingPropertiesResponse `pulumi:"properties"`
// Resource Type
Type string `pulumi:"type"`
}