...

Source file src/github.com/Azure/azure-sdk-for-go/services/classic/management/hostedservice/entities.go

Documentation: github.com/Azure/azure-sdk-for-go/services/classic/management/hostedservice

     1  // +build go1.7
     2  
     3  package hostedservice
     4  
     5  // Copyright (c) Microsoft Corporation. All rights reserved.
     6  // Licensed under the MIT License. See License.txt in the project root for license information.
     7  
     8  import (
     9  	"encoding/xml"
    10  
    11  	"github.com/Azure/azure-sdk-for-go/services/classic/management"
    12  )
    13  
    14  //HostedServiceClient is used to perform operations on Azure Hosted Services
    15  type HostedServiceClient struct {
    16  	client management.Client
    17  }
    18  
    19  type CreateHostedServiceParameters struct {
    20  	XMLName        xml.Name `xml:"http://schemas.microsoft.com/windowsazure CreateHostedService"`
    21  	ServiceName    string
    22  	Label          string
    23  	Description    string
    24  	Location       string
    25  	ReverseDNSFqdn string `xml:"ReverseDnsFqdn,omitempty"`
    26  }
    27  
    28  type AvailabilityResponse struct {
    29  	Xmlns  string `xml:"xmlns,attr"`
    30  	Result bool
    31  	Reason string
    32  }
    33  
    34  type HostedService struct {
    35  	URL                               string `xml:"Url"`
    36  	ServiceName                       string
    37  	Description                       string `xml:"HostedServiceProperties>Description"`
    38  	AffinityGroup                     string `xml:"HostedServiceProperties>AffinityGroup"`
    39  	Location                          string `xml:"HostedServiceProperties>Location"`
    40  	LabelBase64                       string `xml:"HostedServiceProperties>Label"`
    41  	Label                             string
    42  	Status                            string `xml:"HostedServiceProperties>Status"`
    43  	ReverseDNSFqdn                    string `xml:"HostedServiceProperties>ReverseDnsFqdn"`
    44  	DefaultWinRmCertificateThumbprint string
    45  }
    46  
    47  type CertificateFile struct {
    48  	Xmlns             string `xml:"xmlns,attr"`
    49  	Data              string
    50  	CertificateFormat CertificateFormat
    51  	Password          string `xml:",omitempty"`
    52  }
    53  
    54  type CertificateFormat string
    55  
    56  const (
    57  	CertificateFormatPfx = CertificateFormat("pfx")
    58  	CertificateFormatCer = CertificateFormat("cer")
    59  )
    60  
    61  type ListHostedServicesResponse struct {
    62  	HostedServices []HostedService `xml:"HostedService"`
    63  }
    64  

View as plain text