Skip to content

Commit f96ec77

Browse files
author
hc-github-team-tf-azure
committed
Updating based on 9ffbba56c
1 parent bf40cb4 commit f96ec77

File tree

82 files changed

+5932
-42
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+5932
-42
lines changed

resource-manager/applicationinsights/2015-05-01/componentproactivedetectionapis/model_applicationinsightscomponentproactivedetectionconfiguration.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ package componentproactivedetectionapis
44
// Licensed under the MIT License. See NOTICE.txt in the project root for license information.
55

66
type ApplicationInsightsComponentProactiveDetectionConfiguration struct {
7-
CustomEmails *[]string `json:"CustomEmails,omitempty"`
8-
Enabled *bool `json:"Enabled,omitempty"`
9-
LastUpdatedTime *string `json:"LastUpdatedTime,omitempty"`
10-
Name *string `json:"Name,omitempty"`
11-
RuleDefinitions *ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions `json:"RuleDefinitions,omitempty"`
12-
SendEmailsToSubscriptionOwners *bool `json:"SendEmailsToSubscriptionOwners,omitempty"`
7+
CustomEmails *[]string `json:"customEmails,omitempty"`
8+
Enabled *bool `json:"enabled,omitempty"`
9+
LastUpdatedTime *string `json:"lastUpdatedTime,omitempty"`
10+
Name *string `json:"name,omitempty"`
11+
RuleDefinitions *ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions `json:"ruleDefinitions,omitempty"`
12+
SendEmailsToSubscriptionOwners *bool `json:"sendEmailsToSubscriptionOwners,omitempty"`
1313
}

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

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -686,6 +686,44 @@ func parseGoogleBigQueryV2AuthenticationType(input string) (*GoogleBigQueryV2Aut
686686
return &out, nil
687687
}
688688

689+
type GreenplumAuthenticationType string
690+
691+
const (
692+
GreenplumAuthenticationTypeBasic GreenplumAuthenticationType = "Basic"
693+
)
694+
695+
func PossibleValuesForGreenplumAuthenticationType() []string {
696+
return []string{
697+
string(GreenplumAuthenticationTypeBasic),
698+
}
699+
}
700+
701+
func (s *GreenplumAuthenticationType) UnmarshalJSON(bytes []byte) error {
702+
var decoded string
703+
if err := json.Unmarshal(bytes, &decoded); err != nil {
704+
return fmt.Errorf("unmarshaling: %+v", err)
705+
}
706+
out, err := parseGreenplumAuthenticationType(decoded)
707+
if err != nil {
708+
return fmt.Errorf("parsing %q: %+v", decoded, err)
709+
}
710+
*s = *out
711+
return nil
712+
}
713+
714+
func parseGreenplumAuthenticationType(input string) (*GreenplumAuthenticationType, error) {
715+
vals := map[string]GreenplumAuthenticationType{
716+
"basic": GreenplumAuthenticationTypeBasic,
717+
}
718+
if v, ok := vals[strings.ToLower(input)]; ok {
719+
return &v, nil
720+
}
721+
722+
// otherwise presume it's an undefined value and best-effort it
723+
out := GreenplumAuthenticationType(input)
724+
return &out, nil
725+
}
726+
689727
type HBaseAuthenticationType string
690728

