This repository has been archived by the owner on Mar 11, 2021. It is now read-only.
/
getService.go
64 lines (59 loc) · 2.87 KB
/
getService.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
// *** 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 v20190301preview
import (
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func LookupService(ctx *pulumi.Context, args *LookupServiceArgs, opts ...pulumi.InvokeOption) (*LookupServiceResult, error) {
var rv LookupServiceResult
err := ctx.Invoke("azure-nextgen:servicefabric/v20190301preview:getService", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
type LookupServiceArgs struct {
// The name of the application resource.
ApplicationName string `pulumi:"applicationName"`
// The name of the cluster resource.
ClusterName string `pulumi:"clusterName"`
// The name of the resource group.
ResourceGroupName string `pulumi:"resourceGroupName"`
// The name of the service resource in the format of {applicationName}~{serviceName}.
ServiceName string `pulumi:"serviceName"`
}
// The service resource.
type LookupServiceResult struct {
// A list that describes the correlation of the service with other services.
CorrelationScheme []ServiceCorrelationDescriptionResponse `pulumi:"correlationScheme"`
// Specifies the move cost for the service.
DefaultMoveCost *string `pulumi:"defaultMoveCost"`
// Azure resource etag.
Etag string `pulumi:"etag"`
// Azure resource identifier.
Id string `pulumi:"id"`
// Azure resource location.
Location *string `pulumi:"location"`
// Azure resource name.
Name string `pulumi:"name"`
// Describes how the service is partitioned.
PartitionDescription interface{} `pulumi:"partitionDescription"`
// The placement constraints as a string. Placement constraints are boolean expressions on node properties and allow for restricting a service to particular nodes based on the service requirements. For example, to place a service on nodes where NodeType is blue specify the following: "NodeColor == blue)".
PlacementConstraints *string `pulumi:"placementConstraints"`
// The current deployment or provisioning state, which only appears in the response
ProvisioningState string `pulumi:"provisioningState"`
// The kind of service (Stateless or Stateful).
ServiceKind string `pulumi:"serviceKind"`
// The service load metrics is given as an array of ServiceLoadMetricDescription objects.
ServiceLoadMetrics []ServiceLoadMetricDescriptionResponse `pulumi:"serviceLoadMetrics"`
// The activation Mode of the service package
ServicePackageActivationMode *string `pulumi:"servicePackageActivationMode"`
// A list that describes the correlation of the service with other services.
ServicePlacementPolicies []ServicePlacementPolicyDescriptionResponse `pulumi:"servicePlacementPolicies"`
// The name of the service type
ServiceTypeName *string `pulumi:"serviceTypeName"`
// Azure resource tags.
Tags map[string]string `pulumi:"tags"`
// Azure resource type.
Type string `pulumi:"type"`
}