-
Notifications
You must be signed in to change notification settings - Fork 10
/
cloud_account_gcp_region_enumeration_specification.go
67 lines (53 loc) · 3.29 KB
/
cloud_account_gcp_region_enumeration_specification.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
65
66
67
// Code generated by go-swagger; DO NOT EDIT.
package models
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
import (
"context"
"github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
)
// CloudAccountGcpRegionEnumerationSpecification Specification for a region enumeration of gcp cloud account.
//
// swagger:model CloudAccountGcpRegionEnumerationSpecification
type CloudAccountGcpRegionEnumerationSpecification struct {
// GCP Client email. Either provide clientEmail or provide a cloudAccountId of an existing account.
// Example: 321743978432-compute@developer.gserviceaccount.com
ClientEmail string `json:"clientEmail,omitempty"`
// Existing cloud account id. Either provide id of existing account, or cloud account credentials: projectId, privateKeyId, privateKey and clientEmail.
// Example: b8b7a918-342e-4a53-a3b0-b935da0fe601
CloudAccountID string `json:"cloudAccountId,omitempty"`
// GCP Private key. Either provide privateKey or provide a cloudAccountId of an existing account.
// Example: -----BEGIN PRIVATE KEY-----\nMIICXgIHAASBgSDHikastc8+I81zCg/qWW8dMr8mqvXQ3qbPAmu0RjxoZVI47tvs\nkYlFAXOf0sPrhO2nUuooJngnHV0639iTTEYG1vckNaW2R6U5QTdQ5Rq5u+uV3pMk\n7w7Vs4n3urQ4jnqt7rTXbC1DNa/PFeAZatbf7ffBBy0IGO0zc128IshYcwIDAQAB\nAoGBALTNl2JxTvq4SDW/3VH0fZkQXWH1MM10oeMbB2qO5beWb11FGaOO77nGKfWc\nbYgfp5Ogrql2yhBvLAXnxH8bcqqwORtFhlyV68U1y4R+8WxDNh0aevxH8hRS/1X5\n963DJm1JlU0E+vStiktN0tC3ebH5hE+1OxbIHSZ+WOWLYX7JAkEA5uigRgKp8ScG\nauUijvdOLZIhHWq9y5Wz+nOHUuDw8P7wOTKU34QJAoWEe771p9Pf/GTA/kr0BQnP\nQvWUDxGzJwJBAN05C6krwPeryFKrKtjOGJIbiIoY72wRnoNcdEEs3HDRhf48YWFo\nriRbZylzzzNFy/gmzT6XJQTfktGqq+FZD9UCQGIJaGrxHJgfmpDuAhMzGsUsYtTr\niRox0D1Iqa7dhE693t5aBG010OF6MLqdZA1CXrn5SRtuVVaCSLZEL/2J5UcCQQDA\nd3MXucNnN4NPuS/L9HMYJWD7lPoosaORcgyK77bSSNgk+u9WSjbH1uYIAIPSffUZ\nbti+jc2dUg5wb+aeZlgJAkEAurrpmpqj5vg087ZngKfFGR5rozDiTsK5DceTV97K\na1Y+Nzl+XWTxDBWk4YPh2ZlKv402hZEfWBYxUDn5ZkH/bw==\n-----END PRIVATE KEY-----\n
PrivateKey string `json:"privateKey,omitempty"`
// GCP Private key ID. Either provide privateKeyId or provide a cloudAccountId of an existing account.
// Example: 027f73d50a19452eedf5775a9b42c5083678abdf
PrivateKeyID string `json:"privateKeyId,omitempty"`
// GCP Project ID. Either provide projectId or provide a cloudAccountId of an existing account.
// Example: example-gcp-project
ProjectID string `json:"projectId,omitempty"`
}
// Validate validates this cloud account gcp region enumeration specification
func (m *CloudAccountGcpRegionEnumerationSpecification) Validate(formats strfmt.Registry) error {
return nil
}
// ContextValidate validates this cloud account gcp region enumeration specification based on context it is used
func (m *CloudAccountGcpRegionEnumerationSpecification) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
return nil
}
// MarshalBinary interface implementation
func (m *CloudAccountGcpRegionEnumerationSpecification) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation
func (m *CloudAccountGcpRegionEnumerationSpecification) UnmarshalBinary(b []byte) error {
var res CloudAccountGcpRegionEnumerationSpecification
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}