691729
const (
@@ -1402,6 +1440,44 @@ func parseODataAuthenticationType(input string) (*ODataAuthenticationType, error
14021440
return &out, nil
14031441
}
14041442

1443+
type OracleAuthenticationType string
1444+
1445+
const (
1446+
OracleAuthenticationTypeBasic OracleAuthenticationType = "Basic"
1447+
)
1448+
1449+
func PossibleValuesForOracleAuthenticationType() []string {
1450+
return []string{
1451+
string(OracleAuthenticationTypeBasic),
1452+
}
1453+
}
1454+
1455+
func (s *OracleAuthenticationType) UnmarshalJSON(bytes []byte) error {
1456+
var decoded string
1457+
if err := json.Unmarshal(bytes, &decoded); err != nil {
1458+
return fmt.Errorf("unmarshaling: %+v", err)
1459+
}
1460+
out, err := parseOracleAuthenticationType(decoded)
1461+
if err != nil {
1462+
return fmt.Errorf("parsing %q: %+v", decoded, err)
1463+
}
1464+
*s = *out
1465+
return nil
1466+
}
1467+
1468+
func parseOracleAuthenticationType(input string) (*OracleAuthenticationType, error) {
1469+
vals := map[string]OracleAuthenticationType{
1470+
"basic": OracleAuthenticationTypeBasic,
1471+
}
1472+
if v, ok := vals[strings.ToLower(input)]; ok {
1473+
return &v, nil
1474+
}
1475+
1476+
// otherwise presume it's an undefined value and best-effort it
1477+
out := OracleAuthenticationType(input)
1478+
return &out, nil
1479+
}
1480+
14051481
type ParameterType string
14061482

14071483
const (
Lines changed: 107 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,114 @@
11
package dataflowdebugsession
22

3+
import (
4+
"encoding/json"
5+
"fmt"
6+
)
7+
38
// Copyright (c) Microsoft Corporation. All rights reserved.
49
// Licensed under the MIT License. See NOTICE.txt in the project root for license information.
510

611
type AzurePostgreSqlLinkedServiceTypeProperties struct {
7-
CommandTimeout *int64 `json:"commandTimeout,omitempty"`
8-
ConnectionString *string `json:"connectionString,omitempty"`
9-
Database *string `json:"database,omitempty"`
10-
Encoding *string `json:"encoding,omitempty"`
11-
EncryptedCredential *string `json:"encryptedCredential,omitempty"`
12-
Password *AzureKeyVaultSecretReference `json:"password,omitempty"`
13-
Port *int64 `json:"port,omitempty"`
14-
ReadBufferSize *int64 `json:"readBufferSize,omitempty"`
15-
Server *string `json:"server,omitempty"`
16-
SslMode *int64 `json:"sslMode,omitempty"`
17-
Timeout *int64 `json:"timeout,omitempty"`
18-
Timezone *string `json:"timezone,omitempty"`
19-
TrustServerCertificate *bool `json:"trustServerCertificate,omitempty"`
20-
Username *string `json:"username,omitempty"`
12+
AzureCloudType *string `json:"azureCloudType,omitempty"`
13+
CommandTimeout *int64 `json:"commandTimeout,omitempty"`
14+
ConnectionString *string `json:"connectionString,omitempty"`
15+
Credential *CredentialReference `json:"credential,omitempty"`
16+
Database *string `json:"database,omitempty"`
17+
Encoding *string `json:"encoding,omitempty"`
18+
EncryptedCredential *string `json:"encryptedCredential,omitempty"`
19+
Password *AzureKeyVaultSecretReference `json:"password,omitempty"`
20+
Port *int64 `json:"port,omitempty"`
21+
ReadBufferSize *int64 `json:"readBufferSize,omitempty"`
22+
Server *string `json:"server,omitempty"`
23+
ServicePrincipalCredentialType *string `json:"servicePrincipalCredentialType,omitempty"`
24+
ServicePrincipalEmbeddedCert SecretBase `json:"servicePrincipalEmbeddedCert"`
25+
ServicePrincipalEmbeddedCertPassword SecretBase `json:"servicePrincipalEmbeddedCertPassword"`
26+
ServicePrincipalId *string `json:"servicePrincipalId,omitempty"`
27+
ServicePrincipalKey SecretBase `json:"servicePrincipalKey"`
28+
SslMode *int64 `json:"sslMode,omitempty"`
29+
Tenant *string `json:"tenant,omitempty"`
30+
Timeout *int64 `json:"timeout,omitempty"`
31+
Timezone *string `json:"timezone,omitempty"`
32+
TrustServerCertificate *bool `json:"trustServerCertificate,omitempty"`
33+
Username *string `json:"username,omitempty"`
34+
}
35+
36+
var _ json.Unmarshaler = &AzurePostgreSqlLinkedServiceTypeProperties{}
37+
38+
func (s *AzurePostgreSqlLinkedServiceTypeProperties) UnmarshalJSON(bytes []byte) error {
39+
var decoded struct {
40+
AzureCloudType *string `json:"azureCloudType,omitempty"`
41+
CommandTimeout *int64 `json:"commandTimeout,omitempty"`
42+
ConnectionString *string `json:"connectionString,omitempty"`
43+
Credential *CredentialReference `json:"credential,omitempty"`
44+
Database *string `json:"database,omitempty"`
45+
Encoding *string `json:"encoding,omitempty"`
46+
EncryptedCredential *string `json:"encryptedCredential,omitempty"`
47+
Password *AzureKeyVaultSecretReference `json:"password,omitempty"`
48+
Port *int64 `json:"port,omitempty"`
49+
ReadBufferSize *int64 `json:"readBufferSize,omitempty"`
50+
Server *string `json:"server,omitempty"`
51+
ServicePrincipalCredentialType *string `json:"servicePrincipalCredentialType,omitempty"`
52+
ServicePrincipalId *string `json:"servicePrincipalId,omitempty"`
53+
SslMode *int64 `json:"sslMode,omitempty"`
54+
Tenant *string `json:"tenant,omitempty"`
55+
Timeout *int64 `json:"timeout,omitempty"`
56+
Timezone *string `json:"timezone,omitempty"`
57+
TrustServerCertificate *bool `json:"trustServerCertificate,omitempty"`
58+
Username *string `json:"username,omitempty"`
59+
}
60+
if err := json.Unmarshal(bytes, &decoded); err != nil {
61+
return fmt.Errorf("unmarshaling: %+v", err)
62+
}
63+
64+
s.AzureCloudType = decoded.AzureCloudType
65+
s.CommandTimeout = decoded.CommandTimeout
66+
s.ConnectionString = decoded.ConnectionString
67+
s.Credential = decoded.Credential
68+
s.Database = decoded.Database
69+
s.Encoding = decoded.Encoding
70+
s.EncryptedCredential = decoded.EncryptedCredential
71+
s.Password = decoded.Password
72+
s.Port = decoded.Port
73+
s.ReadBufferSize = decoded.ReadBufferSize
74+
s.Server = decoded.Server
75+
s.ServicePrincipalCredentialType = decoded.ServicePrincipalCredentialType
76+
s.ServicePrincipalId = decoded.ServicePrincipalId
77+
s.SslMode = decoded.SslMode
78+
s.Tenant = decoded.Tenant
79+
s.Timeout = decoded.Timeout
80+
s.Timezone = decoded.Timezone
81+
s.TrustServerCertificate = decoded.TrustServerCertificate
82+
s.Username = decoded.Username
83+
84+
var temp map[string]json.RawMessage
85+
if err := json.Unmarshal(bytes, &temp); err != nil {
86+
return fmt.Errorf("unmarshaling AzurePostgreSqlLinkedServiceTypeProperties into map[string]json.RawMessage: %+v", err)
87+
}
88+
89+
if v, ok := temp["servicePrincipalEmbeddedCert"]; ok {
90+
impl, err := UnmarshalSecretBaseImplementation(v)
91+
if err != nil {
92+
return fmt.Errorf("unmarshaling field 'ServicePrincipalEmbeddedCert' for 'AzurePostgreSqlLinkedServiceTypeProperties': %+v", err)
93+
}
94+
s.ServicePrincipalEmbeddedCert = impl
95+
}
96+
97+
if v, ok := temp["servicePrincipalEmbeddedCertPassword"]; ok {
98+
impl, err := UnmarshalSecretBaseImplementation(v)
99+
if err != nil {
100+
return fmt.Errorf("unmarshaling field 'ServicePrincipalEmbeddedCertPassword' for 'AzurePostgreSqlLinkedServiceTypeProperties': %+v", err)
101+
}
102+
s.ServicePrincipalEmbeddedCertPassword = impl
103+
}
104+
105+
if v, ok := temp["servicePrincipalKey"]; ok {
106+
impl, err := UnmarshalSecretBaseImplementation(v)
107+
if err != nil {
108+
return fmt.Errorf("unmarshaling field 'ServicePrincipalKey' for 'AzurePostgreSqlLinkedServiceTypeProperties': %+v", err)
109+
}
110+
s.ServicePrincipalKey = impl
111+
}
112+
113+
return nil
21114
}
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,72 @@
11
package dataflowdebugsession
22

3+
import (
4+
"encoding/json"
5+
"fmt"
6+
)
7+
38
// Copyright (c) Microsoft Corporation. All rights reserved.
49
// Licensed under the MIT License. See NOTICE.txt in the project root for license information.
510

611
type GreenplumLinkedServiceTypeProperties struct {
12+
AuthenticationType *GreenplumAuthenticationType `json:"authenticationType,omitempty"`
13+
CommandTimeout *int64 `json:"commandTimeout,omitempty"`
714
ConnectionString *string `json:"connectionString,omitempty"`
15+
ConnectionTimeout *int64 `json:"connectionTimeout,omitempty"`
16+
Database *string `json:"database,omitempty"`
817
EncryptedCredential *string `json:"encryptedCredential,omitempty"`
18+
Host *string `json:"host,omitempty"`
19+
Password SecretBase `json:"password"`
20+
Port *int64 `json:"port,omitempty"`
921
Pwd *AzureKeyVaultSecretReference `json:"pwd,omitempty"`
22+
SslMode *int64 `json:"sslMode,omitempty"`
23+
Username *string `json:"username,omitempty"`
24+
}
25+
26+
var _ json.Unmarshaler = &GreenplumLinkedServiceTypeProperties{}
27+
28+
func (s *GreenplumLinkedServiceTypeProperties) UnmarshalJSON(bytes []byte) error {
29+
var decoded struct {
30+
AuthenticationType *GreenplumAuthenticationType `json:"authenticationType,omitempty"`
31+
CommandTimeout *int64 `json:"commandTimeout,omitempty"`
32+
ConnectionString *string `json:"connectionString,omitempty"`
33+
ConnectionTimeout *int64 `json:"connectionTimeout,omitempty"`
34+
Database *string `json:"database,omitempty"`
35+
EncryptedCredential *string `json:"encryptedCredential,omitempty"`
36+
Host *string `json:"host,omitempty"`
37+
Port *int64 `json:"port,omitempty"`
38+
Pwd *AzureKeyVaultSecretReference `json:"pwd,omitempty"`
39+
SslMode *int64 `json:"sslMode,omitempty"`
40+
Username *string `json:"username,omitempty"`
41+
}
42+
if err := json.Unmarshal(bytes, &decoded); err != nil {
43+
return fmt.Errorf("unmarshaling: %+v", err)
44+
}
45+
46+
s.AuthenticationType = decoded.AuthenticationType
47+
s.CommandTimeout = decoded.CommandTimeout
48+
s.ConnectionString = decoded.ConnectionString
49+
s.ConnectionTimeout = decoded.ConnectionTimeout
50+
s.Database = decoded.Database
51+
s.EncryptedCredential = decoded.EncryptedCredential
52+
s.Host = decoded.Host
53+
s.Port = decoded.Port
54+
s.Pwd = decoded.Pwd
55+
s.SslMode = decoded.SslMode
56+
s.Username = decoded.Username
57+
58+
var temp map[string]json.RawMessage
59+
if err := json.Unmarshal(bytes, &temp); err != nil {
60+
return fmt.Errorf("unmarshaling GreenplumLinkedServiceTypeProperties into map[string]json.RawMessage: %+v", err)
61+
}
62+
63+
if v, ok := temp["password"]; ok {
64+
impl, err := UnmarshalSecretBaseImplementation(v)
65+
if err != nil {
66+
return fmt.Errorf("unmarshaling field 'Password' for 'GreenplumLinkedServiceTypeProperties': %+v", err)
67+
}
68+
s.Password = impl
69+
}
70+
71+
return nil
1072
}

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

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,21 @@ package dataflowdebugsession
44
// Licensed under the MIT License. See NOTICE.txt in the project root for license information.
55

66
type OracleLinkedServiceTypeProperties struct {
7-
ConnectionString string `json:"connectionString"`
8-
EncryptedCredential *string `json:"encryptedCredential,omitempty"`
9-
Password *AzureKeyVaultSecretReference `json:"password,omitempty"`
7+
AuthenticationType *OracleAuthenticationType `json:"authenticationType,omitempty"`
8+
ConnectionString string `json:"connectionString"`
9+
CryptoChecksumClient *string `json:"cryptoChecksumClient,omitempty"`
10+
CryptoChecksumTypesClient *string `json:"cryptoChecksumTypesClient,omitempty"`
11+
EnableBulkLoad *bool `json:"enableBulkLoad,omitempty"`
12+
EncryptedCredential *string `json:"encryptedCredential,omitempty"`
13+
EncryptionClient *string `json:"encryptionClient,omitempty"`
14+
EncryptionTypesClient *string `json:"encryptionTypesClient,omitempty"`
15+
FetchSize *int64 `json:"fetchSize,omitempty"`
16+
FetchTswtzAsTimestamp *bool `json:"fetchTswtzAsTimestamp,omitempty"`
17+
InitialLobFetchSize *int64 `json:"initialLobFetchSize,omitempty"`
18+
InitializationString *string `json:"initializationString,omitempty"`
19+
Password *AzureKeyVaultSecretReference `json:"password,omitempty"`
20+
Server *string `json:"server,omitempty"`
21+
StatementCacheSize *int64 `json:"statementCacheSize,omitempty"`
22+
SupportV1DataTypes *bool `json:"supportV1DataTypes,omitempty"`
23+
Username *string `json:"username,omitempty"`
1024
}

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

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,16 @@ import (
1010

1111
type TeradataLinkedServiceTypeProperties struct {
1212
AuthenticationType *TeradataAuthenticationType `json:"authenticationType,omitempty"`
13+
CharacterSet *string `json:"characterSet,omitempty"`
1314
ConnectionString *string `json:"connectionString,omitempty"`
1415
EncryptedCredential *string `json:"encryptedCredential,omitempty"`
16+
HTTPSPortNumber *int64 `json:"httpsPortNumber,omitempty"`
17+
MaxRespSize *int64 `json:"maxRespSize,omitempty"`
1518
Password SecretBase `json:"password"`
19+
PortNumber *int64 `json:"portNumber,omitempty"`
1620
Server *string `json:"server,omitempty"`
21+
SslMode *string `json:"sslMode,omitempty"`
22+
UseDataEncryption *int64 `json:"useDataEncryption,omitempty"`
1723
Username *string `json:"username,omitempty"`
1824
}
1925

@@ -22,19 +28,31 @@ var _ json.Unmarshaler = &TeradataLinkedServiceTypeProperties{}
2228
func (s *TeradataLinkedServiceTypeProperties) UnmarshalJSON(bytes []byte) error {
2329
var decoded struct {
2430
AuthenticationType *TeradataAuthenticationType `json:"authenticationType,omitempty"`
31+
CharacterSet *string `json:"characterSet,omitempty"`
2532
ConnectionString *string `json:"connectionString,omitempty"`
2633
EncryptedCredential *string `json:"encryptedCredential,omitempty"`
34+
HTTPSPortNumber *int64 `json:"httpsPortNumber,omitempty"`
35+
MaxRespSize *int64 `json:"maxRespSize,omitempty"`
36+
PortNumber *int64 `json:"portNumber,omitempty"`
2737
Server *string `json:"server,omitempty"`
38+
SslMode *string `json:"sslMode,omitempty"`
39+
UseDataEncryption *int64 `json:"useDataEncryption,omitempty"`
2840
Username *string `json:"username,omitempty"`
2941
}
3042
if err := json.Unmarshal(bytes, &decoded); err != nil {
3143
return fmt.Errorf("unmarshaling: %+v", err)
3244
}
3345

3446
s.AuthenticationType = decoded.AuthenticationType
47+
s.CharacterSet = decoded.CharacterSet
3548
s.ConnectionString = decoded.ConnectionString
3649
s.EncryptedCredential = decoded.EncryptedCredential
50+
s.HTTPSPortNumber = decoded.HTTPSPortNumber
51+
s.MaxRespSize = decoded.MaxRespSize
52+
s.PortNumber = decoded.PortNumber
3753
s.Server = decoded.Server
54+
s.SslMode = decoded.SslMode
55+
s.UseDataEncryption = decoded.UseDataEncryption
3856
s.Username = decoded.Username
3957

4058
var temp map[string]json.RawMessage

0 commit comments

Comments
 (0)