Skip to content

Commit 42d9e41

Browse files
authored
Merge pull request #1194 from hashicorp/auto-pr/760d4961f
Auto PR: Regenerating the Go SDK (75f3e01)
2 parents 0104d6c + 75f3e01 commit 42d9e41

File tree

28 files changed

+1047
-135
lines changed

28 files changed

+1047
-135
lines changed

resource-manager/chaosstudio/2025-01-01/targets/model_target.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ import (
88
// Licensed under the MIT License. See NOTICE.txt in the project root for license information.
99

1010
type Target struct {
11-
Id *string `json:"id,omitempty"`
12-
Location *string `json:"location,omitempty"`
13-
Name *string `json:"name,omitempty"`
14-
Properties *map[string]interface{} `json:"properties,omitempty"`
15-
SystemData *systemdata.SystemData `json:"systemData,omitempty"`
16-
Type *string `json:"type,omitempty"`
11+
Id *string `json:"id,omitempty"`
12+
Location *string `json:"location,omitempty"`
13+
Name *string `json:"name,omitempty"`
14+
Properties map[string]interface{} `json:"properties"`
15+
SystemData *systemdata.SystemData `json:"systemData,omitempty"`
16+
Type *string `json:"type,omitempty"`
1717
}

resource-manager/datafactory/2018-06-01/dataflowdebugsession/constants.go

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,44 @@ import (
99
// Copyright (c) Microsoft Corporation. All rights reserved.
1010
// Licensed under the MIT License. See NOTICE.txt in the project root for license information.
1111

12+
type AmazonRdsForOracleAuthenticationType string
13+
14+
const (
15+
AmazonRdsForOracleAuthenticationTypeBasic AmazonRdsForOracleAuthenticationType = "Basic"
16+
)
17+
18+
func PossibleValuesForAmazonRdsForOracleAuthenticationType() []string {
19+
return []string{
20+
string(AmazonRdsForOracleAuthenticationTypeBasic),
21+
}
22+
}
23+
24+
func (s *AmazonRdsForOracleAuthenticationType) UnmarshalJSON(bytes []byte) error {
25+
var decoded string
26+
if err := json.Unmarshal(bytes, &decoded); err != nil {
27+
return fmt.Errorf("unmarshaling: %+v", err)
28+
}
29+
out, err := parseAmazonRdsForOracleAuthenticationType(decoded)
30+
if err != nil {
31+
return fmt.Errorf("parsing %q: %+v", decoded, err)
32+
}
33+
*s = *out
34+
return nil
35+
}
36+
37+
func parseAmazonRdsForOracleAuthenticationType(input string) (*AmazonRdsForOracleAuthenticationType, error) {
38+
vals := map[string]AmazonRdsForOracleAuthenticationType{
39+
"basic": AmazonRdsForOracleAuthenticationTypeBasic,
40+
}
41+
if v, ok := vals[strings.ToLower(input)]; ok {
42+
return &v, nil
43+
}
44+
45+
// otherwise presume it's an undefined value and best-effort it
46+
out := AmazonRdsForOracleAuthenticationType(input)
47+
return &out, nil
48+
}
49+
1250
type AmazonRdsForSqlAuthenticationType string
1351

1452
const (
@@ -994,6 +1032,47 @@ func parseImpalaAuthenticationType(input string) (*ImpalaAuthenticationType, err
9941032
return &out, nil
9951033
}
9961034

1035+
type ImpalaThriftTransportProtocol string
1036+
1037+
const (
1038+
ImpalaThriftTransportProtocolBinary ImpalaThriftTransportProtocol = "Binary"
1039+
ImpalaThriftTransportProtocolHTTP ImpalaThriftTransportProtocol = "HTTP"
1040+
)
1041+
1042+
func PossibleValuesForImpalaThriftTransportProtocol() []string {
1043+
return []string{
1044+
string(ImpalaThriftTransportProtocolBinary),
1045+
string(ImpalaThriftTransportProtocolHTTP),
1046+
}
1047+
}
1048+
1049+
func (s *ImpalaThriftTransportProtocol) UnmarshalJSON(bytes []byte) error {
1050+
var decoded string
1051+
if err := json.Unmarshal(bytes, &decoded); err != nil {
1052+
return fmt.Errorf("unmarshaling: %+v", err)
1053+
}
1054+
out, err := parseImpalaThriftTransportProtocol(decoded)
1055+
if err != nil {
1056+
return fmt.Errorf("parsing %q: %+v", decoded, err)
1057+
}
1058+
*s = *out
1059+
return nil
1060+
}
1061+
1062+
func parseImpalaThriftTransportProtocol(input string) (*ImpalaThriftTransportProtocol, error) {
1063+
vals := map[string]ImpalaThriftTransportProtocol{
1064+
"binary": ImpalaThriftTransportProtocolBinary,
1065+
"http": ImpalaThriftTransportProtocolHTTP,
1066+
}
1067+
if v, ok := vals[strings.ToLower(input)]; ok {
1068+
return &v, nil
1069+
}
1070+
1071+
// otherwise presume it's an undefined value and best-effort it
1072+
out := ImpalaThriftTransportProtocol(input)
1073+
return &out, nil
1074+
}
1075+
9971076
type IntegrationRuntimeEdition string
9981077

9991078
const (

resource-manager/datafactory/2018-06-01/dataflowdebugsession/model_amazonrdsforlinkedservicetypeproperties.go

Lines changed: 47 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,24 +9,66 @@ import (
99
// Licensed under the MIT License. See NOTICE.txt in the project root for license information.
1010

1111
type AmazonRdsForLinkedServiceTypeProperties struct {
12-
ConnectionString interface{} `json:"connectionString"`
13-
EncryptedCredential *string `json:"encryptedCredential,omitempty"`
14-
Password SecretBase `json:"password"`
12+
AuthenticationType *AmazonRdsForOracleAuthenticationType `json:"authenticationType,omitempty"`
13+
ConnectionString *interface{} `json:"connectionString,omitempty"`
14+
CryptoChecksumClient *interface{} `json:"cryptoChecksumClient,omitempty"`
15+
CryptoChecksumTypesClient *interface{} `json:"cryptoChecksumTypesClient,omitempty"`
16+
EnableBulkLoad *bool `json:"enableBulkLoad,omitempty"`
17+
EncryptedCredential *string `json:"encryptedCredential,omitempty"`
18+
EncryptionClient *interface{} `json:"encryptionClient,omitempty"`
19+
EncryptionTypesClient *interface{} `json:"encryptionTypesClient,omitempty"`
20+
FetchSize *int64 `json:"fetchSize,omitempty"`
21+
FetchTswtzAsTimestamp *bool `json:"fetchTswtzAsTimestamp,omitempty"`
22+
InitialLobFetchSize *int64 `json:"initialLobFetchSize,omitempty"`
23+
InitializationString *interface{} `json:"initializationString,omitempty"`
24+
Password SecretBase `json:"password"`
25+
Server *interface{} `json:"server,omitempty"`
26+
StatementCacheSize *int64 `json:"statementCacheSize,omitempty"`
27+
SupportV1DataTypes *bool `json:"supportV1DataTypes,omitempty"`
28+
Username *interface{} `json:"username,omitempty"`
1529
}
1630

1731
var _ json.Unmarshaler = &AmazonRdsForLinkedServiceTypeProperties{}
1832

1933
func (s *AmazonRdsForLinkedServiceTypeProperties) UnmarshalJSON(bytes []byte) error {
2034
var decoded struct {
21-
ConnectionString interface{} `json:"connectionString"`
22-
EncryptedCredential *string `json:"encryptedCredential,omitempty"`
35+
AuthenticationType *AmazonRdsForOracleAuthenticationType `json:"authenticationType,omitempty"`
36+
ConnectionString *interface{} `json:"connectionString,omitempty"`
37+
CryptoChecksumClient *interface{} `json:"cryptoChecksumClient,omitempty"`
38+
CryptoChecksumTypesClient *interface{} `json:"cryptoChecksumTypesClient,omitempty"`
39+
EnableBulkLoad *bool `json:"enableBulkLoad,omitempty"`
40+
EncryptedCredential *string `json:"encryptedCredential,omitempty"`
41+
EncryptionClient *interface{} `json:"encryptionClient,omitempty"`
42+
EncryptionTypesClient *interface{} `json:"encryptionTypesClient,omitempty"`
43+
FetchSize *int64 `json:"fetchSize,omitempty"`
44+
FetchTswtzAsTimestamp *bool `json:"fetchTswtzAsTimestamp,omitempty"`
45+
InitialLobFetchSize *int64 `json:"initialLobFetchSize,omitempty"`
46+
InitializationString *interface{} `json:"initializationString,omitempty"`
47+
Server *interface{} `json:"server,omitempty"`
48+
StatementCacheSize *int64 `json:"statementCacheSize,omitempty"`
49+
SupportV1DataTypes *bool `json:"supportV1DataTypes,omitempty"`
50+
Username *interface{} `json:"username,omitempty"`
2351
}
2452
if err := json.Unmarshal(bytes, &decoded); err != nil {
2553
return fmt.Errorf("unmarshaling: %+v", err)
2654
}
2755

56+
s.AuthenticationType = decoded.AuthenticationType
2857
s.ConnectionString = decoded.ConnectionString
58+
s.CryptoChecksumClient = decoded.CryptoChecksumClient
59+
s.CryptoChecksumTypesClient = decoded.CryptoChecksumTypesClient
60+
s.EnableBulkLoad = decoded.EnableBulkLoad
2961
s.EncryptedCredential = decoded.EncryptedCredential
62+
s.EncryptionClient = decoded.EncryptionClient
63+
s.EncryptionTypesClient = decoded.EncryptionTypesClient
64+
s.FetchSize = decoded.FetchSize
65+
s.FetchTswtzAsTimestamp = decoded.FetchTswtzAsTimestamp
66+
s.InitialLobFetchSize = decoded.InitialLobFetchSize
67+
s.InitializationString = decoded.InitializationString
68+
s.Server = decoded.Server
69+
s.StatementCacheSize = decoded.StatementCacheSize
70+
s.SupportV1DataTypes = decoded.SupportV1DataTypes
71+
s.Username = decoded.Username
3072

3173
var temp map[string]json.RawMessage
3274
if err := json.Unmarshal(bytes, &temp); err != nil {

resource-manager/datafactory/2018-06-01/dataflowdebugsession/model_azuredatabrickslinkedservicetypeproperties.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ type AzureDatabricksLinkedServiceTypeProperties struct {
1212
AccessToken SecretBase `json:"accessToken"`
1313
Authentication *interface{} `json:"authentication,omitempty"`
1414
Credential *CredentialReference `json:"credential,omitempty"`
15+
DataSecurityMode *interface{} `json:"dataSecurityMode,omitempty"`
1516
Domain interface{} `json:"domain"`
1617
EncryptedCredential *string `json:"encryptedCredential,omitempty"`
1718
ExistingClusterId *interface{} `json:"existingClusterId,omitempty"`
@@ -36,6 +37,7 @@ func (s *AzureDatabricksLinkedServiceTypeProperties) UnmarshalJSON(bytes []byte)
3637
var decoded struct {
3738
Authentication *interface{} `json:"authentication,omitempty"`
3839
Credential *CredentialReference `json:"credential,omitempty"`
40+
DataSecurityMode *interface{} `json:"dataSecurityMode,omitempty"`
3941
Domain interface{} `json:"domain"`
4042
EncryptedCredential *string `json:"encryptedCredential,omitempty"`
4143
ExistingClusterId *interface{} `json:"existingClusterId,omitempty"`
@@ -59,6 +61,7 @@ func (s *AzureDatabricksLinkedServiceTypeProperties) UnmarshalJSON(bytes []byte)
5961

6062
s.Authentication = decoded.Authentication
6163
s.Credential = decoded.Credential
64+
s.DataSecurityMode = decoded.DataSecurityMode
6265
s.Domain = decoded.Domain
6366
s.EncryptedCredential = decoded.EncryptedCredential
6467
s.ExistingClusterId = decoded.ExistingClusterId

resource-manager/datafactory/2018-06-01/dataflowdebugsession/model_impalalinkedservicetypeproperties.go

Lines changed: 27 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -9,33 +9,37 @@ import (
99
// Licensed under the MIT License. See NOTICE.txt in the project root for license information.
1010

1111
type ImpalaLinkedServiceTypeProperties struct {
12-
AllowHostNameCNMismatch *bool `json:"allowHostNameCNMismatch,omitempty"`
13-
AllowSelfSignedServerCert *bool `json:"allowSelfSignedServerCert,omitempty"`
14-
AuthenticationType ImpalaAuthenticationType `json:"authenticationType"`
15-
EnableSsl *bool `json:"enableSsl,omitempty"`
16-
EncryptedCredential *string `json:"encryptedCredential,omitempty"`
17-
Host interface{} `json:"host"`
18-
Password SecretBase `json:"password"`
19-
Port *int64 `json:"port,omitempty"`
20-
TrustedCertPath *interface{} `json:"trustedCertPath,omitempty"`
21-
UseSystemTrustStore *bool `json:"useSystemTrustStore,omitempty"`
22-
Username *interface{} `json:"username,omitempty"`
12+
AllowHostNameCNMismatch *bool `json:"allowHostNameCNMismatch,omitempty"`
13+
AllowSelfSignedServerCert *bool `json:"allowSelfSignedServerCert,omitempty"`
14+
AuthenticationType ImpalaAuthenticationType `json:"authenticationType"`
15+
EnableServerCertificateValidation *bool `json:"enableServerCertificateValidation,omitempty"`
16+
EnableSsl *bool `json:"enableSsl,omitempty"`
17+
EncryptedCredential *string `json:"encryptedCredential,omitempty"`
18+
Host interface{} `json:"host"`
19+
Password SecretBase `json:"password"`
20+
Port *int64 `json:"port,omitempty"`
21+
ThriftTransportProtocol *ImpalaThriftTransportProtocol `json:"thriftTransportProtocol,omitempty"`
22+
TrustedCertPath *interface{} `json:"trustedCertPath,omitempty"`
23+
UseSystemTrustStore *bool `json:"useSystemTrustStore,omitempty"`
24+
Username *interface{} `json:"username,omitempty"`
2325
}
2426

2527
var _ json.Unmarshaler = &ImpalaLinkedServiceTypeProperties{}
2628

2729
func (s *ImpalaLinkedServiceTypeProperties) UnmarshalJSON(bytes []byte) error {
2830
var decoded struct {
29-
AllowHostNameCNMismatch *bool `json:"allowHostNameCNMismatch,omitempty"`
30-
AllowSelfSignedServerCert *bool `json:"allowSelfSignedServerCert,omitempty"`
31-
AuthenticationType ImpalaAuthenticationType `json:"authenticationType"`
32-
EnableSsl *bool `json:"enableSsl,omitempty"`
33-
EncryptedCredential *string `json:"encryptedCredential,omitempty"`
34-
Host interface{} `json:"host"`
35-
Port *int64 `json:"port,omitempty"`
36-
TrustedCertPath *interface{} `json:"trustedCertPath,omitempty"`
37-
UseSystemTrustStore *bool `json:"useSystemTrustStore,omitempty"`
38-
Username *interface{} `json:"username,omitempty"`
31+
AllowHostNameCNMismatch *bool `json:"allowHostNameCNMismatch,omitempty"`
32+
AllowSelfSignedServerCert *bool `json:"allowSelfSignedServerCert,omitempty"`
33+
AuthenticationType ImpalaAuthenticationType `json:"authenticationType"`
34+
EnableServerCertificateValidation *bool `json:"enableServerCertificateValidation,omitempty"`
35+
EnableSsl *bool `json:"enableSsl,omitempty"`
36+
EncryptedCredential *string `json:"encryptedCredential,omitempty"`
37+
Host interface{} `json:"host"`
38+
Port *int64 `json:"port,omitempty"`
39+
ThriftTransportProtocol *ImpalaThriftTransportProtocol `json:"thriftTransportProtocol,omitempty"`
40+
TrustedCertPath *interface{} `json:"trustedCertPath,omitempty"`
41+
UseSystemTrustStore *bool `json:"useSystemTrustStore,omitempty"`
42+
Username *interface{} `json:"username,omitempty"`
3943
}
4044
if err := json.Unmarshal(bytes, &decoded); err != nil {
4145
return fmt.Errorf("unmarshaling: %+v", err)
@@ -44,10 +48,12 @@ func (s *ImpalaLinkedServiceTypeProperties) UnmarshalJSON(bytes []byte) error {
4448
s.AllowHostNameCNMismatch = decoded.AllowHostNameCNMismatch
4549
s.AllowSelfSignedServerCert = decoded.AllowSelfSignedServerCert
4650
s.AuthenticationType = decoded.AuthenticationType
51+
s.EnableServerCertificateValidation = decoded.EnableServerCertificateValidation
4752
s.EnableSsl = decoded.EnableSsl
4853
s.EncryptedCredential = decoded.EncryptedCredential
4954
s.Host = decoded.Host
5055
s.Port = decoded.Port
56+
s.ThriftTransportProtocol = decoded.ThriftTransportProtocol
5157
s.TrustedCertPath = decoded.TrustedCertPath
5258
s.UseSystemTrustStore = decoded.UseSystemTrustStore
5359
s.Username = decoded.Username

resource-manager/datafactory/2018-06-01/linkedservices/constants.go

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,44 @@ import (
99
// Copyright (c) Microsoft Corporation. All rights reserved.
1010
// Licensed under the MIT License. See NOTICE.txt in the project root for license information.
1111

12+
type AmazonRdsForOracleAuthenticationType string
13+
14+
const (
15+
AmazonRdsForOracleAuthenticationTypeBasic AmazonRdsForOracleAuthenticationType = "Basic"
16+
)
17+
18+
func PossibleValuesForAmazonRdsForOracleAuthenticationType() []string {
19+
return []string{
20+
string(AmazonRdsForOracleAuthenticationTypeBasic),
21+
}
22+
}
23+
24+
func (s *AmazonRdsForOracleAuthenticationType) UnmarshalJSON(bytes []byte) error {
25+
var decoded string
26+
if err := json.Unmarshal(bytes, &decoded); err != nil {
27+
return fmt.Errorf("unmarshaling: %+v", err)
28+
}
29+
out, err := parseAmazonRdsForOracleAuthenticationType(decoded)
30+
if err != nil {
31+
return fmt.Errorf("parsing %q: %+v", decoded, err)
32+
}
33+
*s = *out
34+
return nil
35+
}
36+
37+
func parseAmazonRdsForOracleAuthenticationType(input string) (*AmazonRdsForOracleAuthenticationType, error) {
38+
vals := map[string]AmazonRdsForOracleAuthenticationType{
39+
"basic": AmazonRdsForOracleAuthenticationTypeBasic,
40+
}
41+
if v, ok := vals[strings.ToLower(input)]; ok {
42+
return &v, nil
43+
}
44+
45+
// otherwise presume it's an undefined value and best-effort it
46+
out := AmazonRdsForOracleAuthenticationType(input)
47+
return &out, nil
48+
}
49+
1250
type AmazonRdsForSqlAuthenticationType string
1351

1452
const (
@@ -830,6 +868,47 @@ func parseImpalaAuthenticationType(input string) (*ImpalaAuthenticationType, err
830868
return &out, nil
831869
}
832870

871+
type ImpalaThriftTransportProtocol string
872+
873+
const (
874+
ImpalaThriftTransportProtocolBinary ImpalaThriftTransportProtocol = "Binary"
875+
ImpalaThriftTransportProtocolHTTP ImpalaThriftTransportProtocol = "HTTP"
876+
)
877+
878+
func PossibleValuesForImpalaThriftTransportProtocol() []string {
879+
return []string{
880+
string(ImpalaThriftTransportProtocolBinary),
881+
string(ImpalaThriftTransportProtocolHTTP),
882+
}
883+
}
884+
885+
func (s *ImpalaThriftTransportProtocol) UnmarshalJSON(bytes []byte) error {
886+
var decoded string
887+
if err := json.Unmarshal(bytes, &decoded); err != nil {
888+
return fmt.Errorf("unmarshaling: %+v", err)
889+
}
890+
out, err := parseImpalaThriftTransportProtocol(decoded)
891+
if err != nil {
892+
return fmt.Errorf("parsing %q: %+v", decoded, err)
893+
}
894+
*s = *out
895+
return nil
896+
}
897+
898+
func parseImpalaThriftTransportProtocol(input string) (*ImpalaThriftTransportProtocol, error) {
899+
vals := map[string]ImpalaThriftTransportProtocol{
900+
"binary": ImpalaThriftTransportProtocolBinary,
901+
"http": ImpalaThriftTransportProtocolHTTP,
902+
}
903+
if v, ok := vals[strings.ToLower(input)]; ok {
904+
return &v, nil
905+
}
906+
907+
// otherwise presume it's an undefined value and best-effort it
908+
out := ImpalaThriftTransportProtocol(input)
909+
return &out, nil
910+
}
911+
833912
type IntegrationRuntimeReferenceType string
834913

835914
const (

0 commit comments

Comments
 (0)