-
Notifications
You must be signed in to change notification settings - Fork 31
/
azure_service_principal.go
58 lines (45 loc) · 1.7 KB
/
azure_service_principal.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
/*
Copyright © 2023 VMware, Inc. All Rights Reserved.
SPDX-License-Identifier: MPL-2.0
*/
// Code generated by go-swagger; DO NOT EDIT.
// Code generated by go-swagger; DO NOT EDIT.
package credentialmodels
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
import (
"github.com/go-openapi/swag"
)
// VmwareTanzuManageV1alpha1AccountCredentialTypeAzureServicePrincipal Azure Service Principal.
//
// swagger:model vmware.tanzu.manage.v1alpha1.account.credential.type.azure.ServicePrincipal
type VmwareTanzuManageV1alpha1AccountCredentialTypeAzureServicePrincipal struct {
// Azure Cloud name.
AzureCloudName string `json:"azureCloudName,omitempty"`
// Client ID of the Service Principal.
ClientID string `json:"clientId,omitempty"`
// Client Secret of the Service Principal.
ClientSecret string `json:"clientSecret,omitempty"`
// Resource Group name.
ResourceGroup string `json:"resourceGroup,omitempty"`
// Subscription ID of the Azure credential.
SubscriptionID string `json:"subscriptionId,omitempty"`
// Tenant ID of the Azure credential.
TenantID string `json:"tenantId,omitempty"`
}
// MarshalBinary interface implementation
func (m *VmwareTanzuManageV1alpha1AccountCredentialTypeAzureServicePrincipal) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation
func (m *VmwareTanzuManageV1alpha1AccountCredentialTypeAzureServicePrincipal) UnmarshalBinary(b []byte) error {
var res VmwareTanzuManageV1alpha1AccountCredentialTypeAzureServicePrincipal
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}